Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51954e17 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amd/powerplay/smu7: allow mclk switching with no displays



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: default avatarEric Huang <JinhuiEric.Huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 5825acf5
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -2756,6 +2756,9 @@ static int smu7_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
				    PHM_PlatformCaps_DisableMclkSwitchingForFrameLock);


	if (info.display_count == 0)
		disable_mclk_switching = false;
	else
		disable_mclk_switching = ((1 < info.display_count) ||
					  disable_mclk_switching_for_frame_lock ||
					  smu7_vblank_too_short(hwmgr, mode_info.vblank_time_us) ||