Skip to content

Commit

Permalink
drm/amd/powerplay: issue pre-display settings for display change event
Browse files Browse the repository at this point in the history
For display config change event only, pre-display config settings are
needed.

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>
  • Loading branch information
Evan Quan authored and Alex Deucher committed Dec 3, 2018
1 parent f02be82 commit 10cb3e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ int hwmgr_handle_task(struct pp_hwmgr *hwmgr, enum amd_pp_task task_id,

switch (task_id) {
case AMD_PP_TASK_DISPLAY_CONFIG_CHANGE:
ret = phm_pre_display_configuration_changed(hwmgr);
if (ret)
return ret;
ret = phm_set_cpu_power_state(hwmgr);
if (ret)
return ret;
Expand Down
2 changes: 0 additions & 2 deletions drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip,
if (skip)
return 0;

phm_pre_display_configuration_changed(hwmgr);

phm_display_configuration_changed(hwmgr);

if (hwmgr->ps)
Expand Down

0 comments on commit 10cb3e6

Please sign in to comment.