mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
drm/amdgpu: add cleaner shader trace point
Note when the cleaner shader is executed. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
1bb1314d0b
commit
02ba7543f2
|
|
@ -474,6 +474,21 @@ TRACE_EVENT(amdgpu_isolation,
|
|||
__entry->next)
|
||||
);
|
||||
|
||||
TRACE_EVENT(amdgpu_cleaner_shader,
|
||||
TP_PROTO(struct amdgpu_ring *ring, struct dma_fence *fence),
|
||||
TP_ARGS(ring, fence),
|
||||
TP_STRUCT__entry(
|
||||
__string(ring, ring->name)
|
||||
__field(u64, seqno)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__assign_str(ring);
|
||||
__entry->seqno = fence->seqno;
|
||||
),
|
||||
TP_printk("ring=%s, seqno=%Lu", __get_str(ring), __entry->seqno)
|
||||
);
|
||||
|
||||
TRACE_EVENT(amdgpu_bo_list_set,
|
||||
TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
|
||||
TP_ARGS(list, bo),
|
||||
|
|
|
|||
|
|
@ -853,6 +853,7 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job,
|
|||
* finish before we push them to the HW.
|
||||
*/
|
||||
if (cleaner_shader_needed) {
|
||||
trace_amdgpu_cleaner_shader(ring, fence);
|
||||
mutex_lock(&adev->enforce_isolation_mutex);
|
||||
dma_fence_put(isolation->spearhead);
|
||||
isolation->spearhead = dma_fence_get(fence);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user