drm/radeon/kms: vram sizing on certain r100 chips needs workaround.
commit7a50f01a4ab89d5c05eb2cf62e206ac0bfc61d2c
authorDave Airlie <airlied@redhat.com>
Tue, 21 Jul 2009 10:39:30 +0000 (21 20:39 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 29 Jul 2009 05:53:25 +0000 (29 15:53 +1000)
treea73ed14d4f0bc51e52fa68563f9a26117ea6fed6
parent664f86590295217b2319edf88830e87b800f6c4a
drm/radeon/kms: vram sizing on certain r100 chips needs workaround.

If an rn50/r100/m6/m7 GPU has < 64MB RAM, i.e. 8/16/32, the
aperture used to calculate the MC_FB_LOCATION needs to be worked
out from the CONFIG_APER_SIZE register, and not the actual vram size.

TTM VRAM size was also being initialised wrong, use actual vram size
to initialise it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
12 files changed:
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r520.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/radeon/rs400.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rv515.c
drivers/gpu/drm/radeon/rv770.c