This series adds two tracepoints to panthor. The first tracepoint allows for inspecting utilisation of the hardware subdivisions, e.g. how many shader cores are active. This is done by reading three hardware registers when a certain IRQ fires.
The second tracepoint instruments panthor's job IRQ handler. This is more useful than the generic interrupt tracing functionality, as the tracepoint has the events bit mask included, which indicates which command stream group interfaces triggered the interrupt. To test the tracepoints, the following can be used: :~# echo 1 > /sys/kernel/tracing/events/panthor/gpu_power_active/enable :~# echo 1 > /sys/kernel/tracing/events/panthor/gpu_job_irq/enable :~# echo 1 > /sys/kernel/tracing/tracing_on :~# cat /sys/kernel/tracing/trace_pipe Signed-off-by: Nicolas Frattaroli <[email protected]> --- Nicolas Frattaroli (2): drm/panthor: Add tracepoint for hardware utilisation changes drm/panthor: Add gpu_job_irq tracepoint drivers/gpu/drm/panthor/panthor_device.c | 1 + drivers/gpu/drm/panthor/panthor_fw.c | 13 +++++++ drivers/gpu/drm/panthor/panthor_gpu.c | 9 +++++ drivers/gpu/drm/panthor/panthor_trace.h | 62 ++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+) --- base-commit: 6ef847703ac6da2deaaf735ce95369ba25c2c432 change-id: 20251203-panthor-tracepoints-488af09d46e7 Best regards, -- Nicolas Frattaroli <[email protected]>
