drm/via: Disable AGP DMA for chips with the new 3D engine.
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Thu, 8 Feb 2007 01:57:40 +0000 (12:57 +1100)
committerDave Airlie <airlied@linux.ie>
Thu, 8 Feb 2007 02:24:26 +0000 (13:24 +1100)
drivers/char/drm/via_dma.c

index 2f72cbefc2ff6f107e41c8ba0a4ef6cd7e80ed39..c0539c6299cf422aea627e0b170fe7b007b4beac 100644 (file)
@@ -190,6 +190,11 @@ static int via_initialize(drm_device_t * dev,
                return DRM_ERR(EFAULT);
        }
 
+       if (dev_priv->chipset == VIA_DX9_0) {
+               DRM_ERROR("AGP DMA is not supported on this chip\n");
+               return DRM_ERR(EINVAL);
+       }
+
        dev_priv->ring.map.offset = dev->agp->base + init->offset;
        dev_priv->ring.map.size = init->size;
        dev_priv->ring.map.type = 0;