Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID
@ 2026-12-03 20:10 Rodrigo Vivi
  2026-12-03 20:10 ` [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h Rodrigo Vivi
                   ` (18 more replies)
  0 siblings, 19 replies; 28+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 20:10 UTC (permalink / raw)
  To: intel-xe; +Cc: anshuman.gupta, karthik.poosa, michael.j.ruhl, Rodrigo Vivi

The PMT telemetry users in xe read their samples at fixed offsets, after
getting the GUID of the PUNIT region by hand. The offsets are hard to get
from the PMT definitions, and the definition of a sample depends on the
GUID of the telemetry, which xe does not look at.

Patches 1-6 add xe_pmt_read(), which finds the GUID of a region from the
PMT discovery entries, and move the users to it.

Patches 7-11 add a table of the samples per PUNIT GUID, written as in the
PMT definitions, and xe_pmt_read_sample() to read them. They read the
same offsets as today, with a note where the definition of a GUID has
another sample there, so there is no functional change up to patch 11.

Patches 12-15 then read each sample as defined for its GUID. Each has
the behavior change in its commit message:
 - 12: no BMG energy where the PUNIT telemetry has none
 - 13: no BMG "Package G7" line where it was the ADM C6 residency
 - 14: the pcode major version is MAJOR_VERSION, 1 where it showed 273
 - 15: the CRI residencies at their CRI offsets

Tested on BMG (GUID 0x1e2f8200): patch 11 reads the same as drm-tip, and
patch 15 changes only the pcode major version and the G7 line. Not tested
on CRI.

Thanks,
Rodrigo.

Rodrigo Vivi (15):
  drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
  drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region
  drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry
  drm/xe/pcode: Use xe_pmt_read() for the pcode version
  drm/xe/debugfs: Use xe_pmt_read() for the residencies
  drm/xe/vsec: Remove xe_vsec_get_guid()
  drm/xe/vsec: Add the PMT telemetry samples per GUID
  drm/xe/hwmon: Read the BMG energy and fan PWM as PMT samples
  drm/xe/pcode: Read the pcode version as a PMT sample
  drm/xe/debugfs: Read the residencies as PMT samples
  drm/xe/vsec: Make xe_pmt_read() static
  drm/xe/hwmon: Do not read the BMG energy where the PMT telemetry has
    none
  drm/xe/debugfs: Only show the BMG G7 residency where the PMT telemetry
    has it
  drm/xe/pcode: Read the pcode version as defined in the PMT telemetry
  drm/xe/debugfs: Read the CRI residencies at their offsets

 drivers/gpu/drm/xe/regs/xe_pmt.h     |  25 ---
 drivers/gpu/drm/xe/xe_debugfs.c      |  41 ++--
 drivers/gpu/drm/xe/xe_device_types.h |   2 -
 drivers/gpu/drm/xe/xe_hwmon.c        |  51 ++---
 drivers/gpu/drm/xe/xe_pcode.c        |  21 +-
 drivers/gpu/drm/xe/xe_vsec.c         | 322 ++++++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_vsec.h         |  62 +++++-
 7 files changed, 380 insertions(+), 144 deletions(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-12-04 20:16 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h Rodrigo Vivi
2026-12-03 21:32   ` Ruhl, Michael J
2026-12-03 21:47     ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 02/15] drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region Rodrigo Vivi
2026-12-03 21:50   ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry Rodrigo Vivi
2026-12-03 21:57   ` Ruhl, Michael J
2026-12-04 15:17     ` Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode version Rodrigo Vivi
2026-12-03 21:58   ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 05/15] drm/xe/debugfs: Use xe_pmt_read() for the residencies Rodrigo Vivi
2026-12-03 21:58   ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 06/15] drm/xe/vsec: Remove xe_vsec_get_guid() Rodrigo Vivi
2026-12-03 21:59   ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 07/15] drm/xe/vsec: Add the PMT telemetry samples per GUID Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 08/15] drm/xe/hwmon: Read the BMG energy and fan PWM as PMT samples Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 09/15] drm/xe/pcode: Read the pcode version as a PMT sample Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 10/15] drm/xe/debugfs: Read the residencies as PMT samples Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 11/15] drm/xe/vsec: Make xe_pmt_read() static Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 12/15] drm/xe/hwmon: Do not read the BMG energy where the PMT telemetry has none Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 13/15] drm/xe/debugfs: Only show the BMG G7 residency where the PMT telemetry has it Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 14/15] drm/xe/pcode: Read the pcode version as defined in the PMT telemetry Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 15/15] drm/xe/debugfs: Read the CRI residencies at their offsets Rodrigo Vivi
2026-12-03 20:19 ` ✗ CI.checkpatch: warning for drm/xe: Read the PMT telemetry samples as defined per GUID Patchwork
2026-12-03 20:21 ` ✓ CI.KUnit: success " Patchwork
2026-12-03 20:56 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-04 20:16 ` ✗ 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