]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
eth: fbnic: Add PCIe registers dump
authorMohsin Bashir <mohsin.bashr@gmail.com>
Fri, 21 Feb 2025 20:18:11 +0000 (12:18 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Feb 2025 11:56:14 +0000 (12:56 +0100)
Provide coverage to PCIe registers in ethtool register dump

Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_csr.c
drivers/net/ethernet/meta/fbnic/fbnic_csr.h

index aeb9f333f4c7a36d0dd961e8edd07c1f7367a3a1..d9c0dc1c2af97a58e3d704a73ef19e9b82932520 100644 (file)
@@ -30,6 +30,7 @@ static const struct fbnic_csr_bounds fbnic_csr_sects[] = {
        FBNIC_BOUNDS(RSFEC),
        FBNIC_BOUNDS(MAC_MAC),
        FBNIC_BOUNDS(SIG),
+       FBNIC_BOUNDS(PCIE_SS_COMPHY),
        FBNIC_BOUNDS(PUL_USER),
        FBNIC_BOUNDS(QUEUE),
        FBNIC_BOUNDS(RPC_RAM),
index 6f24c5f2e175ebff0e42b8a0d26bebe9ddbe8dd1..af6d33931c3536e09e88e1c4c0cec6c62bed4402 100644 (file)
@@ -788,6 +788,11 @@ enum {
 #define FBNIC_MAC_STAT_TX_MULTICAST_H  0x11a4b         /* 0x4692c */
 #define FBNIC_MAC_STAT_TX_BROADCAST_L  0x11a4c         /* 0x46930 */
 #define FBNIC_MAC_STAT_TX_BROADCAST_H  0x11a4d         /* 0x46934 */
+
+/* PCIE Comphy Registers */
+#define FBNIC_CSR_START_PCIE_SS_COMPHY 0x2442e /* CSR section delimiter */
+#define FBNIC_CSR_END_PCIE_SS_COMPHY   0x279d7 /* CSR section delimiter */
+
 /* PUL User Registers */
 #define FBNIC_CSR_START_PUL_USER       0x31000 /* CSR section delimiter */
 #define FBNIC_PUL_OB_TLP_HDR_AW_CFG    0x3103d         /* 0xc40f4 */