drm/nve0/fb: it's now safe to obey the memory voltage setting properly
authorBen Skeggs <bskeggs@redhat.com>
Mon, 2 Dec 2013 23:00:47 +0000 (09:00 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jan 2014 03:39:00 +0000 (13:39 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c

index 8b3e528e4ca1a287300b3b88a85cbe6a25fe1932..91c1a8f6408ae64136b7b21eb54dfbd8fc219dbb 100644 (file)
@@ -263,7 +263,7 @@ nve0_ram_calc_gddr5(struct nouveau_fb *pfb, u32 freq)
        struct nve0_ramfuc *fuc = &ram->fuc;
        struct nouveau_ram_data *next = ram->base.next;
        int vc = !(next->bios.ramcfg_11_02_08);
-       int mv = 1; /*XXX: !(next->bios.ramcfg_11_02_04); */
+       int mv = !(next->bios.ramcfg_11_02_04);
        u32 mask, data;
 
        ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000);
@@ -673,7 +673,7 @@ nve0_ram_calc_sddr3(struct nouveau_fb *pfb, u32 freq)
        const u32 runk1 = ram->fN1;
        struct nouveau_ram_data *next = ram->base.next;
        int vc = !(next->bios.ramcfg_11_02_08);
-       int mv = 1; /*XXX: !(next->bios.ramcfg_11_02_04); */
+       int mv = !(next->bios.ramcfg_11_02_04);
        u32 mask, data;
 
        ram_mask(fuc, 0x10f808, 0x40000000, 0x40000000);