From: Ramakrishna Koduri <ramakrishna.koduri@broadcom.com>
To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
vsrama-krishna.nemani@broadcom.com, vikas.gupta@broadcom.com,
bhargava.marreddy@broadcom.com, ajit.khaparde@broadcom.com,
Ramakrishna Koduri <ramakrishna.koduri@broadcom.com>,
Rajashekar Hudumula <rajashekar.hudumula@broadcom.com>
Subject: [PATCH net-next 1/2] bnge: Add HSI definitions for register dump
Date: Tue, 24 Nov 2026 04:07:50 -0600 [thread overview]
Message-ID: <20261124100751.179270-2-ramakrishna.koduri@broadcom.com> (raw)
In-Reply-To: <20261124100751.179270-1-ramakrishna.koduri@broadcom.com>
Add HSI support for get_regs and get_regs_len ethtool callbacks
to provide register dump support for the BNGE driver. This
includes support for PXP registers, PCIe signal integrity, PCIe
Latency Histogram and Adaptive QoS TX/RX MBUF registers.
Signed-off-by: Ramakrishna Koduri <ramakrishna.koduri@broadcom.com>
Reviewed-by: Vikas Gupta <vikas.gupta@broadcom.com>
Reviewed-by: Rajashekar Hudumula <rajashekar.hudumula@broadcom.com>
Reviewed-by: V.S.Rama Krishna Nemani <vsrama-krishna.nemani@broadcom.com>
---
include/linux/bnge/hsi.h | 149 +++++++++++++++++++++++++++++++++++++++
1 file changed, 149 insertions(+)
diff --git a/include/linux/bnge/hsi.h b/include/linux/bnge/hsi.h
index 834db3991691..1bebfc032e47 100644
--- a/include/linux/bnge/hsi.h
+++ b/include/linux/bnge/hsi.h
@@ -12900,4 +12900,153 @@ struct mpc_cmpl_hdr {
__le32 opaque;
};
+/* queue_adptv_qos_rx_info (size:960b/120B) */
+struct queue_adptv_qos_rx_info {
+ __le16 rx_shared_pool_cells;
+ __le16 rx_total_cells;
+ u8 rx_cell_size;
+ u8 rx_enabled_cos;
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS0 0x1UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS1 0x2UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS2 0x4UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS3 0x8UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS4 0x10UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS5 0x20UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS6 0x40UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ENABLED_COS7 0x80UL
+ u8 rx_llfc_enabled;
+ u8 rx_pfc_enabled_cos;
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS0 0x1UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS1 0x2UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS2 0x4UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS3 0x8UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS4 0x10UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS5 0x20UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS6 0x40UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_PFC_ENABLED_COS7 0x80UL
+ __le16 rx_reserved_cells_cos[8];
+ __le16 rx_shared_cells_cos[8];
+ __le16 rx_shared_combined_cells_cos[8];
+ __le16 rx_headroom_cells_cos[8];
+ __le16 rx_headroom_combined_cells_cos[8];
+ u8 rx_shared_pool_index_cos[8];
+ u8 rx_roce_enabled_cos;
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS0 0x1UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS1 0x2UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS2 0x4UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS3 0x8UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS4 0x10UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS5 0x20UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS6 0x40UL
+ #define QUEUE_ADPTV_QOS_RX_INFO_RX_ROCE_ENABLED_COS7 0x80UL
+ u8 unused_0[7];
+ __le16 rx_cos_allocate[8];
+};
+
+/* queue_adptv_qos_tx_info (size:640b/80B) */
+struct queue_adptv_qos_tx_info {
+ __le16 tx_shared_pool_cells;
+ __le16 tx_total_cells;
+ u8 tx_cell_size;
+ u8 tx_enabled_cos;
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS0 0x1UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS1 0x2UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS2 0x4UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS3 0x8UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS4 0x10UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS5 0x20UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS6 0x40UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ENABLED_COS7 0x80UL
+ u8 tx_roce_enabled_cos;
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS0 0x1UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS1 0x2UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS2 0x4UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS3 0x8UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS4 0x10UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS5 0x20UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS6 0x40UL
+ #define QUEUE_ADPTV_QOS_TX_INFO_TX_ROCE_ENABLED_COS7 0x80UL
+ u8 unused_0;
+ __le16 tx_reserved_cells_cos[8];
+ __le16 tx_shared_cells_cos[8];
+ __le16 tx_shared_combined_cells_cos[8];
+ u8 tx_shared_pool_index_cos[8];
+ __le16 tx_cos_allocate[8];
+};
+
+/* hwrm_queue_adptv_qos_rx_qcfg_input (size:256b/32B) */
+struct hwrm_queue_adptv_qos_rx_qcfg_input {
+ __le16 req_type;
+ __le16 cmpl_ring;
+ __le16 seq_id;
+ __le16 target_id;
+ __le64 resp_addr;
+ __le64 rx_qcfg_host_addr;
+ __le16 rx_qcfg_size;
+ u8 port_id;
+ u8 flags;
+ #define QUEUE_ADPTV_QOS_RX_QCFG_REQ_FLAGS_COUNTER_MASK 0x1UL
+ u8 unused_0[4];
+};
+
+/* hwrm_queue_adptv_qos_rx_qcfg_output (size:128b/16B) */
+struct hwrm_queue_adptv_qos_rx_qcfg_output {
+ __le16 error_code;
+ __le16 req_type;
+ __le16 seq_id;
+ __le16 resp_len;
+ __le16 rx_qcfg_size;
+ u8 unused_0[5];
+ u8 valid;
+};
+
+/* hwrm_queue_adptv_qos_tx_qcfg_input (size:256b/32B) */
+struct hwrm_queue_adptv_qos_tx_qcfg_input {
+ __le16 req_type;
+ __le16 cmpl_ring;
+ __le16 seq_id;
+ __le16 target_id;
+ __le64 resp_addr;
+ __le64 tx_qcfg_host_addr;
+ __le16 tx_qcfg_size;
+ u8 port_id;
+ u8 flags;
+ #define QUEUE_ADPTV_QOS_TX_QCFG_REQ_FLAGS_COUNTER_MASK 0x1UL
+ u8 unused_0[4];
+};
+
+/* hwrm_queue_adptv_qos_tx_qcfg_output (size:128b/16B) */
+struct hwrm_queue_adptv_qos_tx_qcfg_output {
+ __le16 error_code;
+ __le16 req_type;
+ __le16 seq_id;
+ __le16 resp_len;
+ __le16 tx_qcfg_size;
+ u8 unused_0[5];
+ u8 valid;
+};
+
+/* hwrm_dbg_read_direct_input (size:256b/32B) */
+struct hwrm_dbg_read_direct_input {
+ __le16 req_type;
+ __le16 cmpl_ring;
+ __le16 seq_id;
+ __le16 target_id;
+ __le64 resp_addr;
+ __le64 host_dest_addr;
+ __le32 read_addr;
+ __le32 read_len32;
+};
+
+/* hwrm_dbg_read_direct_output (size:128b/16B) */
+struct hwrm_dbg_read_direct_output {
+ __le16 error_code;
+ __le16 req_type;
+ __le16 seq_id;
+ __le16 resp_len;
+ __le32 crc32;
+ u8 unused_0[3];
+ u8 valid;
+};
+
#endif /* _BNGE_HSI_H_ */
--
2.52.0
next prev parent reply other threads:[~2026-11-24 10:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:07 [PATCH net-next 0/2] bnge: Add ethtool register dump support Ramakrishna Koduri
2026-11-24 10:07 ` Ramakrishna Koduri [this message]
2026-11-24 10:07 ` [PATCH net-next 2/2] bnge: Add support for ethtool -d register dump Ramakrishna Koduri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124100751.179270-2-ramakrishna.koduri@broadcom.com \
--to=ramakrishna.koduri@broadcom.com \
--cc=ajit.khaparde@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bhargava.marreddy@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rajashekar.hudumula@broadcom.com \
--cc=vikas.gupta@broadcom.com \
--cc=vsrama-krishna.nemani@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®