drm/amd/display: DCN2X Find Secondary Pipe properly in MPO + ODM Case
authorSung Lee <sung.lee@amd.com>
Tue, 5 Jan 2021 19:32:29 +0000 (14:32 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Jan 2021 15:45:58 +0000 (10:45 -0500)
commit348fe1ca5ccdca0f8c285e2ab99004fdcd531430
treefa79ba1b6a9715b472cbc0abced71ec9a5a2e422
parentc8f6364f35f32786dd40336cfa35b9166d91b8ab
drm/amd/display: DCN2X Find Secondary Pipe properly in MPO + ODM Case

[WHY]
Previously as MPO + ODM Combine was not supported, finding secondary pipes
for each case was mutually exclusive. Now that both are supported at the same
time, both cases should be taken into account when finding a secondary pipe.

[HOW]
If a secondary pipe cannot be found based on previous bottom pipe,
search for a second pipe using next_odm_pipe instead.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Anson Jacob <anson.jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.10.x
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c