drm/amd/display: Fix black flash when switching from ODM2to1 to ODMBypass
authorVladimir Stempen <vladimir.stempen@amd.com>
Fri, 19 Aug 2022 22:32:01 +0000 (18:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Aug 2022 21:59:30 +0000 (17:59 -0400)
commit67ec7195747888e2ef307010541fd07304d57ed6
tree0cd3965edb928ea550fef8a8bc7a620f88f84aae
parent93844fe7651c1f12206ac8ed8dc7d2eca72d90b9
drm/amd/display: Fix black flash when switching from ODM2to1 to ODMBypass

[Why]
On secondary display hotplug we switch primary
stream from ODM2to1 to ODMBypass mode. Current
logic will trigger disabling front end for this
stream.

[How]
We need to check if prev_odm_pipe is equal to NULL
in order to disable dangling planes in this scenario.

Reviewed-by: Ariel Bernstein <Eric.Bernstein@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Vladimir Stempen <vladimir.stempen@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