Skip to content

Commit fedffb1

Browse files
bruce-richardsondavid-marchand
authored andcommitted
dma/idxd: add device ids for new HW versions
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 <[email protected]> Acked-by: Kevin Laatz <[email protected]>
1 parent 77e33f2 commit fedffb1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Diff for: drivers/dma/idxd/idxd_pci.c

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
#define IDXD_VENDOR_ID 0x8086
1313
#define IDXD_DEVICE_ID_SPR 0x0B25
14+
#define IDXD_DEVICE_ID_GNRD 0x11FB
15+
#define IDXD_DEVICE_ID_DMR 0x1212
1416

1517
#define DEVICE_VERSION_1 0x100
1618
#define DEVICE_VERSION_2 0x200
@@ -24,6 +26,8 @@
2426

2527
const struct rte_pci_id pci_id_idxd_map[] = {
2628
{ RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_SPR) },
29+
{ RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_GNRD) },
30+
{ RTE_PCI_DEVICE(IDXD_VENDOR_ID, IDXD_DEVICE_ID_DMR) },
2731
{ .vendor_id = 0, /* sentinel */ },
2832
};
2933

Diff for: usertools/dpdk-devbind.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
'SVendor': None, 'SDevice': None}
6363
intel_idxd_spr = {'Class': '08', 'Vendor': '8086', 'Device': '0b25',
6464
'SVendor': None, 'SDevice': None}
65+
intel_idxd_gnrd = {'Class': '08', 'Vendor': '8086', 'Device': '11fb',
66+
'SVendor': None, 'SDevice': None}
67+
intel_idxd_dmr = {'Class': '08', 'Vendor': '8086', 'Device': '1212',
68+
'SVendor': None, 'SDevice': None}
6569
intel_ntb_skx = {'Class': '06', 'Vendor': '8086', 'Device': '201c',
6670
'SVendor': None, 'SDevice': None}
6771
intel_ntb_icx = {'Class': '06', 'Vendor': '8086', 'Device': '347e',
@@ -84,7 +88,8 @@
8488
baseband_devices = [acceleration_class]
8589
crypto_devices = [encryption_class, intel_processor_class]
8690
dma_devices = [cnxk_dma, hisilicon_dma,
87-
intel_idxd_spr, intel_ioat_bdw, intel_ioat_icx, intel_ioat_skx,
91+
intel_idxd_gnrd, intel_idxd_dmr, intel_idxd_spr,
92+
intel_ioat_bdw, intel_ioat_icx, intel_ioat_skx,
8893
odm_dma]
8994
eventdev_devices = [cavium_sso, cavium_tim, intel_dlb, cnxk_sso]
9095
mempool_devices = [cavium_fpa, cnxk_npa]

0 commit comments

Comments
 (0)