linux/drivers/net/ethernet/netronome/nfp
Carl Heymann 28b2d7d04b nfp: fix XPB register reads in debug dump
For XPB registers reads, some island IDs require special handling (e.g.
ARM island), which is already taken care of in nfp_xpb_readl(), so use
that instead of a straight CPP read.

Without this fix all "xpbm:ArmIsldXpbmMap.*" registers are reported as
0xffffffff. It has also been observed to cause a system reboot.

With this fix correct values are reported, none of which are 0xffffffff.

The values may be read using ethtool debug level 2.
 # ethtool -W <netdev> 2
 # ethtool -w <netdev> data dump.dat

Fixes: 0e6c4955e1 ("nfp: dump CPP, XPB and direct ME CSRs")
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>
2017-12-15 12:48:45 -05:00
..
bpf net: xdp: make the stack take care of the tear down 2017-12-03 00:27:57 +01:00
flower nfp: flower: remove unused defines 2017-12-11 12:08:04 -05:00
nfpcore nfp: implement firmware flashing 2017-12-15 12:26:12 -05:00
nic nfp: separate app vNIC init/clean from alloc/free 2017-09-03 21:22:04 -07:00
Makefile nfp: debug dump ethtool ops 2017-12-05 15:01:01 -05:00
nfp_app_nic.c nfp: separate app vNIC init/clean from alloc/free 2017-09-03 21:22:04 -07:00
nfp_app.c nfp: refactor nfp_app_reprs_set 2017-11-05 23:23:26 +09:00
nfp_app.h nfp: register flower reprs for egress dev offload 2017-11-17 14:09:36 +09:00
nfp_asm.c nfp: bpf: implement memory bulk copy for length within 32-bytes 2017-12-01 20:59:20 +01:00
nfp_asm.h nfp: dump indirect ME CSRs 2017-12-05 15:01:03 -05:00
nfp_devlink.c nfp: devlink add support for getting eswitch mode 2017-06-25 11:42:01 -04:00
nfp_hwmon.c nfp: add hwmon support 2017-05-30 11:27:06 -04:00
nfp_main.c nfp: debug dump ethtool ops 2017-12-05 15:01:01 -05:00
nfp_main.h nfp: debug dump ethtool ops 2017-12-05 15:01:01 -05:00
nfp_net_common.c net: xdp: make the stack take care of the tear down 2017-12-03 00:27:57 +01:00
nfp_net_ctrl.h nfp: bpf: move to datapath ABI version 2 2017-10-09 09:51:03 -07:00
nfp_net_debugdump.c nfp: fix XPB register reads in debug dump 2017-12-15 12:48:45 -05:00
nfp_net_debugfs.c nfp: don't reuse pointers in ring dumping 2017-08-18 22:39:28 -07:00
nfp_net_ethtool.c nfp: implement firmware flashing 2017-12-15 12:26:12 -05:00
nfp_net_main.c nfp: resync repr state when port table sync 2017-11-05 23:23:26 +09:00
nfp_net_repr.c nfp: fix port stats for mac representors 2017-12-05 11:29:36 -05:00
nfp_net_repr.h nfp: resync repr state when port table sync 2017-11-05 23:23:26 +09:00
nfp_net_sriov.c nfp: inform the VF driver needs to be restarted after changing the MAC 2017-10-28 18:59:48 +09:00
nfp_net_sriov.h nfp: add basic SR-IOV ndo functions 2017-08-25 19:24:58 -07:00
nfp_net.h nfp: fix old kdoc issues 2017-12-01 20:59:19 +01:00
nfp_netvf_main.c nfp: advertise support for NFD ABI 0.5 2017-06-07 12:51:42 -04:00
nfp_port.c nfp: store pointer to MAC statistics in nfp_port 2017-08-18 22:39:28 -07:00
nfp_port.h nfp: fix vlan receive MAC statistics typo 2017-11-17 14:09:35 +09:00