drm/radeon: set power control in ci dpm enable

Necessary for poper operation.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Alex Deucher 2014-11-07 14:12:14 -05:00
parent 542b379b55
commit b94b95e7e3

View File

@ -4833,6 +4833,12 @@ int ci_dpm_enable(struct radeon_device *rdev)
return ret; return ret;
} }
ret = ci_power_control_set_level(rdev);
if (ret) {
DRM_ERROR("ci_power_control_set_level failed\n");
return ret;
}
ci_enable_auto_throttle_source(rdev, RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL, true); ci_enable_auto_throttle_source(rdev, RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL, true);
ci_update_current_ps(rdev, boot_ps); ci_update_current_ps(rdev, boot_ps);
@ -4963,11 +4969,6 @@ int ci_dpm_set_power_state(struct radeon_device *rdev)
return 0; return 0;
} }
int ci_dpm_power_control_set_level(struct radeon_device *rdev)
{
return ci_power_control_set_level(rdev);
}
void ci_dpm_reset_asic(struct radeon_device *rdev) void ci_dpm_reset_asic(struct radeon_device *rdev)
{ {
ci_set_boot_state(rdev); ci_set_boot_state(rdev);