drm/nouveau/fb/gm200: enable NV_PFB_MMU_CTRL_USE_FULL_COMP_TAG_LINE where appropriate
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:27 +0000 (13:32 +1000)
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 <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c

index cc3f903..1be0b9e 100644 (file)
@@ -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;
        }