Skip to content

Commit

Permalink
drm/via: Disable AGP DMA for chips with the new 3D engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hellstrom authored and Dave Airlie committed Feb 8, 2007
1 parent 1d58420 commit 756db73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/char/drm/via_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 756db73

Please sign in to comment.