mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
drm/amd/display: Add dummy interface for tracing DCN32 SMU messages
[Why/How] Some issues may require a trace of the previous SMU messages from DC to understand the context and aid in debugging. Actual logging to be implemented when needed. Reviewed-by: Josip Pavic <josip.pavic@amd.com> Acked-by: Roman Li <roman.li@amd.com> Signed-off-by: George Shen <george.shen@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
14f9db4271
commit
beb9764aad
@@ -274,6 +274,16 @@ void dm_perf_trace_timestamp(const char *func_name, unsigned int line, struct dc
|
||||
#define PERF_TRACE() dm_perf_trace_timestamp(__func__, __LINE__, CTX)
|
||||
#define PERF_TRACE_CTX(__CTX) dm_perf_trace_timestamp(__func__, __LINE__, __CTX)
|
||||
|
||||
/*
|
||||
* SMU message tracing
|
||||
*/
|
||||
void dm_trace_smu_msg(uint32_t msg_id, uint32_t param_in, struct dc_context *ctx);
|
||||
void dm_trace_smu_delay(uint32_t delay, struct dc_context *ctx);
|
||||
|
||||
#define TRACE_SMU_MSG(msg_id, param_in, ctx) dm_trace_smu_msg(msg_id, param_in, ctx)
|
||||
#define TRACE_SMU_DELAY(response_delay, ctx) dm_trace_smu_delay(response_delay, ctx)
|
||||
|
||||
|
||||
/*
|
||||
* DMUB Interfaces
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user