[PATCH v13 0/7] drm/xe/pmu: PMU interface for Xe
Lucas De Marchi
lucas.demarchi at intel.com
Thu Jan 16 23:07:11 UTC 2025
Previous versions: https://patchwork.freedesktop.org/series/139121/
For perf/core: first patch adds a new macro in include/linux/perf_event.h.
If it's ok, I'd like to merge it through the drm branch so we can add the
pmu implementation to the xe driver. I'm also Cc'ing you on the other
patches to show its usage.
For "drm/xe/pmu: Enable PMU interface", previously from several authors,
I squashed several changes I suggested in the past to clean it up and
reduce boilerplate code that resulted from copy-paste from i915. More
detailed changes can be found at
https://gitlab.freedesktop.org/demarchi/xe/-/tags/tip-xe-pmu-v13
Compared to v12 this only has 1 event as Vinay said he will rebase the
frequency event on top. I tested this on Lunar Lake with and without
workload running and the c6 residency seems reasonable.
Lucas De Marchi (4):
perf/core: Add PMU_EVENT_ATTR_ID_STRING
drm/xe/pmu: Assert max gt
drm/xe/pmu: Extract xe_pmu_event_update()
drm/xe/pmu: Add attribute skeleton
Vinay Belgaumkar (3):
drm/xe/pmu: Enable PMU interface
drm/xe/pmu: Hook up gt suspend notification
drm/xe/pmu: Add GT C6 events
drivers/gpu/drm/xe/Makefile | 2 +
drivers/gpu/drm/xe/xe_device.c | 3 +
drivers/gpu/drm/xe/xe_device_types.h | 4 +
drivers/gpu/drm/xe/xe_gt.c | 3 +
drivers/gpu/drm/xe/xe_pmu.c | 408 +++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_pmu.h | 22 ++
drivers/gpu/drm/xe/xe_pmu_types.h | 51 ++++
include/linux/perf_event.h | 7 +-
8 files changed, 498 insertions(+), 2 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_pmu.c
create mode 100644 drivers/gpu/drm/xe/xe_pmu.h
create mode 100644 drivers/gpu/drm/xe/xe_pmu_types.h
--
2.48.0
More information about the Intel-xe
mailing list