Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 3fc0de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drm/nouveau/nvkm/subdev/fb/gf100.c
Expand Up @@ -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;

Expand Down

0 comments on commit 3fc0de5

Please sign in to comment.