diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-10-25 19:44:00 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-25 20:26:41 -0400 |
commit | b7d8cce5b558e0c0aa6898c9865356481598b46d (patch) | |
tree | 07f0f80e625e4a60d3f8c3fba89f97ac01c75923 | |
parent | f9d9c36204243d81e9d4dd28e58ee335257847d2 (diff) |
drm/radeon/kms: MC vram map needs to be >= pci aperture size
The vram map in the radeon memory controller needs to be
>= the pci aperture size. Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28402
The problematic cards in the above bug have 64 MB of vram,
but the pci aperture is 128 MB and the MC vram map was only
64 MB. This can lead to hangs.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 6112ac99ccd7..6d1540c0bfed 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -2270,6 +2270,9 @@ void r100_vram_init_sizes(struct radeon_device *rdev) | |||
2270 | /* Fix for RN50, M6, M7 with 8/16/32(??) MBs of VRAM - | 2270 | /* Fix for RN50, M6, M7 with 8/16/32(??) MBs of VRAM - |
2271 | * Novell bug 204882 + along with lots of ubuntu ones | 2271 | * Novell bug 204882 + along with lots of ubuntu ones |
2272 | */ | 2272 | */ |
2273 | if (rdev->mc.aper_size > config_aper_size) | ||
2274 | config_aper_size = rdev->mc.aper_size; | ||
2275 | |||
2273 | if (config_aper_size > rdev->mc.real_vram_size) | 2276 | if (config_aper_size > rdev->mc.real_vram_size) |
2274 | rdev->mc.mc_vram_size = config_aper_size; | 2277 | rdev->mc.mc_vram_size = config_aper_size; |
2275 | else | 2278 | else |