drm/nouveau/fb/gddr5: modify mr8 with high bits of CL/WR
authorBen Skeggs <bskeggs@redhat.com>
Thu, 28 Nov 2013 02:37:56 +0000 (12:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jan 2014 03:38:52 +0000 (13:38 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/gddr5.c

index 409c74e6ed77f4dcaf035b42c615b714e2ad9467..ee8ac5ba22c8ae1b0b0c9a6585cfcfaa20b4eb8c 100644 (file)
@@ -105,5 +105,9 @@ nouveau_gddr5_calc(struct nouveau_ram *ram, bool nuts)
        ram->mr[7] |= (vr & 0x01) << 8;
        ram->mr[7] |= (vh & 0x01) << 7;
        ram->mr[7] |= (lf & 0x01) << 3;
+
+       ram->mr[8] &= ~0x003;
+       ram->mr[8] |= (WR & 0x10) >> 3;
+       ram->mr[8] |= (CL & 0x10) >> 4;
        return 0;
 }