Commit f73a7c99 authored by Tom Chung's avatar Tom Chung Committed by Wentao Guan
Browse files

drm/amd/display: Disable PSR-SU on eDP panels

stable inclusion
from stable-v6.6.81
commit 574b3cf0412ebbdb5da803dc6f8dc094fd422295
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBYZED

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=574b3cf0412ebbdb5da803dc6f8dc094fd422295

--------------------------------

commit e8863f8b0316d8ee1e7e5291e8f2f72c91ac967d upstream.

[Why]
PSR-SU may cause some glitching randomly on several panels.

[How]
Temporarily disable the PSR-SU and fallback to PSR1 for
all eDP panels.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3388


Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarSun peng Li <sunpeng.li@amd.com>
Signed-off-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarRoman Li <roman.li@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 6deeefb820d0efb0b36753622fb982d03b37b3ad)
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 574b3cf0412ebbdb5da803dc6f8dc094fd422295)
Signed-off-by: default avatarWentao Guan <guanwentao@uniontech.com>
parent 994fd192
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -51,7 +51,8 @@ static bool link_supports_psrsu(struct dc_link *link)
	    !link->dpcd_caps.psr_info.psr2_su_y_granularity_cap)
		return false;

	return dc_dmub_check_min_version(dc->ctx->dmub_srv->dmub);
	/* Temporarily disable PSR-SU to avoid glitches */
	return false;
}

/*