mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
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/20260207051422.4181717-1-kuba@kernel.org/ - Add an entry in MAINTAINERS Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com> Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com> Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com> Link: https://patch.msgid.link/20260208172925.1861255-1-vikas.gupta@broadcom.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
1abee69a95
commit
42d1c54d62
|
|
@ -5134,6 +5134,7 @@ M: Vikas Gupta <vikas.gupta@broadcom.com>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/ethernet/broadcom/bnge/
|
F: drivers/net/ethernet/broadcom/bnge/
|
||||||
|
F: include/linux/bnge/hsi.h
|
||||||
|
|
||||||
BROADCOM BRCM80211 IEEE802.11 WIRELESS DRIVERS
|
BROADCOM BRCM80211 IEEE802.11 WIRELESS DRIVERS
|
||||||
M: Arend van Spriel <arend.vanspriel@broadcom.com>
|
M: Arend van Spriel <arend.vanspriel@broadcom.com>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
# 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
|
obj-$(CONFIG_INFINIBAND_BNG_RE) += bng_re.o
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
// Copyright (c) 2025 Broadcom.
|
// Copyright (c) 2025 Broadcom.
|
||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
|
|
||||||
#include "roce_hsi.h"
|
#include "bng_roce_hsi.h"
|
||||||
#include "bng_res.h"
|
#include "bng_res.h"
|
||||||
#include "bng_fw.h"
|
#include "bng_fw.h"
|
||||||
#include "bng_sp.h"
|
#include "bng_sp.h"
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
#include <rdma/ib_umem.h>
|
#include <rdma/ib_umem.h>
|
||||||
|
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
#include "bng_res.h"
|
#include "bng_res.h"
|
||||||
#include "roce_hsi.h"
|
#include "bng_roce_hsi.h"
|
||||||
|
|
||||||
/* Stats */
|
/* Stats */
|
||||||
void bng_re_free_stats_ctx_mem(struct pci_dev *pdev,
|
void bng_re_free_stats_ctx_mem(struct pci_dev *pdev,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef __BNG_RES_H__
|
#ifndef __BNG_RES_H__
|
||||||
#define __BNG_RES_H__
|
#define __BNG_RES_H__
|
||||||
|
|
||||||
#include "roce_hsi.h"
|
#include "bng_roce_hsi.h"
|
||||||
|
|
||||||
#define BNG_ROCE_FW_MAX_TIMEOUT 60
|
#define BNG_ROCE_FW_MAX_TIMEOUT 60
|
||||||
|
|
||||||
|
|
|
||||||
6450
drivers/infiniband/hw/bng_re/bng_roce_hsi.h
Normal file
6450
drivers/infiniband/hw/bng_re/bng_roce_hsi.h
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef __BNG_TLV_H__
|
#ifndef __BNG_TLV_H__
|
||||||
#define __BNG_TLV_H__
|
#define __BNG_TLV_H__
|
||||||
|
|
||||||
#include "roce_hsi.h"
|
#include "bng_roce_hsi.h"
|
||||||
|
|
||||||
struct roce_tlv {
|
struct roce_tlv {
|
||||||
struct tlv tlv;
|
struct tlv tlv;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#define DRV_SUMMARY "Broadcom ThorUltra NIC Ethernet Driver"
|
#define DRV_SUMMARY "Broadcom ThorUltra NIC Ethernet Driver"
|
||||||
|
|
||||||
#include <linux/etherdevice.h>
|
#include <linux/etherdevice.h>
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
#include "bnge_rmem.h"
|
#include "bnge_rmem.h"
|
||||||
#include "bnge_resc.h"
|
#include "bnge_resc.h"
|
||||||
#include "bnge_auxr.h"
|
#include "bnge_auxr.h"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
#include <linux/bitmap.h>
|
#include <linux/bitmap.h>
|
||||||
#include <linux/auxiliary_bus.h>
|
#include <linux/auxiliary_bus.h>
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
|
|
||||||
#include "bnge.h"
|
#include "bnge.h"
|
||||||
#include "bnge_hwrm.h"
|
#include "bnge_hwrm.h"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef _BNGE_HWRM_H_
|
#ifndef _BNGE_HWRM_H_
|
||||||
#define _BNGE_HWRM_H_
|
#define _BNGE_HWRM_H_
|
||||||
|
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
|
|
||||||
enum bnge_hwrm_ctx_flags {
|
enum bnge_hwrm_ctx_flags {
|
||||||
BNGE_HWRM_INTERNAL_CTX_OWNED = BIT(0),
|
BNGE_HWRM_INTERNAL_CTX_OWNED = BIT(0),
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
#include <linux/if_vlan.h>
|
#include <linux/if_vlan.h>
|
||||||
#include <net/netdev_queues.h>
|
#include <net/netdev_queues.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef _BNGE_NETDEV_H_
|
#ifndef _BNGE_NETDEV_H_
|
||||||
#define _BNGE_NETDEV_H_
|
#define _BNGE_NETDEV_H_
|
||||||
|
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
#include <linux/io-64-nonatomic-lo-hi.h>
|
#include <linux/io-64-nonatomic-lo-hi.h>
|
||||||
#include <linux/refcount.h>
|
#include <linux/refcount.h>
|
||||||
#include "bnge_db.h"
|
#include "bnge_db.h"
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#include <linux/dma-mapping.h>
|
#include <linux/dma-mapping.h>
|
||||||
#include <linux/vmalloc.h>
|
#include <linux/vmalloc.h>
|
||||||
#include <linux/crash_dump.h>
|
#include <linux/crash_dump.h>
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
|
|
||||||
#include "bnge.h"
|
#include "bnge.h"
|
||||||
#include "bnge_hwrm_lib.h"
|
#include "bnge_hwrm_lib.h"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef _BNGE_TXRX_H_
|
#ifndef _BNGE_TXRX_H_
|
||||||
#define _BNGE_TXRX_H_
|
#define _BNGE_TXRX_H_
|
||||||
|
|
||||||
#include <linux/bnxt/hsi.h>
|
#include <linux/bnge/hsi.h>
|
||||||
#include "bnge_netdev.h"
|
#include "bnge_netdev.h"
|
||||||
|
|
||||||
static inline u32 bnge_tx_avail(struct bnge_net *bn,
|
static inline u32 bnge_tx_avail(struct bnge_net *bn,
|
||||||
|
|
|
||||||
12609
include/linux/bnge/hsi.h
Normal file
12609
include/linux/bnge/hsi.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user