Partially revert "drm/amd/display: update add plane to context logic with a new algor...
authorWenjing Liu <wenjing.liu@amd.com>
Tue, 8 Aug 2023 22:49:20 +0000 (18:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 Aug 2023 22:05:26 +0000 (18:05 -0400)
commit39c8b93a105678821cbf1674d56bd58d775b932f
tree51b2cd1c17a0a2883c0ffb94c00b73589dc3260e
parent1611917f39bee1abfc01501238db8ac19649042d
Partially revert "drm/amd/display: update add plane to context logic with a new algorithm"

This partially reverts commit 460ea8980511 ("drm/amd/display: update add
plane to context logic with a new algorithm").

The new secondary pipe allocation logic triggers an issue with a
specific hardware state transition and causes a frame of corruption when
toggling between windowed MPO and ODM desktop only mode. Ideally hwss is
supposed to handle this scenario. We are temporarily reverting the logic
and investigate the root cause why this transition would cause
corruptions.

Fixes: 460ea8980511 ("drm/amd/display: update add plane to context logic with a new algorithm")
Reviewed-by: Martin Leung <martin.leung@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c