summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_pm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-04-12 13:59:22 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 10:49:25 -0400
commit9d67006e6ebc6c5bc553d04b8c2dabea168e5e5b (patch)
treeabbbd0efe290bc984cd5a35d9fc784817dc69dfd /drivers/gpu/drm/radeon/radeon_pm.c
parent2e9d4c05a17e3f3056c823c76f2c908d4eda17aa (diff)
downloadlinux-9d67006e6ebc6c5bc553d04b8c2dabea168e5e5b.tar.bz2
drm/radeon/kms: add dpm support for rs780/rs880
This adds dpm support for rs780/rs880 asics. This includes: - clockgating - dynamic engine clock scaling - dynamic voltage scaling set radeon.dpm=1 to enable it. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_pm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c
index 4f5422e6ccbb..853a8a2e141b 100644
--- a/drivers/gpu/drm/radeon/radeon_pm.c
+++ b/drivers/gpu/drm/radeon/radeon_pm.c
@@ -1030,6 +1030,13 @@ int radeon_pm_init(struct radeon_device *rdev)
{
/* enable dpm on rv6xx+ */
switch (rdev->family) {
+ case CHIP_RS780:
+ case CHIP_RS880:
+ if (radeon_dpm == 1)
+ rdev->pm.pm_method = PM_METHOD_DPM;
+ else
+ rdev->pm.pm_method = PM_METHOD_PROFILE;
+ break;
default:
/* default to profile method */
rdev->pm.pm_method = PM_METHOD_PROFILE;