drm/amd/display: MALL SS calculations should iterate over all pipes for cursor
authorDillon Varone <Dillon.Varone@amd.com>
Wed, 16 Nov 2022 15:03:23 +0000 (10:03 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2022 16:03:38 +0000 (11:03 -0500)
[Description]
MALL SS allocation calculations should iterate over all pipes to determine the
the allocation size required for HW cursor.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@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/dcn32/dcn32_hwseq.c

index 2f19f711d8be95f8f634dc9eded65d5cb4a492ba..76548b4b822c21423cae2003031f6f37349bc17d 100644 (file)
@@ -316,8 +316,8 @@ static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *c
                                        cache_lines_used += (((cursor_size + DCN3_2_MALL_MBLK_SIZE_BYTES - 1) /
                                                        DCN3_2_MALL_MBLK_SIZE_BYTES) * DCN3_2_MALL_MBLK_SIZE_BYTES) /
                                                        dc->caps.cache_line_size + 2;
+                                       break;
                                }
-                               break;
                        }
        }