drm/amd/display: Fix black screen when disabling Freesync in OSD
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Thu, 9 Jun 2022 22:45:04 +0000 (18:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Jul 2022 20:50:29 +0000 (16:50 -0400)
commit59a1e9ed1b406b1ae7cbbc612ce00d459987d028
tree44217e1f7d2a7326f99b89e87f2605cb0621caec
parente2facd575fdf13b718f6c833ed546467a3e6e3ba
drm/amd/display: Fix black screen when disabling Freesync in OSD

[Why]
Black screen encountered when disabling Freesync through OSD on some
displays.

[How]
Set the should_disable flag when new top pipe has no plane state to
ensure that pipes get cleaned up.

Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c