mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
drm/amd/display: Add more logging for MALL static screen
[why & how] print additional info for MALL related calculations and DMCUB messaging to aid debugging. Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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:
parent
680458d41a
commit
8c4f9e4661
@ -1309,8 +1309,10 @@ bool dcn401_apply_idle_power_optimizations(struct dc *dc, bool enable)
|
||||
for (i = 0; i < dc->current_state->stream_count; i++) {
|
||||
/* MALL SS messaging is not supported with PSR at this time */
|
||||
if (dc->current_state->streams[i] != NULL &&
|
||||
dc->current_state->streams[i]->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED)
|
||||
dc->current_state->streams[i]->link->psr_settings.psr_version != DC_PSR_VERSION_UNSUPPORTED) {
|
||||
DC_LOG_MALL("MALL SS not supported with PSR at this time\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
memset(&cmd, 0, sizeof(cmd));
|
||||
@ -1320,8 +1322,9 @@ bool dcn401_apply_idle_power_optimizations(struct dc *dc, bool enable)
|
||||
if (enable) {
|
||||
if (dcn401_check_no_memory_request_for_cab(dc)) {
|
||||
/* 1. Check no memory request case for CAB.
|
||||
* If no memory request case, send CAB_ACTION NO_DF_REQ DMUB message
|
||||
* If no memory request case, send CAB_ACTION NO_DCN_REQ DMUB message
|
||||
*/
|
||||
DC_LOG_MALL("sending CAB action NO_DCN_REQ\n");
|
||||
cmd.cab.header.sub_type = DMUB_CMD__CAB_NO_DCN_REQ;
|
||||
} else {
|
||||
/* 2. Check if all surfaces can fit in CAB.
|
||||
@ -1349,13 +1352,16 @@ bool dcn401_apply_idle_power_optimizations(struct dc *dc, bool enable)
|
||||
if (ways <= dc->caps.cache_num_ways && !mall_ss_unsupported) {
|
||||
cmd.cab.header.sub_type = DMUB_CMD__CAB_DCN_SS_FIT_IN_CAB;
|
||||
cmd.cab.cab_alloc_ways = ways;
|
||||
DC_LOG_MALL("cab allocation: %d ways. CAB action: DCN_SS_FIT_IN_CAB\n", ways);
|
||||
} else {
|
||||
cmd.cab.header.sub_type = DMUB_CMD__CAB_DCN_SS_NOT_FIT_IN_CAB;
|
||||
DC_LOG_MALL("frame does not fit in CAB: %d ways required. CAB action: DCN_SS_NOT_FIT_IN_CAB\n", ways);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* Disable CAB */
|
||||
cmd.cab.header.sub_type = DMUB_CMD__CAB_NO_IDLE_OPTIMIZATION;
|
||||
DC_LOG_MALL("idle optimization disabled\n");
|
||||
}
|
||||
|
||||
dm_execute_dmub_cmd(dc->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT);
|
||||
|
@ -61,6 +61,7 @@
|
||||
#define DC_LOG_ALL_TF_CHANNELS(...) pr_debug("[GAMMA]:"__VA_ARGS__)
|
||||
#define DC_LOG_DSC(...) drm_dbg_dp((DC_LOGGER)->dev, __VA_ARGS__)
|
||||
#define DC_LOG_SMU(...) pr_debug("[SMU_MSG]:"__VA_ARGS__)
|
||||
#define DC_LOG_MALL(...) pr_debug("[MALL]:"__VA_ARGS__)
|
||||
#define DC_LOG_DWB(...) drm_dbg((DC_LOGGER)->dev, __VA_ARGS__)
|
||||
#define DC_LOG_DP2(...) drm_dbg_dp((DC_LOGGER)->dev, __VA_ARGS__)
|
||||
#define DC_LOG_AUTO_DPM_TEST(...) pr_debug("[AutoDPMTest]: "__VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user