PCI: Add Marvell Octeon devices to PCI IDs
PATCH 1/1 PCI: Add Marvell Octeon devices to PCI IDs
Add Marvell (Cavium) OcteonTx2 and CN10K devices
to PCI ID database.
--- include/linux/pci_ids.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
include/linux/pci_ids.h +15 -0
@@ -2357,6 +2357,21 @@#define PCI_DEVICE_ID_ALTIMA_AC1003 0x03eb#define PCI_VENDOR_ID_CAVIUM 0x177d +#define PCI_DEVICE_ID_OCTEONTX2_PTP 0xA00C +#define PCI_DEVICE_ID_CN10K_PTP 0xA09E +#define PCI_DEVICE_ID_OCTEONTX2_CGX 0xA059 +#define PCI_DEVICE_ID_CN10K_RPM 0xA060 +#define PCI_DEVICE_ID_OCTEONTX2_CPTPF 0xA0FD +#define PCI_DEVICE_ID_OCTEONTX2_CPTVF 0xA0FE +#define PCI_DEVICE_ID_CN10K_CPTPF 0xA0F2 +#define PCI_DEVICE_ID_CN10K_CPTVF 0xA0F3 +#define PCI_DEVICE_ID_OCTEONTX2_RVUAF 0xA065 +#define PCI_DEVICE_ID_OCTEONTX2_RVUPF 0xA063 +#define PCI_DEVICE_ID_OCTEONTX2_RVUVF 0xA064 +#define PCI_DEVICE_ID_OCTEONTX2_LBK 0xA061 +#define PCI_DEVICE_ID_OCTEONTX2_LBKVF 0xA0F8 +#define PCI_DEVICE_ID_OCTEONTX2_SDPPF 0xA0F6 +#define PCI_DEVICE_ID_OCTEONTX2_SDPVF 0xA0F7#define PCI_VENDOR_ID_TECHWELL 0x1797#define PCI_DEVICE_ID_TECHWELL_6800 0x6800
Signature · 1 line
2.7.4
Quoted 21 lines · Sunil Goutham
Add Marvell (Cavium) OcteonTx2 and CN10K devices
to PCI ID database.Signed-off-by Sunil Goutham <[email protected]>--- include/linux/pci_ids.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)include/linux/pci_ids.h +5
-0@@ -2357,6 +2357,21 @@#define PCI_DEVICE_ID_ALTIMA_AC1003 0x03eb#define PCI_VENDOR_ID_CAVIUM 0x177d +#define PCI_DEVICE_ID_OCTEONTX2_PTP 0xA00C +#define PCI_DEVICE_ID_CN10K_PTP 0xA09E +#define PCI_DEVICE_ID_OCTEONTX2_CGX 0xA059 +#define PCI_DEVICE_ID_CN10K_RPM 0xA060 +#define PCI_DEVICE_ID_OCTEONTX2_CPTPF 0xA0FD
include/linux/pci_ids.h line 2374
Quoted 10 lines
include/linux/pci_ids.h +10
-0+#define PCI_DEVICE_ID_OCTEONTX2_CPTVF 0xA0FE +#define PCI_DEVICE_ID_CN10K_CPTPF 0xA0F2 +#define PCI_DEVICE_ID_CN10K_CPTVF 0xA0F3 +#define PCI_DEVICE_ID_OCTEONTX2_RVUAF 0xA065 +#define PCI_DEVICE_ID_OCTEONTX2_RVUPF 0xA063 +#define PCI_DEVICE_ID_OCTEONTX2_RVUVF 0xA064 +#define PCI_DEVICE_ID_OCTEONTX2_LBK 0xA061 +#define PCI_DEVICE_ID_OCTEONTX2_LBKVF 0xA0F8 +#define PCI_DEVICE_ID_OCTEONTX2_SDPPF 0xA0F6 +#define PCI_DEVICE_ID_OCTEONTX2_SDPVF 0xA0F7
If I recall correctly, this file is for device IDs that are used in more than one subsystem. It is not supposed to be updated for every octeon device.
Thanks
Quoted 6 lines
include/linux/pci_ids.h +0
-0#define PCI_VENDOR_ID_TECHWELL 0x1797#define PCI_DEVICE_ID_TECHWELL_6800 0x6800Signature · 1 line
2.7.4
Quoted 27 lines · Leon Romanovsky
Quoted 26 lines · Sunil Goutham
Add Marvell (Cavium) OcteonTx2 and CN10K devices
to PCI ID database.Signed-off-by Sunil Goutham <[email protected]>--- include/linux/pci_ids.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)include/linux/pci_ids.h +10
-0@@ -2357,6 +2357,21 @@#define PCI_DEVICE_ID_ALTIMA_AC1003 0x03eb#define PCI_VENDOR_ID_CAVIUM 0x177d +#define PCI_DEVICE_ID_OCTEONTX2_PTP 0xA00C +#define PCI_DEVICE_ID_CN10K_PTP 0xA09E +#define PCI_DEVICE_ID_OCTEONTX2_CGX 0xA059 +#define PCI_DEVICE_ID_CN10K_RPM 0xA060 +#define PCI_DEVICE_ID_OCTEONTX2_CPTPF 0xA0FD +#define PCI_DEVICE_ID_OCTEONTX2_CPTVF 0xA0FE +#define PCI_DEVICE_ID_CN10K_CPTPF 0xA0F2 +#define PCI_DEVICE_ID_CN10K_CPTVF 0xA0F3 +#define PCI_DEVICE_ID_OCTEONTX2_RVUAF 0xA065 +#define PCI_DEVICE_ID_OCTEONTX2_RVUPF 0xA063
Quoted 8 lines
include/linux/pci_ids.h line 2374
Quoted 5 lines
include/linux/pci_ids.h +5
-0+#define PCI_DEVICE_ID_OCTEONTX2_RVUVF 0xA064 +#define PCI_DEVICE_ID_OCTEONTX2_LBK 0xA061 +#define PCI_DEVICE_ID_OCTEONTX2_LBKVF 0xA0F8 +#define PCI_DEVICE_ID_OCTEONTX2_SDPPF 0xA0F6 +#define PCI_DEVICE_ID_OCTEONTX2_SDPVF 0xA0F7If I recall correctly, this file is for device IDs that are used in more than one subsystem. It is not supposed to be updated for every octeon device.
Right; if these are just used in one driver, the #define should go in that driver to help make merges easier. If they're used in several places, they can go here. But please:
- Include patches to the users in the series
- Include the "vendor" tag in the device #defines to avoid conflicts
- Use lower-case hex to match the surrounding context
Also consider adding these to https://pci-ids.ucw.cz/ in any case, which will make "lspci" show useful names.
Bjorn