Skip to content

cxgb4: Add T7 adapter support

Potnuri Bharat Teja netdev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest posting 2/212 patches 2 repliesIn review
  2. v5 posting 1/211 of 12 patches 1 replySuperseded
  3. v412 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v312 patches2 repliesSuperseded
v211 patches2 repliesSuperseded
v110 patches4 repliesSuperseded

Changes in v5 from the cover letter

- fixed the build error reported by the Kernel Test Robot.
---

Patches in v5 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12cxgb4: add T7 hardware definitions and firmware interfacesdrivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h drivers/net/ethernet/chelsio/cxgb4/t4_msg.h drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h +5 more+6401 -11420 replies
2/12cxgb4: rework the interrupt handling frameworkdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/sge.c +1 more+3790 -6530 replies
3/12cxgb4: add T7 hardware management supportdrivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +3 more+2022 -4292 replies
4/12cxgb4: move PCI device management into cxgb4_pci.c and rework driver helpersdrivers/net/ethernet/chelsio/cxgb4/Makefile drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c +4 more+715 -4220 replies
5/12cxgb4: add T7 support to the main driverdrivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/sge.c+168 -1390 replies
6/12cxgb4: update PTP register access for T7drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c drivers/net/ethernet/chelsio/cxgb4/sge.c drivers/net/ethernet/chelsio/cxgb4/t4_regs.h+71 -250 replies
7/12cxgb4: extend ethtool support for T7 adaptersdrivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c+278 -1030 replies
8/12cxgb4: Add T7 support to the filter infrastructure.drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c+141 -730 replies
9/12cxgb4: Add indirect register definitions for T7drivers/net/ethernet/chelsio/cxgb4/cudbg_indir_reg.h drivers/net/ethernet/chelsio/cxgb4/cudbg_indir_reg_t7.h+1156 -00 replies
10/12cxgb4: extend CUDBG support for T7 adaptersdrivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +6 more+1400 -2020 replies
11/12cxgb4: extend debugfs support for T7 adaptersdrivers/net/ethernet/chelsio/cxgb4/clip_tbl.c drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +3 more+789 -3430 replies
12/12cxgb4: select ULD Tx and control queues by TID on T7drivers/net/ethernet/chelsio/cxgb4/cxgb4.h drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c +3 more+186 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH net-next v5 REPOST 00/12] cxgb4: Add T7 adapter support

This series adds support for Chelsio T7 adapters to the cxgb4 driver.

The series extends the driver core to recognize and initialize T7 devices, adds support for T7-specific hardware resources and firmware interfaces, updates PCI initialization and resource management, and enables adapter operation through the existing networking stack.

In addition, the series updates several auxiliary components to support the T7 architecture, including PTP, ethtool, filter management, CUDBG, and debugfs. Support is also added for T7 multicore debugging and diagnostic infrastructure.

Testing:
1. Each patch compiled individually
2. Driver probe and initialization on T7 adapters
3. Link bring-up
4. ping
5. NIC tx and rx traffic (using neperf and iperf)
6. Reload the driver multiple times

checkpatch.pl:
- Patch 4: "missing sentinel in ID array" and "Macros with complex values should be enclosed in parentheses" warnings are reported for the macro-generated PCI device ID table. The generated table includes the required terminating entry. This error is a false-positive.
- Patch 7: Several "Avoid CamelCase" warnings are reported for standard ethtool link mode identifiers (e.g. 1000baseKX_Full, 100000baseCR4_Full), which are kernel-defined names and cannot be renamed.

Potnuri Bharat Teja (12):
cxgb4: add T7 hardware definitions and firmware interfaces
cxgb4: rework the interrupt handling framework
cxgb4: add T7 hardware management support
cxgb4: move PCI device management into cxgb4_pci.c and rework driver
helpers
cxgb4: add T7 support to the main driver
cxgb4: update PTP register access for T7
cxgb4: extend ethtool support for T7 adapters
cxgb4: Add T7 support to the filter infrastructure.
cxgb4: Add indirect register definitions for T7
cxgb4: extend CUDBG support for T7 adapters
cxgb4: extend debugfs support for T7 adapters
cxgb4: select ULD Tx and control queues by TID on T7

---
v4 -> v5
- fixed the build error reported by the Kernel Test Robot.
---
v3 -> v4
- fixed buildbot errors
---
v2 -> v3:
- rebase the patches to tot
- add ULD multicore support changes
v1 -> v2:
- split the v1 hardware management patch in two; the interrupt handling rework is not T7 specific and now lands first
- merged the PCI management patch into the one that wires it up, so each commit builds what it adds, then split off the T7 changes
- fixed per patch build failures reported by the kernel test robot
- fixed: shared static intr_info structures mutated per adapter; t4_handle_intr() clearing only enabled cause bits; IPv4 address byte order in mk_act_open_req(); cxgb4_read_tpte() sleeping under xa_lock_irq(); missing CAP_NET_ADMIN on the cudbg ioctl read commands; CXGB4_DEV_ENABLED set too late in probe
- dropped the SYN-only filter field and the unused cxgb4_pci helpers
---

 drivers/net/ethernet/chelsio/cxgb4/Makefile   |    2 +-
 drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c |   10 +-
 .../net/ethernet/chelsio/cxgb4/cudbg_entity.h |  114 +-
 drivers/net/ethernet/chelsio/cxgb4/cudbg_if.h |   56 +-
 .../ethernet/chelsio/cxgb4/cudbg_indir_reg.h  |   43 +
 .../chelsio/cxgb4/cudbg_indir_reg_t7.h        | 1113 +++
 .../net/ethernet/chelsio/cxgb4/cudbg_lib.c    | 1088 ++-
 .../net/ethernet/chelsio/cxgb4/cudbg_lib.h    |   60 +-
 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h    |  148 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c  |   20 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_dcb.c    |   19 +-
 .../ethernet/chelsio/cxgb4/cxgb4_debugfs.c    | 1031 ++-
 .../ethernet/chelsio/cxgb4/cxgb4_debugfs.h    |   17 +-
 .../ethernet/chelsio/cxgb4/cxgb4_ethtool.c    |  381 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_filter.c |  214 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_main.c   | 1183 +--
 .../net/ethernet/chelsio/cxgb4/cxgb4_pci.c    |  332 +
 .../net/ethernet/chelsio/cxgb4/cxgb4_pci.h    |   23 +
 .../net/ethernet/chelsio/cxgb4/cxgb4_ptp.c    |   82 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_uld.c    |  140 +-
 .../net/ethernet/chelsio/cxgb4/cxgb4_uld.h    |    5 +
 drivers/net/ethernet/chelsio/cxgb4/sge.c      |  182 +-
 .../net/ethernet/chelsio/cxgb4/t4_chip_type.h |   10 +
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c    | 6579 ++++++++++++---
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.h    |  140 +-
 drivers/net/ethernet/chelsio/cxgb4/t4_msg.h   |  109 +-
 .../ethernet/chelsio/cxgb4/t4_pci_id_tbl.h    |   21 +
 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h  | 7285 ++++++++++++++---
 drivers/net/ethernet/chelsio/cxgb4/t4_tcb.h   |   16 +
 .../net/ethernet/chelsio/cxgb4/t4_values.h    |   11 +
 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h |   88 +-
 .../net/ethernet/chelsio/cxgb4/t4fw_version.h |    9 +
 32 files changed, 17042 insertions(+), 3489 deletions(-)
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cudbg_indir_reg.h
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cudbg_indir_reg_t7.h
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_pci.c
 create mode 100644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_pci.h
Signature · 1 line
2.39.1