From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 814D346480 for ; Wed, 26 Mar 2025 17:55:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 539AD402CD; Wed, 26 Mar 2025 17:55:13 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id A0ADE402CD for ; Wed, 26 Mar 2025 17:55:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1743008111; x=1774544111; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GVIqDURbruPAeuFRarRB6/G2krs/BRGeMbm3eTYw8Bg=; b=ENrZKB/mPUvaVrkUFtLkatxuN3uCFPVA9iTfKpi+bjYFfeYGVSyFqnTV yGbz0GR3CkoBWZP+1OQUxiJ+keGhcWnSfXl4Su1Ktf22ppzMVfFQEF/fV SSRILyrTCdRZqbnO4YWgM0Kd8XJQGGN3eUDTLONARs0Ad/yXBqpMMAJWN y/3dflsYc6S0pLt+8iqS/CPRZIwZjWUNvxHWFXZGTFExhqPsDENXLNADX oLYGLjQcaoHjSiiVHhmWDfUK1dwlpWn5PtSfK+yaNSd/tCC1FFuWjDKOc QEB0j+TTBPb+Cu3NFNcRLe2lIwrvjn2yed/z+a+W3zmZ3H2VXBxluUWb7 w==; X-CSE-ConnectionGUID: +q6OyC66Q3uAH3wFDU9/VQ== X-CSE-MsgGUID: blC9lJt0Q1mCek9E5J1BTg== X-IronPort-AV: E=McAfee;i="6700,10204,11385"; a="61706438" X-IronPort-AV: E=Sophos;i="6.14,278,1736841600"; d="scan'208";a="61706438" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2025 09:55:10 -0700 X-CSE-ConnectionGUID: dAitrAsIS7SG9ufzcUeoRA== X-CSE-MsgGUID: 85cJgiWFTtSRUg4xX5h+lA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,278,1736841600"; d="scan'208";a="129687066" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.31]) by orviesa003.jf.intel.com with ESMTP; 26 Mar 2025 09:55:09 -0700 From: Bruce Richardson To: stable@dpdk.org Cc: ktraynor@redhat.com, Bruce Richardson , Kevin Laatz Subject: [PATCH 24.11] dma/idxd: add device ids for new HW versions Date: Wed, 26 Mar 2025 16:54:53 +0000 Message-ID: <20250326165501.1884349-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Add in two extra PCI device id's for future HW versions to be supported by idxd driver. This aligns with the definitions present in kernel idxd driver [1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma/idxd/registers.h#n9 Signed-off-by: Bruce Richardson Acked-by: Kevin Laatz --- This is a backport of main tree patch[1], which hopefully can be considered for backport to 24.11, since it only contains a couple of new device IDs, and no functional changes. [1] fedffb112f98 ("dma/idxd: add device ids for new HW versions") --- drivers/dma/idxd/idxd_pci.c | 4 ++++ usertools/dpdk-devbind.py | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/dma/idxd/idxd_pci.c b/drivers/dma/idxd/idxd_pci.c index 5c05762d03..214f6f22d5 100644 --- a/drivers/dma/idxd/idxd_pci.c +++ b/drivers/dma/idxd/idxd_pci.c @@ -11,6 +11,8 @@ #define IDXD_VENDOR_ID 0x8086 #define IDXD_DEVICE_ID_SPR 0x0B25 +#define IDXD_DEVICE_ID_GNRD 0x11FB +#define IDXD_DEVICE_ID_DMR 0x1212 #define DEVICE_VERSION_1 0x100 #define DEVICE_VERSION_2 0x200 @@ -24,6 +26,8 @@ const struct rte_pci_id pci_id_idxd_map[] = { { RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_SPR) }, + { RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_GNRD) }, + { RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_DMR) }, { .vendor_id = 0, /* sentinel */ }, }; diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 283707fc16..62edbba095 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -62,6 +62,10 @@ 'SVendor': None, 'SDevice': None} intel_idxd_spr = {'Class': '08', 'Vendor': '8086', 'Device': '0b25', 'SVendor': None, 'SDevice': None} +intel_idxd_gnrd = {'Class': '08', 'Vendor': '8086', 'Device': '11fb', + 'SVendor': None, 'SDevice': None} +intel_idxd_dmr = {'Class': '08', 'Vendor': '8086', 'Device': '1212', + 'SVendor': None, 'SDevice': None} intel_ntb_skx = {'Class': '06', 'Vendor': '8086', 'Device': '201c', 'SVendor': None, 'SDevice': None} intel_ntb_icx = {'Class': '06', 'Vendor': '8086', 'Device': '347e', @@ -84,7 +88,8 @@ baseband_devices = [acceleration_class] crypto_devices = [encryption_class, intel_processor_class] dma_devices = [cnxk_dma, hisilicon_dma, - intel_idxd_spr, intel_ioat_bdw, intel_ioat_icx, intel_ioat_skx, + intel_idxd_gnrd, intel_idxd_dmr, intel_idxd_spr, + intel_ioat_bdw, intel_ioat_icx, intel_ioat_skx, odm_dma] eventdev_devices = [cavium_sso, cavium_tim, intel_dlb, cnxk_sso] mempool_devices = [cavium_fpa, cnxk_npa] -- 2.45.2