Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] Add PMU support for single engine busyness
@ 2024-11-21  6:38 Riana Tauro
  2024-11-21  6:33 ` ✓ CI.Patch_applied: success for Add PMU support for single engine busyness (rev2) Patchwork
                   ` (15 more replies)
  0 siblings, 16 replies; 38+ messages in thread
From: Riana Tauro @ 2024-11-21  6:38 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, umesh.nerlige.ramappa, rodrigo.vivi,
	vinay.belgaumkar, aravind.iddamsetty, john.c.harrison,
	ashutosh.dixit, soham.purkait

The first 3 patches of the series are taken from
https://patchwork.freedesktop.org/series/139121/. They are added
only for compilation and does not require review.

This series adds support for single engine busyness.

PMU provides two counters (<engine>-busy-ticks-gt<n>,
<engine>-total-ticks-gt<n>) to calculate engine busyness. When querying
engine busyness, user must group these 2 counters using the perf_event
group mechanism to ensure both counters are sampled together.

To list engine busyness counters use the following

./perf list
  xe_0000_03_00.0/bcs0-busy-ticks-gt0/               [Kernel PMU event]
  xe_0000_03_00.0/bcs0-total-ticks-gt0/              [Kernel PMU event]
  xe_0000_03_00.0/ccs0-busy-ticks-gt0/               [Kernel PMU event]
  xe_0000_03_00.0/ccs0-total-ticks-gt0/              [Kernel PMU event]

Engine busyness can then be calculated as below
busyness % = (engine active ticks/total ticks) * 100

Rev2: Add trace functions
      fix cosmetic review comments

Aravind Iddamsetty (1):
  drm/xe/pmu: Enable PMU interface

Riana Tauro (5):
  drm/xe: add function to convert xe hw engine class to user class
  drm/xe: Add single engine busyness support
  drm/xe/trace: Add trace for xe_engine_activity
  drm/xe/guc: Expose engine busyness only for supported GuC version
  drm/xe/pmu: Add PMU support for engine busyness

Vinay Belgaumkar (2):
  drm/xe/pmu: Add GT C6 events
  drm/xe/pmu: Add GT frequency events

 drivers/gpu/drm/xe/Makefile                   |    3 +
 drivers/gpu/drm/xe/abi/guc_actions_abi.h      |    1 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h          |    2 +
 drivers/gpu/drm/xe/xe_device.c                |    6 +
 drivers/gpu/drm/xe/xe_device_types.h          |    4 +
 drivers/gpu/drm/xe/xe_engine_activity.c       |  348 +++++
 drivers/gpu/drm/xe/xe_engine_activity.h       |   18 +
 drivers/gpu/drm/xe/xe_engine_activity_types.h |   85 ++
 drivers/gpu/drm/xe/xe_gt.c                    |    4 +
 drivers/gpu/drm/xe/xe_gt_idle.c               |   17 +-
 drivers/gpu/drm/xe/xe_gt_idle.h               |    1 +
 drivers/gpu/drm/xe/xe_guc.c                   |    5 +
 drivers/gpu/drm/xe/xe_guc_fwif.h              |   19 +
 drivers/gpu/drm/xe/xe_guc_types.h             |    4 +
 drivers/gpu/drm/xe/xe_hw_engine.c             |   21 +
 drivers/gpu/drm/xe/xe_hw_engine.h             |    1 +
 drivers/gpu/drm/xe/xe_module.c                |    5 +
 drivers/gpu/drm/xe/xe_pmu.c                   | 1191 +++++++++++++++++
 drivers/gpu/drm/xe/xe_pmu.h                   |   30 +
 drivers/gpu/drm/xe/xe_pmu_types.h             |  172 +++
 drivers/gpu/drm/xe/xe_query.c                 |   12 +-
 drivers/gpu/drm/xe/xe_trace_guc.h             |   49 +
 drivers/gpu/drm/xe/xe_uc.c                    |    3 +
 23 files changed, 1986 insertions(+), 15 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_engine_activity.c
 create mode 100644 drivers/gpu/drm/xe/xe_engine_activity.h
 create mode 100644 drivers/gpu/drm/xe/xe_engine_activity_types.h
 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.40.0


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

end of thread, other threads:[~2025-01-06 14:07 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21  6:38 [PATCH v2 0/8] Add PMU support for single engine busyness Riana Tauro
2024-11-21  6:33 ` ✓ CI.Patch_applied: success for Add PMU support for single engine busyness (rev2) Patchwork
2024-11-21  6:34 ` ✗ CI.checkpatch: warning " Patchwork
2024-11-21  6:35 ` ✓ CI.KUnit: success " Patchwork
2024-11-21  6:38 ` [PATCH v2 1/8] [DO NOT REVIEW] drm/xe/pmu: Enable PMU interface Riana Tauro
2024-11-21  6:38 ` [PATCH v2 2/8] [DO NOT REVIEW] drm/xe/pmu: Add GT C6 events Riana Tauro
2024-11-21  6:38 ` [PATCH v2 3/8] [DO NOT REVIEW] drm/xe/pmu: Add GT frequency events Riana Tauro
2024-11-21  6:39 ` [PATCH v2 4/8] drm/xe: add function to convert xe hw engine class to user class Riana Tauro
2024-12-10 23:48   ` Umesh Nerlige Ramappa
2024-12-18  7:33     ` Riana Tauro
2024-12-19  0:13       ` Umesh Nerlige Ramappa
2024-11-21  6:39 ` [PATCH v2 5/8] drm/xe: Add single engine busyness support Riana Tauro
2024-12-12 23:56   ` Umesh Nerlige Ramappa
2024-12-13  0:52     ` Lucas De Marchi
2024-12-13  7:06       ` Riana Tauro
2024-12-13 14:15         ` Lucas De Marchi
2024-12-13  6:22     ` Riana Tauro
2024-11-21  6:39 ` [PATCH v2 6/8] drm/xe/trace: Add trace for xe_engine_activity Riana Tauro
2024-11-21  6:39 ` [PATCH v2 7/8] drm/xe/guc: Expose engine busyness only for supported GuC version Riana Tauro
2024-12-13  5:44   ` Lucas De Marchi
2024-12-13  6:00     ` Riana Tauro
2024-12-13  6:04       ` Lucas De Marchi
2024-12-13  6:10         ` Riana Tauro
2024-12-13 17:26           ` Lucas De Marchi
2024-12-19  0:19   ` John Harrison
2024-11-21  6:39 ` [PATCH v2 8/8] drm/xe/pmu: Add PMU support for engine busyness Riana Tauro
2024-12-13  5:58   ` Lucas De Marchi
2024-12-18  5:12     ` Riana Tauro
2024-12-18 14:13       ` Lucas De Marchi
2024-12-18 14:51         ` Riana Tauro
2024-12-19  5:47           ` Riana Tauro
2024-12-19 18:46             ` Umesh Nerlige Ramappa
2025-01-06 14:06               ` Riana Tauro
2024-11-21  6:53 ` ✓ CI.Build: success for Add PMU support for single engine busyness (rev2) Patchwork
2024-11-21  6:55 ` ✗ CI.Hooks: failure " Patchwork
2024-11-21  6:57 ` ✓ CI.checksparse: success " Patchwork
2024-11-21  7:17 ` ✗ Xe.CI.BAT: failure " Patchwork
2024-11-21 13:52 ` ✗ Xe.CI.Full: " Patchwork

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