Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/radeon: add VMID allocation trace point

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
84d597b7 ec39f64b

+17
+2
drivers/gpu/drm/radeon/radeon_gart.c
··· 29 29 #include <drm/radeon_drm.h> 30 30 #include "radeon.h" 31 31 #include "radeon_reg.h" 32 + #include "radeon_trace.h" 32 33 33 34 /* 34 35 * GART ··· 738 737 for (i = 0; i < 2; ++i) { 739 738 if (choices[i]) { 740 739 vm->id = choices[i]; 740 + trace_radeon_vm_grab_id(vm->id, ring); 741 741 return rdev->vm_manager.active[choices[i]]; 742 742 } 743 743 }
+15
drivers/gpu/drm/radeon/radeon_trace.h
··· 47 47 __entry->fences) 48 48 ); 49 49 50 + TRACE_EVENT(radeon_vm_grab_id, 51 + TP_PROTO(unsigned vmid, int ring), 52 + TP_ARGS(vmid, ring), 53 + TP_STRUCT__entry( 54 + __field(u32, vmid) 55 + __field(u32, ring) 56 + ), 57 + 58 + TP_fast_assign( 59 + __entry->vmid = vmid; 60 + __entry->ring = ring; 61 + ), 62 + TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring) 63 + ); 64 + 50 65 TRACE_EVENT(radeon_vm_set_page, 51 66 TP_PROTO(uint64_t pe, uint64_t addr, unsigned count, 52 67 uint32_t incr, uint32_t flags),