]> Pileus Git - ~andy/linux/commitdiff
drm/nvd0/disp: some magic to make evo happeir
authorBen Skeggs <bskeggs@redhat.com>
Wed, 6 Jul 2011 00:29:49 +0000 (10:29 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 20 Sep 2011 06:06:37 +0000 (16:06 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvd0_display.c

index cf294886a696454e746f3f3db8178917456aa6c1..0afc5e1ad8451d720503b8d77d8e0ae610d7d75e 100644 (file)
@@ -850,6 +850,18 @@ nvd0_display_init(struct drm_device *dev)
        u32 *push;
        int i;
 
+       /*XXX: wrong, and wtf is it for? */
+       for (i = 0; i < 3; i++) {
+               u32 dac = nv_rd32(dev, 0x61a000 + (i * 0x800));
+               nv_wr32(dev, 0x6101c0 + (i * 0x800), dac);
+       }
+
+       /*XXX: wrong, and wtf is it for? SOR_MODE_CTRL is an error without..  */
+       for (i = 0; i < 4; i++) {
+               u32 sor = nv_rd32(dev, 0x61c000 + (i * 0x800));
+               nv_wr32(dev, 0x6301c4 + (i * 0x800), sor);
+       }
+
        if (nv_rd32(dev, 0x6100ac) & 0x00000100) {
                nv_wr32(dev, 0x6100ac, 0x00000100);
                nv_mask(dev, 0x6194e8, 0x00000001, 0x00000000);