]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: fix missing writeback disablement if plane is removed
authorRoy Chan <roy.chan@amd.com>
Wed, 21 Jul 2021 23:33:26 +0000 (19:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:10 +0000 (13:42 +0200)
commit49dc078fda402c98d608ab6d592ffb1bd9d021e9
treeb2627fe599b93b3643bebf02266e3a4dedde9c25
parent9d75d0f2984cb2607191c67ded04c16b238125e7
drm/amd/display: fix missing writeback disablement if plane is removed

[ Upstream commit 82367e7f22d085092728f45fd5fbb15e3fb997c0 ]

[Why]
If the plane has been removed, the writeback disablement logic
doesn't run

[How]
fix the logic order

Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Roy Chan <roy.chan@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c