mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
drm/amd/powerplay/vega10: allow mclk switching with no displays
commit 5825acf5c9
upstream.
If there are no displays attached, there is no reason to disable
mclk switching.
Fixes mclks getting set to high when there are no displays attached.
Reviewed-by: Eric Huang <JinhuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
396ff36876
commit
cfc381d215
1 changed files with 7 additions and 4 deletions
|
@ -3243,10 +3243,13 @@ static int vega10_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
|
|||
force_mclk_high = phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
|
||||
PHM_PlatformCaps_ForceMclkHigh);
|
||||
|
||||
disable_mclk_switching = (info.display_count > 1) ||
|
||||
disable_mclk_switching_for_frame_lock ||
|
||||
disable_mclk_switching_for_vr ||
|
||||
force_mclk_high;
|
||||
if (info.display_count == 0)
|
||||
disable_mclk_switching = false;
|
||||
else
|
||||
disable_mclk_switching = (info.display_count > 1) ||
|
||||
disable_mclk_switching_for_frame_lock ||
|
||||
disable_mclk_switching_for_vr ||
|
||||
force_mclk_high;
|
||||
|
||||
sclk = vega10_ps->performance_levels[0].gfx_clock;
|
||||
mclk = vega10_ps->performance_levels[0].mem_clock;
|
||||
|
|
Loading…
Reference in a new issue