]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/display: Fix CAB cursor size allocation for DCN32/321
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 18 Aug 2022 21:25:05 +0000 (17:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Aug 2022 21:03:29 +0000 (17:03 -0400)
For calculating cursor size allocation, surface size was used, resulting
in over allocation

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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/dcn32/dcn32_hwseq.c

index ebd3945c71f1b6ba3fad7e4423b8bc510dd57a71..a3e8648a319f85af91b1da07d91cc076cf87085a 100644 (file)
@@ -312,7 +312,7 @@ static uint32_t dcn32_calculate_cab_allocation(struct dc *dc, struct dc_state *c
                                cursor_size *= 8;
                                break;
                        }
-                       cache_lines_used += dcn32_cache_lines_for_surface(dc, surface_size,
+                       cache_lines_used += dcn32_cache_lines_for_surface(dc, cursor_size,
                                        plane->address.grph.cursor_cache_addr.quad_part);
                }
        }