summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/trinity_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-12-19 16:17:47 -0500
committerAlex Deucher <alexander.deucher@amd.com>2013-12-24 17:56:50 -0500
commite14cd2bbcb98541e199b7223f38d61527dfe45c9 (patch)
tree21b85dd82b3ef306fb1a92c4131fbc3029f86334 /drivers/gpu/drm/radeon/trinity_dpm.c
parentd8852c3446ddeab300c4ae397d658b8715535102 (diff)
downloadlinux-e14cd2bbcb98541e199b7223f38d61527dfe45c9.tar.gz
linux-e14cd2bbcb98541e199b7223f38d61527dfe45c9.tar.bz2
linux-e14cd2bbcb98541e199b7223f38d61527dfe45c9.zip
drm/radeon/dpm: switch on new late_enable callback
Right now it's called right after enable, but after reworking the dpm init order, it will get called later to accomodate loading the smc early, but enabling thermal interrupts and block powergating later after the ring tests are complete. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/trinity_dpm.c')
-rw-r--r--drivers/gpu/drm/radeon/trinity_dpm.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c
index ee0ce0a423ca..0f4d70337e81 100644
--- a/drivers/gpu/drm/radeon/trinity_dpm.c
+++ b/drivers/gpu/drm/radeon/trinity_dpm.c
@@ -1082,7 +1082,6 @@ void trinity_dpm_enable_bapm(struct radeon_device *rdev, bool enable)
int trinity_dpm_enable(struct radeon_device *rdev)
{
struct trinity_power_info *pi = trinity_get_pi(rdev);
- int ret;
trinity_acquire_mutex(rdev);
@@ -1091,7 +1090,6 @@ int trinity_dpm_enable(struct radeon_device *rdev)
return -EINVAL;
}
- trinity_enable_clock_power_gating(rdev);
trinity_program_bootup_state(rdev);
sumo_program_vc(rdev, 0x00C00033);
trinity_start_am(rdev);
@@ -1105,17 +1103,6 @@ int trinity_dpm_enable(struct radeon_device *rdev)
trinity_dpm_bapm_enable(rdev, false);
trinity_release_mutex(rdev);
- if (rdev->irq.installed &&
- r600_is_internal_thermal_sensor(rdev->pm.int_thermal_type)) {
- ret = trinity_set_thermal_temperature_range(rdev, R600_TEMP_RANGE_MIN, R600_TEMP_RANGE_MAX);
- if (ret) {
- trinity_release_mutex(rdev);
- return ret;
- }
- rdev->irq.dpm_thermal = true;
- radeon_irq_set(rdev);
- }
-
trinity_update_current_ps(rdev, rdev->pm.dpm.boot_ps);
return 0;