drm/nvc0: fix evo dma object so we display something
authorBen Skeggs <bskeggs@redhat.com>
Wed, 4 Aug 2010 07:24:57 +0000 (17:24 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 5 Aug 2010 22:35:35 +0000 (08:35 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c

index f13ad0de9c8ff8a4b1d55e0d4329c7e6b1c9e997..612fa6d6a0cba9d415b9277308969043fe65a2d8 100644 (file)
@@ -76,7 +76,10 @@ nv50_evo_dmaobj_new(struct nouveau_channel *evo, uint32_t class, uint32_t name,
        nv_wo32(dev, obj, 2, offset);
        nv_wo32(dev, obj, 3, 0x00000000);
        nv_wo32(dev, obj, 4, 0x00000000);
-       nv_wo32(dev, obj, 5, 0x00010000);
+       if (dev_priv->card_type < NV_C0)
+               nv_wo32(dev, obj, 5, 0x00010000);
+       else
+               nv_wo32(dev, obj, 5, 0x00020000);
        dev_priv->engine.instmem.flush(dev);
 
        return 0;