drm/amd/display: Program pipes for ODM when removing planes
authorDillon Varone <Dillon.Varone@amd.com>
Tue, 1 Nov 2022 20:38:20 +0000 (16:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 16:53:08 +0000 (11:53 -0500)
commit1cb69b43550b6c20819decba870db34175677b2a
treed743aae16766f739c29daef112c0cd4ccaef6ffc
parentee47b8db538f7fc4cd550eec1220270df1897e69
drm/amd/display: Program pipes for ODM when removing planes

[WHY?]
Software state expects pipes to be configured for ODM, but due to the transition
occurring on a plane disable, the ODM enablement code is not run.

[HOW?]
Update ODM when removing a plane, and dynamic ODM is active. Also acquire pipe
lock when removing a plane.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@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/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c