Skip to contentSkip to conversation

usertools: add support for ICX IOAT

PATCH In review Radu Nicolau 3 participants 7 messages Apr 29, 2020 – May 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 usertools: add support for ICX IOAT

---
 usertools/dpdk-devbind.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
usertools/dpdk-devbind.py +3 -1
index b1d1498..40b4bee 100755
@@ -45,6 +45,8 @@
               'SVendor': None, 'SDevice': None}
 intel_ioat_skx = {'Class': '08', 'Vendor': '8086', 'Device': '2021',
               'SVendor': None, 'SDevice': None}
+intel_ioat_icx = {'Class': '08', 'Vendor': '8086', 'Device': '0b00',
+              'SVendor': None, 'SDevice': None}
 intel_ntb_skx = {'Class': '06', 'Vendor': '8086', 'Device': '201c',
               'SVendor': None, 'SDevice': None}
 
@@ -54,7 +56,7 @@
 eventdev_devices = [cavium_sso, cavium_tim, octeontx2_sso]
 mempool_devices = [cavium_fpa, octeontx2_npa]
 compress_devices = [cavium_zip]
-misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ntb_skx, octeontx2_dma]
+misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_ntb_skx, octeontx2_dma]
 
 # global dict ethernet devices present. Dictionary indexed by PCI address.
 # Each device within this is itself a dictionary of device properties
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 raw/ioat: add ICX support

---
 drivers/raw/ioat/ioat_rawdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/raw/ioat/ioat_rawdev.c +2 -0
index af8414b..a8a48f9 100644
@@ -26,6 +26,7 @@ static struct rte_pci_driver ioat_pmd_drv;
 #define IOAT_DEVICE_ID_BDX7	0x6f27
 #define IOAT_DEVICE_ID_BDXE	0x6f2E
 #define IOAT_DEVICE_ID_BDXF	0x6f2F
+#define IOAT_DEVICE_ID_ICX	0x0b00
 
 #define IOAT_PMD_LOG(level, fmt, args...) rte_log(RTE_LOG_ ## level, \
 	ioat_pmd_logtype, "%s(): " fmt "\n", __func__, ##args)
@@ -371,6 +372,7 @@ static const struct rte_pci_id pci_id_ioat_map[] = {
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDX7) },
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDXE) },
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDXF) },
+	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_ICX) },
 	{ .vendor_id = 0, /* sentinel */ },
 };
 
Signature · 1 line
2.7.4
#2 lore raw

Re: [dpdk-dev] [PATCH v1 2/2] raw/ioat: add ICX support

29/04/2020 11:37, Radu Nicolau:

Quoted 1 line

The commit log of patch 2 is not better than in patch 1. I suggest to squash both commits together.

#4 lore raw

PATCH v2 1/1 raw/ioat: add ICX support

In reply to Radu Nicolau

Add support for Ice Lake IOAT DMA engine PCI Device ID.

---
v2: squash commits, add description.

 drivers/raw/ioat/ioat_rawdev.c | 2 ++
 usertools/dpdk-devbind.py      | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/raw/ioat/ioat_rawdev.c +2 -0
index af8414b..a8a48f9 100644
@@ -26,6 +26,7 @@ static struct rte_pci_driver ioat_pmd_drv;
 #define IOAT_DEVICE_ID_BDX7	0x6f27
 #define IOAT_DEVICE_ID_BDXE	0x6f2E
 #define IOAT_DEVICE_ID_BDXF	0x6f2F
+#define IOAT_DEVICE_ID_ICX	0x0b00
 
 #define IOAT_PMD_LOG(level, fmt, args...) rte_log(RTE_LOG_ ## level, \
 	ioat_pmd_logtype, "%s(): " fmt "\n", __func__, ##args)
@@ -371,6 +372,7 @@ static const struct rte_pci_id pci_id_ioat_map[] = {
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDX7) },
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDXE) },
 	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_BDXF) },
+	{ RTE_PCI_DEVICE(IOAT_VENDOR_ID, IOAT_DEVICE_ID_ICX) },
 	{ .vendor_id = 0, /* sentinel */ },
 };
 
usertools/dpdk-devbind.py +3 -1
index b1d1498..40b4bee 100755
@@ -45,6 +45,8 @@
               'SVendor': None, 'SDevice': None}
 intel_ioat_skx = {'Class': '08', 'Vendor': '8086', 'Device': '2021',
               'SVendor': None, 'SDevice': None}
+intel_ioat_icx = {'Class': '08', 'Vendor': '8086', 'Device': '0b00',
+              'SVendor': None, 'SDevice': None}
 intel_ntb_skx = {'Class': '06', 'Vendor': '8086', 'Device': '201c',
               'SVendor': None, 'SDevice': None}
 
@@ -54,7 +56,7 @@
 eventdev_devices = [cavium_sso, cavium_tim, octeontx2_sso]
 mempool_devices = [cavium_fpa, octeontx2_npa]
 compress_devices = [cavium_zip]
-misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ntb_skx, octeontx2_dma]
+misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_ntb_skx, octeontx2_dma]
 
 # global dict ethernet devices present. Dictionary indexed by PCI address.
 # Each device within this is itself a dictionary of device properties
Signature · 1 line
2.7.4
#6 lore raw

Re: [dpdk-dev] [PATCH v2] raw/ioat: add ICX support

05/05/2020 18:07, Bruce Richardson:

Quoted 7 lines · Radu Nicolau
Quoted 6 lines

Add support for Ice Lake IOAT DMA engine PCI Device ID.

---
v2: squash commits, add description.

Quoted 5 lines
Quoted 4 lines
 drivers/raw/ioat/ioat_rawdev.c | 2 ++
 usertools/dpdk-devbind.py      | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

Applied, thanks