Added support for many new cards

This commit is contained in:
KrutavShah 2021-04-11 12:01:57 -07:00
parent 2fe296a81e
commit b39761de39
2 changed files with 44 additions and 4 deletions

View file

@ -9,6 +9,9 @@
* Copyright 2021 Jonathan Johansson
* This file is part of the "vgpu_unlock" project, and is distributed under the
* MIT License. See the LICENSE file for more details.
*
* Contributions from Krutav Shah and the vGPU Unlocking community included :)
*
*/
/*------------------------------------------------------------------------------
@ -561,7 +564,7 @@ static void vgpu_unlock_hmac_sha256(void* dst,
*/
/* Debug logs can be enabled here by changing 0 to 1. */
#if 0
#if 1
#define LOG(...) printk(__VA_ARGS__)
#else
#define LOG(...)
@ -766,6 +769,22 @@ static uint16_t vgpu_unlock_pci_devid_to_vgpu_capable(uint16_t pci_devid)
{
switch (pci_devid)
{
/* GK104 Uses M60 profiles */
case 0x1183: /* GTX 660 Ti */
/* GM107 Uses M60 profiles */
case 0x139a: /* GTX 950M */
case 0x13b6: /* Quadro M1200, GM107 */
/* GM204 */
case 0x13c3: /* GTX 960 GM204 OEM Edition */
case 0x13c2: /* GTX 970 */
case 0x13c1: /* GM204 Unknown */
case 0x13c0: /* GTX 980 */
case 0x13f1: /* Quadro M4000 */
case 0x13f0: /* Quadro M5000 */
return 0x13f2; /* Tesla M60 */
/* GP102 */
case 0x1b00: /* TITAN X (Pascal) */
case 0x1b02: /* TITAN Xp */
@ -773,6 +792,16 @@ static uint16_t vgpu_unlock_pci_devid_to_vgpu_capable(uint16_t pci_devid)
case 0x1b30: /* Quadro P6000 */
return 0x1b38; /* Tesla P40 */
/* GP106 Uses P4 profiles*/
case 0x1c09: /* P106-90 3GB */
case 0x1c07: /* P106-100 6GB */
case 0x1c04: /* GTX 1060 5GB */
case 0x1c03: /* GTX 1060 6GB */
case 0x1c02: /* GTX 1060 3GB */
case 0x1c30: /* Quadro P2000 */
case 0x1c31: /* Quadro P2200 */
case 0x1C20: /* NVIDIA GeForce GTX 1060 with Max-Q Design (6GB variant) */
/* GP104 */
case 0x1b80: /* GTX 1080 */
case 0x1b81: /* GTX 1070 */
@ -782,6 +811,10 @@ static uint16_t vgpu_unlock_pci_devid_to_vgpu_capable(uint16_t pci_devid)
case 0x1bb0: /* Quadro P5000 */
return 0x1bb3; /* Tesla P4 */
/* GV100 */
case 0x1d81: /* Titan V 16GB */
return 0x1db4; /* Tesla V100 16GB PCIE */
/* TU102 */
case 0x1e02: /* TITAN RTX */
case 0x1e04: /* RTX 2080 Ti */