drm/gk104/fb/ram: more random magic in fb init
authorBen Skeggs <bskeggs@redhat.com>
Mon, 1 Sep 2014 00:48:39 +0000 (10:48 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:25:06 +0000 (22:25 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/fb/ramnve0.c

index caae9ef..e4fd0ba 100644 (file)
@@ -1187,6 +1187,8 @@ nve0_ram_init(struct nouveau_object *object)
        }
        nv_mask(pfb, 0x10f65c, 0x000000f0, save);
        nv_mask(pfb, 0x10f584, 0x11000000, 0x00000000);
+       nv_wr32(pfb, 0x10ecc0, 0xffffffff);
+       nv_mask(pfb, 0x10f160, 0x00000010, 0x00000010);
 
        switch (ram->base.type) {
        case NV_MEM_TYPE_GDDR5: