diff options
author | Tejun Heo <tj@kernel.org> | 2010-04-04 22:37:28 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-04-04 22:37:28 -0400 |
commit | 336f5899d287f06d8329e208fc14ce50f7ec9698 (patch) | |
tree | 9b762d450d5eb248a6ff8317badb7e223d93ed58 /drivers/gpu/drm/radeon/evergreen.c | |
parent | a4ab2773205e8b94c18625455f85e3b6bb9d7ad6 (diff) | |
parent | db217dece3003df0841bacf9556b5c06aa097dae (diff) |
Merge branch 'master' into export-slabh
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreen.c')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 438226a2290a..e8f447e20507 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include "drmP.h" | 27 | #include "drmP.h" |
28 | #include "radeon.h" | 28 | #include "radeon.h" |
29 | #include "radeon_asic.h" | ||
29 | #include "radeon_drm.h" | 30 | #include "radeon_drm.h" |
30 | #include "rv770d.h" | 31 | #include "rv770d.h" |
31 | #include "atom.h" | 32 | #include "atom.h" |
@@ -437,7 +438,6 @@ static void evergreen_gpu_init(struct radeon_device *rdev) | |||
437 | 438 | ||
438 | int evergreen_mc_init(struct radeon_device *rdev) | 439 | int evergreen_mc_init(struct radeon_device *rdev) |
439 | { | 440 | { |
440 | fixed20_12 a; | ||
441 | u32 tmp; | 441 | u32 tmp; |
442 | int chansize, numchan; | 442 | int chansize, numchan; |
443 | 443 | ||
@@ -482,12 +482,8 @@ int evergreen_mc_init(struct radeon_device *rdev) | |||
482 | rdev->mc.real_vram_size = rdev->mc.aper_size; | 482 | rdev->mc.real_vram_size = rdev->mc.aper_size; |
483 | } | 483 | } |
484 | r600_vram_gtt_location(rdev, &rdev->mc); | 484 | r600_vram_gtt_location(rdev, &rdev->mc); |
485 | /* FIXME: we should enforce default clock in case GPU is not in | 485 | radeon_update_bandwidth_info(rdev); |
486 | * default setup | 486 | |
487 | */ | ||
488 | a.full = rfixed_const(100); | ||
489 | rdev->pm.sclk.full = rfixed_const(rdev->clock.default_sclk); | ||
490 | rdev->pm.sclk.full = rfixed_div(rdev->pm.sclk, a); | ||
491 | return 0; | 487 | return 0; |
492 | } | 488 | } |
493 | 489 | ||
@@ -747,6 +743,7 @@ int evergreen_init(struct radeon_device *rdev) | |||
747 | 743 | ||
748 | void evergreen_fini(struct radeon_device *rdev) | 744 | void evergreen_fini(struct radeon_device *rdev) |
749 | { | 745 | { |
746 | radeon_pm_fini(rdev); | ||
750 | evergreen_suspend(rdev); | 747 | evergreen_suspend(rdev); |
751 | #if 0 | 748 | #if 0 |
752 | r600_blit_fini(rdev); | 749 | r600_blit_fini(rdev); |