]> git.hungrycats.org Git - linux/commit
drm/amd/display: Fix artifacting on eDP panels when engaging freesync video mode
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 17 May 2023 18:39:46 +0000 (14:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:40 +0000 (19:39 +0200)
commit4e00c2d126dded12a8ad24126a60bc8c40883dd0
treec82a670f13e8b18775d4fc7afc09369b5cc5a09c
parent3f2299c32e0806a4327e2e641731fe7b50bc1093
drm/amd/display: Fix artifacting on eDP panels when engaging freesync video mode

[ Upstream commit b18f05a0666aecd5cb19c26a8305bcfa4e9d6502 ]

[Why]
When freesync video mode is enabled, switching resolution from native
mode to one of the freesync video compatible modes can trigger continous
artifacts on some eDP panels when running under KDE. The articating can be seen in the
attached bug report.

[How]
Fix this by restricting updates that require full commit by using the same checks
for stream and scaling changes in the the enable pass of dm_update_crtc_state()
along with the check for compatible timings for freesync vide mode.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2162
Fixes: da5e14909776 ("drm/amd/display: Fix hang when skipping modeset")
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c