Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] drm: Add GPU frequency tracepoint
@ 2025-09-08 12:56 S Sebinraj
  2025-09-08 12:56 ` [PATCH v2 1/2] drm: Add GPU frequency tracepoint at DRM level S Sebinraj
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: S Sebinraj @ 2025-09-08 12:56 UTC (permalink / raw)
  To: intel-xe; +Cc: jeevaka.badrappan, S Sebinraj

Add a GPU frequency tracepoint at the DRM subsystem level.
Integrates with the Xe PMU to provide frequency tracing.

The tracepoint is exposed at:
 /sys/kernel/debug/tracing/events/power/gpu_frequency

 Format: {unsigned int state, unsigned int gpu_id}
 - state: GPU frequency in KHz
 - gpu_id: GPU clock domain identifier

S Sebinraj (2):
  drm: Add GPU frequency tracepoint at DRM level
  drm/xe: Add DRM GPU frequency tracepoint to Xe

 drivers/gpu/drm/Kconfig                   | 11 ++++++
 drivers/gpu/drm/Makefile                  |  1 +
 drivers/gpu/drm/drm_gpu_frequency_trace.c | 16 ++++++++
 drivers/gpu/drm/drm_gpu_frequency_trace.h | 47 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gpu_freq_trace.h    | 14 +++++++
 drivers/gpu/drm/xe/xe_pmu.c               | 26 ++++++++++++-
 drivers/gpu/drm/xe/xe_pmu_types.h         |  4 ++
 7 files changed, 117 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_gpu_frequency_trace.c
 create mode 100644 drivers/gpu/drm/drm_gpu_frequency_trace.h
 create mode 100644 drivers/gpu/drm/xe/xe_gpu_freq_trace.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-09 14:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-08 12:56 [PATCH v2 0/2] drm: Add GPU frequency tracepoint S Sebinraj
2025-09-08 12:56 ` [PATCH v2 1/2] drm: Add GPU frequency tracepoint at DRM level S Sebinraj
2025-09-09 14:24   ` Rodrigo Vivi
2025-09-08 12:56 ` [PATCH v2 2/2] drm/xe: Add DRM GPU frequency tracepoint to Xe S Sebinraj
2025-09-08 13:50 ` [PATCH v2 0/2] drm: Add GPU frequency tracepoint Dixit, Ashutosh
2025-09-08 23:32 ` ✗ CI.checkpatch: warning for " Patchwork
2025-09-08 23:34 ` ✓ CI.KUnit: success " Patchwork
2025-09-09  5:06 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox