]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: dump indirect ME CSRs
authorCarl Heymann <carl.heymann@netronome.com>
Mon, 4 Dec 2017 22:34:21 +0000 (23:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Dec 2017 20:01:03 +0000 (15:01 -0500)
commiteb9fb5966224d7b6487f398c395cf7604b6d27e2
tree147cfb71ebf595a78163a827827302ff5103d919
parent342e0e39a994dacb7dc3753887e3d6b9d75b4be5
nfp: dump indirect ME CSRs

- The spec defines CSR address ranges for indirect ME CSRs. For Each TLV
  chunk in the spec, dump a chunk that includes the spec and the data
  over the defined address range.
- Each indirect CSR has 8 contexts. To read one context, first write the
  context to a specific derived address, read it back, and then read the
  register value.
- For each address, read and dump all 8 contexts in this manner.

Signed-off-by: Carl Heymann <carl.heymann@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_asm.h
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c