* [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
` (17 more replies)
0 siblings, 18 replies; 27+ 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] 27+ messages in thread
* [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
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 ` Rodrigo Vivi
2026-12-03 21:32 ` 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
` (16 subsequent siblings)
17 siblings, 1 reply; 27+ 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
Callers of the PMT telemetry need to name the PMT record of the region
they read. Move the record IDs to xe_vsec.h, as enum xe_pmt_record, so
the callers and xe_vsec use the same names.
No functional change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_vsec.c | 25 ++++++++++---------------
drivers/gpu/drm/xe/xe_vsec.h | 14 ++++++++++++++
2 files changed, 24 insertions(+), 15 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 33a5237cf5b4..f8f10c16b9fd 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -185,12 +185,6 @@ static struct intel_vsec_platform_info xe_vsec_info[] = {
#define CRI_OOBMSM_GFSP_TELEMETRY_OFFSET 0x1600
#define CRI_PUNIT_CRASHLOG_OFFSET 0x0E60
-enum record_id {
- PUNIT,
- OOBMSM_0,
- OOBMSM_1,
-};
-
enum capability {
CRASHLOG,
TELEMETRY,
@@ -213,12 +207,13 @@ static int bmg_guid_decode(u32 guid, int *index, u32 *offset)
*offset = 0;
if (cap_type == CRASHLOG) {
- *index = record_id == PUNIT ? BMG_IDX_CRASHLOG_PUNIT : BMG_IDX_CRASHLOG_OOBMSM;
+ *index = record_id == XE_PMT_PUNIT ? BMG_IDX_CRASHLOG_PUNIT :
+ BMG_IDX_CRASHLOG_OOBMSM;
return 0;
}
switch (record_id) {
- case PUNIT:
+ case XE_PMT_PUNIT:
*index = BMG_IDX_TELEM_PUNIT;
if (cap_type == TELEMETRY)
*offset = BMG_PUNIT_TELEMETRY_OFFSET;
@@ -226,13 +221,13 @@ static int bmg_guid_decode(u32 guid, int *index, u32 *offset)
*offset = BMG_PUNIT_WATCHER_OFFSET;
break;
- case OOBMSM_0:
+ case XE_PMT_OOBMSM_0:
*index = BMG_IDX_TELEM_OOBMSM;
if (cap_type == WATCHER)
*offset = BMG_OOBMSM_0_WATCHER_OFFSET;
break;
- case OOBMSM_1:
+ case XE_PMT_OOBMSM_1:
*index = BMG_IDX_TELEM_OOBMSM;
if (cap_type == TELEMETRY)
*offset = BMG_OOBMSM_1_TELEMETRY_OFFSET;
@@ -253,7 +248,7 @@ static int cri_guid_decode(u32 guid, int *index, u32 *offset)
*offset = 0;
if (cap_type == CRASHLOG) {
- if (record_id == PUNIT) {
+ if (record_id == XE_PMT_PUNIT) {
*index = CRI_IDX_CRASHLOG_PUNIT;
*offset = CRI_PUNIT_CRASHLOG_OFFSET;
} else {
@@ -263,13 +258,13 @@ static int cri_guid_decode(u32 guid, int *index, u32 *offset)
}
switch (record_id) {
- case PUNIT:
+ case XE_PMT_PUNIT:
*index = CRI_IDX_TELEM_PUNIT;
if (cap_type == WATCHER)
*offset = CRI_PUNIT_WATCHER_OFFSET;
break;
- case OOBMSM_0:
+ case XE_PMT_OOBMSM_0:
*index = CRI_IDX_TELEM_OOBMSM;
switch (instance) {
case 0:
@@ -553,7 +548,7 @@ static int xe_pmt_read_reg(struct device *dev, u32 guid, u32 *reg, u32 offset)
if (!drm_dev_enter(&xe->drm, &idx))
return -ENODEV;
- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
CRI_CRASHLOG_PUNIT_DISC_OFFSET : CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
disc_addr += inst + offset;
@@ -592,7 +587,7 @@ static int xe_pmt_write_reg(struct device *dev, u32 guid, u32 reg, u32 offset)
if (!drm_dev_enter(&xe->drm, &idx))
return -ENODEV;
- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
CRI_CRASHLOG_PUNIT_DISC_OFFSET : CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
disc_addr += inst + offset;
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 88e6f6a9e4dd..3715a597b7dd 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -9,6 +9,20 @@
struct device;
struct xe_device;
+/**
+ * enum xe_pmt_record - PMT record a region belongs to
+ * @XE_PMT_PUNIT: PUNIT
+ * @XE_PMT_OOBMSM_0: first OOBMSM
+ * @XE_PMT_OOBMSM_1: second OOBMSM
+ *
+ * The values match the Record-ID field of the PMT GUID.
+ */
+enum xe_pmt_record {
+ XE_PMT_PUNIT,
+ XE_PMT_OOBMSM_0,
+ XE_PMT_OOBMSM_1,
+};
+
void xe_vsec_init(struct xe_device *xe);
void xe_vsec_remove(struct xe_device *xe);
int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 02/15] drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region
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 20:10 ` 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
` (15 subsequent siblings)
17 siblings, 1 reply; 27+ 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
Users of the PMT telemetry in xe need the GUID of a region before they
can call xe_pmt_telem_read(), and xe_vsec_get_guid() only returns the
one of the PUNIT region. They also need to know which offset to use,
which the PMT definitions do not make obvious: each SampleGroup there
has a "Groupname" address, like 0x6230 for the BMG PUNIT energy, but the
offset is its sampleID * 8, 0x30. That is how the PMT tools from
Intel-PMT and the Level Zero sysman read them, in:
https://github.com/intel/Intel-PMT/blob/main/tools/collectd-agent/pmt.py
https://github.com/intel/compute-runtime/blob/master/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp
Add xe_pmt_read(), which takes the PMT record of the region and the
sample offset. It finds the GUID of the region in the PMT telemetry
discovery entries that xe_vsec already describes, and reads from it.
Document there how to get the offset from the PMT definition.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pmt.h | 1 +
drivers/gpu/drm/xe/xe_vsec.c | 90 ++++++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_vsec.h | 2 +
3 files changed, 93 insertions(+)
diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h b/drivers/gpu/drm/xe/regs/xe_pmt.h
index 4fec057b2dd6..2a55a10be37a 100644
--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
@@ -11,6 +11,7 @@
#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
#define BMG_PUNIT_TELEMETRY_GUID XE_REG(BMG_DISCOVERY_OFFSET + 0x4)
+/* PMT telemetry sample offsets, see xe_pmt_read() */
#define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
#define ENERGY_PKG REG_GENMASK64(31, 0)
#define ENERGY_CARD REG_GENMASK64(63, 32)
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index f8f10c16b9fd..3d20065dd269 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -163,6 +163,9 @@ static struct intel_vsec_platform_info xe_vsec_info[] = {
#define CRI_GUID_SEGMENT GENMASK(5, 4)
#define CRI_GUID_INSTANCE GENMASK(7, 6)
+/* Dword of a PMT discovery entry that holds the GUID */
+#define PMT_DISC_GUID_DW 1
+
#define BMG_IDX_TELEM_PUNIT 0x00
#define BMG_IDX_TELEM_OOBMSM 0x01
#define BMG_IDX_CRASHLOG_PUNIT 0x02
@@ -722,6 +725,93 @@ int xe_vsec_get_guid(struct xe_device *xe, u32 *guid)
return ret;
}
+static u32 xe_guid_instance(struct xe_device *xe, u32 guid)
+{
+ return xe->info.platform == XE_CRESCENTISLAND ? FIELD_GET(CRI_GUID_INSTANCE, guid) : 0;
+}
+
+static int xe_pmt_get_telem_guid(struct xe_device *xe, enum xe_pmt_record record,
+ u32 instance, u32 *guid)
+{
+ struct xe_mmio *mmio = xe_root_tile_mmio(xe);
+ const struct intel_vsec_header *disc;
+ int ret = -ENOENT;
+ u32 i;
+
+ xe_assert(xe, !IS_SRIOV_VF(xe));
+
+ switch (xe->info.platform) {
+ case XE_BATTLEMAGE:
+ disc = &bmg_telemetry;
+ break;
+ case XE_CRESCENTISLAND:
+ disc = &cri_telemetry;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ if (!xe_pm_runtime_get_if_active(xe))
+ return -ENODATA;
+
+ scoped_guard(mutex, &xe->pmt.lock) {
+ if (xe->info.platform == XE_CRESCENTISLAND)
+ xe->soc_remapper.set_telem_region(xe, CRI_IDX_TELEM_DISCOVERY);
+
+ for (i = 0; i < disc->num_entries; i++) {
+ u32 offset = disc->offset +
+ (i * disc->entry_size + PMT_DISC_GUID_DW) * sizeof(u32);
+ u32 val = xe_mmio_read32(mmio, XE_REG(offset));
+
+ if (FIELD_GET(GUID_CAP_TYPE, val) == TELEMETRY &&
+ FIELD_GET(GUID_RECORD_ID, val) == record &&
+ xe_guid_instance(xe, val) == instance) {
+ *guid = val;
+ ret = 0;
+ break;
+ }
+ }
+ }
+
+ xe_pm_runtime_put(xe);
+
+ return ret;
+}
+
+/**
+ * xe_pmt_read - Read samples from a PMT telemetry region
+ * @xe: valid xe device
+ * @record: PMT record of the region
+ * @instance: instance of the region within @record, 0 if there is only one
+ * @offset: offset of the first sample in the region
+ * @data: buffer to place the samples in
+ * @count: bytes to read
+ *
+ * Read from the telemetry region of @record, found from the PMT discovery
+ * entries of the device. In the PMT definition of the region, each
+ * SampleGroup is a 64-bit container at sampleID * 8, which is the @offset to
+ * use. The "Groupname" address in its description is not the offset.
+ *
+ * Return:
+ * * -ENODATA device is not active
+ * * -EINVAL unsupported platform
+ * * -ENOENT no such region on this device
+ * * count number of bytes read on success
+ * * or any error from xe_pmt_telem_read()
+ */
+int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
+ u32 offset, u64 *data, u32 count)
+{
+ u32 guid;
+ int ret;
+
+ ret = xe_pmt_get_telem_guid(xe, record, instance, &guid);
+ if (ret)
+ return ret;
+
+ return xe_pmt_telem_read(xe->drm.dev, guid, data, offset, count);
+}
+
/**
* xe_vsec_init - Initialize resources and add intel_vsec auxiliary
* interface
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 3715a597b7dd..20f45b890c70 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -27,5 +27,7 @@ void xe_vsec_init(struct xe_device *xe);
void xe_vsec_remove(struct xe_device *xe);
int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
+int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
+ u32 offset, u64 *data, u32 count);
#endif
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry
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 20:10 ` [PATCH 02/15] drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region Rodrigo Vivi
@ 2026-12-03 20:10 ` Rodrigo Vivi
2026-12-03 21:57 ` Ruhl, Michael J
2026-12-03 20:10 ` [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode version Rodrigo Vivi
` (14 subsequent siblings)
17 siblings, 1 reply; 27+ 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
Read the BMG energy and fan PWM from the PUNIT telemetry with
xe_pmt_read(), instead of getting the GUID first with
xe_vsec_get_guid() and then calling xe_pmt_telem_read().
No functional change.
Cc: Karthik Poosa <karthik.poosa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 23 +++++------------------
1 file changed, 5 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 152699801e05..e7406337e39e 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -805,16 +805,9 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
if (hwmon->xe->info.platform == XE_BATTLEMAGE) {
u64 pmt_val;
- u32 guid;
- ret = xe_vsec_get_guid(hwmon->xe, &guid);
- if (ret) {
- drm_warn(&hwmon->xe->drm, "PMT device is not available: %d\n", ret);
- *energy = 0;
- return ret;
- }
- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid,
- &pmt_val, BMG_ENERGY_STATUS_PMT_OFFSET, sizeof(pmt_val));
+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_ENERGY_STATUS_PMT_OFFSET,
+ &pmt_val, sizeof(pmt_val));
if (ret != sizeof(pmt_val)) {
drm_warn(&hwmon->xe->drm, "energy read from pmt failed, ret %d\n", ret);
*energy = 0;
@@ -2633,7 +2626,7 @@ static int xe_hwmon_get_active_table_pwm(struct xe_hwmon *hwmon, int channel, lo
static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int channel, long *val)
{
u64 pmt_val;
- u32 guid, pwm;
+ u32 pwm;
int ret;
lockdep_assert_held(&hwmon->hwmon_lock);
@@ -2641,14 +2634,8 @@ static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int channel, long *
if (hwmon->xe->info.platform != XE_BATTLEMAGE)
return -EOPNOTSUPP;
- ret = xe_vsec_get_guid(hwmon->xe, &guid);
- if (ret) {
- xe_warn(hwmon->xe, "failed to read pwm, PMT unavailable: %d\n", ret);
- return ret;
- }
-
- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid, &pmt_val,
- BMG_FAN_PWM_PMT_OFFSET, sizeof(pmt_val));
+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_FAN_PWM_PMT_OFFSET,
+ &pmt_val, sizeof(pmt_val));
if (ret != sizeof(pmt_val)) {
xe_warn(hwmon->xe, "pwm read from PMT failed: %d\n", ret);
return ret < 0 ? ret : -EIO;
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode version
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (2 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (13 subsequent siblings)
17 siblings, 1 reply; 27+ 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
Read the pcode version from the PUNIT telemetry with xe_pmt_read(),
instead of getting the GUID first with xe_vsec_get_guid() and then
calling xe_pmt_telem_read().
No functional change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_pcode.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
index f465decbf946..7d4901780d7f 100644
--- a/drivers/gpu/drm/xe/xe_pcode.c
+++ b/drivers/gpu/drm/xe/xe_pcode.c
@@ -414,18 +414,11 @@ ALLOW_ERROR_INJECTION(xe_pcode_probe_early, ERRNO); /* See xe_pci_probe */
int xe_get_pcode_version(struct xe_device *xe, struct xe_pcode_version *version)
{
int ret = 0;
- u32 guid;
guard(xe_pm_runtime)(xe);
- ret = xe_vsec_get_guid(xe, &guid);
- if (ret) {
- xe_warn(xe, "PMT device is not available: %d\n", ret);
- return ret;
- }
-
- ret = xe_pmt_telem_read(xe->drm.dev, guid,
- (u64 *)version, PUNIT_VERSION_OFFSET, sizeof(*version));
+ ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, PUNIT_VERSION_OFFSET,
+ (u64 *)version, sizeof(*version));
if (ret != sizeof(*version)) {
xe_warn(xe, "pcode version read from PMT failed, ret %pe\n", ERR_PTR(ret));
return ret;
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 05/15] drm/xe/debugfs: Use xe_pmt_read() for the residencies
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (3 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode version Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (12 subsequent siblings)
17 siblings, 1 reply; 27+ 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
Read the package and PCIe link residencies from the PUNIT telemetry with
xe_pmt_read(), instead of getting the GUID first with xe_vsec_get_guid()
and then calling xe_pmt_telem_read().
No functional change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_debugfs.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 52c50496fa35..8b7f6d3d7cd0 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -153,16 +153,9 @@ static void read_residency_counter(struct xe_device *xe, u32 offset, const char
struct drm_printer *p)
{
u64 residency = 0;
- u32 guid;
int ret;
- ret = xe_vsec_get_guid(xe, &guid);
- if (ret) {
- drm_warn(&xe->drm, "PMT device is not available: %d\n", ret);
- return;
- }
-
- ret = xe_pmt_telem_read(xe->drm.dev, guid, &residency, offset, sizeof(residency));
+ ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, offset, &residency, sizeof(residency));
if (ret != sizeof(residency)) {
drm_warn(&xe->drm, "%s counter failed to read, ret %d\n", name, ret);
return;
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 06/15] drm/xe/vsec: Remove xe_vsec_get_guid()
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (4 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 05/15] drm/xe/debugfs: Use xe_pmt_read() for the residencies Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (11 subsequent siblings)
17 siblings, 1 reply; 27+ 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
xe_vsec_get_guid() has no users left, as xe_pmt_read() finds the GUID in
the discovery entries. Remove it, with its cache and the PUNIT GUID
registers.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pmt.h | 3 --
drivers/gpu/drm/xe/xe_device_types.h | 2 -
drivers/gpu/drm/xe/xe_vsec.c | 59 ----------------------------
drivers/gpu/drm/xe/xe_vsec.h | 1 -
4 files changed, 65 deletions(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h b/drivers/gpu/drm/xe/regs/xe_pmt.h
index 2a55a10be37a..bf4c3959a91f 100644
--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
@@ -10,7 +10,6 @@
#define BMG_PMT_BASE_OFFSET 0xDB000
#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
-#define BMG_PUNIT_TELEMETRY_GUID XE_REG(BMG_DISCOVERY_OFFSET + 0x4)
/* PMT telemetry sample offsets, see xe_pmt_read() */
#define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
#define ENERGY_PKG REG_GENMASK64(31, 0)
@@ -30,8 +29,6 @@
/* for CRI discovery and telemetry are in an indexed window */
#define CRI_PMT_OFFSET (SOC_BASE + XE_PMT_BASE_OFFSET)
-#define CRI_PUNIT_TELEMETRY_GUID XE_REG(CRI_PMT_OFFSET + 0x4)
-
#define BMG_MODS_RESIDENCY_OFFSET (0x4D0)
#define BMG_G2_RESIDENCY_OFFSET (0x530)
#define BMG_G6_RESIDENCY_OFFSET (0x538)
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 62ca5c645179..2dd18c274827 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -507,8 +507,6 @@ struct xe_device {
struct delayed_work work;
/** @pmt.retry_count: late-bind probe retry */
u32 retry_count;
- /** @pmt.punit_guid_cache: cache of the PUNIT GUID */
- u32 punit_guid_cache;
/** @pmt.survivability_mode: cache of survivability mode state */
bool survivability_mode;
} pmt;
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 3d20065dd269..cb62179e48c9 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -666,65 +666,6 @@ static void cri_late_bind_probe(struct xe_device *xe)
intel_vsec_register(dev, info);
}
-/**
- * xe_vsec_get_guid - Get and cache the PUNIT guid value
- * @xe: valid xe device
- * @guid: returned guid
- *
- * Return:
- * * -ENODATA device is not active
- * * -EINVAL unsupported platform
- * * 0 success
- */
-int xe_vsec_get_guid(struct xe_device *xe, u32 *guid)
-{
- struct xe_mmio *mmio = xe_root_tile_mmio(xe);
- int ret = 0;
-
- xe_assert(xe, !IS_SRIOV_VF(xe));
-
- if (!xe_pm_runtime_get_if_active(xe))
- return -ENODATA;
-
- mutex_lock(&xe->pmt.lock);
-
- if (xe->pmt.punit_guid_cache) {
- *guid = xe->pmt.punit_guid_cache;
- goto unlock;
- }
-
- switch (xe->info.platform) {
- case XE_BATTLEMAGE:
- *guid = xe_mmio_read32(mmio, BMG_PUNIT_TELEMETRY_GUID);
- break;
-
- case XE_CRESCENTISLAND:
- xe->soc_remapper.set_telem_region(xe, CRI_IDX_TELEM_DISCOVERY);
- *guid = xe_mmio_read32(mmio, CRI_PUNIT_TELEMETRY_GUID);
- break;
-
- default:
- *guid = 0;
- drm_err(&xe->drm, "Unsupported platform: %u\n", xe->info.platform);
- ret = -EINVAL;
- goto unlock;
- }
-
- /* the GUID is static, read once and cache for all requests */
- if (*guid) {
- xe->pmt.punit_guid_cache = *guid;
- } else {
- drm_err(&xe->drm, "Invalid GUID: 0x%x\n", *guid);
- ret = -EINVAL;
- }
-
-unlock:
- mutex_unlock(&xe->pmt.lock);
- xe_pm_runtime_put(xe);
-
- return ret;
-}
-
static u32 xe_guid_instance(struct xe_device *xe, u32 guid)
{
return xe->info.platform == XE_CRESCENTISLAND ? FIELD_GET(CRI_GUID_INSTANCE, guid) : 0;
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 20f45b890c70..14d57374678f 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -25,7 +25,6 @@ enum xe_pmt_record {
void xe_vsec_init(struct xe_device *xe);
void xe_vsec_remove(struct xe_device *xe);
-int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
u32 offset, u64 *data, u32 count);
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 07/15] drm/xe/vsec: Add the PMT telemetry samples per GUID
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (5 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 06/15] drm/xe/vsec: Remove xe_vsec_get_guid() Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (10 subsequent siblings)
17 siblings, 0 replies; 27+ 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 definition of a PMT telemetry sample depends on the GUID of the
telemetry, like the Level Zero sysman keeps it, but xe reads its samples
at fixed offsets on any GUID.
Add a table of the PUNIT GUIDs, grouped by the revision of their PMT
definition, each with the samples xe reads from it, written as in the PMT
definition: the sampleID of the SampleGroup, and the size, lsb and msb of
the sample in it. For instance, the definition of the BMG PUNIT telemetry,
GUID 0x1e2f8200, is in:
https://github.com/intel/Intel-PMT/blob/main/xml/BMG/PUNIT/bmg_punit_aggregator.xml
A sample like FAN1_PWM, defined there as:
<TELEM:SampleGroup name="Container_11" sampleID="11" ...>
<TELC:sample name="FAN1_PWM" ...>
<TELC:size>16</TELC:size>
<TELC:lsb>0</TELC:lsb>
<TELC:msb>15</TELC:msb>
is added as XE_PMT_FAN1_PWM in enum xe_pmt_sample, and to the table of
each GUID that has it as:
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
The size must match the lsb and msb, or the build fails.
Add xe_pmt_read_sample() to read a sample as defined for the GUID of the
device. A GUID that is not listed uses the latest table of its platform.
The samples are added with their users, at the offsets xe reads them
today, and with a note where the PMT definition of a GUID has another
sample there, so this does not change what is read.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_vsec.c | 134 +++++++++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_vsec.h | 13 ++++
2 files changed, 147 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index cb62179e48c9..136622c2501d 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -753,6 +753,140 @@ int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
return xe_pmt_telem_read(xe->drm.dev, guid, data, offset, count);
}
+/*
+ * PMT telemetry samples, as in the PMT definition of each GUID: the sampleID
+ * of the SampleGroup, and the size, lsb and msb of the sample in it. For
+ * instance, FAN1_PWM in the definition of the BMG PUNIT telemetry:
+ *
+ * <TELEM:SampleGroup name="Container_11" sampleID="11" ...>
+ * ...
+ * <TELC:sample name="FAN1_PWM" ...>
+ * ...
+ * <TELC:size>16</TELC:size>
+ * <TELC:lsb>0</TELC:lsb>
+ * <TELC:msb>15</TELC:msb>
+ *
+ * is XE_PMT_FAN1_PWM in enum xe_pmt_sample, and in the table of each GUID
+ * that has it:
+ *
+ * [XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
+ *
+ * A sample that a GUID does not have is left out, with size 0. A sample that
+ * is read where the definition of a GUID has another one notes it.
+ */
+struct xe_pmt_sample_def {
+ u16 sample_id;
+ u8 size;
+ u8 lsb;
+};
+
+#define XE_PMT_SAMPLE(_id, _size, _lsb, _msb) { \
+ .sample_id = (_id), \
+ .size = (_size) + BUILD_BUG_ON_ZERO((_msb) - (_lsb) + 1 != (_size)), \
+ .lsb = (_lsb), \
+}
+
+/* BMG G21 and G31 PUNIT rev1: BMG/PUNIT/BMG_G2{1,3}/rev1/bmg_punit_aggregator.xml */
+static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
+};
+
+/* BMG G21 and G31 PUNIT rev2: BMG/PUNIT/BMG_G2{1,3}/rev2/bmg_punit_aggregator.xml */
+static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
+};
+
+/* BMG G21 and G31 PUNIT rev3: BMG/PUNIT/BMG_G2{1,3}/rev3/bmg_punit_aggregator.xml */
+static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
+};
+
+/* CRI PUNIT rev0 and rev1: CRI/CRI_X2_PUNIT/rev{0,1}/cri_punit_aggregator.xml */
+static const struct xe_pmt_sample_def cri_punit[XE_PMT_SAMPLE_COUNT] = {
+};
+
+static const struct {
+ u32 guid;
+ const struct xe_pmt_sample_def *samples;
+} xe_pmt_guids[] = {
+ { 0x1e2f8200, bmg_punit_rev1 }, /* BMG G21 PUNIT rev1 */
+ { 0x1e2f8201, bmg_punit_rev2 }, /* BMG G21 PUNIT rev2 */
+ { 0x1e2f8202, bmg_punit_rev3 }, /* BMG G21 PUNIT rev3 */
+ { 0x1e2f8300, bmg_punit_rev1 }, /* BMG G31 PUNIT rev1 */
+ { 0x1e2f8301, bmg_punit_rev2 }, /* BMG G31 PUNIT rev2 */
+ { 0x1e2f8302, bmg_punit_rev3 }, /* BMG G31 PUNIT rev3 */
+ { 0x1e2fa030, cri_punit }, /* CRI PUNIT rev0 */
+ { 0x1e2fa031, cri_punit }, /* CRI PUNIT rev1 */
+};
+
+static const struct xe_pmt_sample_def *
+xe_pmt_sample_def(struct xe_device *xe, u32 guid, enum xe_pmt_sample sample)
+{
+ const struct xe_pmt_sample_def *samples = NULL;
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(xe_pmt_guids); i++) {
+ if (xe_pmt_guids[i].guid == guid) {
+ samples = xe_pmt_guids[i].samples;
+ break;
+ }
+ }
+
+ /* A GUID that is not listed uses the latest table of its platform */
+ if (!samples) {
+ switch (xe->info.platform) {
+ case XE_BATTLEMAGE:
+ samples = bmg_punit_rev3;
+ break;
+ case XE_CRESCENTISLAND:
+ samples = cri_punit;
+ break;
+ default:
+ return NULL;
+ }
+ }
+
+ return samples[sample].size ? &samples[sample] : NULL;
+}
+
+/**
+ * xe_pmt_read_sample - Read a PMT telemetry sample
+ * @xe: valid xe device
+ * @sample: sample to read
+ * @val: returned value of the sample
+ *
+ * Read @sample from the PUNIT telemetry, as defined for the GUID of the
+ * device.
+ *
+ * Return:
+ * * -ENODATA device is not active
+ * * -EINVAL unsupported platform
+ * * -ENOENT the telemetry of the device does not have @sample
+ * * 0 success
+ * * or any error from xe_pmt_read()
+ */
+int xe_pmt_read_sample(struct xe_device *xe, enum xe_pmt_sample sample, u64 *val)
+{
+ const struct xe_pmt_sample_def *def;
+ u64 data;
+ u32 guid;
+ int ret;
+
+ ret = xe_pmt_get_telem_guid(xe, XE_PMT_PUNIT, 0, &guid);
+ if (ret)
+ return ret;
+
+ def = xe_pmt_sample_def(xe, guid, sample);
+ if (!def)
+ return -ENOENT;
+
+ ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, def->sample_id * sizeof(u64), &data,
+ sizeof(data));
+ if (ret != sizeof(data))
+ return ret < 0 ? ret : -EIO;
+
+ *val = (data >> def->lsb) & GENMASK_ULL(def->size - 1, 0);
+
+ return 0;
+}
+
/**
* xe_vsec_init - Initialize resources and add intel_vsec auxiliary
* interface
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 14d57374678f..82f1ccacc89f 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -9,6 +9,18 @@
struct device;
struct xe_device;
+/**
+ * enum xe_pmt_sample - PMT telemetry samples read by xe
+ * @XE_PMT_SAMPLE_COUNT: number of samples
+ *
+ * Each sample is XE_PMT_ and its name in the PMT definition of the PUNIT
+ * telemetry, in upper case, like XE_PMT_FAN1_PWM for FAN1_PWM. The samples are
+ * read with xe_pmt_read_sample().
+ */
+enum xe_pmt_sample {
+ XE_PMT_SAMPLE_COUNT,
+};
+
/**
* enum xe_pmt_record - PMT record a region belongs to
* @XE_PMT_PUNIT: PUNIT
@@ -28,5 +40,6 @@ void xe_vsec_remove(struct xe_device *xe);
int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
u32 offset, u64 *data, u32 count);
+int xe_pmt_read_sample(struct xe_device *xe, enum xe_pmt_sample sample, u64 *val);
#endif
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 08/15] drm/xe/hwmon: Read the BMG energy and fan PWM as PMT samples
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (6 preceding siblings ...)
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 ` Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 09/15] drm/xe/pcode: Read the pcode version as a PMT sample Rodrigo Vivi
` (9 subsequent siblings)
17 siblings, 0 replies; 27+ 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
Read the energy and fan PWM with xe_pmt_read_sample() instead of reading
the qword at a fixed offset and masking it. Add their definitions to the
BMG PUNIT GUIDs, at the offsets read today, and remove the fixed offsets
and masks.
No functional change.
Cc: Karthik Poosa <karthik.poosa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pmt.h | 9 --------
drivers/gpu/drm/xe/xe_hwmon.c | 35 ++++++++++++++++----------------
drivers/gpu/drm/xe/xe_vsec.c | 16 +++++++++++++++
drivers/gpu/drm/xe/xe_vsec.h | 10 +++++++++
4 files changed, 43 insertions(+), 27 deletions(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h b/drivers/gpu/drm/xe/regs/xe_pmt.h
index bf4c3959a91f..4e6f659150b1 100644
--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
@@ -11,15 +11,6 @@
#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
/* PMT telemetry sample offsets, see xe_pmt_read() */
-#define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
-#define ENERGY_PKG REG_GENMASK64(31, 0)
-#define ENERGY_CARD REG_GENMASK64(63, 32)
-
-#define BMG_FAN_PWM_PMT_OFFSET (0x58)
-#define BMG_FAN1_PWM REG_GENMASK64(15, 0)
-#define BMG_FAN2_PWM REG_GENMASK64(31, 16)
-#define BMG_FAN3_PWM REG_GENMASK64(47, 32)
-
#define PUNIT_VERSION_OFFSET 0xA0
#define XE_PMT_BASE_OFFSET 0xE0000
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index e7406337e39e..620e1c59c55b 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -806,18 +806,16 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
if (hwmon->xe->info.platform == XE_BATTLEMAGE) {
u64 pmt_val;
- ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_ENERGY_STATUS_PMT_OFFSET,
- &pmt_val, sizeof(pmt_val));
- if (ret != sizeof(pmt_val)) {
+ ret = xe_pmt_read_sample(hwmon->xe, channel == CHANNEL_PKG ?
+ XE_PMT_ACCUM_PACKAGE_ENERGY :
+ XE_PMT_ACCUM_PSYS_ENERGY, &pmt_val);
+ if (ret) {
drm_warn(&hwmon->xe->drm, "energy read from pmt failed, ret %d\n", ret);
*energy = 0;
- return ret < 0 ? ret : -EIO;
+ return ret;
}
- if (channel == CHANNEL_PKG)
- reg_val = REG_FIELD_GET64(ENERGY_PKG, pmt_val);
- else
- reg_val = REG_FIELD_GET64(ENERGY_CARD, pmt_val);
+ reg_val = pmt_val;
} else {
reg_val = xe_mmio_read32(mmio, xe_hwmon_get_reg(hwmon, REG_PKG_ENERGY_STATUS,
channel));
@@ -2625,6 +2623,7 @@ static int xe_hwmon_get_active_table_pwm(struct xe_hwmon *hwmon, int channel, lo
*/
static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int channel, long *val)
{
+ enum xe_pmt_sample sample;
u64 pmt_val;
u32 pwm;
int ret;
@@ -2634,27 +2633,27 @@ static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int channel, long *
if (hwmon->xe->info.platform != XE_BATTLEMAGE)
return -EOPNOTSUPP;
- ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_FAN_PWM_PMT_OFFSET,
- &pmt_val, sizeof(pmt_val));
- if (ret != sizeof(pmt_val)) {
- xe_warn(hwmon->xe, "pwm read from PMT failed: %d\n", ret);
- return ret < 0 ? ret : -EIO;
- }
-
switch (channel) {
case FAN_1:
- pwm = REG_FIELD_GET64(BMG_FAN1_PWM, pmt_val);
+ sample = XE_PMT_FAN1_PWM;
break;
case FAN_2:
- pwm = REG_FIELD_GET64(BMG_FAN2_PWM, pmt_val);
+ sample = XE_PMT_FAN2_PWM;
break;
case FAN_3:
- pwm = REG_FIELD_GET64(BMG_FAN3_PWM, pmt_val);
+ sample = XE_PMT_FAN3_PWM;
break;
default:
return -EOPNOTSUPP;
}
+ ret = xe_pmt_read_sample(hwmon->xe, sample, &pmt_val);
+ if (ret) {
+ xe_warn(hwmon->xe, "pwm read from PMT failed: %d\n", ret);
+ return ret;
+ }
+
+ pwm = pmt_val;
xe_dbg(hwmon->xe, "fan %d: active pwm from PMT: %u\n", channel, pwm);
*val = pwm;
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 136622c2501d..7ff64fee320d 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -788,14 +788,30 @@ struct xe_pmt_sample_def {
/* BMG G21 and G31 PUNIT rev1: BMG/PUNIT/BMG_G2{1,3}/rev1/bmg_punit_aggregator.xml */
static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
+ /* Not in this revision, which has the ADM_* samples there */
+ [XE_PMT_ACCUM_PACKAGE_ENERGY] = XE_PMT_SAMPLE(6, 32, 0, 31),
+ [XE_PMT_ACCUM_PSYS_ENERGY] = XE_PMT_SAMPLE(6, 32, 32, 63),
+ [XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
+ [XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
+ [XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
};
/* BMG G21 and G31 PUNIT rev2: BMG/PUNIT/BMG_G2{1,3}/rev2/bmg_punit_aggregator.xml */
static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
+ [XE_PMT_ACCUM_PACKAGE_ENERGY] = XE_PMT_SAMPLE(6, 32, 0, 31),
+ [XE_PMT_ACCUM_PSYS_ENERGY] = XE_PMT_SAMPLE(6, 32, 32, 63),
+ [XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
+ [XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
+ [XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
};
/* BMG G21 and G31 PUNIT rev3: BMG/PUNIT/BMG_G2{1,3}/rev3/bmg_punit_aggregator.xml */
static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
+ [XE_PMT_ACCUM_PACKAGE_ENERGY] = XE_PMT_SAMPLE(6, 32, 0, 31),
+ [XE_PMT_ACCUM_PSYS_ENERGY] = XE_PMT_SAMPLE(6, 32, 32, 63),
+ [XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
+ [XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
+ [XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
};
/* CRI PUNIT rev0 and rev1: CRI/CRI_X2_PUNIT/rev{0,1}/cri_punit_aggregator.xml */
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 82f1ccacc89f..68ceb804096f 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -11,6 +11,11 @@ struct xe_device;
/**
* enum xe_pmt_sample - PMT telemetry samples read by xe
+ * @XE_PMT_ACCUM_PACKAGE_ENERGY: package energy
+ * @XE_PMT_ACCUM_PSYS_ENERGY: card energy
+ * @XE_PMT_FAN1_PWM: PWM of fan 1
+ * @XE_PMT_FAN2_PWM: PWM of fan 2
+ * @XE_PMT_FAN3_PWM: PWM of fan 3
* @XE_PMT_SAMPLE_COUNT: number of samples
*
* Each sample is XE_PMT_ and its name in the PMT definition of the PUNIT
@@ -18,6 +23,11 @@ struct xe_device;
* read with xe_pmt_read_sample().
*/
enum xe_pmt_sample {
+ XE_PMT_ACCUM_PACKAGE_ENERGY,
+ XE_PMT_ACCUM_PSYS_ENERGY,
+ XE_PMT_FAN1_PWM,
+ XE_PMT_FAN2_PWM,
+ XE_PMT_FAN3_PWM,
XE_PMT_SAMPLE_COUNT,
};
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 09/15] drm/xe/pcode: Read the pcode version as a PMT sample
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (7 preceding siblings ...)
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 ` Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 10/15] drm/xe/debugfs: Read the residencies as PMT samples Rodrigo Vivi
` (8 subsequent siblings)
17 siblings, 0 replies; 27+ 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
Read the pcode version with xe_pmt_read_sample() instead of reading it at
a fixed offset. Add its definition to the PUNIT GUIDs, as the whole
SampleGroup read today, and remove the fixed offset.
No functional change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pmt.h | 4 +---
drivers/gpu/drm/xe/xe_pcode.c | 11 +++++++----
drivers/gpu/drm/xe/xe_vsec.c | 8 ++++++++
drivers/gpu/drm/xe/xe_vsec.h | 2 ++
4 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h b/drivers/gpu/drm/xe/regs/xe_pmt.h
index 4e6f659150b1..b9e2edb38a50 100644
--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
@@ -10,9 +10,6 @@
#define BMG_PMT_BASE_OFFSET 0xDB000
#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
-/* PMT telemetry sample offsets, see xe_pmt_read() */
-#define PUNIT_VERSION_OFFSET 0xA0
-
#define XE_PMT_BASE_OFFSET 0xE0000
#define BMG_TELEMETRY_OFFSET (SOC_BASE + XE_PMT_BASE_OFFSET)
@@ -20,6 +17,7 @@
/* for CRI discovery and telemetry are in an indexed window */
#define CRI_PMT_OFFSET (SOC_BASE + XE_PMT_BASE_OFFSET)
+/* PMT telemetry sample offsets, see xe_pmt_read() */
#define BMG_MODS_RESIDENCY_OFFSET (0x4D0)
#define BMG_G2_RESIDENCY_OFFSET (0x530)
#define BMG_G6_RESIDENCY_OFFSET (0x538)
diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
index 7d4901780d7f..58f9044ab1e8 100644
--- a/drivers/gpu/drm/xe/xe_pcode.c
+++ b/drivers/gpu/drm/xe/xe_pcode.c
@@ -413,16 +413,19 @@ ALLOW_ERROR_INJECTION(xe_pcode_probe_early, ERRNO); /* See xe_pci_probe */
*/
int xe_get_pcode_version(struct xe_device *xe, struct xe_pcode_version *version)
{
- int ret = 0;
+ u64 val;
+ int ret;
+
+ BUILD_BUG_ON(sizeof(*version) != sizeof(val));
guard(xe_pm_runtime)(xe);
- ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, PUNIT_VERSION_OFFSET,
- (u64 *)version, sizeof(*version));
- if (ret != sizeof(*version)) {
+ ret = xe_pmt_read_sample(xe, XE_PMT_PUNIT_VERSION, &val);
+ if (ret) {
xe_warn(xe, "pcode version read from PMT failed, ret %pe\n", ERR_PTR(ret));
return ret;
}
+ memcpy(version, &val, sizeof(*version));
xe_dbg(xe, "pcode version major %u minor %u engg %u\n", version->major,
version->minor, version->engg);
return 0;
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 7ff64fee320d..98d76a8eef65 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -794,6 +794,8 @@ static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
+ /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
+ [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
};
/* BMG G21 and G31 PUNIT rev2: BMG/PUNIT/BMG_G2{1,3}/rev2/bmg_punit_aggregator.xml */
@@ -803,6 +805,8 @@ static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
+ /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
+ [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
};
/* BMG G21 and G31 PUNIT rev3: BMG/PUNIT/BMG_G2{1,3}/rev3/bmg_punit_aggregator.xml */
@@ -812,10 +816,14 @@ static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
+ /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
+ [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
};
/* CRI PUNIT rev0 and rev1: CRI/CRI_X2_PUNIT/rev{0,1}/cri_punit_aggregator.xml */
static const struct xe_pmt_sample_def cri_punit[XE_PMT_SAMPLE_COUNT] = {
+ /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
+ [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
};
static const struct {
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 68ceb804096f..80f3117a27fa 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -16,6 +16,7 @@ struct xe_device;
* @XE_PMT_FAN1_PWM: PWM of fan 1
* @XE_PMT_FAN2_PWM: PWM of fan 2
* @XE_PMT_FAN3_PWM: PWM of fan 3
+ * @XE_PMT_PUNIT_VERSION: PUNIT firmware version, as struct xe_pcode_version
* @XE_PMT_SAMPLE_COUNT: number of samples
*
* Each sample is XE_PMT_ and its name in the PMT definition of the PUNIT
@@ -28,6 +29,7 @@ enum xe_pmt_sample {
XE_PMT_FAN1_PWM,
XE_PMT_FAN2_PWM,
XE_PMT_FAN3_PWM,
+ XE_PMT_PUNIT_VERSION,
XE_PMT_SAMPLE_COUNT,
};
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 10/15] drm/xe/debugfs: Read the residencies as PMT samples
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (8 preceding siblings ...)
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 ` Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 11/15] drm/xe/vsec: Make xe_pmt_read() static Rodrigo Vivi
` (7 subsequent siblings)
17 siblings, 0 replies; 27+ 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
Read the package and PCIe link residencies with xe_pmt_read_sample()
instead of reading them at fixed offsets. Add their definitions to the
PUNIT GUIDs, at the offsets read today, and remove the fixed offsets.
No functional change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pmt.h | 12 ----------
drivers/gpu/drm/xe/xe_debugfs.c | 34 ++++++++++++++--------------
drivers/gpu/drm/xe/xe_vsec.c | 39 ++++++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_vsec.h | 18 +++++++++++++++
4 files changed, 74 insertions(+), 29 deletions(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h b/drivers/gpu/drm/xe/regs/xe_pmt.h
index b9e2edb38a50..a736146edf90 100644
--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
@@ -17,16 +17,4 @@
/* for CRI discovery and telemetry are in an indexed window */
#define CRI_PMT_OFFSET (SOC_BASE + XE_PMT_BASE_OFFSET)
-/* PMT telemetry sample offsets, see xe_pmt_read() */
-#define BMG_MODS_RESIDENCY_OFFSET (0x4D0)
-#define BMG_G2_RESIDENCY_OFFSET (0x530)
-#define BMG_G6_RESIDENCY_OFFSET (0x538)
-#define BMG_G7_RESIDENCY_OFFSET (0x4B0)
-#define BMG_G8_RESIDENCY_OFFSET (0x540)
-#define BMG_G10_RESIDENCY_OFFSET (0x548)
-
-#define BMG_PCIE_LINK_L0_RESIDENCY_OFFSET (0x570)
-#define BMG_PCIE_LINK_L1_RESIDENCY_OFFSET (0x578)
-#define BMG_PCIE_LINK_L1_2_RESIDENCY_OFFSET (0x580)
-
#endif
diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 8b7f6d3d7cd0..174e2893b038 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -149,14 +149,14 @@ static void xe_fault_inject_debugfs_register(struct xe_device *xe,
}
}
-static void read_residency_counter(struct xe_device *xe, u32 offset, const char *name,
- struct drm_printer *p)
+static void read_residency_counter(struct xe_device *xe, enum xe_pmt_sample sample,
+ const char *name, struct drm_printer *p)
{
u64 residency = 0;
int ret;
- ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, offset, &residency, sizeof(residency));
- if (ret != sizeof(residency)) {
+ ret = xe_pmt_read_sample(xe, sample, &residency);
+ if (ret) {
drm_warn(&xe->drm, "%s counter failed to read, ret %d\n", name, ret);
return;
}
@@ -301,19 +301,19 @@ static int dgfx_pkg_residencies_show(struct seq_file *m, void *data)
guard(xe_pm_runtime)(xe);
static const struct {
- u32 offset;
+ enum xe_pmt_sample sample;
const char *name;
} residencies[] = {
- {BMG_G2_RESIDENCY_OFFSET, "Package G2"},
- {BMG_G6_RESIDENCY_OFFSET, "Package G6"},
- {BMG_G7_RESIDENCY_OFFSET, "Package G7"},
- {BMG_G8_RESIDENCY_OFFSET, "Package G8"},
- {BMG_G10_RESIDENCY_OFFSET, "Package G10"},
- {BMG_MODS_RESIDENCY_OFFSET, "Package ModS"}
+ {XE_PMT_G2_RESIDENCY, "Package G2"},
+ {XE_PMT_G6_RESIDENCY, "Package G6"},
+ {XE_PMT_G7_RESIDENCY, "Package G7"},
+ {XE_PMT_G8_RESIDENCY, "Package G8"},
+ {XE_PMT_G10_RESIDENCY, "Package G10"},
+ {XE_PMT_MODS_RESIDENCY, "Package ModS"}
};
for (int i = 0; i < ARRAY_SIZE(residencies); i++)
- read_residency_counter(xe, residencies[i].offset, residencies[i].name, &p);
+ read_residency_counter(xe, residencies[i].sample, residencies[i].name, &p);
return 0;
}
@@ -328,16 +328,16 @@ static int dgfx_pcie_link_residencies_show(struct seq_file *m, void *data)
guard(xe_pm_runtime)(xe);
static const struct {
- u32 offset;
+ enum xe_pmt_sample sample;
const char *name;
} residencies[] = {
- {BMG_PCIE_LINK_L0_RESIDENCY_OFFSET, "PCIE LINK L0 RESIDENCY"},
- {BMG_PCIE_LINK_L1_RESIDENCY_OFFSET, "PCIE LINK L1 RESIDENCY"},
- {BMG_PCIE_LINK_L1_2_RESIDENCY_OFFSET, "PCIE LINK L1.2 RESIDENCY"}
+ {XE_PMT_PCIE_LINK_L0_RESIDENCY, "PCIE LINK L0 RESIDENCY"},
+ {XE_PMT_PCIE_LINK_L1_RESIDENCY, "PCIE LINK L1 RESIDENCY"},
+ {XE_PMT_PCIE_LINK_L1_2_RESIDENCY, "PCIE LINK L1.2 RESIDENCY"}
};
for (int i = 0; i < ARRAY_SIZE(residencies); i++)
- read_residency_counter(xe, residencies[i].offset, residencies[i].name, &p);
+ read_residency_counter(xe, residencies[i].sample, residencies[i].name, &p);
return 0;
}
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 98d76a8eef65..82b9f356bd7d 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -796,6 +796,16 @@ static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
/* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
+ [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
+ /* ADM_C6_RESIDENCY in this revision */
+ [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
+ [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
+ [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
+ [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(174, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(175, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(176, 64, 0, 63),
};
/* BMG G21 and G31 PUNIT rev2: BMG/PUNIT/BMG_G2{1,3}/rev2/bmg_punit_aggregator.xml */
@@ -807,6 +817,16 @@ static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
/* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
+ [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
+ /* ADM_C6_RESIDENCY in this revision */
+ [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
+ [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
+ [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
+ [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(174, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(175, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(176, 64, 0, 63),
};
/* BMG G21 and G31 PUNIT rev3: BMG/PUNIT/BMG_G2{1,3}/rev3/bmg_punit_aggregator.xml */
@@ -818,12 +838,31 @@ static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
/* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
+ [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
+ [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
+ [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
+ [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
+ [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(174, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(175, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(176, 64, 0, 63),
};
/* CRI PUNIT rev0 and rev1: CRI/CRI_X2_PUNIT/rev{0,1}/cri_punit_aggregator.xml */
static const struct xe_pmt_sample_def cri_punit[XE_PMT_SAMPLE_COUNT] = {
/* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ /* The BMG offsets, not the ones of this revision */
+ [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
+ [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
+ [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
+ [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
+ [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
+ [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(174, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(175, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(176, 64, 0, 63),
};
static const struct {
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 80f3117a27fa..1b595646f3bb 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -17,6 +17,15 @@ struct xe_device;
* @XE_PMT_FAN2_PWM: PWM of fan 2
* @XE_PMT_FAN3_PWM: PWM of fan 3
* @XE_PMT_PUNIT_VERSION: PUNIT firmware version, as struct xe_pcode_version
+ * @XE_PMT_G2_RESIDENCY: package G2 residency
+ * @XE_PMT_G6_RESIDENCY: package G6 residency
+ * @XE_PMT_G7_RESIDENCY: package G7 residency
+ * @XE_PMT_G8_RESIDENCY: package G8 residency
+ * @XE_PMT_G10_RESIDENCY: package G10 residency
+ * @XE_PMT_MODS_RESIDENCY: package ModS residency, ModS_RESIDENCY
+ * @XE_PMT_PCIE_LINK_L0_RESIDENCY: PCIe link L0 residency
+ * @XE_PMT_PCIE_LINK_L1_RESIDENCY: PCIe link L1 residency
+ * @XE_PMT_PCIE_LINK_L1_2_RESIDENCY: PCIe link L1.2 residency
* @XE_PMT_SAMPLE_COUNT: number of samples
*
* Each sample is XE_PMT_ and its name in the PMT definition of the PUNIT
@@ -30,6 +39,15 @@ enum xe_pmt_sample {
XE_PMT_FAN2_PWM,
XE_PMT_FAN3_PWM,
XE_PMT_PUNIT_VERSION,
+ XE_PMT_G2_RESIDENCY,
+ XE_PMT_G6_RESIDENCY,
+ XE_PMT_G7_RESIDENCY,
+ XE_PMT_G8_RESIDENCY,
+ XE_PMT_G10_RESIDENCY,
+ XE_PMT_MODS_RESIDENCY,
+ XE_PMT_PCIE_LINK_L0_RESIDENCY,
+ XE_PMT_PCIE_LINK_L1_RESIDENCY,
+ XE_PMT_PCIE_LINK_L1_2_RESIDENCY,
XE_PMT_SAMPLE_COUNT,
};
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 11/15] drm/xe/vsec: Make xe_pmt_read() static
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (9 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 10/15] drm/xe/debugfs: Read the residencies as PMT samples Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (6 subsequent siblings)
17 siblings, 0 replies; 27+ 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
xe_pmt_read_sample() is now the only user of xe_pmt_read(), so make it
static.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_vsec.c | 4 ++--
drivers/gpu/drm/xe/xe_vsec.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 82b9f356bd7d..2d3e05527f30 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -740,8 +740,8 @@ static int xe_pmt_get_telem_guid(struct xe_device *xe, enum xe_pmt_record record
* * count number of bytes read on success
* * or any error from xe_pmt_telem_read()
*/
-int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
- u32 offset, u64 *data, u32 count)
+static int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
+ u32 offset, u64 *data, u32 count)
{
u32 guid;
int ret;
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index 1b595646f3bb..dea53a646bfd 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -68,8 +68,6 @@ enum xe_pmt_record {
void xe_vsec_init(struct xe_device *xe);
void xe_vsec_remove(struct xe_device *xe);
int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t user_offset, u32 count);
-int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 instance,
- u32 offset, u64 *data, u32 count);
int xe_pmt_read_sample(struct xe_device *xe, enum xe_pmt_sample sample, u64 *val);
#endif
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 12/15] drm/xe/hwmon: Do not read the BMG energy where the PMT telemetry has none
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (10 preceding siblings ...)
2026-12-03 20:10 ` [PATCH 11/15] drm/xe/vsec: Make xe_pmt_read() static Rodrigo Vivi
@ 2026-12-03 20:10 ` 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
` (5 subsequent siblings)
17 siblings, 0 replies; 27+ 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 first BMG PUNIT telemetry, GUIDs 0x1e2f8200 and 0x1e2f8300, has no
energy samples: where the energy is read, it has ADM_FREQUENCY and other
ADM samples. The energy attributes are only hidden there because those
samples happen to read as 0 at probe, and would show them otherwise.
Leave the energy out of the definition of that telemetry, so the energy
read returns -ENOENT there, and do not warn about it.
Behavior change: on BMG with the first PUNIT telemetry, the energy
attributes are never shown, instead of being shown if the ADM samples
read as other than 0 at probe. Nothing changes on the other BMG GUIDs,
where the energy is defined.
Cc: Karthik Poosa <karthik.poosa@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 5 ++++-
drivers/gpu/drm/xe/xe_vsec.c | 3 ---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 620e1c59c55b..81d8305f4866 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -810,7 +810,10 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
XE_PMT_ACCUM_PACKAGE_ENERGY :
XE_PMT_ACCUM_PSYS_ENERGY, &pmt_val);
if (ret) {
- drm_warn(&hwmon->xe->drm, "energy read from pmt failed, ret %d\n", ret);
+ /* -ENOENT: the PMT telemetry of the device has no energy */
+ if (ret != -ENOENT)
+ drm_warn(&hwmon->xe->drm, "energy read from pmt failed, ret %d\n",
+ ret);
*energy = 0;
return ret;
}
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 2d3e05527f30..119a8194548c 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -788,9 +788,6 @@ struct xe_pmt_sample_def {
/* BMG G21 and G31 PUNIT rev1: BMG/PUNIT/BMG_G2{1,3}/rev1/bmg_punit_aggregator.xml */
static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
- /* Not in this revision, which has the ADM_* samples there */
- [XE_PMT_ACCUM_PACKAGE_ENERGY] = XE_PMT_SAMPLE(6, 32, 0, 31),
- [XE_PMT_ACCUM_PSYS_ENERGY] = XE_PMT_SAMPLE(6, 32, 32, 63),
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 13/15] drm/xe/debugfs: Only show the BMG G7 residency where the PMT telemetry has it
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (11 preceding siblings ...)
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 ` 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
` (4 subsequent siblings)
17 siblings, 0 replies; 27+ 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 G7 residency is only in the third BMG PUNIT telemetry, GUIDs
0x1e2f8202 and 0x1e2f8302. On the first two, where the G7 residency is
read, the PMT telemetry has ADM_C6_RESIDENCY instead.
Leave the G7 residency out of the definition of the first two, and leave
out of the residencies in debugfs the ones the telemetry of the device
does not have.
Behavior change: on BMG with the first or second PUNIT telemetry,
dgfx_pkg_residencies no longer has a "Package G7" line, which showed the
ADM C6 residency. Nothing changes with the third one.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_debugfs.c | 2 ++
drivers/gpu/drm/xe/xe_vsec.c | 4 ----
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 174e2893b038..d06b008ec89d 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -156,6 +156,8 @@ static void read_residency_counter(struct xe_device *xe, enum xe_pmt_sample samp
int ret;
ret = xe_pmt_read_sample(xe, sample, &residency);
+ if (ret == -ENOENT) /* not in the PMT telemetry of the device */
+ return;
if (ret) {
drm_warn(&xe->drm, "%s counter failed to read, ret %d\n", name, ret);
return;
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 119a8194548c..6db8733bef83 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -795,8 +795,6 @@ static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
- /* ADM_C6_RESIDENCY in this revision */
- [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
[XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
[XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
[XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
@@ -816,8 +814,6 @@ static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
- /* ADM_C6_RESIDENCY in this revision */
- [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
[XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
[XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
[XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 14/15] drm/xe/pcode: Read the pcode version as defined in the PMT telemetry
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (12 preceding siblings ...)
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 ` Rodrigo Vivi
2026-12-03 20:10 ` [PATCH 15/15] drm/xe/debugfs: Read the CRI residencies at their offsets Rodrigo Vivi
` (3 subsequent siblings)
17 siblings, 0 replies; 27+ 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 pcode version is read by copying its whole SampleGroup into struct
xe_pcode_version, which takes bits 31:16 as the major version. In the PMT
telemetry, those bits have PLATFORM_VERSION and STEPPING_VERSION, and only
bits 31:24 are MAJOR_VERSION.
Read the MINOR_VERSION, MAJOR_VERSION and ENGINEERING_VERSION samples
instead.
Behavior change: the major version in debugfs pcode_info and in the pcode
version debug message is now MAJOR_VERSION, like 1 where it showed 273,
0x111, with PLATFORM_VERSION and STEPPING_VERSION 1. The minor and
engineering versions do not change.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_pcode.c | 15 ++++++++++-----
drivers/gpu/drm/xe/xe_vsec.c | 20 ++++++++++++--------
drivers/gpu/drm/xe/xe_vsec.h | 8 ++++++--
3 files changed, 28 insertions(+), 15 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
index 58f9044ab1e8..29d0ba3232ba 100644
--- a/drivers/gpu/drm/xe/xe_pcode.c
+++ b/drivers/gpu/drm/xe/xe_pcode.c
@@ -413,19 +413,24 @@ ALLOW_ERROR_INJECTION(xe_pcode_probe_early, ERRNO); /* See xe_pci_probe */
*/
int xe_get_pcode_version(struct xe_device *xe, struct xe_pcode_version *version)
{
- u64 val;
+ u64 minor, major, engg;
int ret;
- BUILD_BUG_ON(sizeof(*version) != sizeof(val));
-
guard(xe_pm_runtime)(xe);
- ret = xe_pmt_read_sample(xe, XE_PMT_PUNIT_VERSION, &val);
+ ret = xe_pmt_read_sample(xe, XE_PMT_MINOR_VERSION, &minor);
+ if (!ret)
+ ret = xe_pmt_read_sample(xe, XE_PMT_MAJOR_VERSION, &major);
+ if (!ret)
+ ret = xe_pmt_read_sample(xe, XE_PMT_ENGINEERING_VERSION, &engg);
if (ret) {
xe_warn(xe, "pcode version read from PMT failed, ret %pe\n", ERR_PTR(ret));
return ret;
}
- memcpy(version, &val, sizeof(*version));
+
+ version->minor = minor;
+ version->major = major;
+ version->engg = engg;
xe_dbg(xe, "pcode version major %u minor %u engg %u\n", version->major,
version->minor, version->engg);
return 0;
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 6db8733bef83..485cdc625517 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -791,8 +791,9 @@ static const struct xe_pmt_sample_def bmg_punit_rev1[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
- /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
- [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_MINOR_VERSION] = XE_PMT_SAMPLE(20, 16, 0, 15),
+ [XE_PMT_MAJOR_VERSION] = XE_PMT_SAMPLE(20, 8, 24, 31),
+ [XE_PMT_ENGINEERING_VERSION] = XE_PMT_SAMPLE(20, 32, 32, 63),
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
[XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
@@ -810,8 +811,9 @@ static const struct xe_pmt_sample_def bmg_punit_rev2[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
- /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
- [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_MINOR_VERSION] = XE_PMT_SAMPLE(20, 16, 0, 15),
+ [XE_PMT_MAJOR_VERSION] = XE_PMT_SAMPLE(20, 8, 24, 31),
+ [XE_PMT_ENGINEERING_VERSION] = XE_PMT_SAMPLE(20, 32, 32, 63),
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
[XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
@@ -829,8 +831,9 @@ static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
[XE_PMT_FAN2_PWM] = XE_PMT_SAMPLE(11, 16, 16, 31),
[XE_PMT_FAN3_PWM] = XE_PMT_SAMPLE(11, 16, 32, 47),
- /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
- [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_MINOR_VERSION] = XE_PMT_SAMPLE(20, 16, 0, 15),
+ [XE_PMT_MAJOR_VERSION] = XE_PMT_SAMPLE(20, 8, 24, 31),
+ [XE_PMT_ENGINEERING_VERSION] = XE_PMT_SAMPLE(20, 32, 32, 63),
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
[XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
@@ -844,8 +847,9 @@ static const struct xe_pmt_sample_def bmg_punit_rev3[XE_PMT_SAMPLE_COUNT] = {
/* CRI PUNIT rev0 and rev1: CRI/CRI_X2_PUNIT/rev{0,1}/cri_punit_aggregator.xml */
static const struct xe_pmt_sample_def cri_punit[XE_PMT_SAMPLE_COUNT] = {
- /* The whole SampleGroup, MINOR_VERSION to ENGINEERING_VERSION */
- [XE_PMT_PUNIT_VERSION] = XE_PMT_SAMPLE(20, 64, 0, 63),
+ [XE_PMT_MINOR_VERSION] = XE_PMT_SAMPLE(20, 16, 0, 15),
+ [XE_PMT_MAJOR_VERSION] = XE_PMT_SAMPLE(20, 8, 24, 31),
+ [XE_PMT_ENGINEERING_VERSION] = XE_PMT_SAMPLE(20, 32, 32, 63),
/* The BMG offsets, not the ones of this revision */
[XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
[XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
index dea53a646bfd..f761f3a37eb3 100644
--- a/drivers/gpu/drm/xe/xe_vsec.h
+++ b/drivers/gpu/drm/xe/xe_vsec.h
@@ -16,7 +16,9 @@ struct xe_device;
* @XE_PMT_FAN1_PWM: PWM of fan 1
* @XE_PMT_FAN2_PWM: PWM of fan 2
* @XE_PMT_FAN3_PWM: PWM of fan 3
- * @XE_PMT_PUNIT_VERSION: PUNIT firmware version, as struct xe_pcode_version
+ * @XE_PMT_MINOR_VERSION: PUNIT firmware minor version
+ * @XE_PMT_MAJOR_VERSION: PUNIT firmware major version
+ * @XE_PMT_ENGINEERING_VERSION: PUNIT firmware engineering version
* @XE_PMT_G2_RESIDENCY: package G2 residency
* @XE_PMT_G6_RESIDENCY: package G6 residency
* @XE_PMT_G7_RESIDENCY: package G7 residency
@@ -38,7 +40,9 @@ enum xe_pmt_sample {
XE_PMT_FAN1_PWM,
XE_PMT_FAN2_PWM,
XE_PMT_FAN3_PWM,
- XE_PMT_PUNIT_VERSION,
+ XE_PMT_MINOR_VERSION,
+ XE_PMT_MAJOR_VERSION,
+ XE_PMT_ENGINEERING_VERSION,
XE_PMT_G2_RESIDENCY,
XE_PMT_G6_RESIDENCY,
XE_PMT_G7_RESIDENCY,
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH 15/15] drm/xe/debugfs: Read the CRI residencies at their offsets
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (13 preceding siblings ...)
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 ` Rodrigo Vivi
2026-12-03 20:19 ` ✗ CI.checkpatch: warning for drm/xe: Read the PMT telemetry samples as defined per GUID Patchwork
` (2 subsequent siblings)
17 siblings, 0 replies; 27+ 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 package and PCIe link residencies are read at the BMG offsets on CRI
too. In the CRI PUNIT telemetry, GUIDs 0x1e2fa030 and 0x1e2fa031, they are
at other offsets, and most of the BMG ones are past its end.
Define the CRI residencies at their offsets in the CRI PUNIT telemetry.
Behavior change: on CRI, dgfx_pkg_residencies and
dgfx_pcie_link_residencies show the residencies, instead of what was read
at the BMG offsets. Nothing changes on BMG.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_vsec.c | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
index 485cdc625517..ad0e9d27c6b8 100644
--- a/drivers/gpu/drm/xe/xe_vsec.c
+++ b/drivers/gpu/drm/xe/xe_vsec.c
@@ -771,8 +771,7 @@ static int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32 inst
*
* [XE_PMT_FAN1_PWM] = XE_PMT_SAMPLE(11, 16, 0, 15),
*
- * A sample that a GUID does not have is left out, with size 0. A sample that
- * is read where the definition of a GUID has another one notes it.
+ * A sample that a GUID does not have is left out, with size 0.
*/
struct xe_pmt_sample_def {
u16 sample_id;
@@ -850,16 +849,15 @@ static const struct xe_pmt_sample_def cri_punit[XE_PMT_SAMPLE_COUNT] = {
[XE_PMT_MINOR_VERSION] = XE_PMT_SAMPLE(20, 16, 0, 15),
[XE_PMT_MAJOR_VERSION] = XE_PMT_SAMPLE(20, 8, 24, 31),
[XE_PMT_ENGINEERING_VERSION] = XE_PMT_SAMPLE(20, 32, 32, 63),
- /* The BMG offsets, not the ones of this revision */
- [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(166, 64, 0, 63),
- [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(167, 64, 0, 63),
- [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(150, 64, 0, 63),
- [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(168, 64, 0, 63),
- [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(169, 64, 0, 63),
- [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(154, 64, 0, 63),
- [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(174, 64, 0, 63),
- [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(175, 64, 0, 63),
- [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(176, 64, 0, 63),
+ [XE_PMT_G2_RESIDENCY] = XE_PMT_SAMPLE(102, 64, 0, 63),
+ [XE_PMT_G6_RESIDENCY] = XE_PMT_SAMPLE(103, 64, 0, 63),
+ [XE_PMT_G7_RESIDENCY] = XE_PMT_SAMPLE(86, 64, 0, 63),
+ [XE_PMT_G8_RESIDENCY] = XE_PMT_SAMPLE(104, 64, 0, 63),
+ [XE_PMT_G10_RESIDENCY] = XE_PMT_SAMPLE(105, 64, 0, 63),
+ [XE_PMT_MODS_RESIDENCY] = XE_PMT_SAMPLE(90, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L0_RESIDENCY] = XE_PMT_SAMPLE(110, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_RESIDENCY] = XE_PMT_SAMPLE(111, 64, 0, 63),
+ [XE_PMT_PCIE_LINK_L1_2_RESIDENCY] = XE_PMT_SAMPLE(112, 64, 0, 63),
};
static const struct {
--
2.56.0
^ permalink raw reply related [flat|nested] 27+ messages in thread
* ✗ CI.checkpatch: warning for drm/xe: Read the PMT telemetry samples as defined per GUID
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (14 preceding siblings ...)
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 ` Patchwork
2026-12-03 20:21 ` ✓ CI.KUnit: success " Patchwork
2026-12-03 20:56 ` ✓ Xe.CI.BAT: " Patchwork
17 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-12-03 20:19 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Read the PMT telemetry samples as defined per GUID
URL : https://patchwork.freedesktop.org/series/180463/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
3009867cd31863246e4afc138520a7a8bd37bb11
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 15fcc122869f9556945670178e6f6c0f33fbf089
Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
Date: Thu Dec 3 15:10:19 2026 -0500
drm/xe/debugfs: Read the CRI residencies at their offsets
The package and PCIe link residencies are read at the BMG offsets on CRI
too. In the CRI PUNIT telemetry, GUIDs 0x1e2fa030 and 0x1e2fa031, they are
at other offsets, and most of the BMG ones are past its end.
Define the CRI residencies at their offsets in the CRI PUNIT telemetry.
Behavior change: on CRI, dgfx_pkg_residencies and
dgfx_pcie_link_residencies show the residencies, instead of what was read
at the BMG offsets. Nothing changes on BMG.
Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
+ /mt/dim checkpatch eb69f50b19853224b27973de6286c9abf9f928af drm-intel
7cf8fabed43e drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
372033381e2b drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region
2a20d920adcc drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry
7bb9a6361be2 drm/xe/pcode: Use xe_pmt_read() for the pcode version
cb9d8791b380 drm/xe/debugfs: Use xe_pmt_read() for the residencies
56f60e31e047 drm/xe/vsec: Remove xe_vsec_get_guid()
18caed920896 drm/xe/vsec: Add the PMT telemetry samples per GUID
-:76: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_size' - possible side-effects?
#76: FILE: drivers/gpu/drm/xe/xe_vsec.c:783:
+#define XE_PMT_SAMPLE(_id, _size, _lsb, _msb) { \
+ .sample_id = (_id), \
+ .size = (_size) + BUILD_BUG_ON_ZERO((_msb) - (_lsb) + 1 != (_size)), \
+ .lsb = (_lsb), \
+}
-:76: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_lsb' - possible side-effects?
#76: FILE: drivers/gpu/drm/xe/xe_vsec.c:783:
+#define XE_PMT_SAMPLE(_id, _size, _lsb, _msb) { \
+ .sample_id = (_id), \
+ .size = (_size) + BUILD_BUG_ON_ZERO((_msb) - (_lsb) + 1 != (_size)), \
+ .lsb = (_lsb), \
+}
total: 0 errors, 0 warnings, 2 checks, 164 lines checked
8935597b56cb drm/xe/hwmon: Read the BMG energy and fan PWM as PMT samples
295a08053781 drm/xe/pcode: Read the pcode version as a PMT sample
08ceae00fb20 drm/xe/debugfs: Read the residencies as PMT samples
2808bd70120c drm/xe/vsec: Make xe_pmt_read() static
86db742f89e1 drm/xe/hwmon: Do not read the BMG energy where the PMT telemetry has none
a907891a1934 drm/xe/debugfs: Only show the BMG G7 residency where the PMT telemetry has it
43afa48af50f drm/xe/pcode: Read the pcode version as defined in the PMT telemetry
15fcc122869f drm/xe/debugfs: Read the CRI residencies at their offsets
^ permalink raw reply [flat|nested] 27+ messages in thread
* ✓ CI.KUnit: success for drm/xe: Read the PMT telemetry samples as defined per GUID
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (15 preceding siblings ...)
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 ` Patchwork
2026-12-03 20:56 ` ✓ Xe.CI.BAT: " Patchwork
17 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-12-03 20:21 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
== Series Details ==
Series: drm/xe: Read the PMT telemetry samples as defined per GUID
URL : https://patchwork.freedesktop.org/series/180463/
State : success
== Summary ==
+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[20:19:21] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:19:27] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[20:19:47] Starting KUnit Kernel (1/1)...
[20:19:47] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:19:47] ================= gpu_buddy (15 subtests) ==================
[20:19:47] [PASSED] gpu_test_buddy_alloc_limit
[20:19:47] [PASSED] gpu_test_buddy_alloc_optimistic
[20:19:47] [PASSED] gpu_test_buddy_alloc_pessimistic
[20:19:47] [PASSED] gpu_test_buddy_alloc_pathological
[20:19:47] [PASSED] gpu_test_buddy_alloc_contiguous
[20:19:47] [PASSED] gpu_test_buddy_alloc_clear
[20:19:47] [PASSED] gpu_test_buddy_alloc_range
[20:19:47] [PASSED] gpu_test_buddy_alloc_range_bias
[20:19:47] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[20:19:48] [PASSED] gpu_test_buddy_fragmentation_performance
[20:19:49] [PASSED] gpu_test_buddy_dirty_tracker_performance
[20:19:49] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[20:19:49] [PASSED] gpu_test_buddy_offset_aligned_allocation
[20:19:49] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[20:19:49] [PASSED] gpu_test_buddy_addr_to_block
[20:19:49] ==================== [PASSED] gpu_buddy ====================
[20:19:49] ============================================================
[20:19:49] Testing complete. Ran 15 tests: passed: 15
[20:19:49] Elapsed time: 27.808s total, 5.184s configuring, 20.557s building, 1.993s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[20:19:49] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:19:52] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[20:20:31] Starting KUnit Kernel (1/1)...
[20:20:31] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:20:31] ================= xe_ggtt_iov (9 subtests) =================
[20:20:31] [PASSED] init_shared_pf
[20:20:31] [PASSED] init_partial_overlap
[20:20:31] [PASSED] alloc_usable_pool_low
[20:20:31] [PASSED] alloc_shareable_pool_high
[20:20:31] [PASSED] alloc_partial_overlap
[20:20:31] [PASSED] alloc_partial_overlap_usable_full
[20:20:31] [PASSED] alloc_partial_overlap_shareable_full
[20:20:31] [PASSED] alloc_shareable_pool_unavailable
[20:20:31] [PASSED] alloc_shareable_pool_oversized
[20:20:31] =================== [PASSED] xe_ggtt_iov ===================
[20:20:31] =================== xe_ggtt (3 subtests) ===================
[20:20:31] [PASSED] init_native
[20:20:31] [PASSED] alloc_usable_pool_native
[20:20:31] [PASSED] alloc_usable_pool_oversized
[20:20:31] ===================== [PASSED] xe_ggtt =====================
[20:20:31] ================== guc_buf (11 subtests) ===================
[20:20:31] [PASSED] test_smallest
[20:20:31] [PASSED] test_largest
[20:20:31] [PASSED] test_granular
[20:20:31] [PASSED] test_unique
[20:20:31] [PASSED] test_overlap
[20:20:31] [PASSED] test_reusable
[20:20:31] [PASSED] test_too_big
[20:20:31] [PASSED] test_flush
[20:20:31] [PASSED] test_lookup
[20:20:31] [PASSED] test_data
[20:20:31] [PASSED] test_class
[20:20:31] ===================== [PASSED] guc_buf =====================
[20:20:31] =================== guc_dbm (7 subtests) ===================
[20:20:31] [PASSED] test_empty
[20:20:31] [PASSED] test_default
[20:20:31] ======================== test_size ========================
[20:20:31] [PASSED] 4
[20:20:31] [PASSED] 8
[20:20:31] [PASSED] 32
[20:20:31] [PASSED] 256
[20:20:31] ==================== [PASSED] test_size ====================
[20:20:31] ======================= test_reuse ========================
[20:20:31] [PASSED] 4
[20:20:31] [PASSED] 8
[20:20:31] [PASSED] 32
[20:20:31] [PASSED] 256
[20:20:31] =================== [PASSED] test_reuse ====================
[20:20:31] =================== test_range_overlap ====================
[20:20:31] [PASSED] 4
[20:20:31] [PASSED] 8
[20:20:31] [PASSED] 32
[20:20:31] [PASSED] 256
[20:20:31] =============== [PASSED] test_range_overlap ================
[20:20:31] =================== test_range_compact ====================
[20:20:31] [PASSED] 4
[20:20:31] [PASSED] 8
[20:20:31] [PASSED] 32
[20:20:31] [PASSED] 256
[20:20:31] =============== [PASSED] test_range_compact ================
[20:20:31] ==================== test_range_spare =====================
[20:20:31] [PASSED] 4
[20:20:31] [PASSED] 8
[20:20:31] [PASSED] 32
[20:20:31] [PASSED] 256
[20:20:31] ================ [PASSED] test_range_spare =================
[20:20:31] ===================== [PASSED] guc_dbm =====================
[20:20:31] ================== guc_idm (22 subtests) ===================
[20:20:31] [PASSED] bad_init
[20:20:31] [PASSED] no_init
[20:20:31] [PASSED] init_fini
[20:20:31] [PASSED] check_init_small
[20:20:31] [PASSED] check_init_shared
[20:20:31] [PASSED] check_used
[20:20:31] [PASSED] check_quota
[20:20:31] [PASSED] check_all
[20:20:31] [PASSED] check_limits
[20:20:31] [PASSED] check_overlap
[20:20:31] [PASSED] check_overlap_alloc
[20:20:31] [PASSED] check_overlap_release
[20:20:31] [PASSED] check_overlap_partial_init
[20:20:31] [PASSED] check_overlap_partial_shared_range_blocking
[20:20:31] [PASSED] check_used_usable
[20:20:31] [PASSED] check_used_shareable
[20:20:31] [PASSED] check_used_mixed
[20:20:31] [PASSED] check_release_usable_range
[20:20:31] [PASSED] check_release_shareable_range
[20:20:31] [PASSED] check_split_boundaries
[20:20:31] [PASSED] check_shareable_spare
[20:20:31] [PASSED] check_shareable_spare_fragmented_tail
[20:20:31] ===================== [PASSED] guc_idm =====================
[20:20:31] ============== guc_klv_helpers (13 subtests) ===============
[20:20:31] [PASSED] test_count
[20:20:31] [PASSED] test_encode_u32
[20:20:31] [PASSED] test_encode_u64
[20:20:31] [PASSED] test_encode_string
[20:20:31] [PASSED] test_encode_object_raw
[20:20:31] [PASSED] test_encode_object_klv
[20:20:31] [PASSED] test_encode_object_nested
[20:20:31] [PASSED] test_encode_object_basic
[20:20:31] ===================== test_decode_u16 =====================
[20:20:31] [PASSED] empty
[20:20:31] [PASSED] valid
[20:20:31] [PASSED] max
[20:20:31] [PASSED] big
[20:20:31] [PASSED] long
[20:20:31] ================= [PASSED] test_decode_u16 =================
[20:20:31] ===================== test_decode_u32 =====================
[20:20:31] [PASSED] empty
[20:20:31] [PASSED] valid
[20:20:31] [PASSED] max
[20:20:31] [PASSED] long
[20:20:31] ================= [PASSED] test_decode_u32 =================
[20:20:31] ===================== test_decode_u64 =====================
[20:20:31] [PASSED] empty
[20:20:31] [PASSED] short
[20:20:31] [PASSED] valid
[20:20:31] [PASSED] max
[20:20:31] [PASSED] long
[20:20:31] ================= [PASSED] test_decode_u64 =================
[20:20:31] ===================== test_decode_str =====================
[20:20:31] [PASSED] empty
[20:20:31] [PASSED] one
[20:20:31] [PASSED] one_trash
[20:20:31] [PASSED] two
[20:20:31] [PASSED] two_trash
[20:20:31] [PASSED] three
[20:20:31] [PASSED] dword
[20:20:31] [PASSED] four
[20:20:31] [PASSED] five
[20:20:31] [PASSED] six
[20:20:31] [PASSED] seven
[20:20:31] [PASSED] qword
[20:20:31] ================= [PASSED] test_decode_str =================
[20:20:31] [PASSED] test_print
[20:20:31] ================= [PASSED] guc_klv_helpers =================
[20:20:31] =================== xe_log (6 subtests) ====================
[20:20:31] [PASSED] demo_cper
[20:20:31] [PASSED] demo_dmesg
[20:20:31] [PASSED] test_cper_null_xe
[20:20:31] ======================= test_dmesg ========================
[20:20:31] [PASSED] test_fatal
[20:20:31] [PASSED] test_fatal_tile
[20:20:31] [PASSED] test_fatal_gt
[20:20:31] [PASSED] test_fatal_comp
[20:20:31] [PASSED] test_fatal_comp_tile
[20:20:31] [PASSED] test_fatal_comp_gt
[20:20:31] [PASSED] test_fatal_all
[20:20:31] [PASSED] test_recoverable
[20:20:31] [PASSED] test_recoverable_tile
[20:20:31] [PASSED] test_recoverable_gt
[20:20:31] [PASSED] test_recoverable_comp
[20:20:31] [PASSED] test_recoverable_comp_tile
[20:20:31] [PASSED] test_recoverable_comp_gt
[20:20:31] [PASSED] test_recoverable_all
[20:20:31] [PASSED] test_info
[20:20:31] [PASSED] test_info_tile
[20:20:31] [PASSED] test_info_gt
[20:20:31] [PASSED] test_info_err
[20:20:31] [PASSED] test_info_comp
[20:20:31] [PASSED] test_info_comp_tile
[20:20:31] [PASSED] test_info_comp_gt
[20:20:31] [PASSED] test_info_all
[20:20:31] [PASSED] test_hw_fatal
[20:20:31] [PASSED] test_hw_recoverable
[20:20:31] [PASSED] test_hw_corrected
[20:20:31] [PASSED] test_hw_informational
[20:20:31] =================== [PASSED] test_dmesg ====================
[20:20:31] ====================== test_sw_cper =======================
[20:20:31] [PASSED] sw-fatal-errno
[20:20:31] [PASSED] sw-recoverable-errno
[20:20:31] [PASSED] sw-corrected
[20:20:31] [PASSED] sw-informational
[20:20:31] [PASSED] sw-with-error-class
[20:20:31] ================== [PASSED] test_sw_cper ===================
[20:20:31] ====================== test_invalid =======================
[20:20:31] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[20:20:31] ================== [SKIPPED] test_invalid ==================
[20:20:31] ===================== [PASSED] xe_log ======================
[20:20:31] ================== no_relay (3 subtests) ===================
[20:20:31] [PASSED] xe_drops_guc2pf_if_not_ready
[20:20:31] [PASSED] xe_drops_guc2vf_if_not_ready
[20:20:31] [PASSED] xe_rejects_send_if_not_ready
[20:20:31] ==================== [PASSED] no_relay =====================
[20:20:31] ================== pf_relay (14 subtests) ==================
[20:20:31] [PASSED] pf_rejects_guc2pf_too_short
[20:20:31] [PASSED] pf_rejects_guc2pf_too_long
[20:20:31] [PASSED] pf_rejects_guc2pf_no_payload
[20:20:31] [PASSED] pf_fails_no_payload
[20:20:31] [PASSED] pf_fails_bad_origin
[20:20:31] [PASSED] pf_fails_bad_type
[20:20:31] [PASSED] pf_txn_reports_error
[20:20:31] [PASSED] pf_txn_sends_pf2guc
[20:20:31] [PASSED] pf_sends_pf2guc
[20:20:31] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[20:20:31] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[20:20:31] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[20:20:31] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[20:20:31] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[20:20:31] ==================== [PASSED] pf_relay =====================
[20:20:31] ================== vf_relay (3 subtests) ===================
[20:20:31] [PASSED] vf_rejects_guc2vf_too_short
[20:20:31] [PASSED] vf_rejects_guc2vf_too_long
[20:20:31] [PASSED] vf_rejects_guc2vf_no_payload
[20:20:31] ==================== [PASSED] vf_relay =====================
[20:20:31] ================ pf_gt_config (9 subtests) =================
[20:20:31] [PASSED] fair_contexts_1vf
[20:20:31] [PASSED] fair_doorbells_1vf
[20:20:31] [PASSED] fair_ggtt_1vf
[20:20:31] ====================== fair_vram_1vf ======================
[20:20:31] [PASSED] 3.50 GiB
[20:20:31] [PASSED] 11.5 GiB
[20:20:31] [PASSED] 15.5 GiB
[20:20:31] [PASSED] 31.5 GiB
[20:20:31] [PASSED] 63.5 GiB
[20:20:31] [PASSED] 1.91 GiB
[20:20:31] ================== [PASSED] fair_vram_1vf ==================
[20:20:31] ================ fair_vram_1vf_admin_only =================
[20:20:31] [PASSED] 3.50 GiB
[20:20:31] [PASSED] 11.5 GiB
[20:20:31] [PASSED] 15.5 GiB
[20:20:31] [PASSED] 31.5 GiB
[20:20:31] [PASSED] 63.5 GiB
[20:20:31] [PASSED] 1.91 GiB
[20:20:31] ============ [PASSED] fair_vram_1vf_admin_only =============
[20:20:31] ====================== fair_contexts ======================
[20:20:31] [PASSED] 1 VF
[20:20:31] [PASSED] 2 VFs
[20:20:31] [PASSED] 3 VFs
[20:20:31] [PASSED] 4 VFs
[20:20:31] [PASSED] 5 VFs
[20:20:31] [PASSED] 6 VFs
[20:20:31] [PASSED] 7 VFs
[20:20:31] [PASSED] 8 VFs
[20:20:31] [PASSED] 9 VFs
[20:20:31] [PASSED] 10 VFs
[20:20:31] [PASSED] 11 VFs
[20:20:31] [PASSED] 12 VFs
[20:20:31] [PASSED] 13 VFs
[20:20:31] [PASSED] 14 VFs
[20:20:31] [PASSED] 15 VFs
[20:20:31] [PASSED] 16 VFs
[20:20:31] [PASSED] 17 VFs
[20:20:31] [PASSED] 18 VFs
[20:20:31] [PASSED] 19 VFs
[20:20:31] [PASSED] 20 VFs
[20:20:31] [PASSED] 21 VFs
[20:20:31] [PASSED] 22 VFs
[20:20:31] [PASSED] 23 VFs
[20:20:31] [PASSED] 24 VFs
[20:20:31] [PASSED] 25 VFs
[20:20:31] [PASSED] 26 VFs
[20:20:31] [PASSED] 27 VFs
[20:20:31] [PASSED] 28 VFs
[20:20:31] [PASSED] 29 VFs
[20:20:31] [PASSED] 30 VFs
[20:20:31] [PASSED] 31 VFs
[20:20:31] [PASSED] 32 VFs
[20:20:31] [PASSED] 33 VFs
[20:20:31] [PASSED] 34 VFs
[20:20:31] [PASSED] 35 VFs
[20:20:31] [PASSED] 36 VFs
[20:20:31] [PASSED] 37 VFs
[20:20:31] [PASSED] 38 VFs
[20:20:31] [PASSED] 39 VFs
[20:20:31] [PASSED] 40 VFs
[20:20:31] [PASSED] 41 VFs
[20:20:31] [PASSED] 42 VFs
[20:20:31] [PASSED] 43 VFs
[20:20:31] [PASSED] 44 VFs
[20:20:31] [PASSED] 45 VFs
[20:20:31] [PASSED] 46 VFs
[20:20:31] [PASSED] 47 VFs
[20:20:31] [PASSED] 48 VFs
[20:20:31] [PASSED] 49 VFs
[20:20:31] [PASSED] 50 VFs
[20:20:31] [PASSED] 51 VFs
[20:20:31] [PASSED] 52 VFs
[20:20:31] [PASSED] 53 VFs
[20:20:31] [PASSED] 54 VFs
[20:20:31] [PASSED] 55 VFs
[20:20:31] [PASSED] 56 VFs
[20:20:31] [PASSED] 57 VFs
[20:20:31] [PASSED] 58 VFs
[20:20:31] [PASSED] 59 VFs
[20:20:31] [PASSED] 60 VFs
[20:20:31] [PASSED] 61 VFs
[20:20:31] [PASSED] 62 VFs
[20:20:31] [PASSED] 63 VFs
[20:20:31] ================== [PASSED] fair_contexts ==================
[20:20:31] ===================== fair_doorbells ======================
[20:20:31] [PASSED] 1 VF
[20:20:31] [PASSED] 2 VFs
[20:20:31] [PASSED] 3 VFs
[20:20:31] [PASSED] 4 VFs
[20:20:31] [PASSED] 5 VFs
[20:20:31] [PASSED] 6 VFs
[20:20:31] [PASSED] 7 VFs
[20:20:31] [PASSED] 8 VFs
[20:20:31] [PASSED] 9 VFs
[20:20:31] [PASSED] 10 VFs
[20:20:31] [PASSED] 11 VFs
[20:20:31] [PASSED] 12 VFs
[20:20:31] [PASSED] 13 VFs
[20:20:31] [PASSED] 14 VFs
[20:20:31] [PASSED] 15 VFs
[20:20:31] [PASSED] 16 VFs
[20:20:31] [PASSED] 17 VFs
[20:20:31] [PASSED] 18 VFs
[20:20:31] [PASSED] 19 VFs
[20:20:31] [PASSED] 20 VFs
[20:20:31] [PASSED] 21 VFs
[20:20:31] [PASSED] 22 VFs
[20:20:31] [PASSED] 23 VFs
[20:20:31] [PASSED] 24 VFs
[20:20:31] [PASSED] 25 VFs
[20:20:31] [PASSED] 26 VFs
[20:20:31] [PASSED] 27 VFs
[20:20:31] [PASSED] 28 VFs
[20:20:31] [PASSED] 29 VFs
[20:20:31] [PASSED] 30 VFs
[20:20:31] [PASSED] 31 VFs
[20:20:31] [PASSED] 32 VFs
[20:20:31] [PASSED] 33 VFs
[20:20:31] [PASSED] 34 VFs
[20:20:31] [PASSED] 35 VFs
[20:20:31] [PASSED] 36 VFs
[20:20:31] [PASSED] 37 VFs
[20:20:31] [PASSED] 38 VFs
[20:20:31] [PASSED] 39 VFs
[20:20:31] [PASSED] 40 VFs
[20:20:31] [PASSED] 41 VFs
[20:20:31] [PASSED] 42 VFs
[20:20:31] [PASSED] 43 VFs
[20:20:31] [PASSED] 44 VFs
[20:20:31] [PASSED] 45 VFs
[20:20:31] [PASSED] 46 VFs
[20:20:31] [PASSED] 47 VFs
[20:20:31] [PASSED] 48 VFs
[20:20:31] [PASSED] 49 VFs
[20:20:31] [PASSED] 50 VFs
[20:20:31] [PASSED] 51 VFs
[20:20:31] [PASSED] 52 VFs
[20:20:31] [PASSED] 53 VFs
[20:20:31] [PASSED] 54 VFs
[20:20:31] [PASSED] 55 VFs
[20:20:31] [PASSED] 56 VFs
[20:20:31] [PASSED] 57 VFs
[20:20:31] [PASSED] 58 VFs
[20:20:31] [PASSED] 59 VFs
[20:20:31] [PASSED] 60 VFs
[20:20:31] [PASSED] 61 VFs
[20:20:31] [PASSED] 62 VFs
[20:20:31] [PASSED] 63 VFs
[20:20:31] ================= [PASSED] fair_doorbells ==================
[20:20:31] ======================== fair_ggtt ========================
[20:20:31] [PASSED] 1 VF
[20:20:31] [PASSED] 2 VFs
[20:20:31] [PASSED] 3 VFs
[20:20:31] [PASSED] 4 VFs
[20:20:31] [PASSED] 5 VFs
[20:20:31] [PASSED] 6 VFs
[20:20:31] [PASSED] 7 VFs
[20:20:31] [PASSED] 8 VFs
[20:20:31] [PASSED] 9 VFs
[20:20:31] [PASSED] 10 VFs
[20:20:31] [PASSED] 11 VFs
[20:20:31] [PASSED] 12 VFs
[20:20:31] [PASSED] 13 VFs
[20:20:31] [PASSED] 14 VFs
[20:20:31] [PASSED] 15 VFs
[20:20:31] [PASSED] 16 VFs
[20:20:31] [PASSED] 17 VFs
[20:20:31] [PASSED] 18 VFs
[20:20:31] [PASSED] 19 VFs
[20:20:31] [PASSED] 20 VFs
[20:20:31] [PASSED] 21 VFs
[20:20:31] [PASSED] 22 VFs
[20:20:31] [PASSED] 23 VFs
[20:20:31] [PASSED] 24 VFs
[20:20:31] [PASSED] 25 VFs
[20:20:31] [PASSED] 26 VFs
[20:20:31] [PASSED] 27 VFs
[20:20:31] [PASSED] 28 VFs
[20:20:31] [PASSED] 29 VFs
[20:20:31] [PASSED] 30 VFs
[20:20:31] [PASSED] 31 VFs
[20:20:31] [PASSED] 32 VFs
[20:20:31] [PASSED] 33 VFs
[20:20:31] [PASSED] 34 VFs
[20:20:31] [PASSED] 35 VFs
[20:20:31] [PASSED] 36 VFs
[20:20:31] [PASSED] 37 VFs
[20:20:31] [PASSED] 38 VFs
[20:20:31] [PASSED] 39 VFs
[20:20:31] [PASSED] 40 VFs
[20:20:31] [PASSED] 41 VFs
[20:20:31] [PASSED] 42 VFs
[20:20:31] [PASSED] 43 VFs
[20:20:31] [PASSED] 44 VFs
[20:20:31] [PASSED] 45 VFs
[20:20:31] [PASSED] 46 VFs
[20:20:31] [PASSED] 47 VFs
[20:20:31] [PASSED] 48 VFs
[20:20:31] [PASSED] 49 VFs
[20:20:31] [PASSED] 50 VFs
[20:20:31] [PASSED] 51 VFs
[20:20:31] [PASSED] 52 VFs
[20:20:31] [PASSED] 53 VFs
[20:20:31] [PASSED] 54 VFs
[20:20:31] [PASSED] 55 VFs
[20:20:31] [PASSED] 56 VFs
[20:20:31] [PASSED] 57 VFs
[20:20:31] [PASSED] 58 VFs
[20:20:31] [PASSED] 59 VFs
[20:20:31] [PASSED] 60 VFs
[20:20:31] [PASSED] 61 VFs
[20:20:31] [PASSED] 62 VFs
[20:20:31] [PASSED] 63 VFs
[20:20:31] ==================== [PASSED] fair_ggtt ====================
[20:20:31] ======================== fair_vram ========================
[20:20:31] [PASSED] 1 VF
[20:20:31] [PASSED] 2 VFs
[20:20:31] [PASSED] 3 VFs
[20:20:31] [PASSED] 4 VFs
[20:20:31] [PASSED] 5 VFs
[20:20:31] [PASSED] 6 VFs
[20:20:31] [PASSED] 7 VFs
[20:20:31] [PASSED] 8 VFs
[20:20:31] [PASSED] 9 VFs
[20:20:31] [PASSED] 10 VFs
[20:20:31] [PASSED] 11 VFs
[20:20:31] [PASSED] 12 VFs
[20:20:31] [PASSED] 13 VFs
[20:20:31] [PASSED] 14 VFs
[20:20:31] [PASSED] 15 VFs
[20:20:31] [PASSED] 16 VFs
[20:20:31] [PASSED] 17 VFs
[20:20:31] [PASSED] 18 VFs
[20:20:31] [PASSED] 19 VFs
[20:20:31] [PASSED] 20 VFs
[20:20:31] [PASSED] 21 VFs
[20:20:31] [PASSED] 22 VFs
[20:20:31] [PASSED] 23 VFs
[20:20:31] [PASSED] 24 VFs
[20:20:31] [PASSED] 25 VFs
[20:20:31] [PASSED] 26 VFs
[20:20:31] [PASSED] 27 VFs
[20:20:31] [PASSED] 28 VFs
[20:20:31] [PASSED] 29 VFs
[20:20:31] [PASSED] 30 VFs
[20:20:31] [PASSED] 31 VFs
[20:20:31] [PASSED] 32 VFs
[20:20:31] [PASSED] 33 VFs
[20:20:31] [PASSED] 34 VFs
[20:20:31] [PASSED] 35 VFs
[20:20:31] [PASSED] 36 VFs
[20:20:31] [PASSED] 37 VFs
[20:20:31] [PASSED] 38 VFs
[20:20:31] [PASSED] 39 VFs
[20:20:31] [PASSED] 40 VFs
[20:20:31] [PASSED] 41 VFs
[20:20:31] [PASSED] 42 VFs
[20:20:31] [PASSED] 43 VFs
[20:20:31] [PASSED] 44 VFs
[20:20:31] [PASSED] 45 VFs
[20:20:31] [PASSED] 46 VFs
[20:20:31] [PASSED] 47 VFs
[20:20:31] [PASSED] 48 VFs
[20:20:31] [PASSED] 49 VFs
[20:20:31] [PASSED] 50 VFs
[20:20:31] [PASSED] 51 VFs
[20:20:31] [PASSED] 52 VFs
[20:20:31] [PASSED] 53 VFs
[20:20:31] [PASSED] 54 VFs
[20:20:31] [PASSED] 55 VFs
[20:20:31] [PASSED] 56 VFs
[20:20:31] [PASSED] 57 VFs
[20:20:31] [PASSED] 58 VFs
[20:20:31] [PASSED] 59 VFs
[20:20:31] [PASSED] 60 VFs
[20:20:31] [PASSED] 61 VFs
[20:20:31] [PASSED] 62 VFs
[20:20:31] [PASSED] 63 VFs
[20:20:31] ==================== [PASSED] fair_vram ====================
[20:20:31] ================== [PASSED] pf_gt_config ===================
[20:20:31] ===================== lmtt (1 subtest) =====================
[20:20:31] ======================== test_ops =========================
[20:20:31] [PASSED] 2-level
[20:20:31] [PASSED] multi-level
[20:20:31] ==================== [PASSED] test_ops =====================
[20:20:31] ====================== [PASSED] lmtt =======================
[20:20:31] ================= sriov_packet (1 subtest) =================
[20:20:31] [PASSED] test_descriptor_init
[20:20:31] ================== [PASSED] sriov_packet ===================
[20:20:31] ================= pf_service (11 subtests) =================
[20:20:31] [PASSED] pf_negotiate_any
[20:20:31] [PASSED] pf_negotiate_base_match
[20:20:31] [PASSED] pf_negotiate_base_newer
[20:20:31] [PASSED] pf_negotiate_base_next
[20:20:31] [SKIPPED] pf_negotiate_base_older (no older minor)
[20:20:31] [PASSED] pf_negotiate_base_prev
[20:20:31] [PASSED] pf_negotiate_latest_match
[20:20:31] [PASSED] pf_negotiate_latest_newer
[20:20:31] [PASSED] pf_negotiate_latest_next
[20:20:31] [SKIPPED] pf_negotiate_latest_older (no older minor)
[20:20:31] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[20:20:31] =================== [PASSED] pf_service ====================
[20:20:31] ================= xe_guc_g2g (2 subtests) ==================
[20:20:31] ============== xe_live_guc_g2g_kunit_default ==============
[20:20:31] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[20:20:31] ============== xe_live_guc_g2g_kunit_allmem ===============
[20:20:31] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[20:20:31] =================== [SKIPPED] xe_guc_g2g ===================
[20:20:31] =================== xe_mocs (2 subtests) ===================
[20:20:31] ================ xe_live_mocs_kernel_kunit ================
[20:20:31] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[20:20:31] ================ xe_live_mocs_reset_kunit =================
[20:20:31] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[20:20:31] ==================== [SKIPPED] xe_mocs =====================
[20:20:31] ================= xe_migrate (3 subtests) ==================
[20:20:31] ================= xe_migrate_sanity_kunit =================
[20:20:31] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[20:20:31] ================== xe_validate_ccs_kunit ==================
[20:20:31] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[20:20:31] ============= xe_migrate_access_memory_kunit ==============
[20:20:31] ========= [SKIPPED] xe_migrate_access_memory_kunit =========
[20:20:31] =================== [SKIPPED] xe_migrate ===================
[20:20:31] ================== xe_dma_buf (1 subtest) ==================
[20:20:31] ==================== xe_dma_buf_kunit =====================
[20:20:31] ================ [SKIPPED] xe_dma_buf_kunit ================
[20:20:31] =================== [SKIPPED] xe_dma_buf ===================
[20:20:31] ================= xe_bo_shrink (1 subtest) =================
[20:20:31] =================== xe_bo_shrink_kunit ====================
[20:20:31] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[20:20:31] ================== [SKIPPED] xe_bo_shrink ==================
[20:20:31] ==================== xe_bo (2 subtests) ====================
[20:20:31] ================== xe_ccs_migrate_kunit ===================
[20:20:31] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[20:20:31] ==================== xe_bo_evict_kunit ====================
[20:20:31] =============== [SKIPPED] xe_bo_evict_kunit ================
[20:20:31] ===================== [SKIPPED] xe_bo ======================
[20:20:31] =================== xe_any (9 subtests) ====================
[20:20:31] [PASSED] test_to_xe
[20:20:31] [PASSED] test_to_dev
[20:20:31] [PASSED] test_to_pdev
[20:20:31] [PASSED] test_to_drm
[20:20:31] [PASSED] test_if_pdev
[20:20:31] [PASSED] test_if_xe
[20:20:31] [PASSED] test_if_tile
[20:20:31] [PASSED] test_if_gt
[20:20:31] [PASSED] test_to_id
[20:20:31] ===================== [PASSED] xe_any ======================
[20:20:31] ==================== args (13 subtests) ====================
[20:20:31] [PASSED] count_args_test
[20:20:31] [PASSED] call_args_example
[20:20:31] [PASSED] call_args_test
[20:20:31] [PASSED] drop_first_arg_example
[20:20:31] [PASSED] drop_first_arg_test
[20:20:31] [PASSED] first_arg_example
[20:20:31] [PASSED] first_arg_test
[20:20:31] [PASSED] last_arg_example
[20:20:31] [PASSED] last_arg_test
[20:20:31] [PASSED] pick_arg_example
[20:20:31] [PASSED] if_args_example
[20:20:31] [PASSED] if_args_test
[20:20:31] [PASSED] sep_comma_example
[20:20:31] ====================== [PASSED] args =======================
[20:20:31] =================== xe_pci (3 subtests) ====================
[20:20:31] ==================== check_graphics_ip ====================
[20:20:31] [PASSED] 12.00 Xe_LP
[20:20:31] [PASSED] 12.10 Xe_LP+
[20:20:31] [PASSED] 12.55 Xe_HPG
[20:20:31] [PASSED] 12.60 Xe_HPC
[20:20:31] [PASSED] 12.70 Xe_LPG
[20:20:31] [PASSED] 12.71 Xe_LPG
[20:20:31] [PASSED] 12.74 Xe_LPG+
[20:20:31] [PASSED] 20.01 Xe2_HPG
[20:20:31] [PASSED] 20.02 Xe2_HPG
[20:20:31] [PASSED] 20.04 Xe2_LPG
[20:20:31] [PASSED] 30.00 Xe3_LPG
[20:20:31] [PASSED] 30.01 Xe3_LPG
[20:20:31] [PASSED] 30.03 Xe3_LPG
[20:20:31] [PASSED] 30.04 Xe3_LPG
[20:20:31] [PASSED] 30.05 Xe3_LPG
[20:20:31] [PASSED] 35.10 Xe3p_LPG
[20:20:31] [PASSED] 35.11 Xe3p_XPC
[20:20:31] ================ [PASSED] check_graphics_ip ================
[20:20:31] ===================== check_media_ip ======================
[20:20:31] [PASSED] 12.00 Xe_M
[20:20:31] [PASSED] 12.55 Xe_HPM
[20:20:31] [PASSED] 13.00 Xe_LPM+
[20:20:31] [PASSED] 13.01 Xe2_HPM
[20:20:31] [PASSED] 20.00 Xe2_LPM
[20:20:31] [PASSED] 30.00 Xe3_LPM
[20:20:31] [PASSED] 30.02 Xe3_LPM
[20:20:31] [PASSED] 35.00 Xe3p_LPM
[20:20:31] [PASSED] 35.03 Xe3p_HPM
[20:20:31] ================= [PASSED] check_media_ip ==================
[20:20:31] =================== check_platform_desc ===================
[20:20:31] [PASSED] 0x9A60 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A68 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A70 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A40 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A49 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A59 (TIGERLAKE)
[20:20:31] [PASSED] 0x9A78 (TIGERLAKE)
[20:20:31] [PASSED] 0x9AC0 (TIGERLAKE)
[20:20:31] [PASSED] 0x9AC9 (TIGERLAKE)
[20:20:31] [PASSED] 0x9AD9 (TIGERLAKE)
[20:20:31] [PASSED] 0x9AF8 (TIGERLAKE)
[20:20:31] [PASSED] 0x4C80 (ROCKETLAKE)
[20:20:31] [PASSED] 0x4C8A (ROCKETLAKE)
[20:20:31] [PASSED] 0x4C8B (ROCKETLAKE)
[20:20:31] [PASSED] 0x4C8C (ROCKETLAKE)
[20:20:31] [PASSED] 0x4C90 (ROCKETLAKE)
[20:20:31] [PASSED] 0x4C9A (ROCKETLAKE)
[20:20:31] [PASSED] 0x4680 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4682 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4688 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x468A (ALDERLAKE_S)
[20:20:31] [PASSED] 0x468B (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4690 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4692 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4693 (ALDERLAKE_S)
[20:20:31] [PASSED] 0x46A0 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46A1 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46A2 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46A3 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46A6 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46A8 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46AA (ALDERLAKE_P)
[20:20:31] [PASSED] 0x462A (ALDERLAKE_P)
[20:20:31] [PASSED] 0x4626 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x4628 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46B0 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46B1 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46B2 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46B3 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46C0 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46C1 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46C2 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46C3 (ALDERLAKE_P)
[20:20:31] [PASSED] 0x46D0 (ALDERLAKE_N)
[20:20:31] [PASSED] 0x46D1 (ALDERLAKE_N)
[20:20:31] [PASSED] 0x46D2 (ALDERLAKE_N)
[20:20:31] [PASSED] 0x46D3 (ALDERLAKE_N)
[20:20:31] [PASSED] 0x46D4 (ALDERLAKE_N)
[20:20:31] [PASSED] 0xA721 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7A1 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7A9 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7AC (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7AD (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA720 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7A0 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7A8 (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7AA (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA7AB (ALDERLAKE_P)
[20:20:31] [PASSED] 0xA780 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA781 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA782 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA783 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA788 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA789 (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA78A (ALDERLAKE_S)
[20:20:31] [PASSED] 0xA78B (ALDERLAKE_S)
[20:20:31] [PASSED] 0x4905 (DG1)
[20:20:31] [PASSED] 0x4906 (DG1)
[20:20:31] [PASSED] 0x4907 (DG1)
[20:20:31] [PASSED] 0x4908 (DG1)
[20:20:31] [PASSED] 0x4909 (DG1)
[20:20:31] [PASSED] 0x56C0 (DG2)
[20:20:31] [PASSED] 0x56C2 (DG2)
[20:20:31] [PASSED] 0x56C1 (DG2)
[20:20:31] [PASSED] 0x7D51 (METEORLAKE)
[20:20:31] [PASSED] 0x7DD1 (METEORLAKE)
[20:20:31] [PASSED] 0x7D41 (METEORLAKE)
[20:20:31] [PASSED] 0x7D67 (METEORLAKE)
[20:20:31] [PASSED] 0xB640 (METEORLAKE)
[20:20:31] [PASSED] 0x56A0 (DG2)
[20:20:31] [PASSED] 0x56A1 (DG2)
[20:20:31] [PASSED] 0x56A2 (DG2)
[20:20:31] [PASSED] 0x56BE (DG2)
[20:20:31] [PASSED] 0x56BF (DG2)
[20:20:31] [PASSED] 0x5690 (DG2)
[20:20:31] [PASSED] 0x5691 (DG2)
[20:20:31] [PASSED] 0x5692 (DG2)
[20:20:31] [PASSED] 0x56A5 (DG2)
[20:20:31] [PASSED] 0x56A6 (DG2)
[20:20:31] [PASSED] 0x56B0 (DG2)
[20:20:31] [PASSED] 0x56B1 (DG2)
[20:20:31] [PASSED] 0x56BA (DG2)
[20:20:31] [PASSED] 0x56BB (DG2)
[20:20:31] [PASSED] 0x56BC (DG2)
[20:20:31] [PASSED] 0x56BD (DG2)
[20:20:31] [PASSED] 0x5693 (DG2)
[20:20:31] [PASSED] 0x5694 (DG2)
[20:20:31] [PASSED] 0x5695 (DG2)
[20:20:31] [PASSED] 0x56A3 (DG2)
[20:20:31] [PASSED] 0x56A4 (DG2)
[20:20:31] [PASSED] 0x56B2 (DG2)
[20:20:31] [PASSED] 0x56B3 (DG2)
[20:20:31] [PASSED] 0x5696 (DG2)
[20:20:31] [PASSED] 0x5697 (DG2)
[20:20:31] [PASSED] 0xB69 (PVC)
[20:20:31] [PASSED] 0xB6E (PVC)
[20:20:31] [PASSED] 0xBD4 (PVC)
[20:20:31] [PASSED] 0xBD5 (PVC)
[20:20:31] [PASSED] 0xBD6 (PVC)
[20:20:31] [PASSED] 0xBD7 (PVC)
[20:20:31] [PASSED] 0xBD8 (PVC)
[20:20:31] [PASSED] 0xBD9 (PVC)
[20:20:31] [PASSED] 0xBDA (PVC)
[20:20:31] [PASSED] 0xBDB (PVC)
[20:20:31] [PASSED] 0xBE0 (PVC)
[20:20:31] [PASSED] 0xBE1 (PVC)
[20:20:31] [PASSED] 0xBE5 (PVC)
[20:20:31] [PASSED] 0x7D40 (METEORLAKE)
[20:20:31] [PASSED] 0x7D45 (METEORLAKE)
[20:20:31] [PASSED] 0x7D55 (METEORLAKE)
[20:20:31] [PASSED] 0x7D60 (METEORLAKE)
[20:20:31] [PASSED] 0x7DD5 (METEORLAKE)
[20:20:31] [PASSED] 0x6420 (LUNARLAKE)
[20:20:31] [PASSED] 0x64A0 (LUNARLAKE)
[20:20:31] [PASSED] 0x64B0 (LUNARLAKE)
[20:20:31] [PASSED] 0xE202 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE209 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE20B (BATTLEMAGE)
[20:20:31] [PASSED] 0xE20C (BATTLEMAGE)
[20:20:31] [PASSED] 0xE20D (BATTLEMAGE)
[20:20:31] [PASSED] 0xE210 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE211 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE212 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE216 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE220 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE221 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE222 (BATTLEMAGE)
[20:20:31] [PASSED] 0xE223 (BATTLEMAGE)
[20:20:31] [PASSED] 0xB080 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB081 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB082 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB083 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB084 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB085 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB086 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB087 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB08F (PANTHERLAKE)
[20:20:31] [PASSED] 0xB090 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB0A0 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB0A1 (PANTHERLAKE)
[20:20:31] [PASSED] 0xB0B0 (PANTHERLAKE)
[20:20:31] [PASSED] 0xFD80 (PANTHERLAKE)
[20:20:31] [PASSED] 0xFD81 (PANTHERLAKE)
[20:20:31] [PASSED] 0xD740 (NOVALAKE_S)
[20:20:31] [PASSED] 0xD741 (NOVALAKE_S)
[20:20:31] [PASSED] 0xD742 (NOVALAKE_S)
[20:20:31] [PASSED] 0xD743 (NOVALAKE_S)
[20:20:31] [PASSED] 0xD745 (NOVALAKE_S)
[20:20:31] [PASSED] 0xD74A (NOVALAKE_S)
[20:20:31] [PASSED] 0xD74B (NOVALAKE_S)
[20:20:31] [PASSED] 0x674C (CRESCENTISLAND)
[20:20:31] [PASSED] 0x674D (CRESCENTISLAND)
[20:20:31] [PASSED] 0x674E (CRESCENTISLAND)
[20:20:31] [PASSED] 0x674F (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6750 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6751 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6752 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6753 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6754 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6755 (CRESCENTISLAND)
[20:20:31] [PASSED] 0x6756 (CRESCENTISLAND)
[20:20:31] [PASSED] 0xD750 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD751 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD752 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD753 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD754 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD755 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD756 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD757 (NOVALAKE_P)
[20:20:31] [PASSED] 0xD75F (NOVALAKE_P)
[20:20:31] =============== [PASSED] check_platform_desc ===============
[20:20:31] ===================== [PASSED] xe_pci ======================
[20:20:31] ============= xe_rtp_tables_test (5 subtests) ==============
[20:20:31] ================== xe_rtp_table_gt_test ===================
[20:20:31] [PASSED] gt_was/14011060649
[20:20:31] [PASSED] gt_was/14011059788
[20:20:31] [PASSED] gt_was/14015795083
[20:20:31] [PASSED] gt_was/16021867713
[20:20:31] [PASSED] gt_was/14019449301
[20:20:31] [PASSED] gt_was/16028005424
[20:20:31] [PASSED] gt_was/14026578760
[20:20:31] [PASSED] gt_was/1409420604
[20:20:31] [PASSED] gt_was/1408615072
[20:20:31] [PASSED] gt_was/22010523718
[20:20:31] [PASSED] gt_was/14011006942
[20:20:31] [PASSED] gt_was/14014830051
[20:20:31] [PASSED] gt_was/18018781329
[20:20:31] [PASSED] gt_was/1509235366
[20:20:31] [PASSED] gt_was/18018781329
[20:20:31] [PASSED] gt_was/16016694945
[20:20:31] [PASSED] gt_was/14018575942
[20:20:31] [PASSED] gt_was/22016670082
[20:20:31] [PASSED] gt_was/22016670082
[20:20:31] [PASSED] gt_was/14017421178
[20:20:31] [PASSED] gt_was/16025250150
[20:20:31] [PASSED] gt_was/14021871409
[20:20:31] [PASSED] gt_was/16021865536
[20:20:31] [PASSED] gt_was/14021486841
[20:20:31] [PASSED] gt_was/14025160223
[20:20:31] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[20:20:31] [PASSED] gt_was/14025635424
[20:20:31] [PASSED] gt_was/16028005424
[20:20:31] ============== [PASSED] xe_rtp_table_gt_test ===============
[20:20:31] ================== xe_rtp_table_gt_test ===================
[20:20:31] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[20:20:31] [PASSED] gt_tunings/Tuning: 32B Access Enable
[20:20:31] [PASSED] gt_tunings/Tuning: L3 cache
[20:20:31] [PASSED] gt_tunings/Tuning: L3 cache - media
[20:20:31] [PASSED] gt_tunings/Tuning: Compression Overfetch
[20:20:31] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[20:20:31] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[20:20:31] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[20:20:31] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[20:20:31] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[20:20:31] [PASSED] gt_tunings/Tuning: Stateless compression control
[20:20:31] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[20:20:31] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[20:20:31] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[20:20:31] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[20:20:31] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[20:20:31] ============== [PASSED] xe_rtp_table_gt_test ===============
[20:20:31] ================== xe_rtp_table_oob_test ==================
[20:20:31] [PASSED] oob_was/1607983814
[20:20:31] [PASSED] oob_was/16010904313
[20:20:31] [PASSED] oob_was/18022495364
[20:20:31] [PASSED] oob_was/22012773006
[20:20:31] [PASSED] oob_was/14014475959
[20:20:31] [PASSED] oob_was/22011391025
[20:20:31] [PASSED] oob_was/22012727170
[20:20:31] [PASSED] oob_was/22012727685
[20:20:31] [PASSED] oob_was/22016596838
[20:20:31] [PASSED] oob_was/18020744125
[20:20:31] [PASSED] oob_was/1409600907
[20:20:31] [PASSED] oob_was/22014953428
[20:20:31] [PASSED] oob_was/16017236439
[20:20:31] [PASSED] oob_was/14019821291
[20:20:31] [PASSED] oob_was/14015076503
[20:20:31] [PASSED] oob_was/22016122933
[20:20:31] [PASSED] oob_was/14018913170
[20:20:31] [PASSED] oob_was/14018094691
[20:20:31] [PASSED] oob_was/18024947630
[20:20:31] [PASSED] oob_was/16022287689
[20:20:31] [PASSED] oob_was/13011645652
[20:20:31] [PASSED] oob_was/14022293748
[20:20:31] [PASSED] oob_was/22019794406
[20:20:31] [PASSED] oob_was/22019338487
[20:20:31] [PASSED] oob_was/16023588340
[20:20:31] [PASSED] oob_was/14019789679
[20:20:31] [PASSED] oob_was/14022866841
[20:20:31] [PASSED] oob_was/16021333562
[20:20:31] [PASSED] oob_was/14016712196
[20:20:31] [PASSED] oob_was/14015568240
[20:20:31] [PASSED] oob_was/18013179988
[20:20:31] [PASSED] oob_was/1508761755
[20:20:31] [PASSED] oob_was/16023105232
[20:20:31] [PASSED] oob_was/16026508708
[20:20:31] [PASSED] oob_was/14020001231
[20:20:31] [PASSED] oob_was/16023683509
[20:20:31] [PASSED] oob_was/14025515070
[20:20:31] [PASSED] oob_was/15015404425_disable
[20:20:31] [PASSED] oob_was/16026007364
[20:20:31] [PASSED] oob_was/14020316580
[20:20:31] [PASSED] oob_was/14025883347
[20:20:31] [PASSED] oob_was/16029380221
[20:20:31] [PASSED] oob_was/22022079272
[20:20:31] [PASSED] oob_was/16029897822
[20:20:31] [PASSED] oob_was/14026539277
[20:20:31] [PASSED] oob_was/14028564128
[20:20:31] [PASSED] oob_was/14027054324
[20:20:31] [PASSED] oob_was/14025941587
[20:20:31] [PASSED] oob_was/16030224309
[20:20:31] [PASSED] oob_was/14028709524
[20:20:31] [PASSED] oob_was/14028250015
[20:20:31] [PASSED] oob_was/16031259911
[20:20:31] [PASSED] oob_was/14028597154
[20:20:31] ============== [PASSED] xe_rtp_table_oob_test ==============
[20:20:31] ================ xe_rtp_table_dev_oob_test ================
[20:20:31] [PASSED] device_oob_was/22010954014
[20:20:31] [PASSED] device_oob_was/15015404425
[20:20:31] [PASSED] device_oob_was/22019338487_display
[20:20:31] [PASSED] device_oob_was/14022085890
[20:20:31] [PASSED] device_oob_was/14026633728
[20:20:31] [PASSED] device_oob_was/14026746987
[20:20:31] [PASSED] device_oob_was/14026779378
[20:20:31] [PASSED] device_oob_was/14028586678
[20:20:31] [PASSED] device_oob_was/14028434957
[20:20:31] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[20:20:31] ========== xe_rtp_table_missing_upper_bound_test ==========
[20:20:31] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[20:20:31] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[20:20:31] [PASSED] register_whitelist/1806527549
[20:20:31] [PASSED] register_whitelist/allow_read_ctx_timestamp
[20:20:31] [PASSED] register_whitelist/allow_read_queue_timestamp
[20:20:31] [PASSED] register_whitelist/16014440446
[20:20:31] [PASSED] register_whitelist/16017236439
[20:20:31] [PASSED] register_whitelist/16020183090
[20:20:31] [PASSED] register_whitelist/14024997852
[20:20:31] [PASSED] register_whitelist/14024997852
[20:20:31] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[20:20:31] =============== [PASSED] xe_rtp_tables_test ================
[20:20:31] =================== xe_rtp (3 subtests) ====================
[20:20:31] =================== xe_rtp_rules_tests ====================
[20:20:31] [PASSED] no
[20:20:31] [PASSED] yes
[20:20:31] [PASSED] no-and-no
[20:20:31] [PASSED] no-and-yes
[20:20:31] [PASSED] yes-and-no
[20:20:31] [PASSED] yes-and-yes
[20:20:31] [PASSED] no-or-no
[20:20:31] [PASSED] no-or-yes
[20:20:31] [PASSED] yes-or-no
[20:20:31] [PASSED] yes-or-yes
[20:20:31] [PASSED] no-yes-or-yes-no
[20:20:31] [PASSED] no-yes-or-yes-yes
[20:20:31] [PASSED] yes-yes-or-no-yes
[20:20:31] [PASSED] yes-yes-or-yes-yes
[20:20:31] [PASSED] no-no-or-yes-or-no
[20:20:31] [PASSED] or
[20:20:31] [PASSED] or-yes
[20:20:31] [PASSED] or-no
[20:20:31] [PASSED] yes-or
[20:20:31] [PASSED] no-or
[20:20:31] [PASSED] no-or-or-yes
[20:20:31] [PASSED] yes-or-or-no
[20:20:31] [PASSED] no-or-or-no
[20:20:31] [PASSED] missing-context-engine-class
[20:20:31] [PASSED] missing-context-engine-class-or-yes
[20:20:31] [PASSED] missing-context-engine-class-or-or-yes
[20:20:31] =============== [PASSED] xe_rtp_rules_tests ================
[20:20:31] =============== xe_rtp_process_to_sr_tests ================
[20:20:31] [PASSED] coalesce-same-reg
[20:20:31] [PASSED] coalesce-same-reg-literal-and-func
[20:20:31] [PASSED] no-match-no-add
[20:20:31] [PASSED] two-regs-two-entries
[20:20:31] [PASSED] clr-one-set-other
[20:20:31] [PASSED] set-field
[20:20:31] [PASSED] conflict-duplicate
[20:20:31] [PASSED] conflict-not-disjoint
[20:20:31] [PASSED] conflict-not-disjoint-literal-and-func
[20:20:31] [PASSED] conflict-reg-type
[20:20:31] [PASSED] bad-mcr-reg-forced-to-regular
[20:20:31] [PASSED] bad-regular-reg-forced-to-mcr
[20:20:31] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[20:20:31] ================== xe_rtp_process_tests ===================
[20:20:31] [PASSED] active1
[20:20:31] [PASSED] active2
[20:20:31] [PASSED] active-inactive
[20:20:31] [PASSED] inactive-active
[20:20:31] [PASSED] inactive-active-inactive
[20:20:31] [PASSED] inactive-inactive-inactive
[20:20:31] ============== [PASSED] xe_rtp_process_tests ===============
[20:20:31] ===================== [PASSED] xe_rtp ======================
[20:20:31] ==================== xe_wa (1 subtest) =====================
[20:20:31] ======================== xe_wa_gt =========================
[20:20:31] [PASSED] TIGERLAKE B0
[20:20:31] [PASSED] DG1 A0
[20:20:31] [PASSED] DG1 B0
[20:20:31] [PASSED] ALDERLAKE_S A0
[20:20:31] [PASSED] ALDERLAKE_S B0
[20:20:31] [PASSED] ALDERLAKE_S C0
[20:20:31] [PASSED] ALDERLAKE_S D0
[20:20:31] [PASSED] ALDERLAKE_P A0
[20:20:31] [PASSED] ALDERLAKE_P B0
[20:20:31] [PASSED] ALDERLAKE_P C0
[20:20:31] [PASSED] ALDERLAKE_S RPLS D0
[20:20:31] [PASSED] ALDERLAKE_P RPLU E0
[20:20:31] [PASSED] DG2 G10 C0
[20:20:31] [PASSED] DG2 G11 B1
[20:20:31] [PASSED] DG2 G12 A1
[20:20:31] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[20:20:31] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[20:20:31] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[20:20:31] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[20:20:31] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[20:20:31] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[20:20:31] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[20:20:31] ==================== [PASSED] xe_wa_gt =====================
[20:20:31] ====================== [PASSED] xe_wa ======================
[20:20:31] ============================================================
[20:20:31] Testing complete. Ran 868 tests: passed: 839, skipped: 29
[20:20:31] Elapsed time: 42.135s total, 2.548s configuring, 38.821s building, 0.744s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[20:20:32] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:20:34] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[20:20:59] Starting KUnit Kernel (1/1)...
[20:20:59] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:20:59] ============ drm_test_pick_cmdline (2 subtests) ============
[20:20:59] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[20:20:59] =============== drm_test_pick_cmdline_named ===============
[20:20:59] [PASSED] NTSC
[20:20:59] [PASSED] NTSC-J
[20:20:59] [PASSED] PAL
[20:20:59] [PASSED] PAL-M
[20:20:59] =========== [PASSED] drm_test_pick_cmdline_named ===========
[20:20:59] ============== [PASSED] drm_test_pick_cmdline ==============
[20:20:59] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[20:20:59] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[20:20:59] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[20:20:59] =========== drm_validate_clone_mode (2 subtests) ===========
[20:20:59] ============== drm_test_check_in_clone_mode ===============
[20:20:59] [PASSED] in_clone_mode
[20:20:59] [PASSED] not_in_clone_mode
[20:20:59] ========== [PASSED] drm_test_check_in_clone_mode ===========
[20:20:59] =============== drm_test_check_valid_clones ===============
[20:20:59] [PASSED] not_in_clone_mode
[20:20:59] [PASSED] valid_clone
[20:20:59] [PASSED] invalid_clone
[20:20:59] =========== [PASSED] drm_test_check_valid_clones ===========
[20:20:59] ============= [PASSED] drm_validate_clone_mode =============
[20:20:59] ============= drm_validate_modeset (1 subtest) =============
[20:20:59] [PASSED] drm_test_check_connector_changed_modeset
[20:20:59] ============== [PASSED] drm_validate_modeset ===============
[20:20:59] ====== drm_test_bridge_get_current_state (1 subtest) =======
[20:20:59] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[20:20:59] ======== [PASSED] drm_test_bridge_get_current_state ========
[20:20:59] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[20:20:59] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[20:20:59] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[20:20:59] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[20:20:59] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[20:20:59] ============== drm_bridge_alloc (2 subtests) ===============
[20:20:59] [PASSED] drm_test_drm_bridge_alloc_basic
[20:20:59] [PASSED] drm_test_drm_bridge_alloc_get_put
[20:20:59] ================ [PASSED] drm_bridge_alloc =================
[20:20:59] ============= drm_bridge_bus_fmt (5 subtests) ==============
[20:20:59] [PASSED] drm_test_bridge_rgb_yuv_rgb
[20:20:59] [PASSED] drm_test_bridge_must_convert_to_yuv444
[20:20:59] [PASSED] drm_test_bridge_hdmi_auto_rgb
[20:20:59] [PASSED] drm_test_bridge_auto_first
[20:20:59] [PASSED] drm_test_bridge_rgb_yuv_no_path
[20:20:59] =============== [PASSED] drm_bridge_bus_fmt ================
[20:20:59] ============= drm_cmdline_parser (40 subtests) =============
[20:20:59] [PASSED] drm_test_cmdline_force_d_only
[20:20:59] [PASSED] drm_test_cmdline_force_D_only_dvi
[20:20:59] [PASSED] drm_test_cmdline_force_D_only_hdmi
[20:20:59] [PASSED] drm_test_cmdline_force_D_only_not_digital
[20:20:59] [PASSED] drm_test_cmdline_force_e_only
[20:20:59] [PASSED] drm_test_cmdline_res
[20:20:59] [PASSED] drm_test_cmdline_res_vesa
[20:20:59] [PASSED] drm_test_cmdline_res_vesa_rblank
[20:20:59] [PASSED] drm_test_cmdline_res_rblank
[20:20:59] [PASSED] drm_test_cmdline_res_bpp
[20:20:59] [PASSED] drm_test_cmdline_res_refresh
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[20:20:59] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[20:20:59] [PASSED] drm_test_cmdline_res_margins_force_on
[20:20:59] [PASSED] drm_test_cmdline_res_vesa_margins
[20:20:59] [PASSED] drm_test_cmdline_name
[20:20:59] [PASSED] drm_test_cmdline_name_bpp
[20:20:59] [PASSED] drm_test_cmdline_name_option
[20:20:59] [PASSED] drm_test_cmdline_name_bpp_option
[20:20:59] [PASSED] drm_test_cmdline_rotate_0
[20:20:59] [PASSED] drm_test_cmdline_rotate_90
[20:20:59] [PASSED] drm_test_cmdline_rotate_180
[20:20:59] [PASSED] drm_test_cmdline_rotate_270
[20:20:59] [PASSED] drm_test_cmdline_hmirror
[20:20:59] [PASSED] drm_test_cmdline_vmirror
[20:20:59] [PASSED] drm_test_cmdline_margin_options
[20:20:59] [PASSED] drm_test_cmdline_multiple_options
[20:20:59] [PASSED] drm_test_cmdline_bpp_extra_and_option
[20:20:59] [PASSED] drm_test_cmdline_extra_and_option
[20:20:59] [PASSED] drm_test_cmdline_freestanding_options
[20:20:59] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[20:20:59] [PASSED] drm_test_cmdline_panel_orientation
[20:20:59] ================ drm_test_cmdline_invalid =================
[20:20:59] [PASSED] margin_only
[20:20:59] [PASSED] interlace_only
[20:20:59] [PASSED] res_missing_x
[20:20:59] [PASSED] res_missing_y
[20:20:59] [PASSED] res_bad_y
[20:20:59] [PASSED] res_missing_y_bpp
[20:20:59] [PASSED] res_bad_bpp
[20:20:59] [PASSED] res_bad_refresh
[20:20:59] [PASSED] res_bpp_refresh_force_on_off
[20:20:59] [PASSED] res_invalid_mode
[20:20:59] [PASSED] res_bpp_wrong_place_mode
[20:20:59] [PASSED] name_bpp_refresh
[20:20:59] [PASSED] name_refresh
[20:20:59] [PASSED] name_refresh_wrong_mode
[20:20:59] [PASSED] name_refresh_invalid_mode
[20:20:59] [PASSED] rotate_multiple
[20:20:59] [PASSED] rotate_invalid_val
[20:20:59] [PASSED] rotate_truncated
[20:20:59] [PASSED] invalid_option
[20:20:59] [PASSED] invalid_tv_option
[20:20:59] [PASSED] truncated_tv_option
[20:20:59] ============ [PASSED] drm_test_cmdline_invalid =============
[20:20:59] =============== drm_test_cmdline_tv_options ===============
[20:20:59] [PASSED] NTSC
[20:20:59] [PASSED] NTSC_443
[20:20:59] [PASSED] NTSC_J
[20:20:59] [PASSED] PAL
[20:20:59] [PASSED] PAL_M
[20:20:59] [PASSED] PAL_N
[20:20:59] [PASSED] SECAM
[20:20:59] [PASSED] MONO_525
[20:20:59] [PASSED] MONO_625
[20:20:59] =========== [PASSED] drm_test_cmdline_tv_options ===========
[20:20:59] =============== [PASSED] drm_cmdline_parser ================
[20:20:59] ========== drmm_connector_hdmi_init (20 subtests) ==========
[20:20:59] [PASSED] drm_test_connector_hdmi_init_valid
[20:20:59] [PASSED] drm_test_connector_hdmi_init_bpc_8
[20:20:59] [PASSED] drm_test_connector_hdmi_init_bpc_10
[20:20:59] [PASSED] drm_test_connector_hdmi_init_bpc_12
[20:20:59] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[20:20:59] [PASSED] drm_test_connector_hdmi_init_bpc_null
[20:20:59] [PASSED] drm_test_connector_hdmi_init_formats_empty
[20:20:59] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[20:20:59] === drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[20:20:59] [PASSED] supported_formats=0x9 yuv420_allowed=1
[20:20:59] [PASSED] supported_formats=0x9 yuv420_allowed=0
[20:20:59] [PASSED] supported_formats=0x5 yuv420_allowed=1
[20:20:59] [PASSED] supported_formats=0x5 yuv420_allowed=0
[20:20:59] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[20:20:59] [PASSED] drm_test_connector_hdmi_init_null_ddc
[20:20:59] [PASSED] drm_test_connector_hdmi_init_null_product
[20:20:59] [PASSED] drm_test_connector_hdmi_init_null_vendor
[20:20:59] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[20:20:59] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[20:20:59] [PASSED] drm_test_connector_hdmi_init_product_valid
[20:20:59] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[20:20:59] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[20:20:59] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[20:20:59] ========= drm_test_connector_hdmi_init_type_valid =========
[20:20:59] [PASSED] HDMI-A
[20:20:59] [PASSED] HDMI-B
[20:20:59] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[20:20:59] ======== drm_test_connector_hdmi_init_type_invalid ========
[20:20:59] [PASSED] Unknown
[20:20:59] [PASSED] VGA
[20:20:59] [PASSED] DVI-I
[20:20:59] [PASSED] DVI-D
[20:20:59] [PASSED] DVI-A
[20:20:59] [PASSED] Composite
[20:20:59] [PASSED] SVIDEO
[20:20:59] [PASSED] LVDS
[20:20:59] [PASSED] Component
[20:20:59] [PASSED] DIN
[20:20:59] [PASSED] DP
[20:20:59] [PASSED] TV
[20:20:59] [PASSED] eDP
[20:20:59] [PASSED] Virtual
[20:20:59] [PASSED] DSI
[20:20:59] [PASSED] DPI
[20:20:59] [PASSED] Writeback
[20:20:59] [PASSED] SPI
[20:20:59] [PASSED] USB
[20:20:59] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[20:20:59] ============ [PASSED] drmm_connector_hdmi_init =============
[20:20:59] ============= drmm_connector_init (3 subtests) =============
[20:20:59] [PASSED] drm_test_drmm_connector_init
[20:20:59] [PASSED] drm_test_drmm_connector_init_null_ddc
[20:20:59] ========= drm_test_drmm_connector_init_type_valid =========
[20:20:59] [PASSED] Unknown
[20:20:59] [PASSED] VGA
[20:20:59] [PASSED] DVI-I
[20:20:59] [PASSED] DVI-D
[20:20:59] [PASSED] DVI-A
[20:20:59] [PASSED] Composite
[20:20:59] [PASSED] SVIDEO
[20:20:59] [PASSED] LVDS
[20:20:59] [PASSED] Component
[20:20:59] [PASSED] DIN
[20:20:59] [PASSED] DP
[20:20:59] [PASSED] HDMI-A
[20:20:59] [PASSED] HDMI-B
[20:20:59] [PASSED] TV
[20:20:59] [PASSED] eDP
[20:20:59] [PASSED] Virtual
[20:20:59] [PASSED] DSI
[20:20:59] [PASSED] DPI
[20:20:59] [PASSED] Writeback
[20:20:59] [PASSED] SPI
[20:20:59] [PASSED] USB
[20:20:59] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[20:20:59] =============== [PASSED] drmm_connector_init ===============
[20:20:59] ========= drm_connector_dynamic_init (6 subtests) ==========
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_init
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_init_properties
[20:20:59] ===== drm_test_drm_connector_dynamic_init_type_valid ======
[20:20:59] [PASSED] Unknown
[20:20:59] [PASSED] VGA
[20:20:59] [PASSED] DVI-I
[20:20:59] [PASSED] DVI-D
[20:20:59] [PASSED] DVI-A
[20:20:59] [PASSED] Composite
[20:20:59] [PASSED] SVIDEO
[20:20:59] [PASSED] LVDS
[20:20:59] [PASSED] Component
[20:20:59] [PASSED] DIN
[20:20:59] [PASSED] DP
[20:20:59] [PASSED] HDMI-A
[20:20:59] [PASSED] HDMI-B
[20:20:59] [PASSED] TV
[20:20:59] [PASSED] eDP
[20:20:59] [PASSED] Virtual
[20:20:59] [PASSED] DSI
[20:20:59] [PASSED] DPI
[20:20:59] [PASSED] Writeback
[20:20:59] [PASSED] SPI
[20:20:59] [PASSED] USB
[20:20:59] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[20:20:59] ======== drm_test_drm_connector_dynamic_init_name =========
[20:20:59] [PASSED] Unknown
[20:20:59] [PASSED] VGA
[20:20:59] [PASSED] DVI-I
[20:20:59] [PASSED] DVI-D
[20:20:59] [PASSED] DVI-A
[20:20:59] [PASSED] Composite
[20:20:59] [PASSED] SVIDEO
[20:20:59] [PASSED] LVDS
[20:20:59] [PASSED] Component
[20:20:59] [PASSED] DIN
[20:20:59] [PASSED] DP
[20:20:59] [PASSED] HDMI-A
[20:20:59] [PASSED] HDMI-B
[20:20:59] [PASSED] TV
[20:20:59] [PASSED] eDP
[20:20:59] [PASSED] Virtual
[20:20:59] [PASSED] DSI
[20:20:59] [PASSED] DPI
[20:20:59] [PASSED] Writeback
[20:20:59] [PASSED] SPI
[20:20:59] [PASSED] USB
[20:20:59] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[20:20:59] =========== [PASSED] drm_connector_dynamic_init ============
[20:20:59] ==== drm_connector_dynamic_register_early (4 subtests) =====
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[20:20:59] ====== [PASSED] drm_connector_dynamic_register_early =======
[20:20:59] ======= drm_connector_dynamic_register (7 subtests) ========
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[20:20:59] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[20:20:59] ========= [PASSED] drm_connector_dynamic_register ==========
[20:20:59] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[20:20:59] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[20:20:59] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[20:20:59] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[20:20:59] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[20:20:59] ========== drm_test_get_tv_mode_from_name_valid ===========
[20:20:59] [PASSED] NTSC
[20:20:59] [PASSED] NTSC-443
[20:20:59] [PASSED] NTSC-J
[20:20:59] [PASSED] PAL
[20:20:59] [PASSED] PAL-M
[20:20:59] [PASSED] PAL-N
[20:20:59] [PASSED] SECAM
[20:20:59] [PASSED] Mono
[20:20:59] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[20:20:59] [PASSED] drm_test_get_tv_mode_from_name_truncated
[20:20:59] ============ [PASSED] drm_get_tv_mode_from_name ============
[20:20:59] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[20:20:59] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[20:20:59] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[20:20:59] [PASSED] VIC 96
[20:20:59] [PASSED] VIC 97
[20:20:59] [PASSED] VIC 101
[20:20:59] [PASSED] VIC 102
[20:20:59] [PASSED] VIC 106
[20:20:59] [PASSED] VIC 107
[20:20:59] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[20:20:59] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[20:20:59] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[20:20:59] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[20:20:59] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[20:20:59] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[20:20:59] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[20:20:59] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[20:20:59] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[20:20:59] [PASSED] Automatic
[20:20:59] [PASSED] Full
[20:20:59] [PASSED] Limited 16:235
[20:20:59] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[20:20:59] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[20:20:59] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[20:20:59] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[20:20:59] === drm_test_drm_hdmi_connector_get_output_format_name ====
[20:20:59] [PASSED] RGB
[20:20:59] [PASSED] YUV 4:2:0
[20:20:59] [PASSED] YUV 4:2:2
[20:20:59] [PASSED] YUV 4:4:4
[20:20:59] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[20:20:59] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[20:20:59] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[20:20:59] ============= drm_damage_helper (21 subtests) ==============
[20:20:59] [PASSED] drm_test_damage_iter_no_damage
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_src_moved
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_not_visible
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[20:20:59] [PASSED] drm_test_damage_iter_no_damage_no_fb
[20:20:59] [PASSED] drm_test_damage_iter_simple_damage
[20:20:59] [PASSED] drm_test_damage_iter_single_damage
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_outside_src
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_src_moved
[20:20:59] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[20:20:59] [PASSED] drm_test_damage_iter_damage
[20:20:59] [PASSED] drm_test_damage_iter_damage_one_intersect
[20:20:59] [PASSED] drm_test_damage_iter_damage_one_outside
[20:20:59] [PASSED] drm_test_damage_iter_damage_src_moved
[20:20:59] [PASSED] drm_test_damage_iter_damage_not_visible
[20:20:59] ================ [PASSED] drm_damage_helper ================
[20:20:59] ============== drm_dp_mst_helper (3 subtests) ==============
[20:20:59] ============== drm_test_dp_mst_calc_pbn_mode ==============
[20:20:59] [PASSED] Clock 154000 BPP 30 DSC disabled
[20:20:59] [PASSED] Clock 234000 BPP 30 DSC disabled
[20:20:59] [PASSED] Clock 297000 BPP 24 DSC disabled
[20:20:59] [PASSED] Clock 332880 BPP 24 DSC enabled
[20:20:59] [PASSED] Clock 324540 BPP 24 DSC enabled
[20:20:59] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[20:20:59] ============== drm_test_dp_mst_calc_pbn_div ===============
[20:20:59] [PASSED] Link rate 2000000 lane count 4
[20:20:59] [PASSED] Link rate 2000000 lane count 2
[20:20:59] [PASSED] Link rate 2000000 lane count 1
[20:20:59] [PASSED] Link rate 1350000 lane count 4
[20:20:59] [PASSED] Link rate 1350000 lane count 2
[20:20:59] [PASSED] Link rate 1350000 lane count 1
[20:20:59] [PASSED] Link rate 1000000 lane count 4
[20:20:59] [PASSED] Link rate 1000000 lane count 2
[20:20:59] [PASSED] Link rate 1000000 lane count 1
[20:20:59] [PASSED] Link rate 810000 lane count 4
[20:20:59] [PASSED] Link rate 810000 lane count 2
[20:20:59] [PASSED] Link rate 810000 lane count 1
[20:20:59] [PASSED] Link rate 540000 lane count 4
[20:20:59] [PASSED] Link rate 540000 lane count 2
[20:20:59] [PASSED] Link rate 540000 lane count 1
[20:20:59] [PASSED] Link rate 270000 lane count 4
[20:20:59] [PASSED] Link rate 270000 lane count 2
[20:20:59] [PASSED] Link rate 270000 lane count 1
[20:20:59] [PASSED] Link rate 162000 lane count 4
[20:20:59] [PASSED] Link rate 162000 lane count 2
[20:20:59] [PASSED] Link rate 162000 lane count 1
[20:20:59] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[20:20:59] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[20:20:59] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[20:20:59] [PASSED] DP_POWER_UP_PHY with port number
[20:20:59] [PASSED] DP_POWER_DOWN_PHY with port number
[20:20:59] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[20:20:59] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[20:20:59] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[20:20:59] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[20:20:59] [PASSED] DP_QUERY_PAYLOAD with port number
[20:20:59] [PASSED] DP_QUERY_PAYLOAD with VCPI
[20:20:59] [PASSED] DP_REMOTE_DPCD_READ with port number
[20:20:59] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[20:20:59] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[20:20:59] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[20:20:59] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[20:20:59] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[20:20:59] [PASSED] DP_REMOTE_I2C_READ with port number
[20:20:59] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[20:20:59] [PASSED] DP_REMOTE_I2C_READ with transactions array
[20:20:59] [PASSED] DP_REMOTE_I2C_WRITE with port number
[20:20:59] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[20:20:59] [PASSED] DP_REMOTE_I2C_WRITE with data array
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[20:20:59] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[20:20:59] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[20:20:59] ================ [PASSED] drm_dp_mst_helper ================
[20:20:59] ================== drm_exec (7 subtests) ===================
[20:20:59] [PASSED] sanitycheck
[20:20:59] [PASSED] test_lock
[20:20:59] [PASSED] test_lock_unlock
[20:20:59] [PASSED] test_duplicates
[20:20:59] [PASSED] test_prepare
[20:20:59] [PASSED] test_prepare_array
[20:20:59] [PASSED] test_multiple_loops
[20:20:59] ==================== [PASSED] drm_exec =====================
[20:20:59] =========== drm_format_helper_test (17 subtests) ===========
[20:20:59] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[20:20:59] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[20:20:59] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[20:20:59] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[20:20:59] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[20:20:59] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[20:20:59] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[20:20:59] ============= drm_test_fb_xrgb8888_to_bgr888 ==============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[20:20:59] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[20:20:59] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[20:20:59] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[20:20:59] ============== drm_test_fb_xrgb8888_to_mono ===============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[20:20:59] ==================== drm_test_fb_swab =====================
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ================ [PASSED] drm_test_fb_swab =================
[20:20:59] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[20:20:59] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[20:20:59] [PASSED] single_pixel_source_buffer
[20:20:59] [PASSED] single_pixel_clip_rectangle
[20:20:59] [PASSED] well_known_colors
[20:20:59] [PASSED] destination_pitch
[20:20:59] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[20:20:59] ================= drm_test_fb_clip_offset =================
[20:20:59] [PASSED] pass through
[20:20:59] [PASSED] horizontal offset
[20:20:59] [PASSED] vertical offset
[20:20:59] [PASSED] horizontal and vertical offset
[20:20:59] [PASSED] horizontal offset (custom pitch)
[20:20:59] [PASSED] vertical offset (custom pitch)
[20:20:59] [PASSED] horizontal and vertical offset (custom pitch)
[20:20:59] ============= [PASSED] drm_test_fb_clip_offset =============
[20:20:59] =================== drm_test_fb_memcpy ====================
[20:20:59] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[20:20:59] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[20:20:59] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[20:20:59] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[20:20:59] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[20:20:59] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[20:20:59] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[20:20:59] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[20:20:59] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[20:20:59] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[20:20:59] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[20:20:59] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[20:20:59] =============== [PASSED] drm_test_fb_memcpy ================
[20:20:59] ============= [PASSED] drm_format_helper_test ==============
[20:20:59] ================= drm_format (18 subtests) =================
[20:20:59] [PASSED] drm_test_format_block_width_invalid
[20:20:59] [PASSED] drm_test_format_block_width_one_plane
[20:20:59] [PASSED] drm_test_format_block_width_two_plane
[20:20:59] [PASSED] drm_test_format_block_width_three_plane
[20:20:59] [PASSED] drm_test_format_block_width_tiled
[20:20:59] [PASSED] drm_test_format_block_height_invalid
[20:20:59] [PASSED] drm_test_format_block_height_one_plane
[20:20:59] [PASSED] drm_test_format_block_height_two_plane
[20:20:59] [PASSED] drm_test_format_block_height_three_plane
[20:20:59] [PASSED] drm_test_format_block_height_tiled
[20:20:59] [PASSED] drm_test_format_min_pitch_invalid
[20:20:59] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[20:20:59] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[20:20:59] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[20:20:59] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[20:20:59] [PASSED] drm_test_format_min_pitch_two_plane
[20:20:59] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[20:20:59] [PASSED] drm_test_format_min_pitch_tiled
[20:20:59] =================== [PASSED] drm_format ====================
[20:20:59] ============== drm_framebuffer (10 subtests) ===============
[20:20:59] ========== drm_test_framebuffer_check_src_coords ==========
[20:20:59] [PASSED] Success: source fits into fb
[20:20:59] [PASSED] Fail: overflowing fb with x-axis coordinate
[20:20:59] [PASSED] Fail: overflowing fb with y-axis coordinate
[20:20:59] [PASSED] Fail: overflowing fb with source width
[20:20:59] [PASSED] Fail: overflowing fb with source height
[20:20:59] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[20:20:59] [PASSED] drm_test_framebuffer_cleanup
[20:20:59] =============== drm_test_framebuffer_create ===============
[20:20:59] [PASSED] ABGR8888 normal sizes
[20:20:59] [PASSED] ABGR8888 max sizes
[20:20:59] [PASSED] ABGR8888 pitch greater than min required
[20:20:59] [PASSED] ABGR8888 pitch less than min required
[20:20:59] [PASSED] ABGR8888 Invalid width
[20:20:59] [PASSED] ABGR8888 Invalid buffer handle
[20:20:59] [PASSED] No pixel format
[20:20:59] [PASSED] ABGR8888 Width 0
[20:20:59] [PASSED] ABGR8888 Height 0
[20:20:59] [PASSED] ABGR8888 Out of bound height * pitch combination
[20:20:59] [PASSED] ABGR8888 Large buffer offset
[20:20:59] [PASSED] ABGR8888 Buffer offset for inexistent plane
[20:20:59] [PASSED] ABGR8888 Invalid flag
[20:20:59] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[20:20:59] [PASSED] ABGR8888 Valid buffer modifier
[20:20:59] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[20:20:59] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] NV12 Normal sizes
[20:20:59] [PASSED] NV12 Max sizes
[20:20:59] [PASSED] NV12 Invalid pitch
[20:20:59] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[20:20:59] [PASSED] NV12 different modifier per-plane
[20:20:59] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[20:20:59] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] NV12 Modifier for inexistent plane
[20:20:59] [PASSED] NV12 Handle for inexistent plane
[20:20:59] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[20:20:59] [PASSED] YVU420 Normal sizes
[20:20:59] [PASSED] YVU420 Max sizes
[20:20:59] [PASSED] YVU420 Invalid pitch
[20:20:59] [PASSED] YVU420 Different pitches
[20:20:59] [PASSED] YVU420 Different buffer offsets/pitches
[20:20:59] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[20:20:59] [PASSED] YVU420 Valid modifier
[20:20:59] [PASSED] YVU420 Different modifiers per plane
[20:20:59] [PASSED] YVU420 Modifier for inexistent plane
[20:20:59] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[20:20:59] [PASSED] X0L2 Normal sizes
[20:20:59] [PASSED] X0L2 Max sizes
[20:20:59] [PASSED] X0L2 Invalid pitch
[20:20:59] [PASSED] X0L2 Pitch greater than minimum required
[20:20:59] [PASSED] X0L2 Handle for inexistent plane
[20:20:59] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[20:20:59] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[20:20:59] [PASSED] X0L2 Valid modifier
[20:20:59] [PASSED] X0L2 Modifier for inexistent plane
[20:20:59] =========== [PASSED] drm_test_framebuffer_create ===========
[20:20:59] [PASSED] drm_test_framebuffer_free
[20:20:59] [PASSED] drm_test_framebuffer_init
[20:20:59] [PASSED] drm_test_framebuffer_init_bad_format
[20:20:59] [PASSED] drm_test_framebuffer_init_dev_mismatch
[20:20:59] [PASSED] drm_test_framebuffer_lookup
[20:20:59] [PASSED] drm_test_framebuffer_lookup_inexistent
[20:20:59] [PASSED] drm_test_framebuffer_modifiers_not_supported
[20:20:59] ================= [PASSED] drm_framebuffer =================
[20:20:59] ================ drm_gem_shmem (8 subtests) ================
[20:20:59] [PASSED] drm_gem_shmem_test_obj_create
[20:20:59] [PASSED] drm_gem_shmem_test_obj_create_private
[20:20:59] [PASSED] drm_gem_shmem_test_pin_pages
[20:20:59] [PASSED] drm_gem_shmem_test_vmap
[20:20:59] [PASSED] drm_gem_shmem_test_get_sg_table
[20:20:59] [PASSED] drm_gem_shmem_test_get_pages_sgt
[20:20:59] [PASSED] drm_gem_shmem_test_madvise
[20:20:59] [PASSED] drm_gem_shmem_test_purge
[20:20:59] ================== [PASSED] drm_gem_shmem ==================
[20:20:59] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[20:20:59] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 =======
[20:20:59] [PASSED] Automatic
[20:20:59] [PASSED] Full
[20:20:59] [PASSED] Limited 16:235
[20:20:59] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[20:20:59] [PASSED] drm_test_check_disable_connector
[20:20:59] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[20:20:59] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[20:20:59] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[20:20:59] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[20:20:59] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[20:20:59] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[20:20:59] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[20:20:59] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[20:20:59] [PASSED] drm_test_check_output_bpc_dvi
[20:20:59] [PASSED] drm_test_check_output_bpc_format_vic_1
[20:20:59] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[20:20:59] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[20:20:59] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[20:20:59] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[20:20:59] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[20:20:59] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[20:20:59] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[20:20:59] ============ drm_test_check_hdmi_color_format =============
[20:20:59] [PASSED] AUTO -> RGB
[20:20:59] [PASSED] YCBCR422 -> YUV422
[20:20:59] [PASSED] YCBCR420 -> YUV420
[20:20:59] [PASSED] YCBCR444 -> YUV444
[20:20:59] [PASSED] RGB -> RGB
[20:20:59] ======== [PASSED] drm_test_check_hdmi_color_format =========
[20:20:59] ======== drm_test_check_hdmi_color_format_420_only ========
[20:20:59] [PASSED] RGB should fail
[20:20:59] [PASSED] YUV444 should fail
[20:20:59] [PASSED] YUV422 should fail
[20:20:59] [PASSED] YUV420 should work
[20:20:59] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[20:20:59] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[20:20:59] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[20:20:59] [PASSED] drm_test_check_broadcast_rgb_value
[20:20:59] [PASSED] drm_test_check_bpc_8_value
[20:20:59] [PASSED] drm_test_check_bpc_10_value
[20:20:59] [PASSED] drm_test_check_bpc_12_value
[20:20:59] [PASSED] drm_test_check_format_value
[20:20:59] [PASSED] drm_test_check_tmds_char_value
[20:20:59] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[20:20:59] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[20:20:59] [PASSED] drm_test_check_mode_valid
[20:20:59] [PASSED] drm_test_check_mode_valid_reject
[20:20:59] [PASSED] drm_test_check_mode_valid_reject_rate
[20:20:59] [PASSED] drm_test_check_mode_valid_reject_max_clock
[20:20:59] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[20:20:59] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[20:20:59] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[20:20:59] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[20:20:59] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[20:20:59] [PASSED] drm_test_check_infoframes
[20:20:59] [PASSED] drm_test_check_reject_avi_infoframe
[20:20:59] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[20:20:59] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[20:20:59] [PASSED] drm_test_check_reject_audio_infoframe
[20:20:59] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[20:20:59] ================= drm_managed (2 subtests) =================
[20:20:59] [PASSED] drm_test_managed_release_action
[20:20:59] [PASSED] drm_test_managed_run_action
[20:20:59] =================== [PASSED] drm_managed ===================
[20:20:59] =================== drm_mm (6 subtests) ====================
[20:20:59] [PASSED] drm_test_mm_init
[20:20:59] [PASSED] drm_test_mm_debug
[20:20:59] [PASSED] drm_test_mm_align32
[20:20:59] [PASSED] drm_test_mm_align64
[20:20:59] [PASSED] drm_test_mm_lowest
[20:20:59] [PASSED] drm_test_mm_highest
[20:20:59] ===================== [PASSED] drm_mm ======================
[20:20:59] ============= drm_modes_analog_tv (5 subtests) =============
[20:20:59] [PASSED] drm_test_modes_analog_tv_mono_576i
[20:20:59] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[20:20:59] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[20:20:59] [PASSED] drm_test_modes_analog_tv_pal_576i
[20:20:59] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[20:20:59] =============== [PASSED] drm_modes_analog_tv ===============
[20:20:59] ============== drm_panic_helper (3 subtests) ===============
[20:20:59] ============= drm_test_panic_screen_user_map ==============
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] ========= [PASSED] drm_test_panic_screen_user_map ==========
[20:20:59] ============= drm_test_panic_screen_user_page =============
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] ========= [PASSED] drm_test_panic_screen_user_page =========
[20:20:59] ========== drm_test_panic_screen_user_set_pixel ===========
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[20:20:59] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[20:20:59] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[20:20:59] ================ [PASSED] drm_panic_helper =================
[20:20:59] ============== drm_plane_helper (2 subtests) ===============
[20:20:59] =============== drm_test_check_plane_state ================
[20:20:59] [PASSED] clipping_simple
[20:20:59] [PASSED] clipping_rotate_reflect
[20:20:59] [PASSED] positioning_simple
[20:20:59] [PASSED] upscaling
[20:20:59] [PASSED] downscaling
[20:20:59] [PASSED] rounding1
[20:20:59] [PASSED] rounding2
[20:20:59] [PASSED] rounding3
[20:20:59] [PASSED] rounding4
[20:20:59] =========== [PASSED] drm_test_check_plane_state ============
[20:20:59] =========== drm_test_check_invalid_plane_state ============
[20:20:59] [PASSED] positioning_invalid
[20:20:59] [PASSED] upscaling_invalid
[20:20:59] [PASSED] downscaling_invalid
[20:20:59] ======= [PASSED] drm_test_check_invalid_plane_state ========
[20:20:59] ================ [PASSED] drm_plane_helper =================
[20:20:59] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[20:20:59] ====== drm_test_connector_helper_tv_get_modes_check =======
[20:20:59] [PASSED] None
[20:20:59] [PASSED] PAL
[20:20:59] [PASSED] NTSC
[20:20:59] [PASSED] Both, NTSC Default
[20:20:59] [PASSED] Both, PAL Default
[20:20:59] [PASSED] Both, NTSC Default, with PAL on command-line
[20:20:59] [PASSED] Both, PAL Default, with NTSC on command-line
[20:20:59] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[20:20:59] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[20:20:59] ================== drm_rect (9 subtests) ===================
[20:20:59] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[20:20:59] [PASSED] drm_test_rect_clip_scaled_not_clipped
[20:20:59] [PASSED] drm_test_rect_clip_scaled_clipped
[20:20:59] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[20:20:59] ================= drm_test_rect_intersect =================
[20:20:59] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[20:20:59] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[20:20:59] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[20:20:59] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[20:20:59] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[20:20:59] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[20:20:59] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[20:20:59] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[20:20:59] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[20:20:59] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[20:20:59] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[20:20:59] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[20:20:59] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[20:20:59] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[20:20:59] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[20:20:59] ============= [PASSED] drm_test_rect_intersect =============
[20:20:59] ================ drm_test_rect_calc_hscale ================
[20:20:59] [PASSED] normal use
[20:20:59] [PASSED] out of max range
[20:20:59] [PASSED] out of min range
[20:20:59] [PASSED] zero dst
[20:20:59] [PASSED] negative src
[20:20:59] [PASSED] negative dst
[20:20:59] ============ [PASSED] drm_test_rect_calc_hscale ============
[20:20:59] ================ drm_test_rect_calc_vscale ================
[20:20:59] [PASSED] normal use
[20:20:59] [PASSED] out of max range
[20:20:59] [PASSED] out of min range
[20:20:59] [PASSED] zero dst
[20:20:59] [PASSED] negative src
[20:20:59] [PASSED] negative dst
[20:20:59] ============ [PASSED] drm_test_rect_calc_vscale ============
[20:20:59] ================== drm_test_rect_rotate ===================
[20:20:59] [PASSED] reflect-x
[20:20:59] [PASSED] reflect-y
[20:20:59] [PASSED] rotate-0
[20:20:59] [PASSED] rotate-90
[20:20:59] [PASSED] rotate-180
[20:20:59] [PASSED] rotate-270
[20:20:59] ============== [PASSED] drm_test_rect_rotate ===============
[20:20:59] ================ drm_test_rect_rotate_inv =================
[20:20:59] [PASSED] reflect-x
[20:20:59] [PASSED] reflect-y
[20:20:59] [PASSED] rotate-0
[20:20:59] [PASSED] rotate-90
[20:20:59] [PASSED] rotate-180
[20:20:59] [PASSED] rotate-270
[20:20:59] ============ [PASSED] drm_test_rect_rotate_inv =============
[20:20:59] ==================== [PASSED] drm_rect =====================
[20:20:59] ============ drm_sysfb_modeset_test (1 subtest) ============
[20:20:59] ============ drm_test_sysfb_build_fourcc_list =============
[20:20:59] [PASSED] no native formats
[20:20:59] [PASSED] XRGB8888 as native format
[20:20:59] [PASSED] remove duplicates
[20:20:59] [PASSED] convert alpha formats
[20:20:59] [PASSED] random formats
[20:20:59] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[20:20:59] ============= [PASSED] drm_sysfb_modeset_test ==============
[20:20:59] ================== drm_fixp (2 subtests) ===================
[20:20:59] [PASSED] drm_test_int2fixp
[20:20:59] [PASSED] drm_test_sm2fixp
[20:20:59] ==================== [PASSED] drm_fixp =====================
[20:20:59] ============================================================
[20:20:59] Testing complete. Ran 667 tests: passed: 667
[20:21:00] Elapsed time: 27.936s total, 2.550s configuring, 25.066s building, 0.300s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[20:21:00] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:21:02] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[20:21:12] Starting KUnit Kernel (1/1)...
[20:21:12] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:21:12] ================= ttm_device (5 subtests) ==================
[20:21:12] [PASSED] ttm_device_init_basic
[20:21:12] [PASSED] ttm_device_init_multiple
[20:21:12] [PASSED] ttm_device_fini_basic
[20:21:12] [PASSED] ttm_device_init_no_vma_man
[20:21:12] ================== ttm_device_init_pools ==================
[20:21:12] [PASSED] No DMA allocations, no DMA32 required
[20:21:12] [PASSED] DMA allocations, DMA32 required
[20:21:12] [PASSED] No DMA allocations, DMA32 required
[20:21:12] [PASSED] DMA allocations, no DMA32 required
[20:21:12] ============== [PASSED] ttm_device_init_pools ==============
[20:21:12] =================== [PASSED] ttm_device ====================
[20:21:12] ================== ttm_pool (8 subtests) ===================
[20:21:12] ================== ttm_pool_alloc_basic ===================
[20:21:12] [PASSED] One page
[20:21:12] [PASSED] More than one page
[20:21:12] [PASSED] Above the allocation limit
[20:21:12] [PASSED] One page, with coherent DMA mappings enabled
[20:21:12] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[20:21:12] ============== [PASSED] ttm_pool_alloc_basic ===============
[20:21:12] ============== ttm_pool_alloc_basic_dma_addr ==============
[20:21:12] [PASSED] One page
[20:21:12] [PASSED] More than one page
[20:21:12] [PASSED] Above the allocation limit
[20:21:12] [PASSED] One page, with coherent DMA mappings enabled
[20:21:12] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[20:21:12] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[20:21:12] [PASSED] ttm_pool_alloc_order_caching_match
[20:21:12] [PASSED] ttm_pool_alloc_caching_mismatch
[20:21:12] [PASSED] ttm_pool_alloc_order_mismatch
[20:21:12] [PASSED] ttm_pool_free_dma_alloc
[20:21:12] [PASSED] ttm_pool_free_no_dma_alloc
[20:21:12] [PASSED] ttm_pool_fini_basic
[20:21:12] ==================== [PASSED] ttm_pool =====================
[20:21:12] ================ ttm_resource (8 subtests) =================
[20:21:12] ================= ttm_resource_init_basic =================
[20:21:12] [PASSED] Init resource in TTM_PL_SYSTEM
[20:21:12] [PASSED] Init resource in TTM_PL_VRAM
[20:21:12] [PASSED] Init resource in a private placement
[20:21:12] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[20:21:12] ============= [PASSED] ttm_resource_init_basic =============
[20:21:12] [PASSED] ttm_resource_init_pinned
[20:21:12] [PASSED] ttm_resource_fini_basic
[20:21:12] [PASSED] ttm_resource_manager_init_basic
[20:21:12] [PASSED] ttm_resource_manager_usage_basic
[20:21:12] [PASSED] ttm_resource_manager_set_used_basic
[20:21:12] [PASSED] ttm_sys_man_alloc_basic
[20:21:12] [PASSED] ttm_sys_man_free_basic
[20:21:12] ================== [PASSED] ttm_resource ===================
[20:21:12] =================== ttm_tt (15 subtests) ===================
[20:21:12] ==================== ttm_tt_init_basic ====================
[20:21:12] [PASSED] Page-aligned size
[20:21:12] [PASSED] Extra pages requested
[20:21:12] ================ [PASSED] ttm_tt_init_basic ================
[20:21:12] [PASSED] ttm_tt_init_misaligned
[20:21:12] [PASSED] ttm_tt_fini_basic
[20:21:12] [PASSED] ttm_tt_fini_sg
[20:21:12] [PASSED] ttm_tt_fini_shmem
[20:21:12] [PASSED] ttm_tt_create_basic
[20:21:12] [PASSED] ttm_tt_create_invalid_bo_type
[20:21:12] [PASSED] ttm_tt_create_ttm_exists
[20:21:12] [PASSED] ttm_tt_create_failed
[20:21:12] [PASSED] ttm_tt_destroy_basic
[20:21:12] [PASSED] ttm_tt_populate_null_ttm
[20:21:12] [PASSED] ttm_tt_populate_populated_ttm
[20:21:12] [PASSED] ttm_tt_unpopulate_basic
[20:21:12] [PASSED] ttm_tt_unpopulate_empty_ttm
[20:21:12] [PASSED] ttm_tt_swapin_basic
[20:21:12] ===================== [PASSED] ttm_tt ======================
[20:21:12] =================== ttm_bo (14 subtests) ===================
[20:21:12] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[20:21:12] [PASSED] Cannot be interrupted and sleeps
[20:21:12] [PASSED] Cannot be interrupted, locks straight away
[20:21:12] [PASSED] Can be interrupted, sleeps
[20:21:12] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[20:21:12] [PASSED] ttm_bo_reserve_locked_no_sleep
[20:21:12] [PASSED] ttm_bo_reserve_no_wait_ticket
[20:21:12] [PASSED] ttm_bo_reserve_double_resv
[20:21:12] [PASSED] ttm_bo_reserve_interrupted
[20:21:12] [PASSED] ttm_bo_reserve_deadlock
[20:21:12] [PASSED] ttm_bo_unreserve_basic
[20:21:12] [PASSED] ttm_bo_unreserve_pinned
[20:21:12] [PASSED] ttm_bo_unreserve_bulk
[20:21:12] [PASSED] ttm_bo_fini_basic
[20:21:13] [PASSED] ttm_bo_fini_shared_resv
[20:21:13] [PASSED] ttm_bo_pin_basic
[20:21:13] [PASSED] ttm_bo_pin_unpin_resource
[20:21:13] [PASSED] ttm_bo_multiple_pin_one_unpin
[20:21:13] ===================== [PASSED] ttm_bo ======================
[20:21:13] ============== ttm_bo_validate (22 subtests) ===============
[20:21:13] ============== ttm_bo_init_reserved_sys_man ===============
[20:21:13] [PASSED] Buffer object for userspace
[20:21:13] [PASSED] Kernel buffer object
[20:21:13] [PASSED] Shared buffer object
[20:21:13] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[20:21:13] ============== ttm_bo_init_reserved_mock_man ==============
[20:21:13] [PASSED] Buffer object for userspace
[20:21:13] [PASSED] Kernel buffer object
[20:21:13] [PASSED] Shared buffer object
[20:21:13] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[20:21:13] [PASSED] ttm_bo_init_reserved_resv
[20:21:13] ================== ttm_bo_validate_basic ==================
[20:21:13] [PASSED] Buffer object for userspace
[20:21:13] [PASSED] Kernel buffer object
[20:21:13] [PASSED] Shared buffer object
[20:21:13] ============== [PASSED] ttm_bo_validate_basic ==============
[20:21:13] [PASSED] ttm_bo_validate_invalid_placement
[20:21:13] ============= ttm_bo_validate_same_placement ==============
[20:21:13] [PASSED] System manager
[20:21:13] [PASSED] VRAM manager
[20:21:13] ========= [PASSED] ttm_bo_validate_same_placement ==========
[20:21:13] [PASSED] ttm_bo_validate_failed_alloc
[20:21:13] [PASSED] ttm_bo_validate_pinned
[20:21:13] [PASSED] ttm_bo_validate_busy_placement
[20:21:13] ================ ttm_bo_validate_multihop =================
[20:21:13] [PASSED] Buffer object for userspace
[20:21:13] [PASSED] Kernel buffer object
[20:21:13] [PASSED] Shared buffer object
[20:21:13] ============ [PASSED] ttm_bo_validate_multihop =============
[20:21:13] ========== ttm_bo_validate_no_placement_signaled ==========
[20:21:13] [PASSED] Buffer object in system domain, no page vector
[20:21:13] [PASSED] Buffer object in system domain with an existing page vector
[20:21:13] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[20:21:13] ======== ttm_bo_validate_no_placement_not_signaled ========
[20:21:13] [PASSED] Buffer object for userspace
[20:21:13] [PASSED] Kernel buffer object
[20:21:13] [PASSED] Shared buffer object
[20:21:13] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[20:21:13] [PASSED] ttm_bo_validate_move_fence_signaled
[20:21:13] ========= ttm_bo_validate_move_fence_not_signaled =========
[20:21:13] [PASSED] Waits for GPU
[20:21:13] [PASSED] Tries to lock straight away
[20:21:13] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[20:21:13] [PASSED] ttm_bo_validate_swapout
[20:21:13] [PASSED] ttm_bo_validate_happy_evict
[20:21:13] [PASSED] ttm_bo_validate_all_pinned_evict
[20:21:13] [PASSED] ttm_bo_validate_allowed_only_evict
[20:21:13] [PASSED] ttm_bo_validate_deleted_evict
[20:21:13] [PASSED] ttm_bo_validate_busy_domain_evict
[20:21:13] [PASSED] ttm_bo_validate_evict_gutting
[20:21:13] [PASSED] ttm_bo_validate_recursive_evict
[20:21:13] ================= [PASSED] ttm_bo_validate =================
[20:21:13] ============================================================
[20:21:13] Testing complete. Ran 102 tests: passed: 102
[20:21:13] Elapsed time: 12.941s total, 2.574s configuring, 10.151s building, 0.184s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[20:21:13] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:21:15] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[20:21:24] Starting KUnit Kernel (1/1)...
[20:21:24] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:21:24] =============== dma-buf-fence (12 subtests) ================
[20:21:24] [PASSED] test_sanitycheck
[20:21:24] [PASSED] test_signaling
[20:21:24] [PASSED] test_add_callback
[20:21:24] [PASSED] test_late_add_callback
[20:21:24] [PASSED] test_rm_callback
[20:21:24] [PASSED] test_late_rm_callback
[20:21:24] [PASSED] test_status
[20:21:24] [PASSED] test_error
[20:21:24] [PASSED] test_wait
[20:21:24] [PASSED] test_wait_timeout
[20:21:24] [PASSED] test_stub
[20:21:24] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[20:21:24] ================== [PASSED] dma-buf-fence ==================
[20:21:24] ============ dma-buf-fence-chain (11 subtests) =============
[20:21:24] [PASSED] test_sanitycheck
[20:21:24] [PASSED] test_find_seqno
[20:21:24] [PASSED] test_find_signaled
[20:21:24] [PASSED] test_find_out_of_order
[20:21:29] [PASSED] test_find_gap
[20:21:29] [PASSED] test_find_race
[20:21:29] [PASSED] test_signal_forward
[20:21:29] [PASSED] test_signal_backward
[20:21:29] [PASSED] test_wait_forward
[20:21:29] [PASSED] test_wait_backward
[20:21:29] [PASSED] test_wait_random
[20:21:29] =============== [PASSED] dma-buf-fence-chain ===============
[20:21:29] ============ dma-buf-fence-unwrap (11 subtests) ============
[20:21:29] [PASSED] test_sanitycheck
[20:21:29] [PASSED] test_unwrap_array
[20:21:29] [PASSED] test_unwrap_chain
[20:21:29] [PASSED] test_unwrap_chain_array
[20:21:29] [PASSED] test_unwrap_merge
[20:21:29] [PASSED] test_unwrap_merge_duplicate
[20:21:29] [PASSED] test_unwrap_merge_seqno
[20:21:29] [PASSED] test_unwrap_merge_order
[20:21:29] [PASSED] test_unwrap_merge_complex
[20:21:29] [PASSED] test_unwrap_merge_complex_seqno
[20:21:29] [PASSED] test_dedup_empty
[20:21:29] ============== [PASSED] dma-buf-fence-unwrap ===============
[20:21:29] ================ dma-buf-resv (5 subtests) =================
[20:21:29] [PASSED] test_sanitycheck
[20:21:29] ===================== test_signaling ======================
[20:21:29] [PASSED] kernel
[20:21:29] [PASSED] write
[20:21:29] [PASSED] read
[20:21:29] [PASSED] bookkeep
[20:21:29] ================= [PASSED] test_signaling ==================
[20:21:29] ====================== test_for_each ======================
[20:21:29] [PASSED] kernel
[20:21:29] [PASSED] write
[20:21:29] [PASSED] read
[20:21:29] [PASSED] bookkeep
[20:21:29] ================== [PASSED] test_for_each ==================
[20:21:29] ================= test_for_each_unlocked ==================
[20:21:29] [PASSED] kernel
[20:21:29] [PASSED] write
[20:21:29] [PASSED] read
[20:21:29] [PASSED] bookkeep
[20:21:29] ============= [PASSED] test_for_each_unlocked ==============
[20:21:29] ===================== test_get_fences =====================
[20:21:29] [PASSED] kernel
[20:21:29] [PASSED] write
[20:21:29] [PASSED] read
[20:21:29] [PASSED] bookkeep
[20:21:29] ================= [PASSED] test_get_fences =================
[20:21:29] ================== [PASSED] dma-buf-resv ===================
[20:21:29] ============================================================
[20:21:29] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[20:21:29] Elapsed time: 16.760s total, 2.588s configuring, 8.901s building, 5.266s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 27+ messages in thread
* ✓ Xe.CI.BAT: success for drm/xe: Read the PMT telemetry samples as defined per GUID
2026-12-03 20:10 [PATCH 00/15] drm/xe: Read the PMT telemetry samples as defined per GUID Rodrigo Vivi
` (16 preceding siblings ...)
2026-12-03 20:21 ` ✓ CI.KUnit: success " Patchwork
@ 2026-12-03 20:56 ` Patchwork
17 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-12-03 20:56 UTC (permalink / raw)
To: Rodrigo Vivi; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
== Series Details ==
Series: drm/xe: Read the PMT telemetry samples as defined per GUID
URL : https://patchwork.freedesktop.org/series/180463/
State : success
== Summary ==
CI Bug Log - changes from xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5_BAT -> xe-pw-180463v1_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 12)
------------------------------
Missing (1): bat-lnl-1
Changes
-------
No changes found
Build changes
-------------
* IGT: IGT_9223 -> IGT_9224
* Linux: xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5 -> xe-pw-180463v1
IGT_9223: 9223
IGT_9224: 9224
xe-6291-f360b5218783450630793ca7a462fdcff2dfd2e5: f360b5218783450630793ca7a462fdcff2dfd2e5
xe-pw-180463v1: 180463v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-180463v1/index.html
[-- Attachment #2: Type: text/html, Size: 1483 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
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
0 siblings, 1 reply; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:32 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
>
>Callers of the PMT telemetry need to name the PMT record of the region
>they read. Move the record IDs to xe_vsec.h, as enum xe_pmt_record, so
>the callers and xe_vsec use the same names.
>
>No functional change.
>
>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/xe_vsec.c | 25 ++++++++++---------------
> drivers/gpu/drm/xe/xe_vsec.h | 14 ++++++++++++++
> 2 files changed, 24 insertions(+), 15 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
>index 33a5237cf5b4..f8f10c16b9fd 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.c
>+++ b/drivers/gpu/drm/xe/xe_vsec.c
>@@ -185,12 +185,6 @@ static struct intel_vsec_platform_info xe_vsec_info[] =
>{
> #define CRI_OOBMSM_GFSP_TELEMETRY_OFFSET 0x1600
> #define CRI_PUNIT_CRASHLOG_OFFSET 0x0E60
>
>-enum record_id {
>- PUNIT,
>- OOBMSM_0,
>- OOBMSM_1,
>-};
>-
> enum capability {
> CRASHLOG,
> TELEMETRY,
>@@ -213,12 +207,13 @@ static int bmg_guid_decode(u32 guid, int *index,
>u32 *offset)
> *offset = 0;
>
> if (cap_type == CRASHLOG) {
>- *index = record_id == PUNIT ? BMG_IDX_CRASHLOG_PUNIT :
>BMG_IDX_CRASHLOG_OOBMSM;
>+ *index = record_id == XE_PMT_PUNIT ?
>BMG_IDX_CRASHLOG_PUNIT :
>+
>BMG_IDX_CRASHLOG_OOBMSM;
> return 0;
> }
>
> switch (record_id) {
>- case PUNIT:
>+ case XE_PMT_PUNIT:
> *index = BMG_IDX_TELEM_PUNIT;
> if (cap_type == TELEMETRY)
> *offset = BMG_PUNIT_TELEMETRY_OFFSET;
>@@ -226,13 +221,13 @@ static int bmg_guid_decode(u32 guid, int *index,
>u32 *offset)
> *offset = BMG_PUNIT_WATCHER_OFFSET;
> break;
>
>- case OOBMSM_0:
>+ case XE_PMT_OOBMSM_0:
> *index = BMG_IDX_TELEM_OOBMSM;
> if (cap_type == WATCHER)
> *offset = BMG_OOBMSM_0_WATCHER_OFFSET;
> break;
>
>- case OOBMSM_1:
>+ case XE_PMT_OOBMSM_1:
> *index = BMG_IDX_TELEM_OOBMSM;
> if (cap_type == TELEMETRY)
> *offset = BMG_OOBMSM_1_TELEMETRY_OFFSET;
>@@ -253,7 +248,7 @@ static int cri_guid_decode(u32 guid, int *index, u32
>*offset)
> *offset = 0;
>
> if (cap_type == CRASHLOG) {
>- if (record_id == PUNIT) {
>+ if (record_id == XE_PMT_PUNIT) {
> *index = CRI_IDX_CRASHLOG_PUNIT;
> *offset = CRI_PUNIT_CRASHLOG_OFFSET;
> } else {
>@@ -263,13 +258,13 @@ static int cri_guid_decode(u32 guid, int *index, u32
>*offset)
> }
>
> switch (record_id) {
>- case PUNIT:
>+ case XE_PMT_PUNIT:
> *index = CRI_IDX_TELEM_PUNIT;
> if (cap_type == WATCHER)
> *offset = CRI_PUNIT_WATCHER_OFFSET;
> break;
>
>- case OOBMSM_0:
>+ case XE_PMT_OOBMSM_0:
> *index = CRI_IDX_TELEM_OOBMSM;
> switch (instance) {
> case 0:
>@@ -553,7 +548,7 @@ static int xe_pmt_read_reg(struct device *dev, u32
>guid, u32 *reg, u32 offset)
> if (!drm_dev_enter(&xe->drm, &idx))
> return -ENODEV;
>
>- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
>+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
> CRI_CRASHLOG_PUNIT_DISC_OFFSET :
>CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
> disc_addr += inst + offset;
>
>@@ -592,7 +587,7 @@ static int xe_pmt_write_reg(struct device *dev, u32
>guid, u32 reg, u32 offset)
> if (!drm_dev_enter(&xe->drm, &idx))
> return -ENODEV;
>
>- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
>+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
> CRI_CRASHLOG_PUNIT_DISC_OFFSET :
>CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
> disc_addr += inst + offset;
>
>diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
>index 88e6f6a9e4dd..3715a597b7dd 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.h
>+++ b/drivers/gpu/drm/xe/xe_vsec.h
>@@ -9,6 +9,20 @@
> struct device;
> struct xe_device;
>
>+/**
>+ * enum xe_pmt_record - PMT record a region belongs to
>+ * @XE_PMT_PUNIT: PUNIT
>+ * @XE_PMT_OOBMSM_0: first OOBMSM
>+ * @XE_PMT_OOBMSM_1: second OOBMSM
>+ *
>+ * The values match the Record-ID field of the PMT GUID.
>+ */
>+enum xe_pmt_record {
>+ XE_PMT_PUNIT,
>+ XE_PMT_OOBMSM_0,
>+ XE_PMT_OOBMSM_1,
Just a note. The OOBMSM_0 and _1 reflect on the BMG features.
CRI does not have the second usage. So
enum xe_pmt_bmg_record {
XE_PMT_BMG_PUNIT,
XE_PMT_BMG_OOBMSM_0,
XE_PMT_BMG_OOBMSM_1,
};
enum xe_pmt_cri_record {
XE_PMT_CRI_PUNIT,
XE_PMT_CRI_OOBMSM,
};
would technically be more accurate.
Not sure if this is worth updating...but I wanted to make sure that OOBMSM_1 is not a CRI value.
Other than that,
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>+};
>+
> void xe_vsec_init(struct xe_device *xe);
> void xe_vsec_remove(struct xe_device *xe);
> int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
2026-12-03 21:32 ` Ruhl, Michael J
@ 2026-12-03 21:47 ` Ruhl, Michael J
0 siblings, 0 replies; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:47 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Ruhl, Michael J
>Sent: Thursday, December 3, 2026 4:33 PM
>To: Vivi, Rodrigo <rodrigo.vivi@intel.com>; intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <Anshuman.Gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>
>Subject: RE: [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to
>xe_vsec.h
>
>
>
>>-----Original Message-----
>>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>>Sent: Thursday, December 3, 2026 3:10 PM
>>To: intel-xe@lists.freedesktop.org
>>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
>><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>>Rodrigo <rodrigo.vivi@intel.com>
>>Subject: [PATCH 01/15] drm/xe/vsec: Move the PMT record IDs to xe_vsec.h
>>
>>Callers of the PMT telemetry need to name the PMT record of the region
>>they read. Move the record IDs to xe_vsec.h, as enum xe_pmt_record, so
>>the callers and xe_vsec use the same names.
>>
>>No functional change.
>>
>>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>>---
>> drivers/gpu/drm/xe/xe_vsec.c | 25 ++++++++++---------------
>> drivers/gpu/drm/xe/xe_vsec.h | 14 ++++++++++++++
>> 2 files changed, 24 insertions(+), 15 deletions(-)
>>
>>diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
>>index 33a5237cf5b4..f8f10c16b9fd 100644
>>--- a/drivers/gpu/drm/xe/xe_vsec.c
>>+++ b/drivers/gpu/drm/xe/xe_vsec.c
>>@@ -185,12 +185,6 @@ static struct intel_vsec_platform_info xe_vsec_info[]
>=
>>{
>> #define CRI_OOBMSM_GFSP_TELEMETRY_OFFSET 0x1600
>> #define CRI_PUNIT_CRASHLOG_OFFSET 0x0E60
>>
>>-enum record_id {
>>- PUNIT,
>>- OOBMSM_0,
>>- OOBMSM_1,
>>-};
>>-
>> enum capability {
>> CRASHLOG,
>> TELEMETRY,
>>@@ -213,12 +207,13 @@ static int bmg_guid_decode(u32 guid, int *index,
>>u32 *offset)
>> *offset = 0;
>>
>> if (cap_type == CRASHLOG) {
>>- *index = record_id == PUNIT ? BMG_IDX_CRASHLOG_PUNIT :
>>BMG_IDX_CRASHLOG_OOBMSM;
>>+ *index = record_id == XE_PMT_PUNIT ?
>>BMG_IDX_CRASHLOG_PUNIT :
>>+
>>BMG_IDX_CRASHLOG_OOBMSM;
>> return 0;
>> }
>>
>> switch (record_id) {
>>- case PUNIT:
>>+ case XE_PMT_PUNIT:
>> *index = BMG_IDX_TELEM_PUNIT;
>> if (cap_type == TELEMETRY)
>> *offset = BMG_PUNIT_TELEMETRY_OFFSET;
>>@@ -226,13 +221,13 @@ static int bmg_guid_decode(u32 guid, int *index,
>>u32 *offset)
>> *offset = BMG_PUNIT_WATCHER_OFFSET;
>> break;
>>
>>- case OOBMSM_0:
>>+ case XE_PMT_OOBMSM_0:
>> *index = BMG_IDX_TELEM_OOBMSM;
>> if (cap_type == WATCHER)
>> *offset = BMG_OOBMSM_0_WATCHER_OFFSET;
>> break;
>>
>>- case OOBMSM_1:
>>+ case XE_PMT_OOBMSM_1:
>> *index = BMG_IDX_TELEM_OOBMSM;
>> if (cap_type == TELEMETRY)
>> *offset = BMG_OOBMSM_1_TELEMETRY_OFFSET;
>>@@ -253,7 +248,7 @@ static int cri_guid_decode(u32 guid, int *index, u32
>>*offset)
>> *offset = 0;
>>
>> if (cap_type == CRASHLOG) {
>>- if (record_id == PUNIT) {
>>+ if (record_id == XE_PMT_PUNIT) {
>> *index = CRI_IDX_CRASHLOG_PUNIT;
>> *offset = CRI_PUNIT_CRASHLOG_OFFSET;
>> } else {
>>@@ -263,13 +258,13 @@ static int cri_guid_decode(u32 guid, int *index,
>u32
>>*offset)
>> }
>>
>> switch (record_id) {
>>- case PUNIT:
>>+ case XE_PMT_PUNIT:
>> *index = CRI_IDX_TELEM_PUNIT;
>> if (cap_type == WATCHER)
>> *offset = CRI_PUNIT_WATCHER_OFFSET;
>> break;
>>
>>- case OOBMSM_0:
>>+ case XE_PMT_OOBMSM_0:
>> *index = CRI_IDX_TELEM_OOBMSM;
>> switch (instance) {
>> case 0:
>>@@ -553,7 +548,7 @@ static int xe_pmt_read_reg(struct device *dev, u32
>>guid, u32 *reg, u32 offset)
>> if (!drm_dev_enter(&xe->drm, &idx))
>> return -ENODEV;
>>
>>- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
>>+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
>> CRI_CRASHLOG_PUNIT_DISC_OFFSET :
>>CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
>> disc_addr += inst + offset;
>>
>>@@ -592,7 +587,7 @@ static int xe_pmt_write_reg(struct device *dev, u32
>>guid, u32 reg, u32 offset)
>> if (!drm_dev_enter(&xe->drm, &idx))
>> return -ENODEV;
>>
>>- inst = FIELD_GET(GUID_RECORD_ID, guid) == PUNIT ?
>>+ inst = FIELD_GET(GUID_RECORD_ID, guid) == XE_PMT_PUNIT ?
>> CRI_CRASHLOG_PUNIT_DISC_OFFSET :
>>CRI_CRASHLOG_OOBMSM_DISC_OFFSET;
>> disc_addr += inst + offset;
>>
>>diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
>>index 88e6f6a9e4dd..3715a597b7dd 100644
>>--- a/drivers/gpu/drm/xe/xe_vsec.h
>>+++ b/drivers/gpu/drm/xe/xe_vsec.h
>>@@ -9,6 +9,20 @@
>> struct device;
>> struct xe_device;
>>
>>+/**
>>+ * enum xe_pmt_record - PMT record a region belongs to
>>+ * @XE_PMT_PUNIT: PUNIT
>>+ * @XE_PMT_OOBMSM_0: first OOBMSM
>>+ * @XE_PMT_OOBMSM_1: second OOBMSM
>>+ *
>>+ * The values match the Record-ID field of the PMT GUID.
>>+ */
>>+enum xe_pmt_record {
>>+ XE_PMT_PUNIT,
>>+ XE_PMT_OOBMSM_0,
>>+ XE_PMT_OOBMSM_1,
>
>Just a note. The OOBMSM_0 and _1 reflect on the BMG features.
>
>CRI does not have the second usage. So
>
>enum xe_pmt_bmg_record {
> XE_PMT_BMG_PUNIT,
> XE_PMT_BMG_OOBMSM_0,
> XE_PMT_BMG_OOBMSM_1,
>};
>
>enum xe_pmt_cri_record {
> XE_PMT_CRI_PUNIT,
> XE_PMT_CRI_OOBMSM,
>};
This should be:
enum xe_pmt_cri_record {
XE_PMT_CRI_PUNIT,
XE_PMT_CRI_OOBMSM,
XE_PMT_CRI_GFSP,
};
M
>would technically be more accurate.
>
>Not sure if this is worth updating...but I wanted to make sure that OOBMSM_1
>is not a CRI value.
>
>Other than that,
>
>Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>
>>+};
>>+
>> void xe_vsec_init(struct xe_device *xe);
>> void xe_vsec_remove(struct xe_device *xe);
>> int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
>>--
>>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 02/15] drm/xe/vsec: Add xe_pmt_read() to read a PMT telemetry region
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
0 siblings, 0 replies; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:50 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 02/15] drm/xe/vsec: Add xe_pmt_read() to read a PMT
>telemetry region
>
>Users of the PMT telemetry in xe need the GUID of a region before they
>can call xe_pmt_telem_read(), and xe_vsec_get_guid() only returns the
>one of the PUNIT region. They also need to know which offset to use,
>which the PMT definitions do not make obvious: each SampleGroup there
>has a "Groupname" address, like 0x6230 for the BMG PUNIT energy, but the
>offset is its sampleID * 8, 0x30. That is how the PMT tools from
>Intel-PMT and the Level Zero sysman read them, in:
>https://github.com/intel/Intel-PMT/blob/main/tools/collectd-agent/pmt.py
>https://github.com/intel/compute-
>runtime/blob/master/level_zero/sysman/source/shared/linux/product_helper
>/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp
>
>Add xe_pmt_read(), which takes the PMT record of the region and the
>sample offset. It finds the GUID of the region in the PMT telemetry
>discovery entries that xe_vsec already describes, and reads from it.
>Document there how to get the offset from the PMT definition.
>
>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/regs/xe_pmt.h | 1 +
> drivers/gpu/drm/xe/xe_vsec.c | 90
>++++++++++++++++++++++++++++++++
> drivers/gpu/drm/xe/xe_vsec.h | 2 +
> 3 files changed, 93 insertions(+)
>
>diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h
>b/drivers/gpu/drm/xe/regs/xe_pmt.h
>index 4fec057b2dd6..2a55a10be37a 100644
>--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
>+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
>@@ -11,6 +11,7 @@
> #define BMG_DISCOVERY_OFFSET (SOC_BASE +
>BMG_PMT_BASE_OFFSET)
>
> #define BMG_PUNIT_TELEMETRY_GUID
> XE_REG(BMG_DISCOVERY_OFFSET + 0x4)
>+/* PMT telemetry sample offsets, see xe_pmt_read() */
> #define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
> #define ENERGY_PKG REG_GENMASK64(31, 0)
> #define ENERGY_CARD REG_GENMASK64(63, 32)
>diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
>index f8f10c16b9fd..3d20065dd269 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.c
>+++ b/drivers/gpu/drm/xe/xe_vsec.c
>@@ -163,6 +163,9 @@ static struct intel_vsec_platform_info xe_vsec_info[] = {
> #define CRI_GUID_SEGMENT GENMASK(5, 4)
> #define CRI_GUID_INSTANCE GENMASK(7, 6)
>
>+/* Dword of a PMT discovery entry that holds the GUID */
>+#define PMT_DISC_GUID_DW 1
>+
> #define BMG_IDX_TELEM_PUNIT 0x00
> #define BMG_IDX_TELEM_OOBMSM 0x01
> #define BMG_IDX_CRASHLOG_PUNIT 0x02
>@@ -722,6 +725,93 @@ int xe_vsec_get_guid(struct xe_device *xe, u32 *guid)
> return ret;
> }
>
>+static u32 xe_guid_instance(struct xe_device *xe, u32 guid)
>+{
>+ return xe->info.platform == XE_CRESCENTISLAND ?
>FIELD_GET(CRI_GUID_INSTANCE, guid) : 0;
>+}
>+
>+static int xe_pmt_get_telem_guid(struct xe_device *xe, enum xe_pmt_record
>record,
>+ u32 instance, u32 *guid)
>+{
>+ struct xe_mmio *mmio = xe_root_tile_mmio(xe);
>+ const struct intel_vsec_header *disc;
>+ int ret = -ENOENT;
>+ u32 i;
>+
>+ xe_assert(xe, !IS_SRIOV_VF(xe));
>+
>+ switch (xe->info.platform) {
>+ case XE_BATTLEMAGE:
>+ disc = &bmg_telemetry;
>+ break;
>+ case XE_CRESCENTISLAND:
>+ disc = &cri_telemetry;
>+ break;
>+ default:
>+ return -EINVAL;
>+ }
>+
>+ if (!xe_pm_runtime_get_if_active(xe))
>+ return -ENODATA;
I think that all of the discovery information is stable for the OOBMSM app... but adding a wait_for_fw() here would
probably not be a bad idea (necessary for OOBMSM and GFSP regions).
M
>+ scoped_guard(mutex, &xe->pmt.lock) {
>+ if (xe->info.platform == XE_CRESCENTISLAND)
>+ xe->soc_remapper.set_telem_region(xe,
>CRI_IDX_TELEM_DISCOVERY);
>+
>+ for (i = 0; i < disc->num_entries; i++) {
>+ u32 offset = disc->offset +
>+ (i * disc->entry_size + PMT_DISC_GUID_DW)
>* sizeof(u32);
>+ u32 val = xe_mmio_read32(mmio, XE_REG(offset));
>+
>+ if (FIELD_GET(GUID_CAP_TYPE, val) == TELEMETRY &&
>+ FIELD_GET(GUID_RECORD_ID, val) == record &&
>+ xe_guid_instance(xe, val) == instance) {
>+ *guid = val;
>+ ret = 0;
>+ break;
>+ }
>+ }
>+ }
>+
>+ xe_pm_runtime_put(xe);
>+
>+ return ret;
>+}
>+
>+/**
>+ * xe_pmt_read - Read samples from a PMT telemetry region
>+ * @xe: valid xe device
>+ * @record: PMT record of the region
>+ * @instance: instance of the region within @record, 0 if there is only one
>+ * @offset: offset of the first sample in the region
>+ * @data: buffer to place the samples in
>+ * @count: bytes to read
>+ *
>+ * Read from the telemetry region of @record, found from the PMT discovery
>+ * entries of the device. In the PMT definition of the region, each
>+ * SampleGroup is a 64-bit container at sampleID * 8, which is the @offset to
>+ * use. The "Groupname" address in its description is not the offset.
>+ *
>+ * Return:
>+ * * -ENODATA device is not active
>+ * * -EINVAL unsupported platform
>+ * * -ENOENT no such region on this device
>+ * * count number of bytes read on success
>+ * * or any error from xe_pmt_telem_read()
>+ */
>+int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32
>instance,
>+ u32 offset, u64 *data, u32 count)
>+{
>+ u32 guid;
>+ int ret;
>+
>+ ret = xe_pmt_get_telem_guid(xe, record, instance, &guid);
>+ if (ret)
>+ return ret;
>+
>+ return xe_pmt_telem_read(xe->drm.dev, guid, data, offset, count);
>+}
>+
> /**
> * xe_vsec_init - Initialize resources and add intel_vsec auxiliary
> * interface
>diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
>index 3715a597b7dd..20f45b890c70 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.h
>+++ b/drivers/gpu/drm/xe/xe_vsec.h
>@@ -27,5 +27,7 @@ void xe_vsec_init(struct xe_device *xe);
> void xe_vsec_remove(struct xe_device *xe);
> int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
> int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t
>user_offset, u32 count);
>+int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32
>instance,
>+ u32 offset, u64 *data, u32 count);
>
> #endif
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry
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
0 siblings, 1 reply; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:57 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT
>telemetry
>
>Read the BMG energy and fan PWM from the PUNIT telemetry with
>xe_pmt_read(), instead of getting the GUID first with
>xe_vsec_get_guid() and then calling xe_pmt_telem_read().
>
>No functional change.
>
>Cc: Karthik Poosa <karthik.poosa@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/xe_hwmon.c | 23 +++++------------------
> 1 file changed, 5 insertions(+), 18 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_hwmon.c
>b/drivers/gpu/drm/xe/xe_hwmon.c
>index 152699801e05..e7406337e39e 100644
>--- a/drivers/gpu/drm/xe/xe_hwmon.c
>+++ b/drivers/gpu/drm/xe/xe_hwmon.c
>@@ -805,16 +805,9 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon,
>int channel, long *energy)
>
> if (hwmon->xe->info.platform == XE_BATTLEMAGE) {
> u64 pmt_val;
>- u32 guid;
>
>- ret = xe_vsec_get_guid(hwmon->xe, &guid);
>- if (ret) {
>- drm_warn(&hwmon->xe->drm, "PMT device is not
>available: %d\n", ret);
>- *energy = 0;
>- return ret;
>- }
>- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid,
>- &pmt_val,
>BMG_ENERGY_STATUS_PMT_OFFSET, sizeof(pmt_val));
>+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0,
>BMG_ENERGY_STATUS_PMT_OFFSET,
>+ &pmt_val, sizeof(pmt_val));
> if (ret != sizeof(pmt_val)) {
> drm_warn(&hwmon->xe->drm, "energy read from pmt
>failed, ret %d\n", ret);
> *energy = 0;
>@@ -2633,7 +2626,7 @@ static int xe_hwmon_get_active_table_pwm(struct
>xe_hwmon *hwmon, int channel, lo
> static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int
>channel, long *val)
> {
> u64 pmt_val;
>- u32 guid, pwm;
>+ u32 pwm;
> int ret;
>
> lockdep_assert_held(&hwmon->hwmon_lock);
>@@ -2641,14 +2634,8 @@ static int xe_hwmon_get_pwm_from_pmt(struct
>xe_hwmon *hwmon, int channel, long *
> if (hwmon->xe->info.platform != XE_BATTLEMAGE)
> return -EOPNOTSUPP;
>
>- ret = xe_vsec_get_guid(hwmon->xe, &guid);
>- if (ret) {
>- xe_warn(hwmon->xe, "failed to read pwm, PMT unavailable:
>%d\n", ret);
>- return ret;
>- }
>-
>- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid, &pmt_val,
>- BMG_FAN_PWM_PMT_OFFSET, sizeof(pmt_val));
>+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_FAN_PWM_PMT_OFFSET,
>+ &pmt_val, sizeof(pmt_val));
Is this BMG only, or is the same for CRI?
M
> if (ret != sizeof(pmt_val)) {
> xe_warn(hwmon->xe, "pwm read from PMT failed: %d\n", ret);
> return ret < 0 ? ret : -EIO;
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode version
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
0 siblings, 0 replies; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:58 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 04/15] drm/xe/pcode: Use xe_pmt_read() for the pcode
>version
>
>Read the pcode version from the PUNIT telemetry with xe_pmt_read(),
>instead of getting the GUID first with xe_vsec_get_guid() and then
>calling xe_pmt_telem_read().
>
>No functional change.
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/xe_pcode.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
>index f465decbf946..7d4901780d7f 100644
>--- a/drivers/gpu/drm/xe/xe_pcode.c
>+++ b/drivers/gpu/drm/xe/xe_pcode.c
>@@ -414,18 +414,11 @@ ALLOW_ERROR_INJECTION(xe_pcode_probe_early,
>ERRNO); /* See xe_pci_probe */
> int xe_get_pcode_version(struct xe_device *xe, struct xe_pcode_version
>*version)
> {
> int ret = 0;
>- u32 guid;
>
> guard(xe_pm_runtime)(xe);
>
>- ret = xe_vsec_get_guid(xe, &guid);
>- if (ret) {
>- xe_warn(xe, "PMT device is not available: %d\n", ret);
>- return ret;
>- }
>-
>- ret = xe_pmt_telem_read(xe->drm.dev, guid,
>- (u64 *)version, PUNIT_VERSION_OFFSET,
>sizeof(*version));
>+ ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, PUNIT_VERSION_OFFSET,
>+ (u64 *)version, sizeof(*version));
> if (ret != sizeof(*version)) {
> xe_warn(xe, "pcode version read from PMT failed, ret %pe\n",
>ERR_PTR(ret));
> return ret;
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 05/15] drm/xe/debugfs: Use xe_pmt_read() for the residencies
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
0 siblings, 0 replies; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:58 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 05/15] drm/xe/debugfs: Use xe_pmt_read() for the
>residencies
>
>Read the package and PCIe link residencies from the PUNIT telemetry with
>xe_pmt_read(), instead of getting the GUID first with xe_vsec_get_guid()
>and then calling xe_pmt_telem_read().
>
>No functional change.
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/xe_debugfs.c | 9 +--------
> 1 file changed, 1 insertion(+), 8 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_debugfs.c
>b/drivers/gpu/drm/xe/xe_debugfs.c
>index 52c50496fa35..8b7f6d3d7cd0 100644
>--- a/drivers/gpu/drm/xe/xe_debugfs.c
>+++ b/drivers/gpu/drm/xe/xe_debugfs.c
>@@ -153,16 +153,9 @@ static void read_residency_counter(struct xe_device
>*xe, u32 offset, const char
> struct drm_printer *p)
> {
> u64 residency = 0;
>- u32 guid;
> int ret;
>
>- ret = xe_vsec_get_guid(xe, &guid);
>- if (ret) {
>- drm_warn(&xe->drm, "PMT device is not available: %d\n", ret);
>- return;
>- }
>-
>- ret = xe_pmt_telem_read(xe->drm.dev, guid, &residency, offset,
>sizeof(residency));
>+ ret = xe_pmt_read(xe, XE_PMT_PUNIT, 0, offset, &residency,
>sizeof(residency));
> if (ret != sizeof(residency)) {
> drm_warn(&xe->drm, "%s counter failed to read, ret %d\n",
>name, ret);
> return;
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* RE: [PATCH 06/15] drm/xe/vsec: Remove xe_vsec_get_guid()
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
0 siblings, 0 replies; 27+ messages in thread
From: Ruhl, Michael J @ 2026-12-03 21:59 UTC (permalink / raw)
To: Vivi, Rodrigo, intel-xe@lists.freedesktop.org
Cc: Gupta, Anshuman, Poosa, Karthik
>-----Original Message-----
>From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
>Sent: Thursday, December 3, 2026 3:10 PM
>To: intel-xe@lists.freedesktop.org
>Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
>Rodrigo <rodrigo.vivi@intel.com>
>Subject: [PATCH 06/15] drm/xe/vsec: Remove xe_vsec_get_guid()
>
>xe_vsec_get_guid() has no users left, as xe_pmt_read() finds the GUID in
>the discovery entries. Remove it, with its cache and the PUNIT GUID
>registers.
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Cc: Michael J. Ruhl <michael.j.ruhl@intel.com>
>Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
>---
> drivers/gpu/drm/xe/regs/xe_pmt.h | 3 --
> drivers/gpu/drm/xe/xe_device_types.h | 2 -
> drivers/gpu/drm/xe/xe_vsec.c | 59 ----------------------------
> drivers/gpu/drm/xe/xe_vsec.h | 1 -
> 4 files changed, 65 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/regs/xe_pmt.h
>b/drivers/gpu/drm/xe/regs/xe_pmt.h
>index 2a55a10be37a..bf4c3959a91f 100644
>--- a/drivers/gpu/drm/xe/regs/xe_pmt.h
>+++ b/drivers/gpu/drm/xe/regs/xe_pmt.h
>@@ -10,7 +10,6 @@
> #define BMG_PMT_BASE_OFFSET 0xDB000
> #define BMG_DISCOVERY_OFFSET (SOC_BASE +
>BMG_PMT_BASE_OFFSET)
>
>-#define BMG_PUNIT_TELEMETRY_GUID
> XE_REG(BMG_DISCOVERY_OFFSET + 0x4)
> /* PMT telemetry sample offsets, see xe_pmt_read() */
> #define BMG_ENERGY_STATUS_PMT_OFFSET (0x30)
> #define ENERGY_PKG REG_GENMASK64(31, 0)
>@@ -30,8 +29,6 @@
> /* for CRI discovery and telemetry are in an indexed window */
> #define CRI_PMT_OFFSET (SOC_BASE +
>XE_PMT_BASE_OFFSET)
>
>-#define CRI_PUNIT_TELEMETRY_GUID XE_REG(CRI_PMT_OFFSET + 0x4)
>-
> #define BMG_MODS_RESIDENCY_OFFSET (0x4D0)
> #define BMG_G2_RESIDENCY_OFFSET (0x530)
> #define BMG_G6_RESIDENCY_OFFSET (0x538)
>diff --git a/drivers/gpu/drm/xe/xe_device_types.h
>b/drivers/gpu/drm/xe/xe_device_types.h
>index 62ca5c645179..2dd18c274827 100644
>--- a/drivers/gpu/drm/xe/xe_device_types.h
>+++ b/drivers/gpu/drm/xe/xe_device_types.h
>@@ -507,8 +507,6 @@ struct xe_device {
> struct delayed_work work;
> /** @pmt.retry_count: late-bind probe retry */
> u32 retry_count;
>- /** @pmt.punit_guid_cache: cache of the PUNIT GUID */
>- u32 punit_guid_cache;
> /** @pmt.survivability_mode: cache of survivability mode
>state */
> bool survivability_mode;
> } pmt;
>diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
>index 3d20065dd269..cb62179e48c9 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.c
>+++ b/drivers/gpu/drm/xe/xe_vsec.c
>@@ -666,65 +666,6 @@ static void cri_late_bind_probe(struct xe_device *xe)
> intel_vsec_register(dev, info);
> }
>
>-/**
>- * xe_vsec_get_guid - Get and cache the PUNIT guid value
>- * @xe: valid xe device
>- * @guid: returned guid
>- *
>- * Return:
>- * * -ENODATA device is not active
>- * * -EINVAL unsupported platform
>- * * 0 success
>- */
>-int xe_vsec_get_guid(struct xe_device *xe, u32 *guid)
>-{
>- struct xe_mmio *mmio = xe_root_tile_mmio(xe);
>- int ret = 0;
>-
>- xe_assert(xe, !IS_SRIOV_VF(xe));
>-
>- if (!xe_pm_runtime_get_if_active(xe))
>- return -ENODATA;
>-
>- mutex_lock(&xe->pmt.lock);
>-
>- if (xe->pmt.punit_guid_cache) {
>- *guid = xe->pmt.punit_guid_cache;
>- goto unlock;
>- }
>-
>- switch (xe->info.platform) {
>- case XE_BATTLEMAGE:
>- *guid = xe_mmio_read32(mmio,
>BMG_PUNIT_TELEMETRY_GUID);
>- break;
>-
>- case XE_CRESCENTISLAND:
>- xe->soc_remapper.set_telem_region(xe,
>CRI_IDX_TELEM_DISCOVERY);
>- *guid = xe_mmio_read32(mmio,
>CRI_PUNIT_TELEMETRY_GUID);
>- break;
>-
>- default:
>- *guid = 0;
>- drm_err(&xe->drm, "Unsupported platform: %u\n", xe-
>>info.platform);
>- ret = -EINVAL;
>- goto unlock;
>- }
>-
>- /* the GUID is static, read once and cache for all requests */
>- if (*guid) {
>- xe->pmt.punit_guid_cache = *guid;
>- } else {
>- drm_err(&xe->drm, "Invalid GUID: 0x%x\n", *guid);
>- ret = -EINVAL;
>- }
>-
>-unlock:
>- mutex_unlock(&xe->pmt.lock);
>- xe_pm_runtime_put(xe);
>-
>- return ret;
>-}
>-
> static u32 xe_guid_instance(struct xe_device *xe, u32 guid)
> {
> return xe->info.platform == XE_CRESCENTISLAND ?
>FIELD_GET(CRI_GUID_INSTANCE, guid) : 0;
>diff --git a/drivers/gpu/drm/xe/xe_vsec.h b/drivers/gpu/drm/xe/xe_vsec.h
>index 20f45b890c70..14d57374678f 100644
>--- a/drivers/gpu/drm/xe/xe_vsec.h
>+++ b/drivers/gpu/drm/xe/xe_vsec.h
>@@ -25,7 +25,6 @@ enum xe_pmt_record {
>
> void xe_vsec_init(struct xe_device *xe);
> void xe_vsec_remove(struct xe_device *xe);
>-int xe_vsec_get_guid(struct xe_device *xe, u32 *guid);
> int xe_pmt_telem_read(struct device *dev, u32 guid, u64 *data, loff_t
>user_offset, u32 count);
> int xe_pmt_read(struct xe_device *xe, enum xe_pmt_record record, u32
>instance,
> u32 offset, u64 *data, u32 count);
>--
>2.56.0
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT telemetry
2026-12-03 21:57 ` Ruhl, Michael J
@ 2026-12-04 15:17 ` Rodrigo Vivi
0 siblings, 0 replies; 27+ messages in thread
From: Rodrigo Vivi @ 2026-12-04 15:17 UTC (permalink / raw)
To: Ruhl, Michael J
Cc: intel-xe@lists.freedesktop.org, Gupta, Anshuman, Poosa, Karthik
On Thu, Dec 03, 2026 at 04:57:43PM -0500, Ruhl, Michael J wrote:
>
>
> >-----Original Message-----
> >From: Vivi, Rodrigo <rodrigo.vivi@intel.com>
> >Sent: Thursday, December 3, 2026 3:10 PM
> >To: intel-xe@lists.freedesktop.org
> >Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Poosa, Karthik
> ><karthik.poosa@intel.com>; Ruhl, Michael J <michael.j.ruhl@intel.com>; Vivi,
> >Rodrigo <rodrigo.vivi@intel.com>
> >Subject: [PATCH 03/15] drm/xe/hwmon: Use xe_pmt_read() for the PMT
> >telemetry
> >
> >Read the BMG energy and fan PWM from the PUNIT telemetry with
> >xe_pmt_read(), instead of getting the GUID first with
> >xe_vsec_get_guid() and then calling xe_pmt_telem_read().
> >
> >No functional change.
> >
> >Cc: Karthik Poosa <karthik.poosa@intel.com>
> >Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> >---
> > drivers/gpu/drm/xe/xe_hwmon.c | 23 +++++------------------
> > 1 file changed, 5 insertions(+), 18 deletions(-)
> >
> >diff --git a/drivers/gpu/drm/xe/xe_hwmon.c
> >b/drivers/gpu/drm/xe/xe_hwmon.c
> >index 152699801e05..e7406337e39e 100644
> >--- a/drivers/gpu/drm/xe/xe_hwmon.c
> >+++ b/drivers/gpu/drm/xe/xe_hwmon.c
> >@@ -805,16 +805,9 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon,
> >int channel, long *energy)
> >
> > if (hwmon->xe->info.platform == XE_BATTLEMAGE) {
> > u64 pmt_val;
> >- u32 guid;
> >
> >- ret = xe_vsec_get_guid(hwmon->xe, &guid);
> >- if (ret) {
> >- drm_warn(&hwmon->xe->drm, "PMT device is not
> >available: %d\n", ret);
> >- *energy = 0;
> >- return ret;
> >- }
> >- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid,
> >- &pmt_val,
> >BMG_ENERGY_STATUS_PMT_OFFSET, sizeof(pmt_val));
> >+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0,
> >BMG_ENERGY_STATUS_PMT_OFFSET,
> >+ &pmt_val, sizeof(pmt_val));
> > if (ret != sizeof(pmt_val)) {
> > drm_warn(&hwmon->xe->drm, "energy read from pmt
> >failed, ret %d\n", ret);
> > *energy = 0;
> >@@ -2633,7 +2626,7 @@ static int xe_hwmon_get_active_table_pwm(struct
> >xe_hwmon *hwmon, int channel, lo
> > static int xe_hwmon_get_pwm_from_pmt(struct xe_hwmon *hwmon, int
> >channel, long *val)
> > {
> > u64 pmt_val;
> >- u32 guid, pwm;
> >+ u32 pwm;
> > int ret;
> >
> > lockdep_assert_held(&hwmon->hwmon_lock);
> >@@ -2641,14 +2634,8 @@ static int xe_hwmon_get_pwm_from_pmt(struct
> >xe_hwmon *hwmon, int channel, long *
> > if (hwmon->xe->info.platform != XE_BATTLEMAGE)
> > return -EOPNOTSUPP;
> >
> >- ret = xe_vsec_get_guid(hwmon->xe, &guid);
> >- if (ret) {
> >- xe_warn(hwmon->xe, "failed to read pwm, PMT unavailable:
> >%d\n", ret);
> >- return ret;
> >- }
> >-
> >- ret = xe_pmt_telem_read(hwmon->xe->drm.dev, guid, &pmt_val,
> >- BMG_FAN_PWM_PMT_OFFSET, sizeof(pmt_val));
>
> >+ ret = xe_pmt_read(hwmon->xe, XE_PMT_PUNIT, 0, BMG_FAN_PWM_PMT_OFFSET,
> >+ &pmt_val, sizeof(pmt_val));
>
> Is this BMG only, or is the same for CRI?
BMG only, as before: xe_hwmon_get_pwm_from_pmt() returns -EOPNOTSUPP on
other platforms, and this patch does not change that.
I'm addressing all your comments and going to resend a v2 next week.
Thank you
>
> M
>
> > if (ret != sizeof(pmt_val)) {
> > xe_warn(hwmon->xe, "pwm read from PMT failed: %d\n", ret);
> > return ret < 0 ? ret : -EIO;
> >--
> >2.56.0
>
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2026-12-04 15:18 UTC | newest]
Thread overview: 27+ 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox