It's not found on Fermi.

Signed-off-by: Roy Spliet <nouv...@spliet.org>
---
 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c 
b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
index 38a7e2b..eef09bf 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c
@@ -556,7 +556,7 @@ gf100_ram_train_init_0(struct nvkm_ram *ram, struct 
gt215_ram_train *train)
        struct nvkm_device *device = subdev->device;
        int i, j;
 
-       if ((train->mask & 0x03d3) != 0x03d3) {
+       if ((train->mask & 0x03c3) != 0x03c3) {
                nvkm_warn(subdev, "missing link training data\n");
                return -EINVAL;
        }
@@ -575,10 +575,13 @@ gf100_ram_train_init_0(struct nvkm_ram *ram, struct 
gt215_ram_train *train)
                }
        }
 
-       for (j = 0; j < 8; j += 4) {
-               for (i = 0; i < 0x100; i++) {
-                       nvkm_wr32(device, 0x10f968 + j, i);
-                       nvkm_wr32(device, 0x10f900 + j, train->type04.data[i]);
+       if (train->mask & 0x10) {
+               for (j = 0; j < 8; j += 4) {
+                       for (i = 0; i < 0x100; i++) {
+                               nvkm_wr32(device, 0x10f968 + j, i);
+                               nvkm_wr32(device, 0x10f900 + j,
+                                               train->type04.data[i]);
+                       }
                }
        }
 
-- 
2.9.3

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to