From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=12.32.117.8 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796129087; b=v7lFaa7FQLt4MntIEYQM3mMvy63VFwOGkJqjR1TCo9qMF+Gsfw4uQxg0pjHVVggt3ZTJ 9Z1lZ2cb1eGQ/eF5LeXdNnhks14rVNM6bHUfXmiVvwJDceZHGkIz7F9gBrvTFOb+V58IR KuRhU8cTO1Bdy9/84EBiZiTL8ne+nslOSFSMGhP4YBsUubXFEoXRcPbXBpC8jdyf2qMpz b8m/Ay36wC1ZmU1Bo+8eG7f6Da3hR0hwWrTLEUrNpKDZdpX9wwjZrM2f19gxcMoX6EbsO B/mZCwBTc2h9NIqIMFUnnOAPkt3pizKeXTikMs7LEtayy51tquOjWbjsK+lswUUX85A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796129087; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=1pgCjC5QLxYkXhfWhWNan93WRgwWQnTJzc6jR97xLuI=; b=Wt/+6TokF65ORy3wh3dSUne847g5QvFG14aVEhCmVvykn+7IDZnI9IMe+Y3aa0Xx85Jz QQPLFueN4vlUGhvDrTehTE/p1zvGIC9MVBrhYWAHtBDWRHU8iVfoyZrcUP+1EvYKSCIIL jF+w6e3k5snnx2PAwlW43MNWO2eOWCSykn5dCwngJ2C5JFCMDrjrDiQY9HRxIC1hSK9TX HgiekeRIRUCeKWFAzHkZvJc1xDg5YG2z0ONTDz9Cju7BqPGMPGO9YsXNf+5nhpmaTDy5j ekZwY2ePNhpwjVcVw0ow8aBwMs6wT2vEaxjp3brybTSB0j/JvDsHa7o9acjCMCdDfSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=chelsio.com; spf=pass smtp.mailfrom=chelsio.com; arc=none smtp.remote-ip=12.32.117.8 Received: from stargate.chelsio.com (unknown [12.32.117.8]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A3B7606A31A for ; Tue, 1 Dec 2026 12:44:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9A3B7606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=chelsio.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chelsio.com Received: from mehrangarh-blr-asicdesigners-com.asicdesigners.com (mehrangarh.blr.asicdesigners.com [10.193.185.169]) by stargate.chelsio.com (8.14.7/8.14.7) with ESMTP id 6B1Ci7oO026690; Tue, 1 Dec 2026 04:44:08 -0800 From: Potnuri Bharat Teja To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, bharat@chelsio.com, harshitha.vr@chelsio.com Subject: [PATCH net-next v6 00/12] cxgb4: Add T7 adapter support Date: Tue, 1 Dec 2026 17:15:44 -0500 Message-Id: <20261201221556.251018-1-bharat@chelsio.com> X-Mailer: git-send-email 2.39.1 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- v5 -> v6 - addressed all Sashiko AI review comments on v5 - fixed kdoc warnings - kept the huge patches intact as these add HW specific definitions and the patches may remain relatively huge even after splitting as responded to Simon. --- 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 | 110 +- 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 | 1228 ++- .../net/ethernet/chelsio/cxgb4/cudbg_lib.h | 60 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 154 +- .../net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c | 20 +- .../net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 19 +- .../ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 1081 ++- .../ethernet/chelsio/cxgb4/cxgb4_debugfs.h | 24 +- .../ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 520 +- .../net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 234 +- .../net/ethernet/chelsio/cxgb4/cxgb4_main.c | 1252 +-- .../net/ethernet/chelsio/cxgb4/cxgb4_pci.c | 346 + .../net/ethernet/chelsio/cxgb4/cxgb4_pci.h | 23 + .../net/ethernet/chelsio/cxgb4/cxgb4_ptp.c | 65 +- .../chelsio/cxgb4/cxgb4_tc_matchall.c | 2 +- .../ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c | 2 +- .../net/ethernet/chelsio/cxgb4/cxgb4_uld.c | 167 +- .../net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 5 + drivers/net/ethernet/chelsio/cxgb4/l2t.c | 7 +- drivers/net/ethernet/chelsio/cxgb4/sge.c | 207 +- .../net/ethernet/chelsio/cxgb4/t4_chip_type.h | 10 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 6855 ++++++++++++--- 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 | 27 + drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 7443 ++++++++++++++--- 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 | 89 +- .../net/ethernet/chelsio/cxgb4/t4fw_version.h | 9 + 35 files changed, 17878 insertions(+), 3581 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 -- 2.39.1