diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-12-03 16:18:19 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-03 19:32:26 -0500 |
commit | 722f29434e72188b2d20f9b41f4b5952073ed568 (patch) | |
tree | 24802abbe53dc69a5f5b7914c134058a06dd9b2d /drivers/gpu/drm/radeon/rs600.c | |
parent | 8de21525439e6b5bb8d8c81e49094d867bf82f6d (diff) |
drm/radeon/kms: fix vram setup on rs600
also fix up rs690 mem width.
should fix fdo bug 25408
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rs600.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rs600.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index c97eb63a21d2..00bc71fe98d1 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c | |||
@@ -320,6 +320,12 @@ void rs600_vram_info(struct radeon_device *rdev) | |||
320 | /* FIXME: to do or is these values sane ? */ | 320 | /* FIXME: to do or is these values sane ? */ |
321 | rdev->mc.vram_is_ddr = true; | 321 | rdev->mc.vram_is_ddr = true; |
322 | rdev->mc.vram_width = 128; | 322 | rdev->mc.vram_width = 128; |
323 | |||
324 | rdev->mc.real_vram_size = RREG32(RADEON_CONFIG_MEMSIZE); | ||
325 | rdev->mc.mc_vram_size = rdev->mc.real_vram_size; | ||
326 | |||
327 | rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); | ||
328 | rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); | ||
323 | } | 329 | } |
324 | 330 | ||
325 | void rs600_bandwidth_update(struct radeon_device *rdev) | 331 | void rs600_bandwidth_update(struct radeon_device *rdev) |