OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d58420
)
drm/via: Disable AGP DMA for chips with the new 3D engine.
author
Thomas Hellstrom
<thomas-at-tungstengraphics-dot-com>
Thu, 8 Feb 2007 01:57:40 +0000
(12:57 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 8 Feb 2007 02:24:26 +0000
(13:24 +1100)
drivers/char/drm/via_dma.c
patch
|
blob
|
history
diff --git
a/drivers/char/drm/via_dma.c
b/drivers/char/drm/via_dma.c
index
2f72cbe
..
c0539c6
100644
(file)
--- a/
drivers/char/drm/via_dma.c
+++ b/
drivers/char/drm/via_dma.c
@@
-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;