Skip to content
Commit 6a1cb68b authored by George Shen's avatar George Shen Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled



[ Upstream commit 7bdbfb4e ]

[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: default avatarDillon Varone <dillon.varone@amd.com>
Acked-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: default avatarGeorge Shen <george.shen@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Stable-dep-of: b4e05bb1 ("drm/amd/display: Clear OPTC mem select on disable")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ae62f1dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment