From 9b81c28dd365778d99fdbd3cbf7ca9b87e8c9001 Mon Sep 17 00:00:00 2001
From: dt
Date: Mon, 11 Jan 2021 08:37:18 +0000
Subject: [PATCH] gpu: nvgpu: Add PG199 support
This is adding the device id in pci id table to support
PG199.
JIRA NVGPU-6375
Change-Id: Ib87bf903a55f6256ffc61582b1b42fbce5ea8033
Signed-off-by: dt
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2468622
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Lakshmanan M
Reviewed-by: Vaibhav Kachore
Reviewed-by: mobile promotions
Tested-by: mobile promotions
GVS: Gerrit_Virtual_Submit
---
drivers/gpu/nvgpu/os/linux/pci.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c
index 4e5a81892..c9f7befdb 100644
--- a/drivers/gpu/nvgpu/os/linux/pci.c
+++ b/drivers/gpu/nvgpu/os/linux/pci.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -310,7 +310,13 @@ static struct pci_device_id nvgpu_pci_table[] = {
.class_mask = 0xff << 16,
.driver_data = 3,
},
-
+ {
+ /* PG199 SKU*/
+ PCI_DEVICE(PCI_VENDOR_ID_NVIDIA, 0x20bb),
+ .class = PCI_BASE_CLASS_DISPLAY << 16,
+ .class_mask = 0xff << 16,
+ .driver_data = 3,
+ },
{}
};