drm/nouveau/gr/gf100-: support firmware-provided sw_nonctx everywhere
authorBen Skeggs <bskeggs@redhat.com>
Tue, 8 May 2018 10:39:46 +0000 (20:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 18 May 2018 05:01:22 +0000 (15:01 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

index 5be4111b06686c6a5019c42220b81424f53e0144..eb50cfc1b53fcf2174552f8a693a7480071e2676 100644 (file)
@@ -1941,7 +1941,10 @@ gf100_gr_init(struct gf100_gr *gr)
 
        gr->func->init_gpc_mmu(gr);
 
-       gf100_gr_mmio(gr, gr->func->mmio);
+       if (gr->fuc_sw_nonctx)
+               gf100_gr_mmio(gr, gr->fuc_sw_nonctx);
+       else
+               gf100_gr_mmio(gr, gr->func->mmio);
 
        nvkm_mask(device, TPC_UNIT(0, 0, 0x05c), 0x00000001, 0x00000001);