intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] drm/xe/pmu: Enable PMU interface
@ 2024-08-27 16:41 Vinay Belgaumkar
  2024-08-27 16:41 ` [PATCH 1/4] " Vinay Belgaumkar
                   ` (12 more replies)
  0 siblings, 13 replies; 28+ messages in thread
From: Vinay Belgaumkar @ 2024-08-27 16:41 UTC (permalink / raw)
  To: intel-xe; +Cc: Vinay Belgaumkar, Rodrigo Vivi

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@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@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


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

end of thread, other threads:[~2024-11-27 20:58 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 16:41 [PATCH 0/4] drm/xe/pmu: Enable PMU interface Vinay Belgaumkar
2024-08-27 16:41 ` [PATCH 1/4] " Vinay Belgaumkar
2024-08-28 19:11   ` Rodrigo Vivi
2024-08-29 23:46     ` Belgaumkar, Vinay
2024-08-28 19:33   ` Lucas De Marchi
2024-08-29 22:10     ` Belgaumkar, Vinay
2024-09-02  5:59       ` Aravind Iddamsetty
2024-09-03  3:01         ` Lucas De Marchi
2024-11-25 19:07           ` Umesh Nerlige Ramappa
2024-11-27  7:12             ` Riana Tauro
2024-11-27 17:13               ` Lucas De Marchi
2024-11-27 18:47                 ` Umesh Nerlige Ramappa
2024-11-27 19:11                   ` Lucas De Marchi
2024-11-27 20:58                     ` Umesh Nerlige Ramappa
2024-08-27 16:41 ` [PATCH 2/4] drm/xe/pmu: Define and init a timer Vinay Belgaumkar
2024-08-28 19:13   ` Rodrigo Vivi
2024-08-30  0:28     ` Belgaumkar, Vinay
2024-08-27 16:41 ` [PATCH 3/4] drm/xe/pmu: Add GT C6 events Vinay Belgaumkar
2024-08-27 16:41 ` [PATCH 4/4] drm/xe/pmu: Add GT frequency events Vinay Belgaumkar
2024-08-27 17:09 ` ✓ CI.Patch_applied: success for drm/xe/pmu: Enable PMU interface (rev10) Patchwork
2024-08-27 17:10 ` ✗ CI.checkpatch: warning " Patchwork
2024-08-27 17:11 ` ✓ CI.KUnit: success " Patchwork
2024-08-27 17:23 ` ✓ CI.Build: " Patchwork
2024-08-27 17:25 ` ✗ CI.Hooks: failure " Patchwork
2024-08-27 17:26 ` ✓ CI.checksparse: success " Patchwork
2024-08-27 17:56 ` ✗ CI.BAT: failure " Patchwork
2024-08-28  2:35 ` ✗ CI.FULL: " Patchwork
2024-08-28 19:24 ` [PATCH 0/4] drm/xe/pmu: Enable PMU interface Lucas De Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).