mirror of https://gitee.com/openkylin/linux.git
drm/nouveau/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>
This commit is contained in:
parent
485c2c91d4
commit
7a1af0f8bb
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue