diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-17 01:24:24 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-17 01:24:24 +0100 |
commit | b05c23851ab820b1957cd2f322eaa1ac44c196bd (patch) | |
tree | 59e1a38a36cadf683559dae629fc6583d1ca5141 /drivers/char/drm/r128_cce.c | |
parent | drm/radeon: fixup RV550 chip family (diff) | |
download | linux-b05c23851ab820b1957cd2f322eaa1ac44c196bd.tar.xz linux-b05c23851ab820b1957cd2f322eaa1ac44c196bd.zip |
drm/ati_pcigart: fix the PCIGART to use drm_pci to allocate GART table.
This fixes a problem on 64-bit with 4GB with ATI RS690 chipsets. It
makes sure the pcigart table is allocated in coherent memory for DMA operations.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/drm/r128_cce.c')
-rw-r--r-- | drivers/char/drm/r128_cce.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/r128_cce.c b/drivers/char/drm/r128_cce.c index 892e0a589846..f36adbd3aaf5 100644 --- a/drivers/char/drm/r128_cce.c +++ b/drivers/char/drm/r128_cce.c @@ -558,6 +558,7 @@ static int r128_do_init_cce(struct drm_device * dev, drm_r128_init_t * init) #if __OS_HAS_AGP if (dev_priv->is_pci) { #endif + dev_priv->gart_info.table_mask = DMA_BIT_MASK(32); dev_priv->gart_info.gart_table_location = DRM_ATI_GART_MAIN; dev_priv->gart_info.table_size = R128_PCIGART_TABLE_SIZE; dev_priv->gart_info.addr = NULL; |