Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1732552
| From | Alexander Duyck <alexander.duyck@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface |
| Date | 2017-09-14 22:20 +0200 |
| Message-ID | <upIM9-1cq-1@gated-at.bofh.it> (permalink) |
| References | <ujxTr-16C-5@gated-at.bofh.it> <ujxTt-16C-45@gated-at.bofh.it> <unjRU-2lN-5@gated-at.bofh.it> <uns8N-87v-1@gated-at.bofh.it> <upIsN-QU-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Sep 14, 2017 at 12:59 PM, Maxim Uvarov <muvarov@gmail.com> wrote: > debugfs here is very very useful to read registers directly and > compare what use space tools see. Cool feature to get regs by port and > use standard tools to diff and print them. Even might be better to > allow drivers to decode register names and bits values. Once that is > done driver mainaince will be much easy. I.e. you need only match regs > with spec from one side and regs with user space tools from other > side. Of course it's needed only for debuging, not for production. But > even for production regs dump on something wrong might tell a lot. > > Maxim. Can you clarify what type of registers it is you are wanting to read? We already have ethtool which is meant to allow reading the device registers for a given netdev. As long as the port has a netdev associated it then there is no need to be getting into debugfs since we should probably just be using ethtool. Also as Jiri pointed out there is already devlink which would probably be a better way to get the associated information for those pieces that don't have a netdev associated with them. - Alex
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface Maxim Uvarov <muvarov@gmail.com> - 2017-09-14 22:00 +0200
Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface Alexander Duyck <alexander.duyck@gmail.com> - 2017-09-14 22:20 +0200
Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface Andrew Lunn <andrew@lunn.ch> - 2017-09-14 23:10 +0200
Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface Jiri Pirko <jiri@resnulli.us> - 2017-09-15 08:00 +0200
Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface Egil Hjelmeland <privat@egil-hjelmeland.no> - 2017-09-15 10:10 +0200
csiph-web