Skip to content
Permalink
Browse files

fb/gf100-: zero mmu debug buffers

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>
  • Loading branch information
skeggsb committed Aug 7, 2017
1 parent 6263281 commit 3fc0de59da35ebe702792e27e50d3676cc0908fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 drm/nouveau/nvkm/subdev/fb/gf100.c
@@ -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;

0 comments on commit 3fc0de5

Please sign in to comment.
You can’t perform that action at this time.