diff options
author | Dave Airlie <airlied@linux.ie> | 2009-07-11 04:44:47 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-15 17:13:19 +1000 |
commit | 2a0f8918fc34713ecaeb900ffb9afa61df4cb08e (patch) | |
tree | 672d6e6788cd0f4100b912aa7029fa38c513a23c /drivers/gpu/drm/radeon/rv515.c | |
parent | ad49f501867cba87e1e45e5ebae0b12435d68bf1 (diff) | |
download | blackbird-op-linux-2a0f8918fc34713ecaeb900ffb9afa61df4cb08e.tar.gz blackbird-op-linux-2a0f8918fc34713ecaeb900ffb9afa61df4cb08e.zip |
drm/radeon/kms: fix VRAM sizing like DDX does it.
Doing this like the DDX seems like the most sure fire way to avoid
having to reinvent it slowly and painfully. At the moment we keep
getting things wrong with aper vs vram, so we know the DDX does it right.
booted on PCI r100, PCIE rv370, IGP rs400.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv515.c')
-rw-r--r-- | drivers/gpu/drm/radeon/rv515.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index d1384d3991ad..677929ed8ed3 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c @@ -395,10 +395,8 @@ static void rv515_vram_get_type(struct radeon_device *rdev) void rv515_vram_info(struct radeon_device *rdev) { rv515_vram_get_type(rdev); - rdev->mc.vram_size = RREG32(RADEON_CONFIG_MEMSIZE); - - rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); - rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); + + r100_vram_init_sizes(rdev); } |