mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/amdgpu: add reset register dump trace on GPU
Dump the list of register values to trace event on GPU reset. Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
5ce5a584cb
commit
15fd09a05a
@@ -536,6 +536,22 @@ TRACE_EVENT(amdgpu_ib_pipe_sync,
|
||||
__entry->seqno)
|
||||
);
|
||||
|
||||
TRACE_EVENT(amdgpu_reset_reg_dumps,
|
||||
TP_PROTO(uint32_t address, uint32_t value),
|
||||
TP_ARGS(address, value),
|
||||
TP_STRUCT__entry(
|
||||
__field(uint32_t, address)
|
||||
__field(uint32_t, value)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->address = address;
|
||||
__entry->value = value;
|
||||
),
|
||||
TP_printk("amdgpu register dump 0x%x: 0x%x",
|
||||
__entry->address,
|
||||
__entry->value)
|
||||
);
|
||||
|
||||
#undef AMDGPU_JOB_GET_TIMELINE_NAME
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user