]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/nouveau/gr/gf100-: remove some unnecessary reg writes
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Feb 2019 12:28:13 +0000 (22:28 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 23:00:00 +0000 (09:00 +1000)
This is already done during golden context creation.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

index 47469f4591d55f03a8eb9a1af9f304b91d521260..5ab6468b25f46028cd9f5eda394034445b722d8a 100644 (file)
@@ -1684,12 +1684,7 @@ gf100_gr_init_ctxctl_ext(struct gf100_gr *gr)
                        return ret;
        }
 
-       if (device->chipset >= 0xe0) {
-               nvkm_wr32(device, 0x409614, 0x00000070);
-               nvkm_wr32(device, 0x409614, 0x00000770);
-               nvkm_wr32(device, 0x40802c, 0x00000001);
-       }
-
+       /* Generate golden context image. */
        if (gr->data == NULL) {
                int ret = gf100_grctx_generate(gr);
                if (ret) {