drm/radeon/ci: apply disp voltage changes before clk changes
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Nov 2014 19:32:14 +0000 (14:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Nov 2014 18:00:12 +0000 (13:00 -0500)
Apply voltage changes for displays before changing clocks.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ci_dpm.c

index c9963b589336906d8cfbea8e6c5c39d158dde488..e7816281f0d77d8ffdd4cf7a52b35c441eb1159d 100644 (file)
@@ -3752,6 +3752,8 @@ static int ci_upload_dpm_level_enable_mask(struct radeon_device *rdev)
        struct ci_power_info *pi = ci_get_pi(rdev);
        PPSMC_Result result;
 
+       ci_apply_disp_minimum_voltage_request(rdev);
+
        if (!pi->sclk_dpm_key_disabled) {
                if (pi->dpm_level_enable_mask.sclk_dpm_enable_mask) {
                        result = ci_send_msg_to_smc_with_parameter(rdev,
@@ -3782,8 +3784,6 @@ static int ci_upload_dpm_level_enable_mask(struct radeon_device *rdev)
                }
        }
 
-       ci_apply_disp_minimum_voltage_request(rdev);
-
        return 0;
 }