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 <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2017-11-01 03:56:19 +10:00
parent f8a1203920
commit bda9e379f6
1 changed files with 3 additions and 3 deletions

View 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;
}