Skip to contentSkip to conversation

pci: add class codes for processing accelerators

PATCH In review Oded Gabbay 2 participants 3 messages Nov 23, 2017 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: add class codes for processing accelerators

Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There are new ASICs (now in development) for Deep Learning that will utilize this base class.

---
 include/linux/pci_ids.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/pci_ids.h +3 -0
index ab20dc5..4c210cd 100644
@@ -139,6 +139,9 @@
 #define PCI_CLASS_SP_DPIO		0x1100
 #define PCI_CLASS_SP_OTHER		0x1180
 
+#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR	0x12
+#define PCI_CLASS_PA_VENDOR_SPECIFIC		0x1200
+
 #define PCI_CLASS_OTHERS		0xff
 
 /* Vendors and devices.  Sort key: vendor first, device next. */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Oded Gabbay

Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There are new ASICs (now in development) for Deep Learning that will utilize this base class.

---
 include/linux/pci_ids.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/pci_ids.h +0 -0
index ab20dc5..4c210cd 100644

include/linux/pci_ids.h line 143

Quoted 5 lines
include/linux/pci_ids.h +2 -0
@@ -139,6 +139,9 @@
 #define PCI_CLASS_SP_DPIO		0x1100
 #define PCI_CLASS_SP_OTHER		0x1180
 
+#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR	0x12
+#define PCI_CLASS_PA_VENDOR_SPECIFIC		0x1200

Did you read the top of this file?

And if these really do belong here, then it should go in as part of a patch series that contains a driver that uses these values.

thanks,

greg k-h

#2 lore raw
Quoted 18 lines · Greg KH
Quoted 17 lines · Oded Gabbay

Add PCI codes to include/linux/pci_ids.h for Processing Accelerators. There are new ASICs (now in development) for Deep Learning that will utilize this base class.

---
 include/linux/pci_ids.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/pci_ids.h +0 -0
index ab20dc5..4c210cd 100644
@@ -139,6 +139,9 @@
 #define PCI_CLASS_SP_DPIO            0x1100
 #define PCI_CLASS_SP_OTHER           0x1180
 
Quoted 4 lines

include/linux/pci_ids.h line 143

Quoted 2 lines
include/linux/pci_ids.h +2 -0
+#define PCI_BASE_CLASS_PROCESSING_ACCELERATOR        0x12
+#define PCI_CLASS_PA_VENDOR_SPECIFIC         0x1200

Did you read the top of this file?

Yes, but I thought that since this value is defined in the PCI spec then it is ok to add it here.

Quoted 3 lines

And if these really do belong here, then it should go in as part of a patch series that contains a driver that uses these values.

ok, then I'll need to resend this in a couple of months.

Thanks,
Oded

Quoted 4 lines

thanks,

greg k-h