drm/nouveau/fb/gf100-: zero mmu debug buffers
authorBen Skeggs <bskeggs@redhat.com>
Mon, 7 Aug 2017 03:27:31 +0000 (13:27 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Aug 2017 08:04:33 +0000 (18:04 +1000)
These are used for accesses to sparse mappings, and we want reads of
such mappings to return 0.

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

index 3841ad6be99e28568f3bf23912ed88309d7e7171..a239e73562c8123dae0d432e5ed006bb396a13ce 100644 (file)
@@ -60,12 +60,12 @@ gf100_fb_oneinit(struct nvkm_fb *base)
        size = min(size, 0x1000);
 
        ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, size, 0x1000,
-                             false, &fb->base.mmu_rd);
+                             true, &fb->base.mmu_rd);
        if (ret)
                return ret;
 
        ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, size, 0x1000,
-                             false, &fb->base.mmu_wr);
+                             true, &fb->base.mmu_wr);
        if (ret)
                return ret;