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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Jan 2024 20:43:53 +0000 (15:43 -0500)
commit7bdbfb4e36e34eb788e44f27666bf0a2b3b90803
tree96f81fd1be427dcaae39ebf2fa0b89ddc890ef84
parent17e74e11ac2b46e7514705ae7abfb93ac0e20bd6
drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled

[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>
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c
drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.c