[PATCH 0/4] drm/xe/pmu: Enable PMU interface
Vinay Belgaumkar
vinay.belgaumkar at intel.com
Tue Aug 27 16:41:03 UTC 2024
Port PMU event capture capability to Xe driver. This is being
requested by users of tools like gputop or turbostat who
use these PMU events to monitor GT freq and residencies.
First patch is from a previously done review-
https://patchwork.freedesktop.org/series/119504/ and the rest
of the patches are ported from the i915 driver.
There is an attempt to break up the code into a few chunks
so that everything is not a single blob. Basic PMU setup is
done first, followed by timer init and then C6 and frequency
events separately. One change is we now provide a modparam to
control sampling frequency.
A patch for IGT tests for this is in progress and will be
posted in a couple of days.
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar at intel.com>
Aravind Iddamsetty (1):
drm/xe/pmu: Enable PMU interface
Vinay Belgaumkar (3):
drm/xe/pmu: Define and init a timer
drm/xe/pmu: Add GT C6 events
drm/xe/pmu: Add GT frequency events
drivers/gpu/drm/xe/Makefile | 2 +
drivers/gpu/drm/xe/xe_device.c | 2 +
drivers/gpu/drm/xe/xe_device_types.h | 4 +
drivers/gpu/drm/xe/xe_gt.c | 4 +
drivers/gpu/drm/xe/xe_gt_idle.c | 20 +-
drivers/gpu/drm/xe/xe_gt_idle.h | 1 +
drivers/gpu/drm/xe/xe_module.c | 10 +
drivers/gpu/drm/xe/xe_module.h | 1 +
drivers/gpu/drm/xe/xe_pmu.c | 931 +++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_pmu.h | 28 +
drivers/gpu/drm/xe/xe_pmu_types.h | 142 ++++
include/uapi/drm/xe_drm.h | 43 ++
12 files changed, 1182 insertions(+), 6 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.38.1
More information about the Intel-xe
mailing list