diff mbox series

gpu: add support for rtx 6000 variant

Message ID BYAPR12MB359134D71AB0F853DCB1E9F8ABFC9@BYAPR12MB3591.namprd12.prod.outlook.com (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers show
Series gpu: add support for rtx 6000 variant | expand

Checks

Context Check Description
ci/Intel-compilation warning apply issues
ci/iol-testing warning apply patch failure
ci/checkpatch warning coding style issues

Commit Message

Cliff Burdick April 29, 2022, 4:52 p.m. UTC
gpu: added second RTX 6000 device ID variant

Added second GPU PCI device ID for RTX 6000


Signed-off-by: Cliff Burdick <cburdick@nvidia.com<mailto:cburdick@nvidia.com>>
---
drivers/gpu/cuda/cuda.c    | 6 +++++-
drivers/gpu/cuda/devices.h | 3 ++-
2 files changed, 7 insertions(+), 2 deletions(-)

--
2.17.1
diff mbox series

Patch

diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c
index 5b8476ac20..d33e8e5116 100644
--- a/drivers/gpu/cuda/cuda.c
+++ b/drivers/gpu/cuda/cuda.c
@@ -197,8 +197,12 @@  static const struct rte_pci_id pci_id_cuda_map[] = {
        },
        {
                RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
-                               NVIDIA_GPU_QUADRO_RTX_6000)
+                               NVIDIA_GPU_QUADRO_RTX_6000_1)
        },
+       {
+               RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
+                               NVIDIA_GPU_QUADRO_RTX_6000_2)
+       },
        {
                RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
                                NVIDIA_GPU_QUADRO_RTX_8000)
diff --git a/drivers/gpu/cuda/devices.h b/drivers/gpu/cuda/devices.h
index e6502910f3..59933f0e49 100644
--- a/drivers/gpu/cuda/devices.h
+++ b/drivers/gpu/cuda/devices.h
@@ -52,7 +52,8 @@ 
#define NVIDIA_GPU_GV100_QUADRO_DEVICE_ID (0x1dba)
#define NVIDIA_GPU_QUADRO_RTX_4000 (0x1eb1)
#define NVIDIA_GPU_QUADRO_RTX_5000 (0x1eb0)
-#define NVIDIA_GPU_QUADRO_RTX_6000 (0x13d9)
+#define NVIDIA_GPU_QUADRO_RTX_6000_1 (0x13d9)
+#define NVIDIA_GPU_QUADRO_RTX_6000_2 (0x1e30)
#define NVIDIA_GPU_QUADRO_RTX_8000 (0x13d8)
#define NVIDIA_GPU_QUADRO_RTX_A4000 (0x24b0)
#define NVIDIA_GPU_QUADRO_RTX_A6000 (0x2230)