From: Ben Skeggs Date: Tue, 31 Oct 2017 17:56:19 +0000 (+1000) Subject: drm/nouveau/fb/gm200: enable NV_PFB_MMU_CTRL_USE_FULL_COMP_TAG_LINE where appropriate X-Git-Tag: v4.15-rc1~90^2~14^2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bda9e379f61f937af7ee9b2a32d54bc50a94cd80;p=thirdparty%2Fkernel%2Flinux.git drm/nouveau/fb/gm200: enable NV_PFB_MMU_CTRL_USE_FULL_COMP_TAG_LINE where appropriate To avoid wasting compression tags when using 64KiB pages, we need to enable this so we can select between upper/lower comptagline in PTEs. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c index cc3f90304c1c5..1be0b9e98b840 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c @@ -31,9 +31,9 @@ gm200_fb_init_page(struct nvkm_fb *fb) { struct nvkm_device *device = fb->subdev.device; switch (fb->page) { - case 16: nvkm_mask(device, 0x100c80, 0x00000801, 0x00000001); break; - case 17: nvkm_mask(device, 0x100c80, 0x00000801, 0x00000000); break; - case 0: nvkm_mask(device, 0x100c80, 0x00000800, 0x00000800); break; + case 16: nvkm_mask(device, 0x100c80, 0x00001801, 0x00001001); break; + case 17: nvkm_mask(device, 0x100c80, 0x00001801, 0x00000000); break; + case 0: nvkm_mask(device, 0x100c80, 0x00001800, 0x00001800); break; default: return -EINVAL; }