mirror of
https://github.com/DualCoder/vgpu_unlock.git
synced 2024-06-03 02:44:51 +12:00
Many new PCI IDs with Maxwell and Volta support
This commit is contained in:
parent
cce7b5d824
commit
2fe296a81e
47
vgpu_unlock
47
vgpu_unlock
|
@ -6,7 +6,8 @@
|
|||
# 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 the vGPU Unlocking community included :)
|
||||
#
|
||||
|
||||
import errno
|
||||
import frida
|
||||
|
@ -94,6 +95,28 @@ script_source = r"""
|
|||
var actual_subsysid = subsysid_ptr.readU16();
|
||||
var spoofed_subsysid = actual_subsysid;
|
||||
|
||||
// GK104 (For experimental testing)
|
||||
if(actual_devid == 0x1183 || // GTX 660 Ti
|
||||
actual_devid == 0x1189 || // GTX 670
|
||||
actual_devid == 0x1180 || // GTX 680
|
||||
actual_devid == 0x1188 || // GTX 690
|
||||
actual_devid == 0x1187 || // GTX 760
|
||||
actual_devid == 0x11ba) { // Quadro K5000
|
||||
spoofed_devid = 0x13f2; // Tesla M60 for testing purposes
|
||||
}
|
||||
|
||||
// GM204
|
||||
if(actual_devid == 0x13c3 || // GTX 960 OEM
|
||||
actual_devid == 0x13d9 || // GTX 965M
|
||||
actual_devid == 0x13d8 || // GTX 970M
|
||||
actual_devid == 0x13c2 || // GTX 970
|
||||
actual_devid == 0x13d7 || // GTX 980M
|
||||
actual_devid == 0x13c0 || // GTX 980
|
||||
actual_devid == 0x13f1 || // Quadro M4000
|
||||
actual_devid == 0x13f0) { // Quadro M5000
|
||||
spoofed_devid = 0x13f2; // Tesla M60
|
||||
}
|
||||
|
||||
// GP102
|
||||
if(actual_devid == 0x1b00 || // TITAN X (Pascal)
|
||||
actual_devid == 0x1b02 || // TITAN Xp
|
||||
|
@ -106,12 +129,30 @@ script_source = r"""
|
|||
if(actual_devid == 0x1b80 || // GTX 1080
|
||||
actual_devid == 0x1b81 || // GTX 1070
|
||||
actual_devid == 0x1b82 || // GTX 1070 Ti
|
||||
actual_devid == 0x1b83 || // GTX 1060 6GB
|
||||
actual_devid == 0x1b84 || // GTX 1060 3GB
|
||||
actual_devid == 0x1b83 || // GTX 1060 6GB GP104 Refresh
|
||||
actual_devid == 0x1b84 || // GTX 1060 3GB GP104 Refresh
|
||||
actual_devid == 0x1bb0) { // Quadro P5000
|
||||
spoofed_devid = 0x1bb3; // Tesla P4
|
||||
}
|
||||
|
||||
// GP106 (Somehow works with Tesla P4 ID)
|
||||
if(actual_devid == 0x1c03 || // GTX 1060 6GB
|
||||
actual_devid == 0x1c04 || // GTX 1060 5GB
|
||||
actual_devid == 0x1c02 || // GTX 1060 3GB
|
||||
actual_devid == 0x1c07 || // P106-100 6GB
|
||||
actual_devid == 0x1c09 || // P106-90 3GB
|
||||
actual_devid == 0x1c30 || // Quadro P2000
|
||||
actual_devid == 0x1c31) { // Quadro P2200
|
||||
spoofed_devid = 0x1bb3; // Tesla P4
|
||||
}
|
||||
|
||||
// GV100 (For the one person who owns a Titan Volta)
|
||||
if(actual_devid == 0x1d81 || // TITAN V
|
||||
actual_devid == 0x1db6) { // TITAN V CEO Edition 32GB
|
||||
actual_devid == 0x1dbA) { // Quadro GV100
|
||||
spoofed_devid = 0x1db4; // Tesla V100
|
||||
}
|
||||
|
||||
// TU102
|
||||
if(actual_devid == 0x1e02 || // TITAN RTX
|
||||
actual_devid == 0x1e04 || // RTX 2080 Ti
|
||||
|
|
|
@ -560,7 +560,7 @@ static void vgpu_unlock_hmac_sha256(void* dst,
|
|||
*------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/* Debug logs can be enabled here. */
|
||||
/* Debug logs can be enabled here by changing 0 to 1. */
|
||||
#if 0
|
||||
#define LOG(...) printk(__VA_ARGS__)
|
||||
#else
|
||||
|
@ -583,6 +583,22 @@ vgpu_unlock_vgpu_t;
|
|||
|
||||
static vgpu_unlock_vgpu_t vgpu_unlock_vgpu[] =
|
||||
{
|
||||
/* Tesla M60 */
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x114c, 0, { 0 }, { "GRID M60-0Q" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x114d, 0, { 0 }, { "GRID M60-1Q" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x114e, 0, { 0 }, { "GRID M60-2Q" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x114f, 0, { 0 }, { "GRID M60-4Q" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x1150, 0, { 0 }, { "GRID M60-8Q" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x1176, 0, { 0 }, { "GRID M60-0B" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x1177, 0, { 0 }, { "GRID M60-1B" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x117D, 0, { 0 }, { "GRID M60-2B" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x1337, 0, { 0 }, { "GRID M60-1B4" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x12ec, 0, { 0 }, { "GRID M60-2B4" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x11AE, 0, { 0 }, { "GRID M60-1A" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x11AF, 0, { 0 }, { "GRID M60-2A" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x11B0, 0, { 0 }, { "GRID M60-4A" } },
|
||||
{ 2, 0x1007, 0x13f2, 0, 0x11B1, 0, { 0 }, { "GRID M60-8A" } },
|
||||
|
||||
/* Tesla P40 */
|
||||
{ 2, 0x1007, 0x1b38, 0, 0x11e7, 0, { 0 }, { "GRID P40-1B" } },
|
||||
{ 2, 0x1007, 0x1b38, 0, 0x11e8, 0, { 0 }, { "GRID P40-1Q" } },
|
||||
|
@ -626,6 +642,22 @@ static vgpu_unlock_vgpu_t vgpu_unlock_vgpu[] =
|
|||
{ 2, 0x1007, 0x1bb3, 0, 0x1380, 0, { 0 }, { "GRID P4-8C" } },
|
||||
{ 2, 0x1007, 0x1bb3, 0, 0x1385, 0, { 0 }, { "GRID P4-4C" } },
|
||||
|
||||
/* Tesla V100 16GB PCIE */
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1254, 0, { 0 }, { "GRID V100-1A "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1255, 0, { 0 }, { "GRID V100-2A "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1256, 0, { 0 }, { "GRID V100-4A "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1257, 0, { 0 }, { "GRID V100-8A "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1258, 0, { 0 }, { "GRID V100-16A "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x124e, 0, { 0 }, { "GRID V100-1B "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x128f, 0, { 0 }, { "GRID V100-2B "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1340, 0, { 0 }, { "GRID V100-1B4 "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x12f5, 0, { 0 }, { "GRID V100-2B4 "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x124f, 0, { 0 }, { "GRID V100-1Q "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1250, 0, { 0 }, { "GRID V100-2Q "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1251, 0, { 0 }, { "GRID V100-4Q "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1252, 0, { 0 }, { "GRID V100-8Q "} },
|
||||
{ 2, 0x1007, 0x1db4, 0, 0x1253, 0, { 0 }, { "GRID V100-16Q "} },
|
||||
|
||||
/* Quadro RTX 6000 */
|
||||
{ 3, 0x1007, 0x1e30, 0, 0x1325, 0, { 0 }, { "GRID RTX6000-1Q" } },
|
||||
{ 3, 0x1007, 0x1e30, 0, 0x1326, 0, { 0 }, { "GRID RTX6000-2Q" } },
|
||||
|
|
Loading…
Reference in a new issue