Skip to content

Commit

Permalink
drm/amd/powerplay: change display event not resetting dpm level to auto
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>

Change-Id: Ie6ff474b53f41f851703e0c6a214257fad7aa090
  • Loading branch information
Eric Huang authored and Andres Rodriguez committed Apr 18, 2016
1 parent 11fd00e commit 745fa65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/amd/powerplay/eventmgr/eventtasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ int pem_task_update_allowed_performance_levels(struct pp_eventmgr *eventmgr, str
if (pem_is_hw_access_blocked(eventmgr))
return 0;

phm_force_dpm_levels(eventmgr->hwmgr, AMD_DPM_FORCED_LEVEL_AUTO);
if (eventmgr->hwmgr->dpm_level == AMD_DPM_FORCED_LEVEL_AUTO)
phm_force_dpm_levels(eventmgr->hwmgr,
AMD_DPM_FORCED_LEVEL_AUTO);

return 0;
}
Expand Down

0 comments on commit 745fa65

Please sign in to comment.