drm/amd/powerplay: need to reapply the dpm level settings
authorEvan Quan <evan.quan@amd.com>
Wed, 20 Feb 2019 08:21:10 +0000 (16:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Feb 2019 03:19:29 +0000 (22:19 -0500)
As these settings got reset during above phm_apply_clock_adjust_rules.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c

index ce177d7f04cbe9ad930d01650a5ede1995e9a135..6bf48934fdc4d465b9c28cb99a39c0111d025ea7 100644 (file)
@@ -277,8 +277,7 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip_display_set
        if (!skip_display_settings)
                phm_notify_smc_display_config_after_ps_adjustment(hwmgr);
 
-       if ((hwmgr->request_dpm_level != hwmgr->dpm_level) &&
-           !phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level))
+       if (!phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level))
                hwmgr->dpm_level = hwmgr->request_dpm_level;
 
        if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_MANUAL) {