Skip to contentSkip to conversation

bnge/bng_re: Add a new HSI

PATCH Applied Vikas Gupta 2 participants 2 messages Feb 8 – Feb 11

Subsystems (5)
lore
Share & tools
lore

Vikas Gupta

author maintainer
#0 lore raw

PATCH v3 1/1 bnge/bng_re: Add a new HSI

The HSI is shared between the firmware and the driver and is automatically generated.
Add a new HSI for the BNGE driver. The current HSI refers to BNXT, which will become incompatible with ThorUltra devices as the BNGE driver adds more features. The BNGE driver will not use the HSI located in the bnxt folder.
Also, add an HSI for ThorUltra RoCE driver.

Changes in v3:
- Fix in bng_roce_hsi.h reported by Jakub (AI review)
https://lore.kernel.org/netdev/[email protected]/
- Add an entry in MAINTAINERS

---
 MAINTAINERS                                   |     1 +
 drivers/infiniband/hw/bng_re/Makefile         |     2 +-
 drivers/infiniband/hw/bng_re/bng_fw.c         |     2 +-
 drivers/infiniband/hw/bng_re/bng_res.c        |     4 +-
 drivers/infiniband/hw/bng_re/bng_res.h        |     2 +-
 drivers/infiniband/hw/bng_re/bng_roce_hsi.h   |  6450 ++++++++
 drivers/infiniband/hw/bng_re/bng_tlv.h        |     2 +-
 drivers/net/ethernet/broadcom/bnge/bnge.h     |     2 +-
 .../net/ethernet/broadcom/bnge/bnge_auxr.c    |     2 +-
 .../net/ethernet/broadcom/bnge/bnge_hwrm.h    |     2 +-
 .../ethernet/broadcom/bnge/bnge_hwrm_lib.c    |     2 +-
 .../net/ethernet/broadcom/bnge/bnge_netdev.h  |     2 +-
 .../net/ethernet/broadcom/bnge/bnge_rmem.c    |     2 +-
 .../net/ethernet/broadcom/bnge/bnge_txrx.h    |     2 +-
 include/linux/bnge/hsi.h                      | 12609 ++++++++++++++++
 15 files changed, 19073 insertions(+), 13 deletions(-)
 create mode 100644 drivers/infiniband/hw/bng_re/bng_roce_hsi.h
 create mode 100644 include/linux/bnge/hsi.h
MAINTAINERS +1 -0
index 34c2ed4da1f9..5cc5da293440 100644
@@ -5134,6 +5134,7 @@ M:	Vikas Gupta <[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/net/ethernet/broadcom/bnge/
+F:	include/linux/bnge/hsi.h
 
 BROADCOM BRCM80211 IEEE802.11 WIRELESS DRIVERS
 M:	Arend van Spriel <[email protected]>
drivers/infiniband/hw/bng_re/Makefile +1 -1
index c6aaaf853c77..17e9d5871d40 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
-ccflags-y := -I $(srctree)/drivers/net/ethernet/broadcom/bnge -I $(srctree)/drivers/infiniband/hw/bnxt_re
+ccflags-y := -I $(srctree)/drivers/net/ethernet/broadcom/bnge
 
 obj-$(CONFIG_INFINIBAND_BNG_RE) += bng_re.o
 
drivers/infiniband/hw/bng_re/bng_fw.c +1 -1
index 7d9539113cf5..01b3e1cbe719 100644
@@ -2,7 +2,7 @@
 // Copyright (c) 2025 Broadcom.
 #include <linux/pci.h>
 
-#include "roce_hsi.h"
+#include "bng_roce_hsi.h"
 #include "bng_res.h"
 #include "bng_fw.h"
 #include "bng_sp.h"
drivers/infiniband/hw/bng_re/bng_res.c +2 -2
index c50823758b53..f6e3528e7f4c 100644
@@ -5,9 +5,9 @@
 #include <linux/vmalloc.h>
 #include <rdma/ib_umem.h>
 
-#include <linux/bnxt/hsi.h>
+#include <linux/bnge/hsi.h>
 #include "bng_res.h"
-#include "roce_hsi.h"
+#include "bng_roce_hsi.h"
 
 /* Stats */
 void bng_re_free_stats_ctx_mem(struct pci_dev *pdev,
drivers/infiniband/hw/bng_re/bng_res.h +1 -1
index 9997f86d6a0e..2c4e9191ad1c 100644
@@ -4,7 +4,7 @@
 #ifndef __BNG_RES_H__
 #define __BNG_RES_H__
 
-#include "roce_hsi.h"
+#include "bng_roce_hsi.h"
 
 #define BNG_ROCE_FW_MAX_TIMEOUT	60
 
drivers/infiniband/hw/bng_re/bng_roce_hsi.h new file +6450 -0

2,960 lines not on this page · raw message

drivers/infiniband/hw/bng_re/bng_tlv.h +1 -1
index 278f4922962d..f74ffc4575c7 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge.h +1 -1
index 32fc16a37d02..f376913aa321 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_auxr.c +1 -1
index d64592b64e17..5f4cb4991964 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_hwrm.h +1 -1
index 6df629761d95..2ed9c92c8c30 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c +1 -1
index d4b1c0d2c44c..84c90a957719 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_netdev.h +1 -1
index 1ab89febbef5..70f1a7c24814 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_rmem.c +1 -1
index 79f5ce2e5d08..ee97be440c33 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnge/bnge_txrx.h +1 -1
index 2a17ff639100..bd0aa6c221a4 100644

Lines of this file are not shown. View the raw message.

include/linux/bnge/hsi.h new file +12609 -0

12,609 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.47.1

Part of the diff is not shown here. View the raw message.

#1 lore raw
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 9 lines · On Sun, 8 Feb 2026 22:59:25 +0530 you wrote:

The HSI is shared between the firmware and the driver and is automatically generated.
Add a new HSI for the BNGE driver. The current HSI refers to BNXT, which will become incompatible with ThorUltra devices as the BNGE driver adds more features. The BNGE driver will not use the HSI located in the bnxt folder.
Also, add an HSI for ThorUltra RoCE driver.

[...]

Here is the summary with links:
- [net-next,v3] bnge/bng_re: Add a new HSI

    https://git.kernel.org/netdev/net-next/c/42d1c54d6248

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html