diff options
author | Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> | 2020-09-10 17:49:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-26 13:34:26 -0400 |
commit | 13b5ca42ca9c9647f26c4aa8c4ab78ee5de35162 (patch) | |
tree | 5b130dd437009a2b0f79488642d543162f899db5 /drivers/gpu/drm/amd/display/dc/dc_trace.h | |
parent | 8b198f6e94d669810e0293d27a02401ddac4fad9 (diff) |
drm/amd/display: Add tracepoint for capturing clocks state
The clock state update is the source of many problems, and capturing
this sort of information helps debug. This commit introduces tracepoints
for capturing clock values and also add traces in DCE, DCN1, DCN2x, and
DCN3.
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_trace.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_trace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_trace.h b/drivers/gpu/drm/amd/display/dc/dc_trace.h index 783256914596..d2615357269b 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_trace.h +++ b/drivers/gpu/drm/amd/display/dc/dc_trace.h @@ -31,3 +31,9 @@ pipe_ctx->stream, &pipe_ctx->plane_res, \ pipe_ctx->update_flags.raw); \ } + +#define TRACE_DCE_CLOCK_STATE(dce_clocks) \ + trace_amdgpu_dm_dce_clocks_state(dce_clocks) + +#define TRACE_DCN_CLOCK_STATE(dcn_clocks) \ + trace_amdgpu_dm_dc_clocks_state(dcn_clocks) |