]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Move mcache allocation programming from DML to resource
authorKarthi Kandasamy <karthi.kandasamy@amd.com>
Mon, 3 Mar 2025 22:15:10 +0000 (23:15 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 May 2025 17:38:36 +0000 (13:38 -0400)
commit40bae1aea03d7aaa1148f652ce460e5ae931d098
treef38fd753b83f321632e1b13953a2f14d6723ff26
parent17accf4f228c68a062ca24a79ee22aa96e278512
drm/amd/display: Move mcache allocation programming from DML to resource

[Why]
mcache allocation programming is not part of DML's core responsibilities.
Keeping this logic in DML leads to poor separation of concerns and complicates maintenance.

[How]
Refactored code to move mcache parameter preparation and mcache ID assignment
into the resource file.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Karthi Kandasamy <karthi.kandasamy@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.h
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.h
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.h
drivers/gpu/drm/amd/display/dc/inc/core_types.h
drivers/gpu/drm/amd/display/dc/inc/resource.h