]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled
authorGeorge Shen <george.shen@amd.com>
Sun, 17 Dec 2023 22:17:57 +0000 (17:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:58 +0000 (15:28 +0200)
commit6a1cb68b9810f71644eb5d2d663e59083540bada
treeb500cfeac0b1193e9553c2ae8f9d1a3896c4dbce
parentae62f1dde66a6f0eee98defc4c7a346bd5acd239
drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

[ Upstream commit 7bdbfb4e36e34eb788e44f27666bf0a2b3b90803 ]

[Why]
If an OPP is used for a different OPTC without first being disconnected
from the previous OPTC, unexpected behaviour can occur. This also
applies to phantom pipes, which is what the current logic missed.

[How]
Disconnect OPPs from OPTC for phantom pipes before disabling OTG master.

Also move the disconnection to before the OTG master disable, since the
register is double buffered.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: b4e05bb1dec5 ("drm/amd/display: Clear OPTC mem select on disable")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c