summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-09-12 17:56:26 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-07 04:36:05 -0400
commitd995dbc14c1f8861b7c565d898815e28e499c160 (patch)
treeb654b4cd578d2ae9ad0e6660dc3cf7758547264b /drivers
parent8de7ea2543823b6035e52fe06e7747f49393b01d (diff)
gpu: nvgpu: Detect only known dGPU SKUs
Add the known dGPU SKUs to the PCIe device id table, and remove the wildcard ANY_GPU_ID wildcard. This makes nvgpu to not try to probe on unknown GPUs. JIRA DNVGPU-72 Change-Id: Ie32c3137e9fa89a9e6dcf1e578c0b9d7339d7e75 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1219129 (cherry picked from commit 5c56088fbf8cb815d8be3355ecbb597fb7bfc795) Reviewed-on: http://git-master/r/1231042 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/pci.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index 7641c7be..e06fddd8 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -65,7 +65,12 @@ static struct gk20a_platform nvgpu_pci_device = {
65 65
66static struct pci_device_id nvgpu_pci_table[] = { 66static struct pci_device_id nvgpu_pci_table[] = {
67 { 67 {
68 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID), 68 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1c36),
69 .class = PCI_BASE_CLASS_DISPLAY << 16,
70 .class_mask = 0xff << 16,
71 },
72 {
73 PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x1c37),
69 .class = PCI_BASE_CLASS_DISPLAY << 16, 74 .class = PCI_BASE_CLASS_DISPLAY << 16,
70 .class_mask = 0xff << 16, 75 .class_mask = 0xff << 16,
71 }, 76 },