drm/nouveau/gr/gf100-gk208: copy big page size setting from fb
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:20 +0000 (13:32 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c

index 48556bfdbd4af365f557d732367349f36f8d3f17..49c7d08b0ceb4631f65ecdd036bf2e4d95ca8ed0 100644 (file)
@@ -1909,7 +1909,7 @@ gf100_gr_init_gpc_mmu(struct gf100_gr *gr)
        struct nvkm_device *device = gr->base.engine.subdev.device;
        struct nvkm_fb *fb = device->fb;
 
-       nvkm_wr32(device, 0x418880, 0x00000000);
+       nvkm_wr32(device, 0x418880, nvkm_rd32(device, 0x100c80) & 0x00000001);
        nvkm_wr32(device, 0x4188a4, 0x00000000);
        nvkm_wr32(device, 0x418888, 0x00000000);
        nvkm_wr32(device, 0x41888c, 0x00000000);