diff options
author | Jerome Glisse <jglisse@redhat.com> | 2009-09-11 07:00:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-14 02:10:00 -0400 |
commit | a4d68279b44522a2b2374a6bd4861756bfad40fe (patch) | |
tree | a91f21444c7f36f1dad5c2bf81bda15413ff43e1 /drivers/gpu/drm/radeon/radeon_device.c | |
parent | 9f022ddfb23793b475ff7e57ac08a766dd5d31bd (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_device.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_device.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 633acf71400b..ece097c3e079 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c | |||
@@ -604,14 +604,6 @@ int radeon_device_init(struct radeon_device *rdev, | |||
604 | /* Get vram informations */ | 604 | /* Get vram informations */ |
605 | radeon_vram_info(rdev); | 605 | radeon_vram_info(rdev); |
606 | 606 | ||
607 | /* Add an MTRR for the VRAM */ | ||
608 | rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size, | ||
609 | MTRR_TYPE_WRCOMB, 1); | ||
610 | DRM_INFO("Detected VRAM RAM=%uM, BAR=%uM\n", | ||
611 | (unsigned)(rdev->mc.mc_vram_size >> 20), | ||
612 | (unsigned)(rdev->mc.aper_size >> 20)); | ||
613 | DRM_INFO("RAM width %dbits %cDR\n", | ||
614 | rdev->mc.vram_width, rdev->mc.vram_is_ddr ? 'D' : 'S'); | ||
615 | /* Initialize memory controller (also test AGP) */ | 607 | /* Initialize memory controller (also test AGP) */ |
616 | r = radeon_mc_init(rdev); | 608 | r = radeon_mc_init(rdev); |
617 | if (r) { | 609 | if (r) { |