diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2017-12-18 19:48:00 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-19 12:11:58 -0500 |
commit | 8621bbbbd3f4bdbdc17122a32becbbfbdf572100 (patch) | |
tree | 3f3c6cac375d0999b7f4b7c7c8cf2c57abbe872f /drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | |
parent | drm/amd/pp: implement phm_reset_power_profile_state (diff) | |
download | linux-dev-8621bbbbd3f4bdbdc17122a32becbbfbdf572100.tar.xz linux-dev-8621bbbbd3f4bdbdc17122a32becbbfbdf572100.zip |
drm/amd/pp: delete repeated call of force_dpm_level
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c index f9ff40928ea9..95ab772e0c3e 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c @@ -244,8 +244,11 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip, } phm_notify_smc_display_config_after_ps_adjustment(hwmgr); - phm_force_dpm_levels(hwmgr, hwmgr->dpm_level); + if (!phm_force_dpm_levels(hwmgr, hwmgr->request_dpm_level)) + hwmgr->dpm_level = hwmgr->request_dpm_level; + phm_reset_power_profile_state(hwmgr); + return 0; } |