Skip to contentSkip to conversation

gpu/cuda: add new A30X GPU type code for DPU

PATCH Applied [email protected] 2 participants 2 messages Apr 4, 2022 DRM drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu/cuda: add new A30X GPU type code for DPU

From: Elena Agostini <[email protected]>

A30X GPU code for DPU.

---
 drivers/gpu/cuda/cuda.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/gpu/cuda/cuda.c +5 -0
index 8505d39d64..92097e067e 100644
@@ -62,6 +62,7 @@ static gdr_t gdrc_h;
 #define NVIDIA_GPU_A100_80GB_DPU_DEVICE_ID (0x20b8)
 
 #define NVIDIA_GPU_A30_24GB_DEVICE_ID (0x20b7)
+#define NVIDIA_GPU_A30_24GB_DPU_DEVICE_ID (0x20b9)
 #define NVIDIA_GPU_A10_24GB_DEVICE_ID (0x2236)
 
 #define NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID (0x1db5)
@@ -95,6 +96,10 @@ static const struct rte_pci_id pci_id_cuda_map[] = {
 		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
 				NVIDIA_GPU_A30_24GB_DEVICE_ID)
 	},
+	{
+		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
+		NVIDIA_GPU_A30_24GB_DPU_DEVICE_ID)
+	},
 	{
 		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
 				NVIDIA_GPU_A10_24GB_DEVICE_ID)
Signature · 1 line
2.25.1