drm/nve0/fb/gddr5: 10f698/69c
authorBen Skeggs <bskeggs@redhat.com>
Tue, 3 Dec 2013 00:44:43 +0000 (10:44 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jan 2014 03:39:01 +0000 (13:39 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c

index 91c1a8f6408ae64136b7b21eb54dfbd8fc219dbb..c0bc7a9162494bf15fd312189570a337813026f5 100644 (file)
@@ -400,9 +400,13 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
        ram_wr32(fuc, 0x10f6b8, 0x01010101 * next->bios.ramcfg_11_09);
        ram_wr32(fuc, 0x10f6bc, 0x01010101 * next->bios.ramcfg_11_09);
 
-       if (!next->bios.ramcfg_11_07_08) {
+       if (!next->bios.ramcfg_11_07_08 && !next->bios.ramcfg_11_07_04) {
                ram_wr32(fuc, 0x10f698, 0x01010101 * next->bios.ramcfg_11_04);
                ram_wr32(fuc, 0x10f69c, 0x01010101 * next->bios.ramcfg_11_04);
+       } else
+       if (!next->bios.ramcfg_11_07_08) {
+               ram_wr32(fuc, 0x10f698, 0x00000000);
+               ram_wr32(fuc, 0x10f69c, 0x00000000);
        }
 
        if (ram->mode != 2) {