[drm] fix radeon aperture issue
authorDave Airlie <airlied@linux.ie>
Tue, 13 Dec 2005 04:18:41 +0000 (04:18 +0000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 13 Dec 2005 05:02:22 +0000 (21:02 -0800)
Ben noticed that on certain cards we've landed the AGP space on top of
the second aperture instead of after it..  Which messes things up a lot
on those machines.

This just moves the gart further out, a more correct fix is in the works
from Ben for after 2.6.15.

Signed-off-by: Dave Airlie <airlied@linux.ie>
CC: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/drm/radeon_cp.c

index 03839ea31092d2f407e5d70e869392b2cc767472..9f2b4efd0c7aaccbaa7673d8a95e4f01c8a5ae0a 100644 (file)
@@ -1522,7 +1522,7 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init)
 
        dev_priv->gart_size = init->gart_size;
        dev_priv->gart_vm_start = dev_priv->fb_location
-           + RADEON_READ(RADEON_CONFIG_APER_SIZE);
+           + RADEON_READ(RADEON_CONFIG_APER_SIZE) * 2;
 
 #if __OS_HAS_AGP
        if (!dev_priv->is_pci)