drm/amd/display: Account for MPO planes in dcn32 mall alloc calculations
authorDillon Varone <Dillon.Varone@amd.com>
Thu, 22 Dec 2022 01:28:56 +0000 (20:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Jan 2023 20:41:11 +0000 (15:41 -0500)
commite36193123f3f5e4ac837f32daa78125d8e9d749b
tree19ecb455143b218595d76ec2f45152012dcb5c74
parent2ebd1036209c2e7b61e6bc6e5bee4b67c1684ac6
drm/amd/display: Account for MPO planes in dcn32 mall alloc calculations

[WHY?]
Cannot only consider the MALL required from top pipes because of the MPO
case.

[HOW?]
Only count a pipe if it fits the following criteria:
1) does not have a top pipe (is the topmost pipe for that plane)
2) it does have a top pipe, but that pipe is associated with a different
   plane

Tested-by: Daniel Wheeler <Daniel.Wheeler@amd.com>
Reviewed-by: Nevenko Stupar <Nevenko.Stupar@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Dillon Varone <Dillon.Varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c