diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-12-19 16:17:47 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-12-24 17:56:50 -0500 |
commit | e14cd2bbcb98541e199b7223f38d61527dfe45c9 (patch) | |
tree | 21b85dd82b3ef306fb1a92c4131fbc3029f86334 /drivers/gpu/drm/radeon/sumo_dpm.c | |
parent | d8852c3446ddeab300c4ae397d658b8715535102 (diff) |
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/sumo_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/sumo_dpm.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c b/drivers/gpu/drm/radeon/sumo_dpm.c index b63640f47d38..78d839f8d37d 100644 --- a/drivers/gpu/drm/radeon/sumo_dpm.c +++ b/drivers/gpu/drm/radeon/sumo_dpm.c | |||
@@ -1202,14 +1202,10 @@ static void sumo_update_requested_ps(struct radeon_device *rdev, | |||
1202 | int sumo_dpm_enable(struct radeon_device *rdev) | 1202 | int sumo_dpm_enable(struct radeon_device *rdev) |
1203 | { | 1203 | { |
1204 | struct sumo_power_info *pi = sumo_get_pi(rdev); | 1204 | struct sumo_power_info *pi = sumo_get_pi(rdev); |
1205 | int ret; | ||
1206 | 1205 | ||
1207 | if (sumo_dpm_enabled(rdev)) | 1206 | if (sumo_dpm_enabled(rdev)) |
1208 | return -EINVAL; | 1207 | return -EINVAL; |
1209 | 1208 | ||
1210 | ret = sumo_enable_clock_power_gating(rdev); | ||
1211 | if (ret) | ||
1212 | return ret; | ||
1213 | sumo_program_bootup_state(rdev); | 1209 | sumo_program_bootup_state(rdev); |
1214 | sumo_init_bsp(rdev); | 1210 | sumo_init_bsp(rdev); |
1215 | sumo_reset_am(rdev); | 1211 | sumo_reset_am(rdev); |
@@ -1233,15 +1229,6 @@ int sumo_dpm_enable(struct radeon_device *rdev) | |||
1233 | if (pi->enable_boost) | 1229 | if (pi->enable_boost) |
1234 | sumo_enable_boost_timer(rdev); | 1230 | sumo_enable_boost_timer(rdev); |
1235 | 1231 | ||
1236 | if (rdev->irq.installed && | ||
1237 | r600_is_internal_thermal_sensor(rdev->pm.int_thermal_type)) { | ||
1238 | ret = sumo_set_thermal_temperature_range(rdev, R600_TEMP_RANGE_MIN, R600_TEMP_RANGE_MAX); | ||
1239 | if (ret) | ||
1240 | return ret; | ||
1241 | rdev->irq.dpm_thermal = true; | ||
1242 | radeon_irq_set(rdev); | ||
1243 | } | ||
1244 | |||
1245 | sumo_update_current_ps(rdev, rdev->pm.dpm.boot_ps); | 1232 | sumo_update_current_ps(rdev, rdev->pm.dpm.boot_ps); |
1246 | 1233 | ||
1247 | return 0; | 1234 | return 0; |