mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
17accf4f22
commit
40bae1aea0
@@ -40,6 +40,7 @@ struct dc_sink;
|
||||
struct dc_stream_state;
|
||||
struct resource_context;
|
||||
struct display_stream_compressor;
|
||||
struct dc_mcache_params;
|
||||
|
||||
// Configuration of the MALL on the SoC
|
||||
struct dml2_soc_mall_info {
|
||||
@@ -107,6 +108,7 @@ struct dml2_dc_callbacks {
|
||||
unsigned int (*get_max_flickerless_instant_vtotal_increase)(
|
||||
struct dc_stream_state *stream,
|
||||
bool is_gaming);
|
||||
bool (*allocate_mcache)(struct dc_state *context, const struct dc_mcache_params *mcache_params);
|
||||
};
|
||||
|
||||
struct dml2_dc_svp_callbacks {
|
||||
|
||||
Reference in New Issue
Block a user