diff options
Diffstat (limited to 'drivers/char/drm/radeon_cp.c')
-rw-r--r-- | drivers/char/drm/radeon_cp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/drm/radeon_cp.c b/drivers/char/drm/radeon_cp.c index 501e557cbc86..b517ae515801 100644 --- a/drivers/char/drm/radeon_cp.c +++ b/drivers/char/drm/radeon_cp.c | |||
@@ -1312,7 +1312,7 @@ static void radeon_set_pcigart(drm_radeon_private_t * dev_priv, int on) | |||
1312 | static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init) | 1312 | static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init) |
1313 | { | 1313 | { |
1314 | drm_radeon_private_t *dev_priv = dev->dev_private; | 1314 | drm_radeon_private_t *dev_priv = dev->dev_private; |
1315 | unsigned int mem_size; | 1315 | unsigned int mem_size, aper_size; |
1316 | 1316 | ||
1317 | DRM_DEBUG("\n"); | 1317 | DRM_DEBUG("\n"); |
1318 | 1318 | ||
@@ -1527,7 +1527,9 @@ static int radeon_do_init_cp(drm_device_t * dev, drm_radeon_init_t * init) | |||
1527 | mem_size = RADEON_READ(RADEON_CONFIG_MEMSIZE); | 1527 | mem_size = RADEON_READ(RADEON_CONFIG_MEMSIZE); |
1528 | if (mem_size == 0) | 1528 | if (mem_size == 0) |
1529 | mem_size = 0x800000; | 1529 | mem_size = 0x800000; |
1530 | dev_priv->gart_vm_start = dev_priv->fb_location + mem_size; | 1530 | aper_size = max(RADEON_READ(RADEON_CONFIG_APER_SIZE), mem_size); |
1531 | |||
1532 | dev_priv->gart_vm_start = dev_priv->fb_location + aper_size; | ||
1531 | 1533 | ||
1532 | #if __OS_HAS_AGP | 1534 | #if __OS_HAS_AGP |
1533 | if (!dev_priv->is_pci) | 1535 | if (!dev_priv->is_pci) |