diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/include/nvkm/core/device.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | 35 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk104.c | 4 |
3 files changed, 5 insertions, 35 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h index 8f760002e401..913192c94876 100644 --- a/drivers/gpu/drm/nouveau/include/nvkm/core/device.h +++ b/drivers/gpu/drm/nouveau/include/nvkm/core/device.h | |||
@@ -159,7 +159,6 @@ struct nvkm_device_func { | |||
159 | struct nvkm_device_quirk { | 159 | struct nvkm_device_quirk { |
160 | u8 tv_pin_mask; | 160 | u8 tv_pin_mask; |
161 | u8 tv_gpio; | 161 | u8 tv_gpio; |
162 | bool War00C800_0; | ||
163 | }; | 162 | }; |
164 | 163 | ||
165 | struct nvkm_device_chip { | 164 | struct nvkm_device_chip { |
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c index caf22b589edc..62ad0300cfa5 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c | |||
@@ -259,12 +259,6 @@ nvkm_device_pci_10de_0df4[] = { | |||
259 | }; | 259 | }; |
260 | 260 | ||
261 | static const struct nvkm_device_pci_vendor | 261 | static const struct nvkm_device_pci_vendor |
262 | nvkm_device_pci_10de_0fcd[] = { | ||
263 | { 0x17aa, 0x3801, NULL, { .War00C800_0 = true } }, /* Lenovo Y510P */ | ||
264 | {} | ||
265 | }; | ||
266 | |||
267 | static const struct nvkm_device_pci_vendor | ||
268 | nvkm_device_pci_10de_0fd2[] = { | 262 | nvkm_device_pci_10de_0fd2[] = { |
269 | { 0x1028, 0x0595, "GeForce GT 640M LE" }, | 263 | { 0x1028, 0x0595, "GeForce GT 640M LE" }, |
270 | { 0x1028, 0x05b2, "GeForce GT 640M LE" }, | 264 | { 0x1028, 0x05b2, "GeForce GT 640M LE" }, |
@@ -279,12 +273,6 @@ nvkm_device_pci_10de_0fe3[] = { | |||
279 | }; | 273 | }; |
280 | 274 | ||
281 | static const struct nvkm_device_pci_vendor | 275 | static const struct nvkm_device_pci_vendor |
282 | nvkm_device_pci_10de_0fe4[] = { | ||
283 | { 0x144d, 0xc740, NULL, { .War00C800_0 = true } }, | ||
284 | {} | ||
285 | }; | ||
286 | |||
287 | static const struct nvkm_device_pci_vendor | ||
288 | nvkm_device_pci_10de_104b[] = { | 276 | nvkm_device_pci_10de_104b[] = { |
289 | { 0x1043, 0x844c, "GeForce GT 625" }, | 277 | { 0x1043, 0x844c, "GeForce GT 625" }, |
290 | { 0x1043, 0x846b, "GeForce GT 625" }, | 278 | { 0x1043, 0x846b, "GeForce GT 625" }, |
@@ -690,13 +678,6 @@ nvkm_device_pci_10de_1189[] = { | |||
690 | static const struct nvkm_device_pci_vendor | 678 | static const struct nvkm_device_pci_vendor |
691 | nvkm_device_pci_10de_1199[] = { | 679 | nvkm_device_pci_10de_1199[] = { |
692 | { 0x1458, 0xd001, "GeForce GTX 760" }, | 680 | { 0x1458, 0xd001, "GeForce GTX 760" }, |
693 | { 0x1462, 0x1106, "GeForce GTX 780M", { .War00C800_0 = true } }, /* Medion Erazer X7827 */ | ||
694 | {} | ||
695 | }; | ||
696 | |||
697 | static const struct nvkm_device_pci_vendor | ||
698 | nvkm_device_pci_10de_11e0[] = { | ||
699 | { 0x1558, 0x5106, NULL, { .War00C800_0 = true } }, | ||
700 | {} | 681 | {} |
701 | }; | 682 | }; |
702 | 683 | ||
@@ -707,14 +688,6 @@ nvkm_device_pci_10de_11e3[] = { | |||
707 | }; | 688 | }; |
708 | 689 | ||
709 | static const struct nvkm_device_pci_vendor | 690 | static const struct nvkm_device_pci_vendor |
710 | nvkm_device_pci_10de_11fc[] = { | ||
711 | { 0x1179, 0x0001, NULL, { .War00C800_0 = true } }, /* Toshiba Tecra W50 */ | ||
712 | { 0x17aa, 0x2211, NULL, { .War00C800_0 = true } }, /* Lenovo W541 */ | ||
713 | { 0x17aa, 0x221e, NULL, { .War00C800_0 = true } }, /* Lenovo W541 */ | ||
714 | {} | ||
715 | }; | ||
716 | |||
717 | static const struct nvkm_device_pci_vendor | ||
718 | nvkm_device_pci_10de_1247[] = { | 691 | nvkm_device_pci_10de_1247[] = { |
719 | { 0x1043, 0x212a, "GeForce GT 635M" }, | 692 | { 0x1043, 0x212a, "GeForce GT 635M" }, |
720 | { 0x1043, 0x212b, "GeForce GT 635M" }, | 693 | { 0x1043, 0x212b, "GeForce GT 635M" }, |
@@ -1368,7 +1341,7 @@ nvkm_device_pci_10de[] = { | |||
1368 | { 0x0fc6, "GeForce GTX 650" }, | 1341 | { 0x0fc6, "GeForce GTX 650" }, |
1369 | { 0x0fc8, "GeForce GT 740" }, | 1342 | { 0x0fc8, "GeForce GT 740" }, |
1370 | { 0x0fc9, "GeForce GT 730" }, | 1343 | { 0x0fc9, "GeForce GT 730" }, |
1371 | { 0x0fcd, "GeForce GT 755M", nvkm_device_pci_10de_0fcd }, | 1344 | { 0x0fcd, "GeForce GT 755M" }, |
1372 | { 0x0fce, "GeForce GT 640M LE" }, | 1345 | { 0x0fce, "GeForce GT 640M LE" }, |
1373 | { 0x0fd1, "GeForce GT 650M" }, | 1346 | { 0x0fd1, "GeForce GT 650M" }, |
1374 | { 0x0fd2, "GeForce GT 640M", nvkm_device_pci_10de_0fd2 }, | 1347 | { 0x0fd2, "GeForce GT 640M", nvkm_device_pci_10de_0fd2 }, |
@@ -1382,7 +1355,7 @@ nvkm_device_pci_10de[] = { | |||
1382 | { 0x0fe1, "GeForce GT 730M" }, | 1355 | { 0x0fe1, "GeForce GT 730M" }, |
1383 | { 0x0fe2, "GeForce GT 745M" }, | 1356 | { 0x0fe2, "GeForce GT 745M" }, |
1384 | { 0x0fe3, "GeForce GT 745M", nvkm_device_pci_10de_0fe3 }, | 1357 | { 0x0fe3, "GeForce GT 745M", nvkm_device_pci_10de_0fe3 }, |
1385 | { 0x0fe4, "GeForce GT 750M", nvkm_device_pci_10de_0fe4 }, | 1358 | { 0x0fe4, "GeForce GT 750M" }, |
1386 | { 0x0fe9, "GeForce GT 750M" }, | 1359 | { 0x0fe9, "GeForce GT 750M" }, |
1387 | { 0x0fea, "GeForce GT 755M" }, | 1360 | { 0x0fea, "GeForce GT 755M" }, |
1388 | { 0x0fec, "GeForce 710A" }, | 1361 | { 0x0fec, "GeForce 710A" }, |
@@ -1497,12 +1470,12 @@ nvkm_device_pci_10de[] = { | |||
1497 | { 0x11c6, "GeForce GTX 650 Ti" }, | 1470 | { 0x11c6, "GeForce GTX 650 Ti" }, |
1498 | { 0x11c8, "GeForce GTX 650" }, | 1471 | { 0x11c8, "GeForce GTX 650" }, |
1499 | { 0x11cb, "GeForce GT 740" }, | 1472 | { 0x11cb, "GeForce GT 740" }, |
1500 | { 0x11e0, "GeForce GTX 770M", nvkm_device_pci_10de_11e0 }, | 1473 | { 0x11e0, "GeForce GTX 770M" }, |
1501 | { 0x11e1, "GeForce GTX 765M" }, | 1474 | { 0x11e1, "GeForce GTX 765M" }, |
1502 | { 0x11e2, "GeForce GTX 765M" }, | 1475 | { 0x11e2, "GeForce GTX 765M" }, |
1503 | { 0x11e3, "GeForce GTX 760M", nvkm_device_pci_10de_11e3 }, | 1476 | { 0x11e3, "GeForce GTX 760M", nvkm_device_pci_10de_11e3 }, |
1504 | { 0x11fa, "Quadro K4000" }, | 1477 | { 0x11fa, "Quadro K4000" }, |
1505 | { 0x11fc, "Quadro K2100M", nvkm_device_pci_10de_11fc }, | 1478 | { 0x11fc, "Quadro K2100M" }, |
1506 | { 0x1200, "GeForce GTX 560 Ti" }, | 1479 | { 0x1200, "GeForce GTX 560 Ti" }, |
1507 | { 0x1201, "GeForce GTX 560" }, | 1480 | { 0x1201, "GeForce GTX 560" }, |
1508 | { 0x1203, "GeForce GTX 460 SE v2" }, | 1481 | { 0x1203, "GeForce GTX 460 SE v2" }, |
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk104.c index d942fa7b9f18..86f9f3b13f71 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk104.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk104.c | |||
@@ -81,9 +81,7 @@ gk104_pmu_pgob(struct nvkm_pmu *pmu, bool enable) | |||
81 | nvkm_mask(device, 0x000200, 0x00001000, 0x00001000); | 81 | nvkm_mask(device, 0x000200, 0x00001000, 0x00001000); |
82 | nvkm_rd32(device, 0x000200); | 82 | nvkm_rd32(device, 0x000200); |
83 | 83 | ||
84 | if ( nvkm_boolopt(device->cfgopt, "War00C800_0", | 84 | if (nvkm_boolopt(device->cfgopt, "War00C800_0", true)) { |
85 | device->quirk ? device->quirk->War00C800_0 : false)) { | ||
86 | nvkm_info(&pmu->subdev, "hw bug workaround enabled\n"); | ||
87 | switch (device->chipset) { | 85 | switch (device->chipset) { |
88 | case 0xe4: | 86 | case 0xe4: |
89 | magic(device, 0x04000000); | 87 | magic(device, 0x04000000); |