Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] PMU support for function engine activity
@ 2025-03-04  9:57 Riana Tauro
  2025-03-04  9:57 ` [PATCH 1/3] drm/xe: Add support for per-function " Riana Tauro
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Riana Tauro @ 2025-03-04  9:57 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, umesh.nerlige.ramappa,
	lucas.demarchi, michal.wajdeczko, vinay.belgaumkar

Extend PMU support for engine activity for PF and VF's.
PMU provides two counters (engine-active-ticks, engine-total-ticks)
to calculate engine activity. To get function engine activity from PF,
the user must provide the function values using the format

function - config:44-59

If 2 VF's are enabled, then the applicable function values are

0 - PF engine activity
1 - VF1 engine activity
2 - VF2 engine activity

This can be read from perf tool as shown below

./perf stat -e xe_<bdf>/engine-active-ticks,gt=<id>,engine_class=<class>,
			engine_instance=<instance>,function=<n>/,
	       xe_<bdf>/engine-total-ticks,gt=<id>,engine_class=<class>,
			engine_instance=<instance>,function=<n>/ -I 1000

Riana Tauro (3):
  drm/xe: Add support for per-function engine activity
  drm/xe/xe_pmu: Add PMU support for per-function engine activity stats
  drm/xe/pf: Enable per-function engine activity stats

 drivers/gpu/drm/xe/abi/guc_actions_abi.h      |   1 +
 drivers/gpu/drm/xe/xe_guc_engine_activity.c   | 200 +++++++++++++++---
 drivers/gpu/drm/xe/xe_guc_engine_activity.h   |   7 +-
 .../gpu/drm/xe/xe_guc_engine_activity_types.h |   8 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c             |  20 ++
 drivers/gpu/drm/xe/xe_pmu.c                   |  39 +++-
 6 files changed, 237 insertions(+), 38 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2025-03-10  5:48 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04  9:57 [PATCH 0/3] PMU support for function engine activity Riana Tauro
2025-03-04  9:57 ` [PATCH 1/3] drm/xe: Add support for per-function " Riana Tauro
2025-03-06 23:59   ` Umesh Nerlige Ramappa
2025-03-10  5:46     ` Riana Tauro
2025-03-04  9:57 ` [PATCH 2/3] drm/xe/xe_pmu: Add PMU support for per-function engine activity stats Riana Tauro
2025-03-07  0:07   ` Umesh Nerlige Ramappa
2025-03-10  5:47     ` Riana Tauro
2025-03-04  9:57 ` [PATCH 3/3] drm/xe/pf: Enable " Riana Tauro
2025-03-07  0:08   ` Umesh Nerlige Ramappa
2025-03-04 10:24 ` ✓ CI.Patch_applied: success for PMU support for function engine activity Patchwork
2025-03-04 10:25 ` ✓ CI.checkpatch: " Patchwork
2025-03-04 10:26 ` ✓ CI.KUnit: " Patchwork
2025-03-04 10:43 ` ✓ CI.Build: " Patchwork
2025-03-04 10:45 ` ✓ CI.Hooks: " Patchwork
2025-03-04 10:46 ` ✓ CI.checksparse: " Patchwork
2025-03-04 11:06 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-04 12:12 ` ✗ 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