aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_object.c
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2009-09-11 07:00:43 -0400
committerDave Airlie <airlied@redhat.com>2009-09-14 02:10:00 -0400
commita4d68279b44522a2b2374a6bd4861756bfad40fe (patch)
treea91f21444c7f36f1dad5c2bf81bda15413ff43e1 /drivers/gpu/drm/radeon/radeon_object.c
parent9f022ddfb23793b475ff7e57ac08a766dd5d31bd (diff)
drm/radeon/kms: move mtrr range add and memory information
Move mtrr range and memory information printing to radeon_object_init, this are memory information and initialization common to all GPU and they better fit in this function. Will also prevent code duplication with upcoming init path changes. airlied: fixed warning introduced Signed-off-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_object.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_object.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c
index b85fb83d7ae8..1500d5bc7af5 100644
--- a/drivers/gpu/drm/radeon/radeon_object.c
+++ b/drivers/gpu/drm/radeon/radeon_object.c
@@ -369,6 +369,14 @@ void radeon_object_force_delete(struct radeon_device *rdev)
369 369
370int radeon_object_init(struct radeon_device *rdev) 370int radeon_object_init(struct radeon_device *rdev)
371{ 371{
372 /* Add an MTRR for the VRAM */
373 rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size,
374 MTRR_TYPE_WRCOMB, 1);
375 DRM_INFO("Detected VRAM RAM=%lluM, BAR=%lluM\n",
376 rdev->mc.mc_vram_size >> 20,
377 (unsigned long long)rdev->mc.aper_size >> 20);
378 DRM_INFO("RAM width %dbits %cDR\n",
379 rdev->mc.vram_width, rdev->mc.vram_is_ddr ? 'D' : 'S');
372 return radeon_ttm_init(rdev); 380 return radeon_ttm_init(rdev);
373} 381}
374 382