* [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox
@ 2026-10-13 2:06 Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit Karthik Poosa
` (18 more replies)
0 siblings, 19 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
This series adds CRI-specific temperature sensor handling to the Xe
hwmon implementation and fixes couple of hwmon issues.
CRI platforms may report unavailable temperature sensors and support
a variable number of VRAM temperature channels depending on platform
configuration. This series adds the required sensor presence checks and
uses platform-reported thermal configuration data to expose only valid
temperature-related hwmon attributes.
The series also corrects the telemetry group selection used for memory
controller temperature reporting.
v2:
- Address review comments from Sashiko, Badal and Raag.
- Enable IEEE 754 temperature decoding for MMIO temperature registers.
- Split sensor validity check into mailbox vs MMIO handling; add
is_temp_available() / is_temp_is_visible().
- Temporarily disable memory controller and PCIe temperatures on CRI.
v3:
- Detect unavailable temperature sensors: rephrase a debug log.
- Decode mailbox temperatures as 8-bit sign-magnitude values instead of
s8.
- Use VRAM temperature sensor count from thermal config on CRI: address
review comments from sashiko-bot@kernel.org and Rodrigo.
- Decode CRI temperature registers as IEEE-754: reject temperatures that
overflow long on 32-bit systems.
v4:
- Address review comments and issues report from Rodrigo and
sashiko-bot@kernel.org.
- Decode mailbox temperatures as 8-bit sign-magnitude values.
- Cache sensor availability during registration.
- Enable memory controller and pcie sensors for CRI.
- Derive the VRAM channel count from the CRI MSU enable mask.
- Use CRI-specific package and VRAM temperature registers.
- Handle the CRI memory controller and pcie sensor offsets as per CRI.
v5:
- Remove the unintended IGT prefix from the patch titles.
v6:
- Address issues reported by sashiko-bot@kernel.org.
- Add VRAM individual channel CRI_VRAM_TEMPERATURE_N register for CRI.
v7:
- Address review comments from Rodrigo.
- Use ret instead of count in patch 1.
- Return true for platforms without temperature sentinels support.
- Rename has_mbx_temp_sentinel to has_temp_sentinel.
- Add a info flag for pcie sensor offset.
- Simplify temperature channels config.
v8:
- Address review comment from Sashiko.
- Revert the unconditional validation of temperature readings on
non-sentinel platforms.
This avoids creating spurious VRAM temperature channels when the
corresponding sensors are unavailable.
a
v9:
- Address review comment from Rodrigo.
- Use helper for pcie sensor offset instead of info field.
v10:
- Address review comments from sashiko.
v11:
- Add https://patchwork.freedesktop.org/series/175943/ part of this
series as patch 16. (Rodrigo)
- Resubmit to get CI results as v10 didn't have it.
Karthik Poosa (16):
drm/xe/hwmon: Handle pcode read failures of
xe_hwmon_pcode_rmw_power_limit
drm/xe/hwmon: Decode mailbox temperature as sign-magnitude
drm/xe/hwmon: Fix thermal sensor data handling
drm/xe/hwmon: Add helpers to validate thermal sensor readings
drm/xe/hwmon: Handle unavailable memory controller sensors
drm/xe/hwmon: Detect unavailable PCIe thermal sensors
drm/xe/hwmon: Consolidate temperature sensor availability checks
drm/xe/hwmon: Cache temperature availability to reduce probe time
drm/xe/hwmon: use CRI-specific package and VRAM temperature registers
drm/xe/hwmon: Add platform-aware VRAM thermal channel support
drm/xe/hwmon: Decode CRI temperature registers as IEEE-754
drm/xe/hwmon: Update memory controller temperature offset for CRI
drm/xe/hwmon: add PCIe temperature support for CRI
drm/xe/hwmon: Simplify temperature channels config
drm/xe: Validate thermal sensor count before reads
drm/xe/hwmon: Propagate all hardware read errors
drivers/gpu/drm/xe/regs/xe_pcode_regs.h | 4 +
drivers/gpu/drm/xe/xe_device_types.h | 4 +
drivers/gpu/drm/xe/xe_hwmon.c | 525 ++++++++++++++++++------
drivers/gpu/drm/xe/xe_pci.c | 4 +
drivers/gpu/drm/xe/xe_pci_types.h | 2 +
drivers/gpu/drm/xe/xe_pcode_api.h | 2 -
6 files changed, 416 insertions(+), 125 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:23 ` sashiko-bot
2026-10-13 2:06 ` [PATCH v11 02/16] drm/xe/hwmon: Decode mailbox temperature as sign-magnitude Karthik Poosa
` (17 subsequent siblings)
18 siblings, 1 reply; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Return early when the pcode read operation fails in
xe_hwmon_pcode_rmw_power_limit() and check the returned error in
callers to avoid updating power limit settings with invalid data.
Fixes: 8aa7306631f0 ("drm/xe/hwmon: Fix xe_hwmon_power_max_write")
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 5edeac961ec3..9884e06f83e5 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -232,9 +232,11 @@ static int xe_hwmon_pcode_rmw_power_limit(const struct xe_hwmon *hwmon, u32 attr
READ_PSYSGPU_POWER_LIMIT :
READ_PACKAGE_POWER_LIMIT,
prepare_power_limit_param2(hwmon)), &val0, &val1);
- if (ret)
- drm_dbg(&hwmon->xe->drm, "read failed ch %d val0 0x%08x, val1 0x%08x, ret %d\n",
+ if (ret) {
+ drm_err(&hwmon->xe->drm, "read failed ch %d val0 0x%08x, val1 0x%08x, ret %d\n",
channel, val0, val1, ret);
+ return ret;
+ }
if (attr == PL1_HWMON_ATTR)
val0 = (val0 & ~clr) | set;
@@ -394,7 +396,9 @@ static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channe
if (hwmon->xe->info.has_mbx_power_limits) {
drm_dbg(&hwmon->xe->drm, "disabling %s on channel %d\n",
PWR_ATTR_TO_STR(attr), channel);
- xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
+ ret = xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
+ if (ret)
+ goto unlock;
xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
} else {
reg_val = xe_mmio_rmw32(mmio, rapl_limit, PWR_LIM_EN, 0);
@@ -679,15 +683,19 @@ xe_hwmon_power_max_interval_store(struct device *dev, struct device_attribute *a
mutex_lock(&hwmon->hwmon_lock);
- if (hwmon->xe->info.has_mbx_power_limits)
- xe_hwmon_pcode_rmw_power_limit(hwmon, power_attr, channel, PWR_LIM_TIME, rxy);
- else
+ ret = count;
+ if (hwmon->xe->info.has_mbx_power_limits) {
+ ret = xe_hwmon_pcode_rmw_power_limit(hwmon, power_attr, channel, PWR_LIM_TIME, rxy);
+ if (!ret)
+ ret = count;
+ } else {
r = xe_mmio_rmw32(mmio, xe_hwmon_get_reg(hwmon, REG_PKG_RAPL_LIMIT, channel),
PWR_LIM_TIME, rxy);
+ }
mutex_unlock(&hwmon->hwmon_lock);
- return count;
+ return ret;
}
/* PSYS PL1 */
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 02/16] drm/xe/hwmon: Decode mailbox temperature as sign-magnitude
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 03/16] drm/xe/hwmon: Fix thermal sensor data handling Karthik Poosa
` (16 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
The mailbox temperature is an 8-bit sign-magnitude value (bit 7 sign,
bits 6:0 magnitude, range -127..127), not two's-complement. Casting the
raw byte to s8 decodes negative readings incorrectly.
Add mbx_temp_decode(), store the raw byte as u8, and use it in
get_mc_temp() and get_pcie_temp() so temperatures are decoded correctly.
Fixes: 3a0cb885e111 ("drm/xe/hwmon: Expose memory controller temperature")
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 9884e06f83e5..c63aa708ab6f 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -104,6 +104,10 @@ enum sensor_attr_power {
/* Index of memory controller in READ_THERMAL_DATA output */
#define TEMP_INDEX_MCTRL 2
+/* Mailbox temperature is sign-magnitude: bit 7 sign, bits 6:0 magnitude. */
+#define TEMP_MBX_SIGN BIT(7)
+#define TEMP_MBX_MAG GENMASK(6, 0)
+
/* Maximum characters in hwmon label name */
#define MAX_LABEL_SIZE 16
@@ -139,8 +143,8 @@ struct xe_hwmon_thermal_info {
};
/** @count: no of temperature sensors available for the platform */
u8 count;
- /** @value: signed value from each sensor */
- s8 value[U8_MAX];
+ /** @value: per-sensor raw mailbox temperature; bit7=sign, bits6:0=magnitude */
+ u8 value[U8_MAX];
/** @vram_label: vram label names */
char vram_label[MAX_VRAM_CHANNELS][MAX_LABEL_SIZE];
};
@@ -816,6 +820,14 @@ static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
return ret;
}
+/* Decode an 8-bit sign-magnitude mailbox temperature to degrees Celsius. */
+static int mbx_temp_decode(u8 value)
+{
+ int temp = value & TEMP_MBX_MAG;
+
+ return (value & TEMP_MBX_SIGN) ? -temp : temp;
+}
+
static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
@@ -832,7 +844,7 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
}
for (i = TEMP_INDEX_MCTRL; i < hwmon->temp.count - 1; i++)
- average += hwmon->temp.value[i];
+ average += mbx_temp_decode(hwmon->temp.value[i]);
average /= (hwmon->temp.count - TEMP_INDEX_MCTRL - 1);
*val = average * MILLIDEGREE_PER_DEGREE;
@@ -855,7 +867,7 @@ static int get_pcie_temp(struct xe_hwmon *hwmon, long *val)
data = REG_FIELD_GET(PCIE_SENSOR_MASK, data);
data = REG_FIELD_GET(TEMP_MASK, data);
- *val = (s8)data * MILLIDEGREE_PER_DEGREE;
+ *val = mbx_temp_decode(data) * MILLIDEGREE_PER_DEGREE;
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 03/16] drm/xe/hwmon: Fix thermal sensor data handling
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 02/16] drm/xe/hwmon: Decode mailbox temperature as sign-magnitude Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings Karthik Poosa
` (15 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Read all required thermal groups in get_mc_temp() and store them in a
dword-aligned buffer, avoiding unaligned pcode accesses and ensuring
correct memory controller temperature reporting.
Store the pcode thermal data and thermal limit words as little-endian,
so their per-byte views match the hardware layout on big-endian hosts.
Fixes: 3a0cb885e111 ("drm/xe/hwmon: Expose memory controller temperature")
Fixes: c332fba805d6 ("drm/xe/hwmon: Expose temperature limits")
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index c63aa708ab6f..2d1fa9159c58 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -138,13 +138,17 @@ struct xe_hwmon_thermal_info {
union {
/** @limit: temperatures limits */
u8 limit[TEMP_LIMIT_MAX];
- /** @data: temperature limits in dwords */
- u32 data[DIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32))];
+ /** @data: temperature limits as little-endian dwords */
+ __le32 data[DIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32))];
};
/** @count: no of temperature sensors available for the platform */
u8 count;
- /** @value: per-sensor raw mailbox temperature; bit7=sign, bits6:0=magnitude */
- u8 value[U8_MAX];
+ union {
+ /** @value: per-sensor raw mailbox temperature; bit7=sign, bits6:0=magnitude */
+ u8 value[U8_MAX + 1];
+ /** @dword: sensor values as little-endian dwords, u32-aligned for pcode reads */
+ __le32 dword[DIV_ROUND_UP(U8_MAX + 1, sizeof(u32))];
+ };
/** @vram_label: vram label names */
char vram_label[MAX_VRAM_CHANNELS][MAX_LABEL_SIZE];
};
@@ -798,16 +802,17 @@ static const struct hwmon_channel_info * const hwmon_info[] = {
static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
- u32 config = 0;
+ u32 config = 0, data0 = 0, data1 = 0;
int ret;
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_LIMITS, 0),
- &hwmon->temp.data[0], &hwmon->temp.data[1]);
+ &data0, &data1);
if (ret)
return ret;
- drm_dbg(&hwmon->xe->drm, "thermal info read val 0x%x val1 0x%x\n",
- hwmon->temp.data[0], hwmon->temp.data[1]);
+ drm_dbg(&hwmon->xe->drm, "thermal info read val 0x%x val1 0x%x\n", data0, data1);
+ hwmon->temp.data[0] = cpu_to_le32(data0);
+ hwmon->temp.data[1] = cpu_to_le32(data1);
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_CONFIG, 0),
&config, NULL);
@@ -831,16 +836,18 @@ static int mbx_temp_decode(u8 value)
static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
- u32 *dword = (u32 *)hwmon->temp.value;
s32 average = 0;
int ret, i;
- for (i = 0; i < DIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32)); i++) {
+ for (i = 0; i < DIV_ROUND_UP(hwmon->temp.count, sizeof(u32)); i++) {
+ u32 data = 0;
+
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_DATA, i),
- (dword + i), NULL);
+ &data, NULL);
if (ret)
return ret;
- drm_dbg(&hwmon->xe->drm, "thermal data for group %d val 0x%x\n", i, dword[i]);
+ drm_dbg(&hwmon->xe->drm, "thermal data for group %d val 0x%x\n", i, data);
+ hwmon->temp.dword[i] = cpu_to_le32(data);
}
for (i = TEMP_INDEX_MCTRL; i < hwmon->temp.count - 1; i++)
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (2 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 03/16] drm/xe/hwmon: Fix thermal sensor data handling Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:24 ` sashiko-bot
2026-10-13 2:06 ` [PATCH v11 05/16] drm/xe/hwmon: Handle unavailable memory controller sensors Karthik Poosa
` (14 subsequent siblings)
18 siblings, 1 reply; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Add mmio_temp_valid() and mbx_temp_valid() to check whether a temperature
sensor reading is valid. An MMIO value of 0xFFFFFFFF or a mailbox value of
0xFF indicates the sensor is unavailable.
Gate these checks behind has_temp_sentinel, enabled on CRI currently.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_device_types.h | 2 ++
drivers/gpu/drm/xe/xe_hwmon.c | 20 ++++++++++++++++++++
drivers/gpu/drm/xe/xe_pci.c | 2 ++
drivers/gpu/drm/xe/xe_pci_types.h | 1 +
4 files changed, 25 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 4e0e1bc040c1..beb0ceaabb3f 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -227,6 +227,8 @@ struct xe_device {
u8 has_sriov:1;
/** @info.has_sysctrl: Supports System Controller */
u8 has_sysctrl:1;
+ /** @info.has_temp_sentinel: Device has temperature-unavailable sentinels */
+ u8 has_temp_sentinel:1;
/** @info.has_usm: Device has unified shared memory support */
u8 has_usm:1;
/** @info.has_64bit_timestamp: Device supports 64-bit timestamps */
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 2d1fa9159c58..712a21a99636 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -104,6 +104,9 @@ enum sensor_attr_power {
/* Index of memory controller in READ_THERMAL_DATA output */
#define TEMP_INDEX_MCTRL 2
+/* Mailbox sentinel reported for an unavailable temperature sensor */
+#define TEMP_MBX_INVALID 0xFF
+
/* Mailbox temperature is sign-magnitude: bit 7 sign, bits 6:0 magnitude. */
#define TEMP_MBX_SIGN BIT(7)
#define TEMP_MBX_MAG GENMASK(6, 0)
@@ -825,6 +828,23 @@ static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
return ret;
}
+static inline bool mmio_temp_valid(const struct xe_hwmon *hwmon, u32 value)
+{
+ /*
+ * On platforms lacking temperature sentinel support, a value of 0 is treated
+ * as invalid. While 0°C is theoretically possible, it is highly unlikely for
+ * a discrete GPU in normal environments, making it a reasonable fallback
+ * indicator for invalid or uninitialized temperature readings.
+ */
+ return hwmon->xe->info.has_temp_sentinel ? value != U32_MAX : value != 0;
+}
+
+/* Mailbox temperature is sign-magnitude (bit 7 sign, bits 6:0 magnitude). */
+static inline bool mbx_temp_valid(const struct xe_hwmon *hwmon, u8 value)
+{
+ return hwmon->xe->info.has_temp_sentinel ? value != TEMP_MBX_INVALID : value != 0;
+}
+
/* Decode an 8-bit sign-magnitude mailbox temperature to degrees Celsius. */
static int mbx_temp_decode(u8 value)
{
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index e44b74b9aa27..111d0aa45b10 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -486,6 +486,7 @@ static const struct xe_device_desc cri_desc = {
.has_soc_remapper_telem = true,
.has_sriov = true,
.has_sysctrl = true,
+ .has_temp_sentinel = true,
.max_gt_per_tile = 2,
MULTI_LRC_MASK,
.require_force_probe = true,
@@ -817,6 +818,7 @@ static int xe_info_init_early(struct xe_device *xe,
xe->info.has_sriov = xe_configfs_primary_gt_allowed(to_pci_dev(xe->drm.dev)) &&
desc->has_sriov;
xe->info.has_sysctrl = desc->has_sysctrl;
+ xe->info.has_temp_sentinel = desc->has_temp_sentinel;
xe->info.skip_guc_pc = desc->skip_guc_pc;
xe->info.skip_pcode = desc->skip_pcode;
xe->info.needs_scratch = desc->needs_scratch;
diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h
index 448bbe5ba1d7..15eedac8467a 100644
--- a/drivers/gpu/drm/xe/xe_pci_types.h
+++ b/drivers/gpu/drm/xe/xe_pci_types.h
@@ -61,6 +61,7 @@ struct xe_device_desc {
u8 has_soc_remapper_telem:1;
u8 has_sriov:1;
u8 has_sysctrl:1;
+ u8 has_temp_sentinel:1;
u8 needs_scratch:1;
u8 skip_guc_pc:1;
u8 skip_pcode:1;
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 05/16] drm/xe/hwmon: Handle unavailable memory controller sensors
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (3 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 06/16] drm/xe/hwmon: Detect unavailable PCIe thermal sensors Karthik Poosa
` (13 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Skip memory controller sensors that report invalid readings when
computing the average temperature in get_mc_temp(). Return -ENXIO when
no valid sensor data is available, and allow the helper to be used as
an availability probe by making the output parameter optional.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Fixes: 3a0cb885e111 ("drm/xe/hwmon: Expose memory controller temperature")
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 712a21a99636..5bc8eda94372 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -856,8 +856,8 @@ static int mbx_temp_decode(u8 value)
static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
+ int ret, i, count = 0;
s32 average = 0;
- int ret, i;
for (i = 0; i < DIV_ROUND_UP(hwmon->temp.count, sizeof(u32)); i++) {
u32 data = 0;
@@ -870,11 +870,23 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
hwmon->temp.dword[i] = cpu_to_le32(data);
}
- for (i = TEMP_INDEX_MCTRL; i < hwmon->temp.count - 1; i++)
+ for (i = TEMP_INDEX_MCTRL; i < hwmon->temp.count - 1; i++) {
+ if (!mbx_temp_valid(hwmon, hwmon->temp.value[i]))
+ continue;
average += mbx_temp_decode(hwmon->temp.value[i]);
+ count++;
+ }
+
+ if (!count) {
+ drm_dbg(&hwmon->xe->drm, "Memory controller temperature unavailable!\n");
+ return -ENXIO;
+ }
+
+ average /= count;
+
+ if (val)
+ *val = average * MILLIDEGREE_PER_DEGREE;
- average /= (hwmon->temp.count - TEMP_INDEX_MCTRL - 1);
- *val = average * MILLIDEGREE_PER_DEGREE;
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 06/16] drm/xe/hwmon: Detect unavailable PCIe thermal sensors
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (4 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 05/16] drm/xe/hwmon: Handle unavailable memory controller sensors Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 07/16] drm/xe/hwmon: Consolidate temperature sensor availability checks Karthik Poosa
` (12 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Return -ENXIO from get_pcie_temp() when the mailbox reports an invalid
reading, so the PCIe sensor can be treated as unavailable. Guard the val
store so the function can be used purely as an availability probe. No
sysfs visibility changes.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 5bc8eda94372..7b4b1d023eb7 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -906,7 +906,13 @@ static int get_pcie_temp(struct xe_hwmon *hwmon, long *val)
data = REG_FIELD_GET(PCIE_SENSOR_MASK, data);
data = REG_FIELD_GET(TEMP_MASK, data);
- *val = mbx_temp_decode(data) * MILLIDEGREE_PER_DEGREE;
+ if (!mbx_temp_valid(hwmon, data)) {
+ drm_dbg(&hwmon->xe->drm, "PCIe temperature not available\n");
+ return -ENXIO;
+ }
+
+ if (val)
+ *val = mbx_temp_decode(data) * MILLIDEGREE_PER_DEGREE;
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 07/16] drm/xe/hwmon: Consolidate temperature sensor availability checks
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (5 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 06/16] drm/xe/hwmon: Detect unavailable PCIe thermal sensors Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 08/16] drm/xe/hwmon: Cache temperature availability to reduce probe time Karthik Poosa
` (11 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Replace is_vram_ch_available() with a generalized is_temp_available()
that validates PKG, VRAM, per-channel VRAM, memory controller and PCIe
sensors using the new validity helpers. Rename the existing callers to
the new helper.
Use is_temp_available() from xe_hwmon_temp_is_visible() so attributes for
sensors that are not present are not exposed during hwmon registration.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Assisted-by: LLM
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 64 ++++++++++++++++++++++-------------
1 file changed, 40 insertions(+), 24 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 7b4b1d023eb7..73af7bab1374 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -1011,19 +1011,39 @@ static void xe_hwmon_get_voltage(struct xe_hwmon *hwmon, int channel, long *valu
*value = DIV_ROUND_CLOSEST(REG_FIELD_GET(VOLTAGE_MASK, reg_val) * 2500, SF_VOLTAGE);
}
-static inline bool is_vram_ch_available(struct xe_hwmon *hwmon, int channel)
+static bool is_temp_available(struct xe_hwmon *hwmon, int channel)
{
struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
- int vram_id = channel - CHANNEL_VRAM_N;
- struct xe_reg vram_reg;
+ struct xe_reg reg;
+ u32 reg_val;
- vram_reg = xe_hwmon_get_reg(hwmon, REG_TEMP, channel);
- if (!xe_reg_is_valid(vram_reg) || !xe_mmio_read32(mmio, vram_reg))
- return false;
+ switch (channel) {
+ case CHANNEL_PKG:
+ case CHANNEL_VRAM:
+ case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
+ reg = xe_hwmon_get_reg(hwmon, REG_TEMP, channel);
+ if (!xe_reg_is_valid(reg))
+ return false;
+
+ reg_val = xe_mmio_read32(mmio, reg);
+ if (!mmio_temp_valid(hwmon, reg_val)) {
+ drm_dbg(&hwmon->xe->drm,
+ "channel %d temperature unavailable, val 0x%x\n", channel, reg_val);
+ return false;
+ }
+
+ if (channel >= CHANNEL_VRAM_N)
+ sprintf(hwmon->temp.vram_label[channel - CHANNEL_VRAM_N],
+ "vram_ch_%d", channel - CHANNEL_VRAM_N);
- /* Create label only for available vram channel */
- sprintf(hwmon->temp.vram_label[vram_id], "vram_ch_%d", vram_id);
- return true;
+ return true;
+ case CHANNEL_MCTRL:
+ return hwmon->temp.count && !get_mc_temp(hwmon, NULL);
+ case CHANNEL_PCIE:
+ return hwmon->temp.count && !get_pcie_temp(hwmon, NULL);
+ default:
+ return false;
+ }
}
static umode_t
@@ -1033,14 +1053,13 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case hwmon_temp_emergency:
switch (channel) {
case CHANNEL_PKG:
- return hwmon->temp.limit[TEMP_LIMIT_PKG_SHUTDOWN] ? 0444 : 0;
- case CHANNEL_VRAM:
- return hwmon->temp.limit[TEMP_LIMIT_MEM_SHUTDOWN] ? 0444 : 0;
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
- return hwmon->temp.count ? 0444 : 0;
+ return (is_temp_available(hwmon, channel) &&
+ hwmon->temp.limit[TEMP_LIMIT_PKG_SHUTDOWN]) ? 0444 : 0;
+ case CHANNEL_VRAM:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return (is_vram_ch_available(hwmon, channel) &&
+ return (is_temp_available(hwmon, channel) &&
hwmon->temp.limit[TEMP_LIMIT_MEM_SHUTDOWN]) ? 0444 : 0;
default:
return 0;
@@ -1048,14 +1067,13 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case hwmon_temp_crit:
switch (channel) {
case CHANNEL_PKG:
- return hwmon->temp.limit[TEMP_LIMIT_PKG_CRIT] ? 0444 : 0;
- case CHANNEL_VRAM:
- return hwmon->temp.limit[TEMP_LIMIT_MEM_CRIT] ? 0444 : 0;
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
- return hwmon->temp.count ? 0444 : 0;
+ return (is_temp_available(hwmon, channel) &&
+ hwmon->temp.limit[TEMP_LIMIT_PKG_CRIT]) ? 0444 : 0;
+ case CHANNEL_VRAM:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return (is_vram_ch_available(hwmon, channel) &&
+ return (is_temp_available(hwmon, channel) &&
hwmon->temp.limit[TEMP_LIMIT_MEM_CRIT]) ? 0444 : 0;
default:
return 0;
@@ -1063,7 +1081,8 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case hwmon_temp_max:
switch (channel) {
case CHANNEL_PKG:
- return hwmon->temp.limit[TEMP_LIMIT_PKG_MAX] ? 0444 : 0;
+ return (is_temp_available(hwmon, channel) &&
+ hwmon->temp.limit[TEMP_LIMIT_PKG_MAX]) ? 0444 : 0;
default:
return 0;
}
@@ -1072,13 +1091,10 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
switch (channel) {
case CHANNEL_PKG:
case CHANNEL_VRAM:
- return xe_reg_is_valid(xe_hwmon_get_reg(hwmon, REG_TEMP,
- channel)) ? 0444 : 0;
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
- return hwmon->temp.count ? 0444 : 0;
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return is_vram_ch_available(hwmon, channel) ? 0444 : 0;
+ return is_temp_available(hwmon, channel) ? 0444 : 0;
default:
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 08/16] drm/xe/hwmon: Cache temperature availability to reduce probe time
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (6 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 07/16] drm/xe/hwmon: Consolidate temperature sensor availability checks Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 09/16] drm/xe/hwmon: use CRI-specific package and VRAM temperature registers Karthik Poosa
` (10 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Avoid probing temperature sensor availability from the hwmon is_visible()
callback. For MCTRL and PCIe channels, that path can trigger repeated
blocking mailbox reads while sysfs attributes are being created, increasing
probe time and making attribute creation sensitive to transient failures.
Probe temperature availability once during preregistration and cache the
result for subsequent visibility checks.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Assisted-by: LLM
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 39 +++++++++++++++++++++++------------
1 file changed, 26 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 73af7bab1374..d3cf90cf874d 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -146,6 +146,8 @@ struct xe_hwmon_thermal_info {
};
/** @count: no of temperature sensors available for the platform */
u8 count;
+ /** @available: temperature sensor availability cached at registration */
+ bool available[CHANNEL_MAX];
union {
/** @value: per-sensor raw mailbox temperature; bit7=sign, bits6:0=magnitude */
u8 value[U8_MAX + 1];
@@ -1011,7 +1013,7 @@ static void xe_hwmon_get_voltage(struct xe_hwmon *hwmon, int channel, long *valu
*value = DIV_ROUND_CLOSEST(REG_FIELD_GET(VOLTAGE_MASK, reg_val) * 2500, SF_VOLTAGE);
}
-static bool is_temp_available(struct xe_hwmon *hwmon, int channel)
+static bool xe_hwmon_temp_probe(struct xe_hwmon *hwmon, int channel)
{
struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
struct xe_reg reg;
@@ -1032,10 +1034,6 @@ static bool is_temp_available(struct xe_hwmon *hwmon, int channel)
return false;
}
- if (channel >= CHANNEL_VRAM_N)
- sprintf(hwmon->temp.vram_label[channel - CHANNEL_VRAM_N],
- "vram_ch_%d", channel - CHANNEL_VRAM_N);
-
return true;
case CHANNEL_MCTRL:
return hwmon->temp.count && !get_mc_temp(hwmon, NULL);
@@ -1046,6 +1044,22 @@ static bool is_temp_available(struct xe_hwmon *hwmon, int channel)
}
}
+static void xe_hwmon_init_temp_info(struct xe_hwmon *hwmon)
+{
+ int channel;
+
+ if (hwmon->xe->info.has_mbx_thermal_info && xe_hwmon_pcode_read_thermal_info(hwmon))
+ drm_warn(&hwmon->xe->drm, "Thermal mailbox not supported by card firmware\n");
+
+ for (channel = 0; channel < CHANNEL_MAX; channel++) {
+ hwmon->temp.available[channel] = xe_hwmon_temp_probe(hwmon, channel);
+ if (hwmon->temp.available[channel] &&
+ in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ snprintf(hwmon->temp.vram_label[channel - CHANNEL_VRAM_N], MAX_LABEL_SIZE,
+ "vram_ch_%d", channel - CHANNEL_VRAM_N);
+ }
+}
+
static umode_t
xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
{
@@ -1055,11 +1069,11 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case CHANNEL_PKG:
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
- return (is_temp_available(hwmon, channel) &&
+ return (hwmon->temp.available[channel] &&
hwmon->temp.limit[TEMP_LIMIT_PKG_SHUTDOWN]) ? 0444 : 0;
case CHANNEL_VRAM:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return (is_temp_available(hwmon, channel) &&
+ return (hwmon->temp.available[channel] &&
hwmon->temp.limit[TEMP_LIMIT_MEM_SHUTDOWN]) ? 0444 : 0;
default:
return 0;
@@ -1069,11 +1083,11 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case CHANNEL_PKG:
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
- return (is_temp_available(hwmon, channel) &&
+ return (hwmon->temp.available[channel] &&
hwmon->temp.limit[TEMP_LIMIT_PKG_CRIT]) ? 0444 : 0;
case CHANNEL_VRAM:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return (is_temp_available(hwmon, channel) &&
+ return (hwmon->temp.available[channel] &&
hwmon->temp.limit[TEMP_LIMIT_MEM_CRIT]) ? 0444 : 0;
default:
return 0;
@@ -1081,7 +1095,7 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case hwmon_temp_max:
switch (channel) {
case CHANNEL_PKG:
- return (is_temp_available(hwmon, channel) &&
+ return (hwmon->temp.available[channel] &&
hwmon->temp.limit[TEMP_LIMIT_PKG_MAX]) ? 0444 : 0;
default:
return 0;
@@ -1094,7 +1108,7 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
case CHANNEL_MCTRL:
case CHANNEL_PCIE:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
- return is_temp_available(hwmon, channel) ? 0444 : 0;
+ return hwmon->temp.available[channel] ? 0444 : 0;
default:
return 0;
}
@@ -1636,8 +1650,7 @@ xe_hwmon_get_preregistration_info(struct xe_hwmon *hwmon)
if (xe_hwmon_is_visible(hwmon, hwmon_fan, hwmon_fan_input, channel))
xe_hwmon_fan_input_read(hwmon, channel, &fan_speed);
- if (hwmon->xe->info.has_mbx_thermal_info && xe_hwmon_pcode_read_thermal_info(hwmon))
- drm_warn(&hwmon->xe->drm, "Thermal mailbox not supported by card firmware\n");
+ xe_hwmon_init_temp_info(hwmon);
}
int xe_hwmon_register(struct xe_device *xe)
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 09/16] drm/xe/hwmon: use CRI-specific package and VRAM temperature registers
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (7 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 08/16] drm/xe/hwmon: Cache temperature availability to reduce probe time Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 10/16] drm/xe/hwmon: Add platform-aware VRAM thermal channel support Karthik Poosa
` (9 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Crescent Island uses different MMIO offsets for package and VRAM
temperature than Battlemage. Add CRI-specific register definitions
and select them in xe_hwmon_get_reg() for REG_TEMP handling.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pcode_regs.h | 3 +++
drivers/gpu/drm/xe/xe_hwmon.c | 9 ++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pcode_regs.h b/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
index c63b409d7a82..a969661f0c95 100644
--- a/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
+++ b/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
@@ -28,6 +28,9 @@
#define BMG_PACKAGE_TEMPERATURE XE_REG(0x138434)
#define CRI_PACKAGE_ENERGY_STATUS XE_REG(0x138120)
+#define CRI_PACKAGE_TEMPERATURE XE_REG(0x138344)
+#define CRI_VRAM_TEMPERATURE XE_REG(0x138348)
#define CRI_PLATFORM_ENERGY_STATUS XE_REG(0x138458)
+#define CRI_VRAM_TEMPERATURE_N(n) XE_REG(0x138a00 + ((n) * (sizeof(u32))))
#endif /* _XE_PCODE_REGS_H_ */
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index d3cf90cf874d..08c4db36ced4 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -276,7 +276,14 @@ static struct xe_reg xe_hwmon_get_reg(struct xe_hwmon *hwmon, enum xe_hwmon_reg
switch (hwmon_reg) {
case REG_TEMP:
- if (xe->info.platform == XE_BATTLEMAGE || xe->info.platform == XE_CRESCENTISLAND) {
+ if (xe->info.platform == XE_CRESCENTISLAND) {
+ if (channel == CHANNEL_PKG)
+ return CRI_PACKAGE_TEMPERATURE;
+ else if (channel == CHANNEL_VRAM)
+ return CRI_VRAM_TEMPERATURE;
+ else if (in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ return CRI_VRAM_TEMPERATURE_N(channel - CHANNEL_VRAM_N);
+ } else if (xe->info.platform == XE_BATTLEMAGE) {
if (channel == CHANNEL_PKG)
return BMG_PACKAGE_TEMPERATURE;
else if (channel == CHANNEL_VRAM)
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 10/16] drm/xe/hwmon: Add platform-aware VRAM thermal channel support
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (8 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 09/16] drm/xe/hwmon: use CRI-specific package and VRAM temperature registers Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 11/16] drm/xe/hwmon: Decode CRI temperature registers as IEEE-754 Karthik Poosa
` (8 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
On CRI, derive the number of available VRAM temperature channels from the
CRI_MSU_VRAM_ENABLE register, where each enabled MSU contributes
VRAM_CHANNELS_PER_MSU channels.
Increase the maximum supported VRAM channel count to 80 and use the
derived count to control VRAM sensor enumeration, channel access, and
VRAM label allocation. Add a has_fixed_vram_channels platform flag to
preserve the existing fixed-channel behavior on non-CRI platforms.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/regs/xe_pcode_regs.h | 1 +
drivers/gpu/drm/xe/xe_device_types.h | 2 +
drivers/gpu/drm/xe/xe_hwmon.c | 162 +++++++++++++++++++++---
drivers/gpu/drm/xe/xe_pci.c | 2 +
drivers/gpu/drm/xe/xe_pci_types.h | 1 +
5 files changed, 153 insertions(+), 15 deletions(-)
diff --git a/drivers/gpu/drm/xe/regs/xe_pcode_regs.h b/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
index a969661f0c95..d9e4847dd68e 100644
--- a/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
+++ b/drivers/gpu/drm/xe/regs/xe_pcode_regs.h
@@ -28,6 +28,7 @@
#define BMG_PACKAGE_TEMPERATURE XE_REG(0x138434)
#define CRI_PACKAGE_ENERGY_STATUS XE_REG(0x138120)
+#define CRI_MSU_VRAM_ENABLE XE_REG(0x138340)
#define CRI_PACKAGE_TEMPERATURE XE_REG(0x138344)
#define CRI_VRAM_TEMPERATURE XE_REG(0x138348)
#define CRI_PLATFORM_ENERGY_STATUS XE_REG(0x138458)
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index beb0ceaabb3f..161ba2b27f47 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -185,6 +185,8 @@ struct xe_device {
u8 has_drm_ras:1;
/** @info.has_fan_control: Device supports fan control */
u8 has_fan_control:1;
+ /** @info.has_fixed_vram_channels: Device has fixed VRAM temperature channels */
+ u8 has_fixed_vram_channels:1;
/** @info.has_flat_ccs: Whether flat CCS metadata is used */
u8 has_flat_ccs:1;
/** @info.has_gsc_nvm: Device has gsc non-volatile memory */
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 08c4db36ced4..9a0e0236a37a 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -39,7 +39,11 @@ enum xe_hwmon_reg_operation {
REG_READ64,
};
-#define MAX_VRAM_CHANNELS (16)
+#define MAX_VRAM_CHANNELS 80
+#define FIXED_VRAM_CHANNELS 16
+
+/* Each MSU enable bit maps to one VRAM subsystem of 4 channels. */
+#define VRAM_CHANNELS_PER_MSU 4
enum xe_hwmon_channel {
CHANNEL_CARD,
@@ -48,6 +52,7 @@ enum xe_hwmon_channel {
CHANNEL_MCTRL,
CHANNEL_PCIE,
CHANNEL_VRAM_N,
+ /* Compile-time upper bound; actual channel count is hwmon->temp.vram_count */
CHANNEL_VRAM_N_MAX = CHANNEL_VRAM_N + MAX_VRAM_CHANNELS - 1,
CHANNEL_MAX,
};
@@ -144,18 +149,22 @@ struct xe_hwmon_thermal_info {
/** @data: temperature limits as little-endian dwords */
__le32 data[DIV_ROUND_UP(TEMP_LIMIT_MAX, sizeof(u32))];
};
- /** @count: no of temperature sensors available for the platform */
+ /** @count: temperature sensors count from READ_THERMAL_CONFIG */
u8 count;
+ /** @vram_count: exclusive upper bound for VRAM temperature channel indices */
+ u8 vram_count;
/** @available: temperature sensor availability cached at registration */
bool available[CHANNEL_MAX];
+ /** @msu_mask: VRAM subsystem enable mask read from MMIO */
+ u32 msu_mask;
union {
/** @value: per-sensor raw mailbox temperature; bit7=sign, bits6:0=magnitude */
u8 value[U8_MAX + 1];
/** @dword: sensor values as little-endian dwords, u32-aligned for pcode reads */
__le32 dword[DIV_ROUND_UP(U8_MAX + 1, sizeof(u32))];
};
- /** @vram_label: vram label names */
- char vram_label[MAX_VRAM_CHANNELS][MAX_LABEL_SIZE];
+ /** @vram_label: vram label names, dynamically allocated based on vram_count */
+ char (*vram_label)[MAX_LABEL_SIZE];
};
/**
@@ -269,6 +278,14 @@ static int xe_hwmon_pcode_rmw_power_limit(const struct xe_hwmon *hwmon, u32 attr
return ret;
}
+static bool xe_hwmon_vram_channel_enabled(const struct xe_hwmon *hwmon, int index)
+{
+ if (hwmon->xe->info.platform == XE_CRESCENTISLAND)
+ return hwmon->temp.msu_mask & BIT(index / VRAM_CHANNELS_PER_MSU);
+
+ return true;
+}
+
static struct xe_reg xe_hwmon_get_reg(struct xe_hwmon *hwmon, enum xe_hwmon_reg hwmon_reg,
int channel)
{
@@ -281,14 +298,16 @@ static struct xe_reg xe_hwmon_get_reg(struct xe_hwmon *hwmon, enum xe_hwmon_reg
return CRI_PACKAGE_TEMPERATURE;
else if (channel == CHANNEL_VRAM)
return CRI_VRAM_TEMPERATURE;
- else if (in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ else if (in_range(channel, CHANNEL_VRAM_N, hwmon->temp.vram_count) &&
+ xe_hwmon_vram_channel_enabled(hwmon, channel - CHANNEL_VRAM_N))
return CRI_VRAM_TEMPERATURE_N(channel - CHANNEL_VRAM_N);
} else if (xe->info.platform == XE_BATTLEMAGE) {
if (channel == CHANNEL_PKG)
return BMG_PACKAGE_TEMPERATURE;
else if (channel == CHANNEL_VRAM)
return BMG_VRAM_TEMPERATURE;
- else if (in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ else if (in_range(channel, CHANNEL_VRAM_N, hwmon->temp.vram_count) &&
+ xe_hwmon_vram_channel_enabled(hwmon, channel - CHANNEL_VRAM_N))
return BMG_VRAM_TEMPERATURE_N(channel - CHANNEL_VRAM_N);
} else if (xe->info.platform == XE_DG2) {
if (channel == CHANNEL_PKG)
@@ -800,6 +819,70 @@ static const struct hwmon_channel_info * const hwmon_info[] = {
HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
+ HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL),
HWMON_CHANNEL_INFO(power, HWMON_P_MAX | HWMON_P_RATED_MAX | HWMON_P_LABEL | HWMON_P_CRIT |
HWMON_P_CAP,
@@ -814,9 +897,31 @@ static const struct hwmon_channel_info * const hwmon_info[] = {
static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
+ struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
u32 config = 0, data0 = 0, data1 = 0;
int ret;
+ /*
+ * Only CRI reports dynamic VRAM channel state. Fixed-channel platforms
+ * set the count up front so those sensors stay visible even if the thermal
+ * mailbox reads below fail.
+ */
+ if (hwmon->xe->info.has_fixed_vram_channels)
+ hwmon->temp.vram_count = FIXED_VRAM_CHANNELS;
+
+ if (hwmon->xe->info.platform == XE_CRESCENTISLAND) {
+ hwmon->temp.msu_mask = xe_mmio_read32(mmio, CRI_MSU_VRAM_ENABLE);
+ hwmon->temp.vram_count = fls(hwmon->temp.msu_mask) * VRAM_CHANNELS_PER_MSU;
+ drm_dbg(&hwmon->xe->drm, "MSU VRAM enable mask 0x%x, VRAM channel bound %d\n",
+ hwmon->temp.msu_mask, hwmon->temp.vram_count);
+ if (hwmon->temp.vram_count > MAX_VRAM_CHANNELS) {
+ drm_warn(&hwmon->xe->drm,
+ "VRAM channel bound %d exceeds max %d, clamping\n",
+ hwmon->temp.vram_count, MAX_VRAM_CHANNELS);
+ hwmon->temp.vram_count = MAX_VRAM_CHANNELS;
+ }
+ }
+
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_LIMITS, 0),
&data0, &data1);
if (ret)
@@ -1034,6 +1139,14 @@ static bool xe_hwmon_temp_probe(struct xe_hwmon *hwmon, int channel)
if (!xe_reg_is_valid(reg))
return false;
+ /*
+ * On CRI, VRAM channel presence comes from the MSU enable mask
+ * (applied in xe_hwmon_get_reg()); the temperature register's
+ * 0xffffffff sentinel is not reliable for VRAM channels.
+ */
+ if (hwmon->xe->info.platform == XE_CRESCENTISLAND && channel >= CHANNEL_VRAM_N)
+ return true;
+
reg_val = xe_mmio_read32(mmio, reg);
if (!mmio_temp_valid(hwmon, reg_val)) {
drm_dbg(&hwmon->xe->drm,
@@ -1051,20 +1164,31 @@ static bool xe_hwmon_temp_probe(struct xe_hwmon *hwmon, int channel)
}
}
-static void xe_hwmon_init_temp_info(struct xe_hwmon *hwmon)
+static int xe_hwmon_init_temp_info(struct xe_hwmon *hwmon)
{
+ struct device *dev = hwmon->xe->drm.dev;
int channel;
if (hwmon->xe->info.has_mbx_thermal_info && xe_hwmon_pcode_read_thermal_info(hwmon))
drm_warn(&hwmon->xe->drm, "Thermal mailbox not supported by card firmware\n");
+ /* vram_count is known only after reading thermal info above. */
+ if (hwmon->temp.vram_count) {
+ hwmon->temp.vram_label = devm_kcalloc(dev, hwmon->temp.vram_count,
+ MAX_LABEL_SIZE, GFP_KERNEL);
+ if (!hwmon->temp.vram_label)
+ return -ENOMEM;
+ }
+
for (channel = 0; channel < CHANNEL_MAX; channel++) {
hwmon->temp.available[channel] = xe_hwmon_temp_probe(hwmon, channel);
- if (hwmon->temp.available[channel] &&
- in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ if (hwmon->temp.available[channel] && hwmon->temp.vram_label &&
+ in_range(channel, CHANNEL_VRAM_N, hwmon->temp.vram_count))
snprintf(hwmon->temp.vram_label[channel - CHANNEL_VRAM_N], MAX_LABEL_SIZE,
"vram_ch_%d", channel - CHANNEL_VRAM_N);
}
+
+ return 0;
}
static umode_t
@@ -1560,8 +1684,10 @@ static int xe_hwmon_read_label(struct device *dev,
*str = "mctrl";
else if (channel == CHANNEL_PCIE)
*str = "pcie";
- else if (in_range(channel, CHANNEL_VRAM_N, MAX_VRAM_CHANNELS))
+ else if (in_range(channel, CHANNEL_VRAM_N, hwmon->temp.vram_count))
*str = hwmon->temp.vram_label[channel - CHANNEL_VRAM_N];
+ else
+ return -EOPNOTSUPP;
return 0;
case hwmon_power:
case hwmon_energy:
@@ -1589,7 +1715,7 @@ static const struct hwmon_chip_info hwmon_chip_info = {
.info = hwmon_info,
};
-static void
+static int
xe_hwmon_get_preregistration_info(struct xe_hwmon *hwmon)
{
struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
@@ -1657,7 +1783,7 @@ xe_hwmon_get_preregistration_info(struct xe_hwmon *hwmon)
if (xe_hwmon_is_visible(hwmon, hwmon_fan, hwmon_fan_input, channel))
xe_hwmon_fan_input_read(hwmon, channel, &fan_speed);
- xe_hwmon_init_temp_info(hwmon);
+ return xe_hwmon_init_temp_info(hwmon);
}
int xe_hwmon_register(struct xe_device *xe)
@@ -1686,7 +1812,9 @@ int xe_hwmon_register(struct xe_device *xe)
hwmon->xe = xe;
xe->hwmon = hwmon;
- xe_hwmon_get_preregistration_info(hwmon);
+ ret = xe_hwmon_get_preregistration_info(hwmon);
+ if (ret)
+ goto err_null_hwmon;
drm_dbg(&xe->drm, "Register xe hwmon interface\n");
@@ -1696,10 +1824,14 @@ int xe_hwmon_register(struct xe_device *xe)
hwmon_groups);
if (IS_ERR(hwmon->hwmon_dev)) {
drm_err(&xe->drm, "Failed to register xe hwmon (%pe)\n", hwmon->hwmon_dev);
- xe->hwmon = NULL;
- return PTR_ERR(hwmon->hwmon_dev);
+ ret = PTR_ERR(hwmon->hwmon_dev);
+ goto err_null_hwmon;
}
return 0;
+
+err_null_hwmon:
+ xe->hwmon = NULL;
+ return ret;
}
MODULE_IMPORT_NS("INTEL_PMT_TELEMETRY");
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 111d0aa45b10..e754668100cf 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -417,6 +417,7 @@ static const struct xe_device_desc bmg_desc = {
.dma_mask_size = 46,
.has_display = true,
.has_fan_control = true,
+ .has_fixed_vram_channels = true,
.has_flat_ccs = 1,
.has_mbx_power_limits = true,
.has_mbx_thermal_info = true,
@@ -798,6 +799,7 @@ static int xe_info_init_early(struct xe_device *xe,
xe->info.has_device_uid = desc->has_device_uid;
xe->info.has_drm_ras = desc->has_drm_ras;
xe->info.has_fan_control = desc->has_fan_control;
+ xe->info.has_fixed_vram_channels = desc->has_fixed_vram_channels;
/* runtime fusing may force flat_ccs to disabled later */
xe->info.has_flat_ccs = desc->has_flat_ccs;
xe->info.has_mbx_power_limits = desc->has_mbx_power_limits;
diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h
index 15eedac8467a..ce0b0f6c5b18 100644
--- a/drivers/gpu/drm/xe/xe_pci_types.h
+++ b/drivers/gpu/drm/xe/xe_pci_types.h
@@ -43,6 +43,7 @@ struct xe_device_desc {
u8 has_device_uid:1;
u8 has_drm_ras:1;
u8 has_fan_control:1;
+ u8 has_fixed_vram_channels:1;
u8 has_flat_ccs:1;
u8 has_gsc_nvm:1;
u8 has_heci_gscfi:1;
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 11/16] drm/xe/hwmon: Decode CRI temperature registers as IEEE-754
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (9 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 10/16] drm/xe/hwmon: Add platform-aware VRAM thermal channel support Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 12/16] drm/xe/hwmon: Update memory controller temperature offset for CRI Karthik Poosa
` (7 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
CRI temperature registers encode package and VRAM temperatures as
IEEE-754 floating-point values. Decode these values before exposing
them through hwmon.
Use integer-based IEEE-754 decoding since kernel code does not use
floating-point operations and hwmon reports integer temperatures.
v2: Add missing description for parameter 'temperature' in
xe_hwmon_temperature_decode().
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Assisted-by: LLM
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 93 +++++++++++++++++++++++++++++------
1 file changed, 79 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 9a0e0236a37a..46df380c101c 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -1248,6 +1248,70 @@ xe_hwmon_temp_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
}
}
+#define IEEE754_SIGN REG_BIT(31)
+#define IEEE754_EXP_MASK REG_GENMASK(30, 23)
+#define IEEE754_MANTISSA_MASK REG_GENMASK(22, 0)
+#define IEEE754_EXP_BIAS 127 /* Exponent bias to obtain the actual exponent */
+#define IEEE754_MANTISSA_BITS 23 /* Mantissa width and implicit leading-1 bit position */
+#define IEEE754_EXP_SPECIAL 0xff /* reserved exponent value encoding infinity or NaN */
+
+/**
+ * xe_hwmon_temperature_decode - Decode an IEEE-754 temperature register value
+ * @reg_val: The raw register value to decode
+ * @temperature: Pointer to store the decoded temperature in millidegrees Celsius.
+ *
+ * IEEE-754 single-precision format:
+ *
+ * 31 30 23 22 0
+ * +--+-----------------------------+----------------------------+
+ * | S| exponent | fraction |
+ * +--+-----------------------------+----------------------------+
+ *
+ * value = (-1)^S * 1.fraction * 2^(exponent - 127)
+ *
+ * Return: 0 on success or an error if @reg_val is non-finite or cannot be
+ * represented in millidegrees Celsius.
+ */
+static int xe_hwmon_temperature_decode(u32 reg_val, long *temperature)
+{
+ u32 exponent = REG_FIELD_GET(IEEE754_EXP_MASK, reg_val);
+ u32 mantissa = REG_FIELD_GET(IEEE754_MANTISSA_MASK, reg_val);
+ s64 value;
+ int shift;
+
+ /* Exponent 0xff encodes infinity or NaN. */
+ if (exponent == IEEE754_EXP_SPECIAL)
+ return -EINVAL;
+
+ /* Subnormal values are smaller than one millidegree Celsius. */
+ if (!exponent) {
+ *temperature = 0;
+ return 0;
+ }
+
+ value = (s64)(mantissa | BIT(IEEE754_MANTISSA_BITS)) * MILLIDEGREE_PER_DEGREE;
+ shift = exponent - (IEEE754_EXP_BIAS + IEEE754_MANTISSA_BITS);
+ if (shift >= 0) {
+ if (shift >= BITS_PER_LONG || value > (LONG_MAX >> shift))
+ return -ERANGE;
+ value <<= shift;
+ } else if (shift > -64) {
+ value >>= -shift;
+ } else {
+ value = 0;
+ }
+
+ /* Ensure the magnitude fits in long, which is 32-bit on some arches. */
+ if (value > LONG_MAX)
+ return -ERANGE;
+
+ if (reg_val & IEEE754_SIGN)
+ value = -value;
+
+ *temperature = value;
+ return 0;
+}
+
static int
xe_hwmon_temp_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *val)
{
@@ -1257,26 +1321,27 @@ xe_hwmon_temp_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *val)
switch (attr) {
case hwmon_temp_input:
switch (channel) {
- case CHANNEL_PKG:
- case CHANNEL_VRAM:
- reg_val = xe_mmio_read32(mmio, xe_hwmon_get_reg(hwmon, REG_TEMP, channel));
-
- /* HW register value is in degrees Celsius, convert to millidegrees. */
- *val = REG_FIELD_GET(TEMP_MASK, reg_val) * MILLIDEGREE_PER_DEGREE;
- return 0;
case CHANNEL_MCTRL:
return get_mc_temp(hwmon, val);
case CHANNEL_PCIE:
return get_pcie_temp(hwmon, val);
+ case CHANNEL_PKG:
+ case CHANNEL_VRAM:
case CHANNEL_VRAM_N...CHANNEL_VRAM_N_MAX:
reg_val = xe_mmio_read32(mmio, xe_hwmon_get_reg(hwmon, REG_TEMP, channel));
- /*
- * This temperature format is 24 bit [31:8] signed integer and 8 bit
- * [7:0] fraction.
- */
- *val = (s32)(REG_FIELD_GET(TEMP_MASK_VRAM_N, reg_val)) *
- (REG_FIELD_GET(TEMP_SIGN_MASK, reg_val) ? -1 : 1) *
- MILLIDEGREE_PER_DEGREE;
+ if (hwmon->xe->info.platform >= XE_CRESCENTISLAND) {
+ return xe_hwmon_temperature_decode((u32)reg_val, val);
+ } else if (channel >= CHANNEL_VRAM_N) {
+ /*
+ * This temperature format is 24 bit [31:8] signed integer and 8 bit
+ * [7:0] fraction for platforms before CRI.
+ */
+ *val = (s32)REG_FIELD_GET(TEMP_MASK_VRAM_N, reg_val) *
+ (REG_FIELD_GET(TEMP_SIGN_MASK, reg_val) ? -1 : 1) *
+ MILLIDEGREE_PER_DEGREE;
+ } else {
+ *val = REG_FIELD_GET(TEMP_MASK, reg_val) * MILLIDEGREE_PER_DEGREE;
+ }
return 0;
default:
return -EOPNOTSUPP;
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 12/16] drm/xe/hwmon: Update memory controller temperature offset for CRI
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (10 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 11/16] drm/xe/hwmon: Decode CRI temperature registers as IEEE-754 Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 13/16] drm/xe/hwmon: add PCIe temperature support " Karthik Poosa
` (6 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
On CRI the memory controller temperatures moved in the READ_THERMAL_DATA
output: they now occupy bytes 16..19 instead of starting at byte 2.
Read and average the CRI memory controller sensors from bytes 16..19,
keeping the existing byte 2..count-1 range for earlier platforms. Only
the group(s) covering the used bytes are fetched.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 46df380c101c..d66ae0b88126 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -109,6 +109,10 @@ enum sensor_attr_power {
/* Index of memory controller in READ_THERMAL_DATA output */
#define TEMP_INDEX_MCTRL 2
+/* On CRI the memory controller temperatures are READ_THERMAL_DATA bytes 16..19. */
+#define CRI_TEMP_INDEX_MCTRL 16
+#define CRI_TEMP_MCTRL_COUNT 4
+
/* Mailbox sentinel reported for an unavailable temperature sensor */
#define TEMP_MBX_INVALID 0xFF
@@ -970,12 +974,20 @@ static int mbx_temp_decode(u8 value)
static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
- int ret, i, count = 0;
+ int ret, i, start, end, count = 0;
s32 average = 0;
+ u32 data = 0;
- for (i = 0; i < DIV_ROUND_UP(hwmon->temp.count, sizeof(u32)); i++) {
- u32 data = 0;
+ /* CRI relocated the memory controller temperatures to READ_THERMAL_DATA bytes 16..19. */
+ if (hwmon->xe->info.platform >= XE_CRESCENTISLAND) {
+ start = CRI_TEMP_INDEX_MCTRL;
+ end = CRI_TEMP_INDEX_MCTRL + CRI_TEMP_MCTRL_COUNT;
+ } else {
+ start = TEMP_INDEX_MCTRL;
+ end = hwmon->temp.count - 1;
+ }
+ for (i = start / sizeof(u32); i < DIV_ROUND_UP(end, sizeof(u32)); i++) {
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_DATA, i),
&data, NULL);
if (ret)
@@ -984,7 +996,7 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
hwmon->temp.dword[i] = cpu_to_le32(data);
}
- for (i = TEMP_INDEX_MCTRL; i < hwmon->temp.count - 1; i++) {
+ for (i = start; i < end; i++) {
if (!mbx_temp_valid(hwmon, hwmon->temp.value[i]))
continue;
average += mbx_temp_decode(hwmon->temp.value[i]);
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 13/16] drm/xe/hwmon: add PCIe temperature support for CRI
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (11 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 12/16] drm/xe/hwmon: Update memory controller temperature offset for CRI Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 14/16] drm/xe/hwmon: Simplify temperature channels config Karthik Poosa
` (5 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Add the PCIe temperature sensor offset in READ_THERMAL_DATA for CRI.
Refactor PCIe temperature handling to use platform-specific sensor
indices and derive the mailbox group and byte offset from the sensor
index, eliminating special-case decoding logic.
v2:
- Remove variables group and byte variables in get_pcie_temp().
- Change xe_hwmon_pcie_temp_index() to take a const struct xe_hwmon *.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 28 ++++++++++++++++++++--------
drivers/gpu/drm/xe/xe_pcode_api.h | 2 --
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index d66ae0b88126..6e3f1d873dee 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -106,12 +106,15 @@ enum sensor_attr_power {
#define PWR_ATTR_TO_STR(attr) (((attr) == hwmon_power_max) ? "PL1" : "PL2")
-/* Index of memory controller in READ_THERMAL_DATA output */
+/* Sensor byte indices in READ_THERMAL_DATA output for BMG. */
#define TEMP_INDEX_MCTRL 2
+#define TEMP_INDEX_PCIE 10
+#define BMG_G21_TEMP_INDEX_PCIE 8
-/* On CRI the memory controller temperatures are READ_THERMAL_DATA bytes 16..19. */
+/* Sensor byte indices in READ_THERMAL_DATA output for CRI. */
#define CRI_TEMP_INDEX_MCTRL 16
#define CRI_TEMP_MCTRL_COUNT 4
+#define CRI_TEMP_INDEX_PCIE 20
/* Mailbox sentinel reported for an unavailable temperature sensor */
#define TEMP_MBX_INVALID 0xFF
@@ -1016,21 +1019,30 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
return 0;
}
-static int get_pcie_temp(struct xe_hwmon *hwmon, long *val)
+static u8 xe_hwmon_pcie_temp_index(const struct xe_hwmon *hwmon)
+{
+ if (hwmon->xe->info.platform == XE_CRESCENTISLAND)
+ return CRI_TEMP_INDEX_PCIE;
+
+ if (hwmon->xe->info.subplatform == XE_SUBPLATFORM_BATTLEMAGE_G21)
+ return BMG_G21_TEMP_INDEX_PCIE;
+
+ return TEMP_INDEX_PCIE;
+}
+
+static int get_pcie_temp(const struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
u32 data = 0;
int ret;
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_DATA,
- PCIE_SENSOR_GROUP_ID), &data, NULL);
+ xe_hwmon_pcie_temp_index(hwmon) / sizeof(data)),
+ &data, NULL);
if (ret)
return ret;
- /* Sensor offset is different for G21 */
- if (hwmon->xe->info.subplatform != XE_SUBPLATFORM_BATTLEMAGE_G21)
- data = REG_FIELD_GET(PCIE_SENSOR_MASK, data);
-
+ data >>= (xe_hwmon_pcie_temp_index(hwmon) % sizeof(data)) * BITS_PER_BYTE;
data = REG_FIELD_GET(TEMP_MASK, data);
if (!mbx_temp_valid(hwmon, data)) {
drm_dbg(&hwmon->xe->drm, "PCIe temperature not available\n");
diff --git a/drivers/gpu/drm/xe/xe_pcode_api.h b/drivers/gpu/drm/xe/xe_pcode_api.h
index 94575c476e3d..00c4fc7d0124 100644
--- a/drivers/gpu/drm/xe/xe_pcode_api.h
+++ b/drivers/gpu/drm/xe/xe_pcode_api.h
@@ -58,8 +58,6 @@
#define READ_THERMAL_LIMITS 0x0
#define READ_THERMAL_CONFIG 0x1
#define READ_THERMAL_DATA 0x2
-#define PCIE_SENSOR_GROUP_ID 0x2
-#define PCIE_SENSOR_MASK REG_GENMASK(31, 16)
#define PCODE_LATE_BINDING 0x5C
#define GET_CAPABILITY_STATUS 0x0
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 14/16] drm/xe/hwmon: Simplify temperature channels config
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (12 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 13/16] drm/xe/hwmon: add PCIe temperature support " Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads Karthik Poosa
` (4 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Replace the repeated temperature channels list with an indexed config
array. Use range designators for channels sharing the same attributes.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Assisted-by: LLM
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 104 ++++++----------------------------
1 file changed, 17 insertions(+), 87 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 6e3f1d873dee..7311f969f574 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -803,94 +803,24 @@ static const struct attribute_group *hwmon_groups[] = {
NULL
};
+static const u32 hwmon_temp_config[CHANNEL_MAX + 1] = {
+ [CHANNEL_CARD] = HWMON_T_LABEL,
+ [CHANNEL_PKG] = HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT |
+ HWMON_T_LABEL | HWMON_T_MAX,
+ [CHANNEL_VRAM ... CHANNEL_PCIE] = HWMON_T_CRIT | HWMON_T_EMERGENCY |
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ [CHANNEL_VRAM_N ... CHANNEL_VRAM_N_MAX] = HWMON_T_CRIT | HWMON_T_EMERGENCY |
+ HWMON_T_INPUT | HWMON_T_LABEL,
+ [CHANNEL_MAX] = 0, /* hwmon config terminator */
+};
+
+static const struct hwmon_channel_info hwmon_temp_info = {
+ .type = hwmon_temp,
+ .config = hwmon_temp_config,
+};
+
static const struct hwmon_channel_info * const hwmon_info[] = {
- HWMON_CHANNEL_INFO(temp,
- HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL |
- HWMON_T_MAX,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL,
- HWMON_T_CRIT | HWMON_T_EMERGENCY | HWMON_T_INPUT | HWMON_T_LABEL),
+ &hwmon_temp_info,
HWMON_CHANNEL_INFO(power, HWMON_P_MAX | HWMON_P_RATED_MAX | HWMON_P_LABEL | HWMON_P_CRIT |
HWMON_P_CAP,
HWMON_P_MAX | HWMON_P_RATED_MAX | HWMON_P_LABEL | HWMON_P_CAP),
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (13 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 14/16] drm/xe/hwmon: Simplify temperature channels config Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:25 ` sashiko-bot
2026-10-13 2:06 ` [PATCH v11 16/16] drm/xe/hwmon: Propagate all hardware read errors Karthik Poosa
` (3 subsequent siblings)
18 siblings, 1 reply; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Check that READ_THERMAL_CONFIG reports enough thermal entries for the
platform-specific MCTRL range and PCIe sensor index before reading
READ_THERMAL_DATA.
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 7311f969f574..702c739c9bf0 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -920,6 +920,13 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
end = hwmon->temp.count - 1;
}
+ if (end <= start || end > hwmon->temp.count) {
+ drm_warn(&hwmon->xe->drm,
+ "memory controller range [%d, %d) is invalid for temperature count %d\n",
+ start, end, hwmon->temp.count);
+ return -ENODATA;
+ }
+
for (i = start / sizeof(u32); i < DIV_ROUND_UP(end, sizeof(u32)); i++) {
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_DATA, i),
&data, NULL);
@@ -964,15 +971,24 @@ static int get_pcie_temp(const struct xe_hwmon *hwmon, long *val)
{
struct xe_tile *root_tile = xe_device_get_root_tile(hwmon->xe);
u32 data = 0;
+ int index;
int ret;
+ index = xe_hwmon_pcie_temp_index(hwmon);
+ if (hwmon->temp.count - 1 < index) {
+ drm_warn(&hwmon->xe->drm,
+ "PCIe temperature end index %d exceeds temperature count %d\n",
+ index, hwmon->temp.count);
+ return -ENODATA;
+ }
+
ret = xe_pcode_read(root_tile, PCODE_MBOX(PCODE_THERMAL_INFO, READ_THERMAL_DATA,
- xe_hwmon_pcie_temp_index(hwmon) / sizeof(data)),
+ index / sizeof(data)),
&data, NULL);
if (ret)
return ret;
- data >>= (xe_hwmon_pcie_temp_index(hwmon) % sizeof(data)) * BITS_PER_BYTE;
+ data >>= (index % sizeof(data)) * BITS_PER_BYTE;
data = REG_FIELD_GET(TEMP_MASK, data);
if (!mbx_temp_valid(hwmon, data)) {
drm_dbg(&hwmon->xe->drm, "PCIe temperature not available\n");
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v11 16/16] drm/xe/hwmon: Propagate all hardware read errors
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (14 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads Karthik Poosa
@ 2026-10-13 2:06 ` Karthik Poosa
2026-10-13 2:17 ` ✓ CI.KUnit: success for drm/xe/hwmon: Update hwmon thermal mailbox Patchwork
` (2 subsequent siblings)
18 siblings, 0 replies; 27+ messages in thread
From: Karthik Poosa @ 2026-10-13 2:06 UTC (permalink / raw)
To: intel-xe
Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, raag.jadav,
riana.tauro, sk.anirban, mallesh.koujalagi, soham.purkait,
Karthik Poosa
Propagate all failures from pcode and mailbox accesses and fix missed
return-value checks found by Sashiko in
https://patchwork.freedesktop.org/patch/758843/?series=174898&rev=6.
Fixes: 7596d839f622 ("drm/xe/hwmon: Add support to manage power limits though mailbox")
Fixes: 0c5405d3aa4ad ("drm/xe/hwmon: Read energy status from PMT")
Fixes: 25e963a09e059 ("drm/xe/hwmon: Move card reactive critical power under channel card")
Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
drivers/gpu/drm/xe/xe_hwmon.c | 47 +++++++++++++++++++++--------------
1 file changed, 29 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 702c739c9bf0..58f04c122577 100644
--- a/drivers/gpu/drm/xe/xe_hwmon.c
+++ b/drivers/gpu/drm/xe/xe_hwmon.c
@@ -381,17 +381,20 @@ static struct xe_reg xe_hwmon_get_reg(struct xe_hwmon *hwmon, enum xe_hwmon_reg
* same pattern for sysfs, allow arbitrary PL1 limits to be set but display
* clamped values when read.
*/
-static void xe_hwmon_power_max_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *value)
+static int xe_hwmon_power_max_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *value)
{
u32 reg_val = 0;
struct xe_device *xe = hwmon->xe;
struct xe_reg rapl_limit, pkg_power_sku;
struct xe_mmio *mmio = xe_root_tile_mmio(xe);
+ int ret = 0;
mutex_lock(&hwmon->hwmon_lock);
if (hwmon->xe->info.has_mbx_power_limits) {
- xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
+ ret = xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
+ if (ret)
+ goto unlock;
} else {
rapl_limit = xe_hwmon_get_reg(hwmon, REG_PKG_RAPL_LIMIT, channel);
pkg_power_sku = xe_hwmon_get_reg(hwmon, REG_PKG_POWER_SKU, channel);
@@ -423,6 +426,7 @@ static void xe_hwmon_power_max_read(struct xe_hwmon *hwmon, u32 attr, int channe
}
unlock:
mutex_unlock(&hwmon->hwmon_lock);
+ return ret;
}
static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channel, long value)
@@ -445,7 +449,9 @@ static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channe
ret = xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
if (ret)
goto unlock;
- xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
+ ret = xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
+ if (ret)
+ goto unlock;
} else {
reg_val = xe_mmio_rmw32(mmio, rapl_limit, PWR_LIM_EN, 0);
reg_val = xe_mmio_read32(mmio, rapl_limit);
@@ -502,15 +508,18 @@ static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channe
return ret;
}
-static void xe_hwmon_power_rated_max_read(struct xe_hwmon *hwmon, u32 attr, int channel,
- long *value)
+static int xe_hwmon_power_rated_max_read(struct xe_hwmon *hwmon, u32 attr, int channel,
+ long *value)
{
struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
u32 reg_val;
+ int ret = 0;
if (hwmon->xe->info.has_mbx_power_limits) {
/* PL1 is rated max if supported. */
- xe_hwmon_pcode_read_power_limit(hwmon, PL1_HWMON_ATTR, channel, ®_val);
+ ret = xe_hwmon_pcode_read_power_limit(hwmon, PL1_HWMON_ATTR, channel, ®_val);
+ if (ret)
+ return ret;
} else {
/*
* This sysfs file won't be visible if REG_PKG_POWER_SKU is invalid, so valid check
@@ -524,6 +533,7 @@ static void xe_hwmon_power_rated_max_read(struct xe_hwmon *hwmon, u32 attr, int
reg_val = REG_FIELD_GET(PKG_TDP, reg_val);
*value = mul_u64_u32_shr(reg_val, SF_POWER, hwmon->scl_shift_power);
+ return ret;
}
/*
@@ -546,7 +556,7 @@ static void xe_hwmon_power_rated_max_read(struct xe_hwmon *hwmon, u32 attr, int
* hwmon->scl_shift_energy of 14 bits we have 57 (63 - 20 + 14) bits before
* energyN_input overflows. This at 1000 W is an overflow duration of 278 years.
*/
-static void
+static int
xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
{
struct xe_mmio *mmio = xe_root_tile_mmio(hwmon->xe);
@@ -557,7 +567,7 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
/* Energy is supported only for card and pkg */
if (channel > CHANNEL_PKG) {
*energy = 0;
- return;
+ return 0;
}
if (hwmon->xe->info.platform == XE_BATTLEMAGE) {
@@ -569,7 +579,7 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
if (ret != sizeof(pmt_val)) {
drm_warn(&hwmon->xe->drm, "energy read from pmt failed, ret %d\n", ret);
*energy = 0;
- return;
+ return ret < 0 ? ret : -EIO;
}
if (channel == CHANNEL_PKG)
@@ -586,6 +596,7 @@ xe_hwmon_energy_get(struct xe_hwmon *hwmon, int channel, long *energy)
*energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY,
hwmon->scl_shift_energy);
+ return 0;
}
static ssize_t
@@ -611,7 +622,8 @@ xe_hwmon_power_max_interval_show(struct device *dev, struct device_attribute *at
drm_err(&hwmon->xe->drm,
"power interval read fail, ch %d, attr %d, val 0x%08x, ret %d\n",
channel, power_attr, reg_val, ret);
- reg_val = 0;
+ mutex_unlock(&hwmon->hwmon_lock);
+ return ret;
}
} else {
reg_val = xe_mmio_read32(mmio, xe_hwmon_get_reg(hwmon, REG_PKG_RAPL_LIMIT,
@@ -1393,7 +1405,8 @@ xe_hwmon_power_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
}
case hwmon_power_crit:
if (channel == CHANNEL_CARD) {
- xe_hwmon_pcode_read_i1(hwmon, &uval);
+ if (xe_hwmon_pcode_read_i1(hwmon, &uval))
+ return 0;
return (uval & POWER_SETUP_I1_WATTS) ? 0644 : 0;
}
break;
@@ -1412,7 +1425,8 @@ xe_hwmon_power_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel)
}
}
if ((!(uval & PWR_LIM_EN)) && channel == CHANNEL_CARD) {
- xe_hwmon_pcode_read_i1(hwmon, &uval);
+ if (xe_hwmon_pcode_read_i1(hwmon, &uval))
+ return 0;
return (uval & POWER_SETUP_I1_WATTS) ? 0444 : 0;
}
return (uval) ? 0444 : 0;
@@ -1428,11 +1442,9 @@ xe_hwmon_power_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *val)
switch (attr) {
case hwmon_power_max:
case hwmon_power_cap:
- xe_hwmon_power_max_read(hwmon, attr, channel, val);
- return 0;
+ return xe_hwmon_power_max_read(hwmon, attr, channel, val);
case hwmon_power_rated_max:
- xe_hwmon_power_rated_max_read(hwmon, attr, channel, val);
- return 0;
+ return xe_hwmon_power_rated_max_read(hwmon, attr, channel, val);
case hwmon_power_crit:
return xe_hwmon_power_curr_crit_read(hwmon, channel, val, SF_POWER);
default:
@@ -1549,8 +1561,7 @@ xe_hwmon_energy_read(struct xe_hwmon *hwmon, u32 attr, int channel, long *val)
{
switch (attr) {
case hwmon_energy_input:
- xe_hwmon_energy_get(hwmon, channel, val);
- return 0;
+ return xe_hwmon_energy_get(hwmon, channel, val);
default:
return -EOPNOTSUPP;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 27+ messages in thread
* ✓ CI.KUnit: success for drm/xe/hwmon: Update hwmon thermal mailbox
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (15 preceding siblings ...)
2026-10-13 2:06 ` [PATCH v11 16/16] drm/xe/hwmon: Propagate all hardware read errors Karthik Poosa
@ 2026-10-13 2:17 ` Patchwork
2026-10-13 5:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-13 14:25 ` ✗ Xe.CI.FULL: failure " Patchwork
18 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-10-13 2:17 UTC (permalink / raw)
To: Karthik Poosa; +Cc: intel-xe
== Series Details ==
Series: drm/xe/hwmon: Update hwmon thermal mailbox
URL : https://patchwork.freedesktop.org/series/175993/
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
[02:14:57] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[02:15: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
[02:15:22] Starting KUnit Kernel (1/1)...
[02:15:22] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[02:15:22] ================= gpu_buddy (14 subtests) ==================
[02:15:22] [PASSED] gpu_test_buddy_alloc_limit
[02:15:22] [PASSED] gpu_test_buddy_alloc_optimistic
[02:15:22] [PASSED] gpu_test_buddy_alloc_pessimistic
[02:15:22] [PASSED] gpu_test_buddy_alloc_pathological
[02:15:22] [PASSED] gpu_test_buddy_alloc_contiguous
[02:15:22] [PASSED] gpu_test_buddy_alloc_clear
[02:15:22] [PASSED] gpu_test_buddy_alloc_range
[02:15:22] [PASSED] gpu_test_buddy_alloc_range_bias
[02:15:23] [PASSED] gpu_test_buddy_fragmentation_performance
[02:15:24] [PASSED] gpu_test_buddy_dirty_tracker_performance
[02:15:24] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[02:15:24] [PASSED] gpu_test_buddy_offset_aligned_allocation
[02:15:24] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[02:15:24] [PASSED] gpu_test_buddy_addr_to_block
[02:15:24] ==================== [PASSED] gpu_buddy ====================
[02:15:24] ============================================================
[02:15:24] Testing complete. Ran 14 tests: passed: 14
[02:15:24] Elapsed time: 26.746s total, 4.385s configuring, 20.393s building, 1.902s 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
[02:15:24] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[02:15:26] 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
[02:16:00] Starting KUnit Kernel (1/1)...
[02:16:00] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[02:16:00] ================== guc_buf (11 subtests) ===================
[02:16:00] [PASSED] test_smallest
[02:16:00] [PASSED] test_largest
[02:16:00] [PASSED] test_granular
[02:16:00] [PASSED] test_unique
[02:16:00] [PASSED] test_overlap
[02:16:00] [PASSED] test_reusable
[02:16:00] [PASSED] test_too_big
[02:16:00] [PASSED] test_flush
[02:16:00] [PASSED] test_lookup
[02:16:00] [PASSED] test_data
[02:16:00] [PASSED] test_class
[02:16:00] ===================== [PASSED] guc_buf =====================
[02:16:00] =================== guc_dbm (7 subtests) ===================
[02:16:00] [PASSED] test_empty
[02:16:00] [PASSED] test_default
[02:16:00] ======================== test_size ========================
[02:16:00] [PASSED] 4
[02:16:00] [PASSED] 8
[02:16:00] [PASSED] 32
[02:16:00] [PASSED] 256
[02:16:00] ==================== [PASSED] test_size ====================
[02:16:00] ======================= test_reuse ========================
[02:16:00] [PASSED] 4
[02:16:00] [PASSED] 8
[02:16:00] [PASSED] 32
[02:16:00] [PASSED] 256
[02:16:00] =================== [PASSED] test_reuse ====================
[02:16:00] =================== test_range_overlap ====================
[02:16:00] [PASSED] 4
[02:16:00] [PASSED] 8
[02:16:00] [PASSED] 32
[02:16:00] [PASSED] 256
[02:16:00] =============== [PASSED] test_range_overlap ================
[02:16:00] =================== test_range_compact ====================
[02:16:00] [PASSED] 4
[02:16:00] [PASSED] 8
[02:16:00] [PASSED] 32
[02:16:00] [PASSED] 256
[02:16:00] =============== [PASSED] test_range_compact ================
[02:16:00] ==================== test_range_spare =====================
[02:16:00] [PASSED] 4
[02:16:00] [PASSED] 8
[02:16:00] [PASSED] 32
[02:16:00] [PASSED] 256
[02:16:00] ================ [PASSED] test_range_spare =================
[02:16:00] ===================== [PASSED] guc_dbm =====================
[02:16:00] =================== guc_idm (6 subtests) ===================
[02:16:00] [PASSED] bad_init
[02:16:00] [PASSED] no_init
[02:16:00] [PASSED] init_fini
[02:16:00] [PASSED] check_used
[02:16:00] [PASSED] check_quota
[02:16:00] [PASSED] check_all
[02:16:00] ===================== [PASSED] guc_idm =====================
[02:16:00] ============== guc_klv_helpers (13 subtests) ===============
[02:16:00] [PASSED] test_count
[02:16:00] [PASSED] test_encode_u32
[02:16:00] [PASSED] test_encode_u64
[02:16:00] [PASSED] test_encode_string
[02:16:00] [PASSED] test_encode_object_raw
[02:16:00] [PASSED] test_encode_object_klv
[02:16:00] [PASSED] test_encode_object_nested
[02:16:00] [PASSED] test_encode_object_basic
[02:16:00] ===================== test_decode_u16 =====================
[02:16:00] [PASSED] empty
[02:16:00] [PASSED] valid
[02:16:00] [PASSED] max
[02:16:00] [PASSED] big
[02:16:00] [PASSED] long
[02:16:00] ================= [PASSED] test_decode_u16 =================
[02:16:00] ===================== test_decode_u32 =====================
[02:16:00] [PASSED] empty
[02:16:00] [PASSED] valid
[02:16:00] [PASSED] max
[02:16:00] [PASSED] long
[02:16:00] ================= [PASSED] test_decode_u32 =================
[02:16:00] ===================== test_decode_u64 =====================
[02:16:00] [PASSED] empty
[02:16:00] [PASSED] short
[02:16:00] [PASSED] valid
[02:16:00] [PASSED] max
[02:16:00] [PASSED] long
[02:16:00] ================= [PASSED] test_decode_u64 =================
[02:16:00] ===================== test_decode_str =====================
[02:16:00] [PASSED] empty
[02:16:00] [PASSED] one
[02:16:00] [PASSED] one_trash
[02:16:00] [PASSED] two
[02:16:00] [PASSED] two_trash
[02:16:00] [PASSED] three
[02:16:00] [PASSED] dword
[02:16:00] [PASSED] four
[02:16:00] [PASSED] five
[02:16:00] [PASSED] six
[02:16:00] [PASSED] seven
[02:16:00] [PASSED] qword
[02:16:00] ================= [PASSED] test_decode_str =================
[02:16:00] [PASSED] test_print
[02:16:00] ================= [PASSED] guc_klv_helpers =================
[02:16:00] =================== xe_log (4 subtests) ====================
[02:16:00] [PASSED] demo_cper
[02:16:00] [PASSED] demo_dmesg
[02:16:00] ======================= test_dmesg ========================
[02:16:00] [PASSED] test_fatal
[02:16:00] [PASSED] test_fatal_tile
[02:16:00] [PASSED] test_fatal_gt
[02:16:00] [PASSED] test_fatal_comp
[02:16:00] [PASSED] test_fatal_comp_tile
[02:16:00] [PASSED] test_fatal_comp_gt
[02:16:00] [PASSED] test_fatal_all
[02:16:00] [PASSED] test_recoverable
[02:16:00] [PASSED] test_recoverable_tile
[02:16:00] [PASSED] test_recoverable_gt
[02:16:00] [PASSED] test_recoverable_comp
[02:16:00] [PASSED] test_recoverable_comp_tile
[02:16:00] [PASSED] test_recoverable_comp_gt
[02:16:00] [PASSED] test_recoverable_all
[02:16:00] [PASSED] test_info
[02:16:00] [PASSED] test_info_tile
[02:16:00] [PASSED] test_info_gt
[02:16:00] [PASSED] test_info_err
[02:16:00] [PASSED] test_info_comp
[02:16:00] [PASSED] test_info_comp_tile
[02:16:00] [PASSED] test_info_comp_gt
[02:16:00] [PASSED] test_info_all
[02:16:00] [PASSED] test_hw_fatal
[02:16:00] [PASSED] test_hw_recoverable
[02:16:00] [PASSED] test_hw_corrected
[02:16:00] [PASSED] test_hw_informational
[02:16:00] =================== [PASSED] test_dmesg ====================
[02:16:00] ====================== test_invalid =======================
[02:16:00] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[02:16:00] ================== [SKIPPED] test_invalid ==================
[02:16:00] ===================== [PASSED] xe_log ======================
[02:16:00] ================== no_relay (3 subtests) ===================
[02:16:00] [PASSED] xe_drops_guc2pf_if_not_ready
[02:16:00] [PASSED] xe_drops_guc2vf_if_not_ready
[02:16:00] [PASSED] xe_rejects_send_if_not_ready
[02:16:00] ==================== [PASSED] no_relay =====================
[02:16:00] ================== pf_relay (14 subtests) ==================
[02:16:00] [PASSED] pf_rejects_guc2pf_too_short
[02:16:00] [PASSED] pf_rejects_guc2pf_too_long
[02:16:00] [PASSED] pf_rejects_guc2pf_no_payload
[02:16:00] [PASSED] pf_fails_no_payload
[02:16:00] [PASSED] pf_fails_bad_origin
[02:16:00] [PASSED] pf_fails_bad_type
[02:16:00] [PASSED] pf_txn_reports_error
[02:16:00] [PASSED] pf_txn_sends_pf2guc
[02:16:00] [PASSED] pf_sends_pf2guc
[02:16:00] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[02:16:00] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[02:16:00] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[02:16:00] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[02:16:00] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[02:16:00] ==================== [PASSED] pf_relay =====================
[02:16:00] ================== vf_relay (3 subtests) ===================
[02:16:00] [PASSED] vf_rejects_guc2vf_too_short
[02:16:00] [PASSED] vf_rejects_guc2vf_too_long
[02:16:00] [PASSED] vf_rejects_guc2vf_no_payload
[02:16:00] ==================== [PASSED] vf_relay =====================
[02:16:00] ================ pf_gt_config (9 subtests) =================
[02:16:00] [PASSED] fair_contexts_1vf
[02:16:00] [PASSED] fair_doorbells_1vf
[02:16:00] [PASSED] fair_ggtt_1vf
[02:16:00] ====================== fair_vram_1vf ======================
[02:16:00] [PASSED] 3.50 GiB
[02:16:00] [PASSED] 11.5 GiB
[02:16:00] [PASSED] 15.5 GiB
[02:16:00] [PASSED] 31.5 GiB
[02:16:00] [PASSED] 63.5 GiB
[02:16:00] [PASSED] 1.91 GiB
[02:16:00] ================== [PASSED] fair_vram_1vf ==================
[02:16:00] ================ fair_vram_1vf_admin_only =================
[02:16:00] [PASSED] 3.50 GiB
[02:16:00] [PASSED] 11.5 GiB
[02:16:00] [PASSED] 15.5 GiB
[02:16:00] [PASSED] 31.5 GiB
[02:16:00] [PASSED] 63.5 GiB
[02:16:00] [PASSED] 1.91 GiB
[02:16:00] ============ [PASSED] fair_vram_1vf_admin_only =============
[02:16:00] ====================== fair_contexts ======================
[02:16:00] [PASSED] 1 VF
[02:16:00] [PASSED] 2 VFs
[02:16:00] [PASSED] 3 VFs
[02:16:00] [PASSED] 4 VFs
[02:16:00] [PASSED] 5 VFs
[02:16:00] [PASSED] 6 VFs
[02:16:00] [PASSED] 7 VFs
[02:16:00] [PASSED] 8 VFs
[02:16:00] [PASSED] 9 VFs
[02:16:00] [PASSED] 10 VFs
[02:16:00] [PASSED] 11 VFs
[02:16:00] [PASSED] 12 VFs
[02:16:00] [PASSED] 13 VFs
[02:16:00] [PASSED] 14 VFs
[02:16:00] [PASSED] 15 VFs
[02:16:00] [PASSED] 16 VFs
[02:16:00] [PASSED] 17 VFs
[02:16:00] [PASSED] 18 VFs
[02:16:00] [PASSED] 19 VFs
[02:16:00] [PASSED] 20 VFs
[02:16:00] [PASSED] 21 VFs
[02:16:00] [PASSED] 22 VFs
[02:16:00] [PASSED] 23 VFs
[02:16:00] [PASSED] 24 VFs
[02:16:00] [PASSED] 25 VFs
[02:16:00] [PASSED] 26 VFs
[02:16:00] [PASSED] 27 VFs
[02:16:00] [PASSED] 28 VFs
[02:16:00] [PASSED] 29 VFs
[02:16:00] [PASSED] 30 VFs
[02:16:00] [PASSED] 31 VFs
[02:16:00] [PASSED] 32 VFs
[02:16:00] [PASSED] 33 VFs
[02:16:00] [PASSED] 34 VFs
[02:16:00] [PASSED] 35 VFs
[02:16:00] [PASSED] 36 VFs
[02:16:00] [PASSED] 37 VFs
[02:16:00] [PASSED] 38 VFs
[02:16:00] [PASSED] 39 VFs
[02:16:00] [PASSED] 40 VFs
[02:16:00] [PASSED] 41 VFs
[02:16:00] [PASSED] 42 VFs
[02:16:00] [PASSED] 43 VFs
[02:16:00] [PASSED] 44 VFs
[02:16:00] [PASSED] 45 VFs
[02:16:00] [PASSED] 46 VFs
[02:16:00] [PASSED] 47 VFs
[02:16:00] [PASSED] 48 VFs
[02:16:00] [PASSED] 49 VFs
[02:16:00] [PASSED] 50 VFs
[02:16:00] [PASSED] 51 VFs
[02:16:00] [PASSED] 52 VFs
[02:16:00] [PASSED] 53 VFs
[02:16:00] [PASSED] 54 VFs
[02:16:00] [PASSED] 55 VFs
[02:16:00] [PASSED] 56 VFs
[02:16:00] [PASSED] 57 VFs
[02:16:00] [PASSED] 58 VFs
[02:16:00] [PASSED] 59 VFs
[02:16:00] [PASSED] 60 VFs
[02:16:00] [PASSED] 61 VFs
[02:16:00] [PASSED] 62 VFs
[02:16:00] [PASSED] 63 VFs
[02:16:00] ================== [PASSED] fair_contexts ==================
[02:16:00] ===================== fair_doorbells ======================
[02:16:00] [PASSED] 1 VF
[02:16:00] [PASSED] 2 VFs
[02:16:00] [PASSED] 3 VFs
[02:16:00] [PASSED] 4 VFs
[02:16:00] [PASSED] 5 VFs
[02:16:00] [PASSED] 6 VFs
[02:16:00] [PASSED] 7 VFs
[02:16:00] [PASSED] 8 VFs
[02:16:00] [PASSED] 9 VFs
[02:16:00] [PASSED] 10 VFs
[02:16:00] [PASSED] 11 VFs
[02:16:00] [PASSED] 12 VFs
[02:16:00] [PASSED] 13 VFs
[02:16:00] [PASSED] 14 VFs
[02:16:00] [PASSED] 15 VFs
[02:16:00] [PASSED] 16 VFs
[02:16:00] [PASSED] 17 VFs
[02:16:00] [PASSED] 18 VFs
[02:16:00] [PASSED] 19 VFs
[02:16:00] [PASSED] 20 VFs
[02:16:00] [PASSED] 21 VFs
[02:16:00] [PASSED] 22 VFs
[02:16:00] [PASSED] 23 VFs
[02:16:00] [PASSED] 24 VFs
[02:16:00] [PASSED] 25 VFs
[02:16:00] [PASSED] 26 VFs
[02:16:00] [PASSED] 27 VFs
[02:16:00] [PASSED] 28 VFs
[02:16:00] [PASSED] 29 VFs
[02:16:00] [PASSED] 30 VFs
[02:16:00] [PASSED] 31 VFs
[02:16:00] [PASSED] 32 VFs
[02:16:00] [PASSED] 33 VFs
[02:16:00] [PASSED] 34 VFs
[02:16:00] [PASSED] 35 VFs
[02:16:00] [PASSED] 36 VFs
[02:16:00] [PASSED] 37 VFs
[02:16:00] [PASSED] 38 VFs
[02:16:00] [PASSED] 39 VFs
[02:16:00] [PASSED] 40 VFs
[02:16:00] [PASSED] 41 VFs
[02:16:00] [PASSED] 42 VFs
[02:16:00] [PASSED] 43 VFs
[02:16:00] [PASSED] 44 VFs
[02:16:00] [PASSED] 45 VFs
[02:16:00] [PASSED] 46 VFs
[02:16:00] [PASSED] 47 VFs
[02:16:00] [PASSED] 48 VFs
[02:16:00] [PASSED] 49 VFs
[02:16:00] [PASSED] 50 VFs
[02:16:00] [PASSED] 51 VFs
[02:16:00] [PASSED] 52 VFs
[02:16:00] [PASSED] 53 VFs
[02:16:00] [PASSED] 54 VFs
[02:16:00] [PASSED] 55 VFs
[02:16:00] [PASSED] 56 VFs
[02:16:00] [PASSED] 57 VFs
[02:16:00] [PASSED] 58 VFs
[02:16:00] [PASSED] 59 VFs
[02:16:00] [PASSED] 60 VFs
[02:16:00] [PASSED] 61 VFs
[02:16:00] [PASSED] 62 VFs
[02:16:00] [PASSED] 63 VFs
[02:16:00] ================= [PASSED] fair_doorbells ==================
[02:16:00] ======================== fair_ggtt ========================
[02:16:00] [PASSED] 1 VF
[02:16:00] [PASSED] 2 VFs
[02:16:00] [PASSED] 3 VFs
[02:16:00] [PASSED] 4 VFs
[02:16:00] [PASSED] 5 VFs
[02:16:00] [PASSED] 6 VFs
[02:16:00] [PASSED] 7 VFs
[02:16:00] [PASSED] 8 VFs
[02:16:00] [PASSED] 9 VFs
[02:16:00] [PASSED] 10 VFs
[02:16:00] [PASSED] 11 VFs
[02:16:00] [PASSED] 12 VFs
[02:16:00] [PASSED] 13 VFs
[02:16:00] [PASSED] 14 VFs
[02:16:00] [PASSED] 15 VFs
[02:16:00] [PASSED] 16 VFs
[02:16:00] [PASSED] 17 VFs
[02:16:00] [PASSED] 18 VFs
[02:16:00] [PASSED] 19 VFs
[02:16:00] [PASSED] 20 VFs
[02:16:00] [PASSED] 21 VFs
[02:16:00] [PASSED] 22 VFs
[02:16:00] [PASSED] 23 VFs
[02:16:00] [PASSED] 24 VFs
[02:16:00] [PASSED] 25 VFs
[02:16:00] [PASSED] 26 VFs
[02:16:00] [PASSED] 27 VFs
[02:16:00] [PASSED] 28 VFs
[02:16:00] [PASSED] 29 VFs
[02:16:00] [PASSED] 30 VFs
[02:16:00] [PASSED] 31 VFs
[02:16:00] [PASSED] 32 VFs
[02:16:00] [PASSED] 33 VFs
[02:16:00] [PASSED] 34 VFs
[02:16:00] [PASSED] 35 VFs
[02:16:00] [PASSED] 36 VFs
[02:16:00] [PASSED] 37 VFs
[02:16:00] [PASSED] 38 VFs
[02:16:00] [PASSED] 39 VFs
[02:16:00] [PASSED] 40 VFs
[02:16:00] [PASSED] 41 VFs
[02:16:00] [PASSED] 42 VFs
[02:16:00] [PASSED] 43 VFs
[02:16:00] [PASSED] 44 VFs
[02:16:00] [PASSED] 45 VFs
[02:16:00] [PASSED] 46 VFs
[02:16:00] [PASSED] 47 VFs
[02:16:00] [PASSED] 48 VFs
[02:16:00] [PASSED] 49 VFs
[02:16:00] [PASSED] 50 VFs
[02:16:00] [PASSED] 51 VFs
[02:16:00] [PASSED] 52 VFs
[02:16:00] [PASSED] 53 VFs
[02:16:00] [PASSED] 54 VFs
[02:16:00] [PASSED] 55 VFs
[02:16:00] [PASSED] 56 VFs
[02:16:00] [PASSED] 57 VFs
[02:16:00] [PASSED] 58 VFs
[02:16:00] [PASSED] 59 VFs
[02:16:00] [PASSED] 60 VFs
[02:16:00] [PASSED] 61 VFs
[02:16:00] [PASSED] 62 VFs
[02:16:00] [PASSED] 63 VFs
[02:16:00] ==================== [PASSED] fair_ggtt ====================
[02:16:00] ======================== fair_vram ========================
[02:16:00] [PASSED] 1 VF
[02:16:00] [PASSED] 2 VFs
[02:16:00] [PASSED] 3 VFs
[02:16:00] [PASSED] 4 VFs
[02:16:00] [PASSED] 5 VFs
[02:16:00] [PASSED] 6 VFs
[02:16:00] [PASSED] 7 VFs
[02:16:00] [PASSED] 8 VFs
[02:16:00] [PASSED] 9 VFs
[02:16:00] [PASSED] 10 VFs
[02:16:00] [PASSED] 11 VFs
[02:16:00] [PASSED] 12 VFs
[02:16:00] [PASSED] 13 VFs
[02:16:00] [PASSED] 14 VFs
[02:16:00] [PASSED] 15 VFs
[02:16:00] [PASSED] 16 VFs
[02:16:00] [PASSED] 17 VFs
[02:16:00] [PASSED] 18 VFs
[02:16:00] [PASSED] 19 VFs
[02:16:00] [PASSED] 20 VFs
[02:16:00] [PASSED] 21 VFs
[02:16:00] [PASSED] 22 VFs
[02:16:00] [PASSED] 23 VFs
[02:16:00] [PASSED] 24 VFs
[02:16:00] [PASSED] 25 VFs
[02:16:00] [PASSED] 26 VFs
[02:16:00] [PASSED] 27 VFs
[02:16:00] [PASSED] 28 VFs
[02:16:00] [PASSED] 29 VFs
[02:16:00] [PASSED] 30 VFs
[02:16:00] [PASSED] 31 VFs
[02:16:00] [PASSED] 32 VFs
[02:16:00] [PASSED] 33 VFs
[02:16:00] [PASSED] 34 VFs
[02:16:00] [PASSED] 35 VFs
[02:16:00] [PASSED] 36 VFs
[02:16:00] [PASSED] 37 VFs
[02:16:00] [PASSED] 38 VFs
[02:16:00] [PASSED] 39 VFs
[02:16:00] [PASSED] 40 VFs
[02:16:00] [PASSED] 41 VFs
[02:16:00] [PASSED] 42 VFs
[02:16:00] [PASSED] 43 VFs
[02:16:00] [PASSED] 44 VFs
[02:16:00] [PASSED] 45 VFs
[02:16:00] [PASSED] 46 VFs
[02:16:00] [PASSED] 47 VFs
[02:16:00] [PASSED] 48 VFs
[02:16:00] [PASSED] 49 VFs
[02:16:00] [PASSED] 50 VFs
[02:16:00] [PASSED] 51 VFs
[02:16:00] [PASSED] 52 VFs
[02:16:00] [PASSED] 53 VFs
[02:16:00] [PASSED] 54 VFs
[02:16:00] [PASSED] 55 VFs
[02:16:00] [PASSED] 56 VFs
[02:16:00] [PASSED] 57 VFs
[02:16:00] [PASSED] 58 VFs
[02:16:00] [PASSED] 59 VFs
[02:16:00] [PASSED] 60 VFs
[02:16:00] [PASSED] 61 VFs
[02:16:00] [PASSED] 62 VFs
[02:16:00] [PASSED] 63 VFs
[02:16:00] ==================== [PASSED] fair_vram ====================
[02:16:00] ================== [PASSED] pf_gt_config ===================
[02:16:00] ===================== lmtt (1 subtest) =====================
[02:16:00] ======================== test_ops =========================
[02:16:00] [PASSED] 2-level
[02:16:00] [PASSED] multi-level
[02:16:00] ==================== [PASSED] test_ops =====================
[02:16:00] ====================== [PASSED] lmtt =======================
[02:16:00] ================= sriov_packet (1 subtest) =================
[02:16:00] [PASSED] test_descriptor_init
[02:16:00] ================== [PASSED] sriov_packet ===================
[02:16:00] ================= pf_service (11 subtests) =================
[02:16:00] [PASSED] pf_negotiate_any
[02:16:00] [PASSED] pf_negotiate_base_match
[02:16:00] [PASSED] pf_negotiate_base_newer
[02:16:00] [PASSED] pf_negotiate_base_next
[02:16:00] [SKIPPED] pf_negotiate_base_older (no older minor)
[02:16:00] [PASSED] pf_negotiate_base_prev
[02:16:00] [PASSED] pf_negotiate_latest_match
[02:16:00] [PASSED] pf_negotiate_latest_newer
[02:16:00] [PASSED] pf_negotiate_latest_next
[02:16:00] [SKIPPED] pf_negotiate_latest_older (no older minor)
[02:16:00] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[02:16:00] =================== [PASSED] pf_service ====================
[02:16:00] ================= xe_guc_g2g (2 subtests) ==================
[02:16:00] ============== xe_live_guc_g2g_kunit_default ==============
[02:16:00] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[02:16:00] ============== xe_live_guc_g2g_kunit_allmem ===============
[02:16:00] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[02:16:00] =================== [SKIPPED] xe_guc_g2g ===================
[02:16:00] =================== xe_mocs (2 subtests) ===================
[02:16:00] ================ xe_live_mocs_kernel_kunit ================
[02:16:00] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[02:16:00] ================ xe_live_mocs_reset_kunit =================
[02:16:00] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[02:16:00] ==================== [SKIPPED] xe_mocs =====================
[02:16:00] ================= xe_migrate (2 subtests) ==================
[02:16:00] ================= xe_migrate_sanity_kunit =================
[02:16:00] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[02:16:00] ================== xe_validate_ccs_kunit ==================
[02:16:00] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[02:16:00] =================== [SKIPPED] xe_migrate ===================
[02:16:00] ================== xe_dma_buf (1 subtest) ==================
[02:16:00] ==================== xe_dma_buf_kunit =====================
[02:16:00] ================ [SKIPPED] xe_dma_buf_kunit ================
[02:16:00] =================== [SKIPPED] xe_dma_buf ===================
[02:16:00] ================= xe_bo_shrink (1 subtest) =================
[02:16:00] =================== xe_bo_shrink_kunit ====================
[02:16:00] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[02:16:00] ================== [SKIPPED] xe_bo_shrink ==================
[02:16:00] ==================== xe_bo (2 subtests) ====================
[02:16:00] ================== xe_ccs_migrate_kunit ===================
[02:16:00] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[02:16:00] ==================== xe_bo_evict_kunit ====================
[02:16:00] =============== [SKIPPED] xe_bo_evict_kunit ================
[02:16:00] ===================== [SKIPPED] xe_bo ======================
[02:16:00] =================== xe_any (9 subtests) ====================
[02:16:00] [PASSED] test_to_xe
[02:16:00] [PASSED] test_to_dev
[02:16:00] [PASSED] test_to_pdev
[02:16:00] [PASSED] test_to_drm
[02:16:00] [PASSED] test_if_pdev
[02:16:00] [PASSED] test_if_xe
[02:16:00] [PASSED] test_if_tile
[02:16:00] [PASSED] test_if_gt
[02:16:00] [PASSED] test_to_id
[02:16:00] ===================== [PASSED] xe_any ======================
[02:16:00] ==================== args (13 subtests) ====================
[02:16:00] [PASSED] count_args_test
[02:16:00] [PASSED] call_args_example
[02:16:00] [PASSED] call_args_test
[02:16:00] [PASSED] drop_first_arg_example
[02:16:00] [PASSED] drop_first_arg_test
[02:16:00] [PASSED] first_arg_example
[02:16:00] [PASSED] first_arg_test
[02:16:00] [PASSED] last_arg_example
[02:16:00] [PASSED] last_arg_test
[02:16:00] [PASSED] pick_arg_example
[02:16:00] [PASSED] if_args_example
[02:16:00] [PASSED] if_args_test
[02:16:00] [PASSED] sep_comma_example
[02:16:00] ====================== [PASSED] args =======================
[02:16:00] =================== xe_pci (3 subtests) ====================
[02:16:00] ==================== check_graphics_ip ====================
[02:16:00] [PASSED] 12.00 Xe_LP
[02:16:00] [PASSED] 12.10 Xe_LP+
[02:16:00] [PASSED] 12.55 Xe_HPG
[02:16:00] [PASSED] 12.60 Xe_HPC
[02:16:00] [PASSED] 12.70 Xe_LPG
[02:16:00] [PASSED] 12.71 Xe_LPG
[02:16:00] [PASSED] 12.74 Xe_LPG+
[02:16:00] [PASSED] 20.01 Xe2_HPG
[02:16:00] [PASSED] 20.02 Xe2_HPG
[02:16:00] [PASSED] 20.04 Xe2_LPG
[02:16:00] [PASSED] 30.00 Xe3_LPG
[02:16:00] [PASSED] 30.01 Xe3_LPG
[02:16:00] [PASSED] 30.03 Xe3_LPG
[02:16:00] [PASSED] 30.04 Xe3_LPG
[02:16:00] [PASSED] 30.05 Xe3_LPG
[02:16:00] [PASSED] 35.10 Xe3p_LPG
[02:16:00] [PASSED] 35.11 Xe3p_XPC
[02:16:00] ================ [PASSED] check_graphics_ip ================
[02:16:00] ===================== check_media_ip ======================
[02:16:00] [PASSED] 12.00 Xe_M
[02:16:00] [PASSED] 12.55 Xe_HPM
[02:16:00] [PASSED] 13.00 Xe_LPM+
[02:16:00] [PASSED] 13.01 Xe2_HPM
[02:16:00] [PASSED] 20.00 Xe2_LPM
[02:16:00] [PASSED] 30.00 Xe3_LPM
[02:16:00] [PASSED] 30.02 Xe3_LPM
[02:16:00] [PASSED] 35.00 Xe3p_LPM
[02:16:00] [PASSED] 35.03 Xe3p_HPM
[02:16:00] ================= [PASSED] check_media_ip ==================
[02:16:00] =================== check_platform_desc ===================
[02:16:00] [PASSED] 0x9A60 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A68 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A70 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A40 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A49 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A59 (TIGERLAKE)
[02:16:00] [PASSED] 0x9A78 (TIGERLAKE)
[02:16:00] [PASSED] 0x9AC0 (TIGERLAKE)
[02:16:00] [PASSED] 0x9AC9 (TIGERLAKE)
[02:16:00] [PASSED] 0x9AD9 (TIGERLAKE)
[02:16:00] [PASSED] 0x9AF8 (TIGERLAKE)
[02:16:00] [PASSED] 0x4C80 (ROCKETLAKE)
[02:16:00] [PASSED] 0x4C8A (ROCKETLAKE)
[02:16:00] [PASSED] 0x4C8B (ROCKETLAKE)
[02:16:00] [PASSED] 0x4C8C (ROCKETLAKE)
[02:16:00] [PASSED] 0x4C90 (ROCKETLAKE)
[02:16:00] [PASSED] 0x4C9A (ROCKETLAKE)
[02:16:00] [PASSED] 0x4680 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4682 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4688 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x468A (ALDERLAKE_S)
[02:16:00] [PASSED] 0x468B (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4690 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4692 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4693 (ALDERLAKE_S)
[02:16:00] [PASSED] 0x46A0 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46A1 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46A2 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46A3 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46A6 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46A8 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46AA (ALDERLAKE_P)
[02:16:00] [PASSED] 0x462A (ALDERLAKE_P)
[02:16:00] [PASSED] 0x4626 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x4628 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46B0 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46B1 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46B2 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46B3 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46C0 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46C1 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46C2 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46C3 (ALDERLAKE_P)
[02:16:00] [PASSED] 0x46D0 (ALDERLAKE_N)
[02:16:00] [PASSED] 0x46D1 (ALDERLAKE_N)
[02:16:00] [PASSED] 0x46D2 (ALDERLAKE_N)
[02:16:00] [PASSED] 0x46D3 (ALDERLAKE_N)
[02:16:00] [PASSED] 0x46D4 (ALDERLAKE_N)
[02:16:00] [PASSED] 0xA721 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7A1 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7A9 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7AC (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7AD (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA720 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7A0 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7A8 (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7AA (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA7AB (ALDERLAKE_P)
[02:16:00] [PASSED] 0xA780 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA781 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA782 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA783 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA788 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA789 (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA78A (ALDERLAKE_S)
[02:16:00] [PASSED] 0xA78B (ALDERLAKE_S)
[02:16:00] [PASSED] 0x4905 (DG1)
[02:16:00] [PASSED] 0x4906 (DG1)
[02:16:00] [PASSED] 0x4907 (DG1)
[02:16:00] [PASSED] 0x4908 (DG1)
[02:16:00] [PASSED] 0x4909 (DG1)
[02:16:00] [PASSED] 0x56C0 (DG2)
[02:16:00] [PASSED] 0x56C2 (DG2)
[02:16:00] [PASSED] 0x56C1 (DG2)
[02:16:00] [PASSED] 0x7D51 (METEORLAKE)
[02:16:00] [PASSED] 0x7DD1 (METEORLAKE)
[02:16:00] [PASSED] 0x7D41 (METEORLAKE)
[02:16:00] [PASSED] 0x7D67 (METEORLAKE)
[02:16:00] [PASSED] 0xB640 (METEORLAKE)
[02:16:00] [PASSED] 0x56A0 (DG2)
[02:16:00] [PASSED] 0x56A1 (DG2)
[02:16:00] [PASSED] 0x56A2 (DG2)
[02:16:00] [PASSED] 0x56BE (DG2)
[02:16:00] [PASSED] 0x56BF (DG2)
[02:16:00] [PASSED] 0x5690 (DG2)
[02:16:00] [PASSED] 0x5691 (DG2)
[02:16:00] [PASSED] 0x5692 (DG2)
[02:16:00] [PASSED] 0x56A5 (DG2)
[02:16:00] [PASSED] 0x56A6 (DG2)
[02:16:00] [PASSED] 0x56B0 (DG2)
[02:16:00] [PASSED] 0x56B1 (DG2)
[02:16:00] [PASSED] 0x56BA (DG2)
[02:16:00] [PASSED] 0x56BB (DG2)
[02:16:00] [PASSED] 0x56BC (DG2)
[02:16:00] [PASSED] 0x56BD (DG2)
[02:16:00] [PASSED] 0x5693 (DG2)
[02:16:00] [PASSED] 0x5694 (DG2)
[02:16:00] [PASSED] 0x5695 (DG2)
[02:16:00] [PASSED] 0x56A3 (DG2)
[02:16:00] [PASSED] 0x56A4 (DG2)
[02:16:00] [PASSED] 0x56B2 (DG2)
[02:16:00] [PASSED] 0x56B3 (DG2)
[02:16:00] [PASSED] 0x5696 (DG2)
[02:16:00] [PASSED] 0x5697 (DG2)
[02:16:00] [PASSED] 0xB69 (PVC)
[02:16:00] [PASSED] 0xB6E (PVC)
[02:16:00] [PASSED] 0xBD4 (PVC)
[02:16:00] [PASSED] 0xBD5 (PVC)
[02:16:00] [PASSED] 0xBD6 (PVC)
[02:16:00] [PASSED] 0xBD7 (PVC)
[02:16:00] [PASSED] 0xBD8 (PVC)
[02:16:00] [PASSED] 0xBD9 (PVC)
[02:16:00] [PASSED] 0xBDA (PVC)
[02:16:00] [PASSED] 0xBDB (PVC)
[02:16:00] [PASSED] 0xBE0 (PVC)
[02:16:00] [PASSED] 0xBE1 (PVC)
[02:16:00] [PASSED] 0xBE5 (PVC)
[02:16:00] [PASSED] 0x7D40 (METEORLAKE)
[02:16:00] [PASSED] 0x7D45 (METEORLAKE)
[02:16:00] [PASSED] 0x7D55 (METEORLAKE)
[02:16:00] [PASSED] 0x7D60 (METEORLAKE)
[02:16:00] [PASSED] 0x7DD5 (METEORLAKE)
[02:16:00] [PASSED] 0x6420 (LUNARLAKE)
[02:16:00] [PASSED] 0x64A0 (LUNARLAKE)
[02:16:00] [PASSED] 0x64B0 (LUNARLAKE)
[02:16:00] [PASSED] 0xE202 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE209 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE20B (BATTLEMAGE)
[02:16:00] [PASSED] 0xE20C (BATTLEMAGE)
[02:16:00] [PASSED] 0xE20D (BATTLEMAGE)
[02:16:00] [PASSED] 0xE210 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE211 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE212 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE216 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE220 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE221 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE222 (BATTLEMAGE)
[02:16:00] [PASSED] 0xE223 (BATTLEMAGE)
[02:16:00] [PASSED] 0xB080 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB081 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB082 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB083 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB084 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB085 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB086 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB087 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB08F (PANTHERLAKE)
[02:16:00] [PASSED] 0xB090 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB0A0 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB0A1 (PANTHERLAKE)
[02:16:00] [PASSED] 0xB0B0 (PANTHERLAKE)
[02:16:00] [PASSED] 0xFD80 (PANTHERLAKE)
[02:16:00] [PASSED] 0xFD81 (PANTHERLAKE)
[02:16:00] [PASSED] 0xD740 (NOVALAKE_S)
[02:16:00] [PASSED] 0xD741 (NOVALAKE_S)
[02:16:00] [PASSED] 0xD742 (NOVALAKE_S)
[02:16:00] [PASSED] 0xD743 (NOVALAKE_S)
[02:16:00] [PASSED] 0xD745 (NOVALAKE_S)
[02:16:00] [PASSED] 0xD74A (NOVALAKE_S)
[02:16:00] [PASSED] 0xD74B (NOVALAKE_S)
[02:16:00] [PASSED] 0x674C (CRESCENTISLAND)
[02:16:00] [PASSED] 0x674D (CRESCENTISLAND)
[02:16:00] [PASSED] 0x674E (CRESCENTISLAND)
[02:16:00] [PASSED] 0x674F (CRESCENTISLAND)
[02:16:00] [PASSED] 0x6750 (CRESCENTISLAND)
[02:16:00] [PASSED] 0x6751 (CRESCENTISLAND)
[02:16:00] [PASSED] 0xD750 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD751 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD752 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD753 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD754 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD755 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD756 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD757 (NOVALAKE_P)
[02:16:00] [PASSED] 0xD75F (NOVALAKE_P)
[02:16:00] =============== [PASSED] check_platform_desc ===============
[02:16:00] ===================== [PASSED] xe_pci ======================
[02:16:00] ============= xe_rtp_tables_test (5 subtests) ==============
[02:16:00] ================== xe_rtp_table_gt_test ===================
[02:16:00] [PASSED] gt_was/14011060649
[02:16:00] [PASSED] gt_was/14011059788
[02:16:00] [PASSED] gt_was/14015795083
[02:16:00] [PASSED] gt_was/16021867713
[02:16:00] [PASSED] gt_was/14019449301
[02:16:00] [PASSED] gt_was/16028005424
[02:16:00] [PASSED] gt_was/14026578760
[02:16:00] [PASSED] gt_was/1409420604
[02:16:00] [PASSED] gt_was/1408615072
[02:16:00] [PASSED] gt_was/22010523718
[02:16:00] [PASSED] gt_was/14011006942
[02:16:00] [PASSED] gt_was/14014830051
[02:16:00] [PASSED] gt_was/18018781329
[02:16:00] [PASSED] gt_was/1509235366
[02:16:00] [PASSED] gt_was/18018781329
[02:16:00] [PASSED] gt_was/16016694945
[02:16:00] [PASSED] gt_was/14018575942
[02:16:00] [PASSED] gt_was/22016670082
[02:16:00] [PASSED] gt_was/22016670082
[02:16:00] [PASSED] gt_was/14017421178
[02:16:00] [PASSED] gt_was/16025250150
[02:16:00] [PASSED] gt_was/14021871409
[02:16:00] [PASSED] gt_was/16021865536
[02:16:00] [PASSED] gt_was/14021486841
[02:16:00] [PASSED] gt_was/14025160223
[02:16:00] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[02:16:00] [PASSED] gt_was/14025635424
[02:16:00] [PASSED] gt_was/16028005424
[02:16:00] ============== [PASSED] xe_rtp_table_gt_test ===============
[02:16:00] ================== xe_rtp_table_gt_test ===================
[02:16:00] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[02:16:00] [PASSED] gt_tunings/Tuning: 32B Access Enable
[02:16:00] [PASSED] gt_tunings/Tuning: L3 cache
[02:16:00] [PASSED] gt_tunings/Tuning: L3 cache - media
[02:16:00] [PASSED] gt_tunings/Tuning: Compression Overfetch
[02:16:00] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[02:16:00] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[02:16:00] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[02:16:00] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[02:16:00] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[02:16:00] [PASSED] gt_tunings/Tuning: Stateless compression control
[02:16:00] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[02:16:00] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[02:16:00] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[02:16:00] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[02:16:00] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[02:16:00] ============== [PASSED] xe_rtp_table_gt_test ===============
[02:16:00] ================== xe_rtp_table_oob_test ==================
[02:16:00] [PASSED] oob_was/1607983814
[02:16:00] [PASSED] oob_was/16010904313
[02:16:00] [PASSED] oob_was/18022495364
[02:16:00] [PASSED] oob_was/22012773006
[02:16:00] [PASSED] oob_was/14014475959
[02:16:00] [PASSED] oob_was/22011391025
[02:16:00] [PASSED] oob_was/22012727170
[02:16:00] [PASSED] oob_was/22012727685
[02:16:00] [PASSED] oob_was/22016596838
[02:16:00] [PASSED] oob_was/18020744125
[02:16:00] [PASSED] oob_was/1409600907
[02:16:00] [PASSED] oob_was/22014953428
[02:16:00] [PASSED] oob_was/16017236439
[02:16:00] [PASSED] oob_was/14019821291
[02:16:00] [PASSED] oob_was/14015076503
[02:16:00] [PASSED] oob_was/22016122933
[02:16:00] [PASSED] oob_was/14018913170
[02:16:00] [PASSED] oob_was/14018094691
[02:16:00] [PASSED] oob_was/18024947630
[02:16:00] [PASSED] oob_was/16022287689
[02:16:00] [PASSED] oob_was/13011645652
[02:16:00] [PASSED] oob_was/14022293748
[02:16:00] [PASSED] oob_was/22019794406
[02:16:00] [PASSED] oob_was/22019338487
[02:16:00] [PASSED] oob_was/16023588340
[02:16:00] [PASSED] oob_was/14019789679
[02:16:00] [PASSED] oob_was/14022866841
[02:16:00] [PASSED] oob_was/16021333562
[02:16:00] [PASSED] oob_was/14016712196
[02:16:00] [PASSED] oob_was/14015568240
[02:16:00] [PASSED] oob_was/18013179988
[02:16:00] [PASSED] oob_was/1508761755
[02:16:00] [PASSED] oob_was/16023105232
[02:16:00] [PASSED] oob_was/16026508708
[02:16:00] [PASSED] oob_was/14020001231
[02:16:00] [PASSED] oob_was/16023683509
[02:16:00] [PASSED] oob_was/14025515070
[02:16:00] [PASSED] oob_was/15015404425_disable
[02:16:00] [PASSED] oob_was/16026007364
[02:16:00] [PASSED] oob_was/14020316580
[02:16:00] [PASSED] oob_was/14025883347
[02:16:00] [PASSED] oob_was/16029380221
[02:16:00] [PASSED] oob_was/22022079272
[02:16:00] [PASSED] oob_was/16029897822
[02:16:00] [PASSED] oob_was/14027054324
[02:16:00] [PASSED] oob_was/14025941587
[02:16:00] [PASSED] oob_was/16030224309
[02:16:00] ============== [PASSED] xe_rtp_table_oob_test ==============
[02:16:00] ================ xe_rtp_table_dev_oob_test ================
[02:16:00] [PASSED] device_oob_was/22010954014
[02:16:00] [PASSED] device_oob_was/15015404425
[02:16:00] [PASSED] device_oob_was/22019338487_display
[02:16:00] [PASSED] device_oob_was/14022085890
[02:16:00] [PASSED] device_oob_was/14026539277
[02:16:00] [PASSED] device_oob_was/14026633728
[02:16:00] [PASSED] device_oob_was/14026746987
[02:16:00] [PASSED] device_oob_was/14026779378
[02:16:00] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[02:16:00] ========== xe_rtp_table_missing_upper_bound_test ==========
[02:16:00] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[02:16:00] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[02:16:00] [PASSED] register_whitelist/1806527549
[02:16:00] [PASSED] register_whitelist/allow_read_ctx_timestamp
[02:16:00] [PASSED] register_whitelist/allow_read_queue_timestamp
[02:16:00] [PASSED] register_whitelist/16014440446
[02:16:00] [PASSED] register_whitelist/16017236439
[02:16:00] [PASSED] register_whitelist/16020183090
[02:16:00] [PASSED] register_whitelist/14024997852
[02:16:00] [PASSED] register_whitelist/14024997852
[02:16:00] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[02:16:00] =============== [PASSED] xe_rtp_tables_test ================
[02:16:00] =================== xe_rtp (3 subtests) ====================
[02:16:00] =================== xe_rtp_rules_tests ====================
[02:16:00] [PASSED] no
[02:16:00] [PASSED] yes
[02:16:00] [PASSED] no-and-no
[02:16:00] [PASSED] no-and-yes
[02:16:00] [PASSED] yes-and-no
[02:16:00] [PASSED] yes-and-yes
[02:16:00] [PASSED] no-or-no
[02:16:00] [PASSED] no-or-yes
[02:16:00] [PASSED] yes-or-no
[02:16:00] [PASSED] yes-or-yes
[02:16:00] [PASSED] no-yes-or-yes-no
[02:16:00] [PASSED] no-yes-or-yes-yes
[02:16:00] [PASSED] yes-yes-or-no-yes
[02:16:00] [PASSED] yes-yes-or-yes-yes
[02:16:00] [PASSED] no-no-or-yes-or-no
[02:16:00] [PASSED] or
[02:16:00] [PASSED] or-yes
[02:16:00] [PASSED] or-no
[02:16:00] [PASSED] yes-or
[02:16:00] [PASSED] no-or
[02:16:00] [PASSED] no-or-or-yes
[02:16:00] [PASSED] yes-or-or-no
[02:16:00] [PASSED] no-or-or-no
[02:16:00] [PASSED] missing-context-engine-class
[02:16:00] [PASSED] missing-context-engine-class-or-yes
[02:16:00] [PASSED] missing-context-engine-class-or-or-yes
[02:16:00] =============== [PASSED] xe_rtp_rules_tests ================
[02:16:00] =============== xe_rtp_process_to_sr_tests ================
[02:16:00] [PASSED] coalesce-same-reg
[02:16:00] [PASSED] coalesce-same-reg-literal-and-func
[02:16:00] [PASSED] no-match-no-add
[02:16:00] [PASSED] two-regs-two-entries
[02:16:00] [PASSED] clr-one-set-other
[02:16:00] [PASSED] set-field
[02:16:00] [PASSED] conflict-duplicate
[02:16:00] [PASSED] conflict-not-disjoint
[02:16:00] [PASSED] conflict-not-disjoint-literal-and-func
[02:16:00] [PASSED] conflict-reg-type
[02:16:00] [PASSED] bad-mcr-reg-forced-to-regular
[02:16:00] [PASSED] bad-regular-reg-forced-to-mcr
[02:16:00] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[02:16:00] ================== xe_rtp_process_tests ===================
[02:16:00] [PASSED] active1
[02:16:00] [PASSED] active2
[02:16:00] [PASSED] active-inactive
[02:16:00] [PASSED] inactive-active
[02:16:00] [PASSED] inactive-active-inactive
[02:16:00] [PASSED] inactive-inactive-inactive
[02:16:00] ============== [PASSED] xe_rtp_process_tests ===============
[02:16:00] ===================== [PASSED] xe_rtp ======================
[02:16:00] ==================== xe_wa (1 subtest) =====================
[02:16:00] ======================== xe_wa_gt =========================
[02:16:00] [PASSED] TIGERLAKE B0
[02:16:00] [PASSED] DG1 A0
[02:16:00] [PASSED] DG1 B0
[02:16:00] [PASSED] ALDERLAKE_S A0
[02:16:00] [PASSED] ALDERLAKE_S B0
[02:16:00] [PASSED] ALDERLAKE_S C0
[02:16:00] [PASSED] ALDERLAKE_S D0
[02:16:00] [PASSED] ALDERLAKE_P A0
[02:16:00] [PASSED] ALDERLAKE_P B0
[02:16:00] [PASSED] ALDERLAKE_P C0
[02:16:00] [PASSED] ALDERLAKE_S RPLS D0
[02:16:00] [PASSED] ALDERLAKE_P RPLU E0
[02:16:00] [PASSED] DG2 G10 C0
[02:16:00] [PASSED] DG2 G11 B1
[02:16:00] [PASSED] DG2 G12 A1
[02:16:00] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[02:16:00] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[02:16:00] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[02:16:00] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[02:16:00] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[02:16:00] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[02:16:00] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[02:16:00] ==================== [PASSED] xe_wa_gt =====================
[02:16:00] ====================== [PASSED] xe_wa ======================
[02:16:00] ============================================================
[02:16:00] Testing complete. Ran 821 tests: passed: 793, skipped: 28
[02:16:01] Elapsed time: 36.360s total, 1.878s configuring, 33.717s building, 0.720s 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
[02:16:01] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[02:16:03] 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
[02:16:28] Starting KUnit Kernel (1/1)...
[02:16:28] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[02:16:28] ============ drm_test_pick_cmdline (2 subtests) ============
[02:16:28] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[02:16:28] =============== drm_test_pick_cmdline_named ===============
[02:16:28] [PASSED] NTSC
[02:16:28] [PASSED] NTSC-J
[02:16:28] [PASSED] PAL
[02:16:28] [PASSED] PAL-M
[02:16:28] =========== [PASSED] drm_test_pick_cmdline_named ===========
[02:16:28] ============== [PASSED] drm_test_pick_cmdline ==============
[02:16:28] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[02:16:28] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[02:16:28] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[02:16:28] =========== drm_validate_clone_mode (2 subtests) ===========
[02:16:28] ============== drm_test_check_in_clone_mode ===============
[02:16:28] [PASSED] in_clone_mode
[02:16:28] [PASSED] not_in_clone_mode
[02:16:28] ========== [PASSED] drm_test_check_in_clone_mode ===========
[02:16:28] =============== drm_test_check_valid_clones ===============
[02:16:28] [PASSED] not_in_clone_mode
[02:16:28] [PASSED] valid_clone
[02:16:28] [PASSED] invalid_clone
[02:16:28] =========== [PASSED] drm_test_check_valid_clones ===========
[02:16:28] ============= [PASSED] drm_validate_clone_mode =============
[02:16:28] ============= drm_validate_modeset (1 subtest) =============
[02:16:28] [PASSED] drm_test_check_connector_changed_modeset
[02:16:28] ============== [PASSED] drm_validate_modeset ===============
[02:16:28] ====== drm_test_bridge_get_current_state (1 subtest) =======
[02:16:28] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[02:16:28] ======== [PASSED] drm_test_bridge_get_current_state ========
[02:16:28] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[02:16:28] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[02:16:28] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[02:16:28] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[02:16:28] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[02:16:28] ============== drm_bridge_alloc (2 subtests) ===============
[02:16:28] [PASSED] drm_test_drm_bridge_alloc_basic
[02:16:28] [PASSED] drm_test_drm_bridge_alloc_get_put
[02:16:28] ================ [PASSED] drm_bridge_alloc =================
[02:16:28] ============= drm_bridge_bus_fmt (5 subtests) ==============
[02:16:28] [PASSED] drm_test_bridge_rgb_yuv_rgb
[02:16:28] [PASSED] drm_test_bridge_must_convert_to_yuv444
[02:16:28] [PASSED] drm_test_bridge_hdmi_auto_rgb
[02:16:28] [PASSED] drm_test_bridge_auto_first
[02:16:28] [PASSED] drm_test_bridge_rgb_yuv_no_path
[02:16:28] =============== [PASSED] drm_bridge_bus_fmt ================
[02:16:28] ============= drm_cmdline_parser (40 subtests) =============
[02:16:28] [PASSED] drm_test_cmdline_force_d_only
[02:16:28] [PASSED] drm_test_cmdline_force_D_only_dvi
[02:16:28] [PASSED] drm_test_cmdline_force_D_only_hdmi
[02:16:28] [PASSED] drm_test_cmdline_force_D_only_not_digital
[02:16:28] [PASSED] drm_test_cmdline_force_e_only
[02:16:28] [PASSED] drm_test_cmdline_res
[02:16:28] [PASSED] drm_test_cmdline_res_vesa
[02:16:28] [PASSED] drm_test_cmdline_res_vesa_rblank
[02:16:28] [PASSED] drm_test_cmdline_res_rblank
[02:16:28] [PASSED] drm_test_cmdline_res_bpp
[02:16:28] [PASSED] drm_test_cmdline_res_refresh
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[02:16:28] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[02:16:28] [PASSED] drm_test_cmdline_res_margins_force_on
[02:16:28] [PASSED] drm_test_cmdline_res_vesa_margins
[02:16:28] [PASSED] drm_test_cmdline_name
[02:16:28] [PASSED] drm_test_cmdline_name_bpp
[02:16:28] [PASSED] drm_test_cmdline_name_option
[02:16:28] [PASSED] drm_test_cmdline_name_bpp_option
[02:16:28] [PASSED] drm_test_cmdline_rotate_0
[02:16:28] [PASSED] drm_test_cmdline_rotate_90
[02:16:28] [PASSED] drm_test_cmdline_rotate_180
[02:16:28] [PASSED] drm_test_cmdline_rotate_270
[02:16:28] [PASSED] drm_test_cmdline_hmirror
[02:16:28] [PASSED] drm_test_cmdline_vmirror
[02:16:28] [PASSED] drm_test_cmdline_margin_options
[02:16:28] [PASSED] drm_test_cmdline_multiple_options
[02:16:28] [PASSED] drm_test_cmdline_bpp_extra_and_option
[02:16:28] [PASSED] drm_test_cmdline_extra_and_option
[02:16:28] [PASSED] drm_test_cmdline_freestanding_options
[02:16:28] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[02:16:28] [PASSED] drm_test_cmdline_panel_orientation
[02:16:28] ================ drm_test_cmdline_invalid =================
[02:16:28] [PASSED] margin_only
[02:16:28] [PASSED] interlace_only
[02:16:28] [PASSED] res_missing_x
[02:16:28] [PASSED] res_missing_y
[02:16:28] [PASSED] res_bad_y
[02:16:28] [PASSED] res_missing_y_bpp
[02:16:28] [PASSED] res_bad_bpp
[02:16:28] [PASSED] res_bad_refresh
[02:16:28] [PASSED] res_bpp_refresh_force_on_off
[02:16:28] [PASSED] res_invalid_mode
[02:16:28] [PASSED] res_bpp_wrong_place_mode
[02:16:28] [PASSED] name_bpp_refresh
[02:16:28] [PASSED] name_refresh
[02:16:28] [PASSED] name_refresh_wrong_mode
[02:16:28] [PASSED] name_refresh_invalid_mode
[02:16:28] [PASSED] rotate_multiple
[02:16:28] [PASSED] rotate_invalid_val
[02:16:28] [PASSED] rotate_truncated
[02:16:28] [PASSED] invalid_option
[02:16:28] [PASSED] invalid_tv_option
[02:16:28] [PASSED] truncated_tv_option
[02:16:28] ============ [PASSED] drm_test_cmdline_invalid =============
[02:16:28] =============== drm_test_cmdline_tv_options ===============
[02:16:28] [PASSED] NTSC
[02:16:28] [PASSED] NTSC_443
[02:16:28] [PASSED] NTSC_J
[02:16:28] [PASSED] PAL
[02:16:28] [PASSED] PAL_M
[02:16:28] [PASSED] PAL_N
[02:16:28] [PASSED] SECAM
[02:16:28] [PASSED] MONO_525
[02:16:28] [PASSED] MONO_625
[02:16:28] =========== [PASSED] drm_test_cmdline_tv_options ===========
[02:16:28] =============== [PASSED] drm_cmdline_parser ================
[02:16:28] ========== drmm_connector_hdmi_init (20 subtests) ==========
[02:16:28] [PASSED] drm_test_connector_hdmi_init_valid
[02:16:28] [PASSED] drm_test_connector_hdmi_init_bpc_8
[02:16:28] [PASSED] drm_test_connector_hdmi_init_bpc_10
[02:16:28] [PASSED] drm_test_connector_hdmi_init_bpc_12
[02:16:28] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[02:16:28] [PASSED] drm_test_connector_hdmi_init_bpc_null
[02:16:28] [PASSED] drm_test_connector_hdmi_init_formats_empty
[02:16:28] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[02:16:28] === drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[02:16:28] [PASSED] supported_formats=0x9 yuv420_allowed=1
[02:16:28] [PASSED] supported_formats=0x9 yuv420_allowed=0
[02:16:28] [PASSED] supported_formats=0x5 yuv420_allowed=1
[02:16:28] [PASSED] supported_formats=0x5 yuv420_allowed=0
[02:16:28] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[02:16:28] [PASSED] drm_test_connector_hdmi_init_null_ddc
[02:16:28] [PASSED] drm_test_connector_hdmi_init_null_product
[02:16:28] [PASSED] drm_test_connector_hdmi_init_null_vendor
[02:16:28] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[02:16:28] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[02:16:28] [PASSED] drm_test_connector_hdmi_init_product_valid
[02:16:28] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[02:16:28] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[02:16:28] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[02:16:28] ========= drm_test_connector_hdmi_init_type_valid =========
[02:16:28] [PASSED] HDMI-A
[02:16:28] [PASSED] HDMI-B
[02:16:28] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[02:16:28] ======== drm_test_connector_hdmi_init_type_invalid ========
[02:16:28] [PASSED] Unknown
[02:16:28] [PASSED] VGA
[02:16:28] [PASSED] DVI-I
[02:16:28] [PASSED] DVI-D
[02:16:28] [PASSED] DVI-A
[02:16:28] [PASSED] Composite
[02:16:28] [PASSED] SVIDEO
[02:16:28] [PASSED] LVDS
[02:16:28] [PASSED] Component
[02:16:28] [PASSED] DIN
[02:16:28] [PASSED] DP
[02:16:28] [PASSED] TV
[02:16:28] [PASSED] eDP
[02:16:28] [PASSED] Virtual
[02:16:28] [PASSED] DSI
[02:16:28] [PASSED] DPI
[02:16:28] [PASSED] Writeback
[02:16:28] [PASSED] SPI
[02:16:28] [PASSED] USB
[02:16:28] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[02:16:28] ============ [PASSED] drmm_connector_hdmi_init =============
[02:16:28] ============= drmm_connector_init (3 subtests) =============
[02:16:28] [PASSED] drm_test_drmm_connector_init
[02:16:28] [PASSED] drm_test_drmm_connector_init_null_ddc
[02:16:28] ========= drm_test_drmm_connector_init_type_valid =========
[02:16:28] [PASSED] Unknown
[02:16:28] [PASSED] VGA
[02:16:28] [PASSED] DVI-I
[02:16:28] [PASSED] DVI-D
[02:16:28] [PASSED] DVI-A
[02:16:28] [PASSED] Composite
[02:16:28] [PASSED] SVIDEO
[02:16:28] [PASSED] LVDS
[02:16:28] [PASSED] Component
[02:16:28] [PASSED] DIN
[02:16:28] [PASSED] DP
[02:16:28] [PASSED] HDMI-A
[02:16:28] [PASSED] HDMI-B
[02:16:28] [PASSED] TV
[02:16:28] [PASSED] eDP
[02:16:28] [PASSED] Virtual
[02:16:28] [PASSED] DSI
[02:16:28] [PASSED] DPI
[02:16:28] [PASSED] Writeback
[02:16:28] [PASSED] SPI
[02:16:28] [PASSED] USB
[02:16:28] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[02:16:28] =============== [PASSED] drmm_connector_init ===============
[02:16:28] ========= drm_connector_dynamic_init (6 subtests) ==========
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_init
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_init_properties
[02:16:28] ===== drm_test_drm_connector_dynamic_init_type_valid ======
[02:16:28] [PASSED] Unknown
[02:16:28] [PASSED] VGA
[02:16:28] [PASSED] DVI-I
[02:16:28] [PASSED] DVI-D
[02:16:28] [PASSED] DVI-A
[02:16:28] [PASSED] Composite
[02:16:28] [PASSED] SVIDEO
[02:16:28] [PASSED] LVDS
[02:16:28] [PASSED] Component
[02:16:28] [PASSED] DIN
[02:16:28] [PASSED] DP
[02:16:28] [PASSED] HDMI-A
[02:16:28] [PASSED] HDMI-B
[02:16:28] [PASSED] TV
[02:16:28] [PASSED] eDP
[02:16:28] [PASSED] Virtual
[02:16:28] [PASSED] DSI
[02:16:28] [PASSED] DPI
[02:16:28] [PASSED] Writeback
[02:16:28] [PASSED] SPI
[02:16:28] [PASSED] USB
[02:16:28] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[02:16:28] ======== drm_test_drm_connector_dynamic_init_name =========
[02:16:28] [PASSED] Unknown
[02:16:28] [PASSED] VGA
[02:16:28] [PASSED] DVI-I
[02:16:28] [PASSED] DVI-D
[02:16:28] [PASSED] DVI-A
[02:16:28] [PASSED] Composite
[02:16:28] [PASSED] SVIDEO
[02:16:28] [PASSED] LVDS
[02:16:28] [PASSED] Component
[02:16:28] [PASSED] DIN
[02:16:28] [PASSED] DP
[02:16:28] [PASSED] HDMI-A
[02:16:28] [PASSED] HDMI-B
[02:16:28] [PASSED] TV
[02:16:28] [PASSED] eDP
[02:16:28] [PASSED] Virtual
[02:16:28] [PASSED] DSI
[02:16:28] [PASSED] DPI
[02:16:28] [PASSED] Writeback
[02:16:28] [PASSED] SPI
[02:16:28] [PASSED] USB
[02:16:28] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[02:16:28] =========== [PASSED] drm_connector_dynamic_init ============
[02:16:28] ==== drm_connector_dynamic_register_early (4 subtests) =====
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[02:16:28] ====== [PASSED] drm_connector_dynamic_register_early =======
[02:16:28] ======= drm_connector_dynamic_register (7 subtests) ========
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[02:16:28] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[02:16:28] ========= [PASSED] drm_connector_dynamic_register ==========
[02:16:28] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[02:16:28] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[02:16:28] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[02:16:28] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[02:16:28] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[02:16:28] ========== drm_test_get_tv_mode_from_name_valid ===========
[02:16:28] [PASSED] NTSC
[02:16:28] [PASSED] NTSC-443
[02:16:28] [PASSED] NTSC-J
[02:16:28] [PASSED] PAL
[02:16:28] [PASSED] PAL-M
[02:16:28] [PASSED] PAL-N
[02:16:28] [PASSED] SECAM
[02:16:28] [PASSED] Mono
[02:16:28] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[02:16:28] [PASSED] drm_test_get_tv_mode_from_name_truncated
[02:16:28] ============ [PASSED] drm_get_tv_mode_from_name ============
[02:16:28] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[02:16:28] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[02:16:28] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[02:16:28] [PASSED] VIC 96
[02:16:28] [PASSED] VIC 97
[02:16:28] [PASSED] VIC 101
[02:16:28] [PASSED] VIC 102
[02:16:28] [PASSED] VIC 106
[02:16:28] [PASSED] VIC 107
[02:16:28] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[02:16:28] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[02:16:28] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[02:16:28] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[02:16:28] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[02:16:28] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[02:16:28] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[02:16:28] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[02:16:28] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[02:16:28] [PASSED] Automatic
[02:16:28] [PASSED] Full
[02:16:28] [PASSED] Limited 16:235
[02:16:28] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[02:16:28] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[02:16:28] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[02:16:28] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[02:16:28] === drm_test_drm_hdmi_connector_get_output_format_name ====
[02:16:28] [PASSED] RGB
[02:16:28] [PASSED] YUV 4:2:0
[02:16:28] [PASSED] YUV 4:2:2
[02:16:28] [PASSED] YUV 4:4:4
[02:16:28] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[02:16:28] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[02:16:28] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[02:16:28] ============= drm_damage_helper (21 subtests) ==============
[02:16:28] [PASSED] drm_test_damage_iter_no_damage
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_src_moved
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_not_visible
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[02:16:28] [PASSED] drm_test_damage_iter_no_damage_no_fb
[02:16:28] [PASSED] drm_test_damage_iter_simple_damage
[02:16:28] [PASSED] drm_test_damage_iter_single_damage
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_outside_src
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_src_moved
[02:16:28] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[02:16:28] [PASSED] drm_test_damage_iter_damage
[02:16:28] [PASSED] drm_test_damage_iter_damage_one_intersect
[02:16:28] [PASSED] drm_test_damage_iter_damage_one_outside
[02:16:28] [PASSED] drm_test_damage_iter_damage_src_moved
[02:16:28] [PASSED] drm_test_damage_iter_damage_not_visible
[02:16:28] ================ [PASSED] drm_damage_helper ================
[02:16:28] ============== drm_dp_mst_helper (3 subtests) ==============
[02:16:28] ============== drm_test_dp_mst_calc_pbn_mode ==============
[02:16:28] [PASSED] Clock 154000 BPP 30 DSC disabled
[02:16:28] [PASSED] Clock 234000 BPP 30 DSC disabled
[02:16:28] [PASSED] Clock 297000 BPP 24 DSC disabled
[02:16:28] [PASSED] Clock 332880 BPP 24 DSC enabled
[02:16:28] [PASSED] Clock 324540 BPP 24 DSC enabled
[02:16:28] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[02:16:28] ============== drm_test_dp_mst_calc_pbn_div ===============
[02:16:28] [PASSED] Link rate 2000000 lane count 4
[02:16:28] [PASSED] Link rate 2000000 lane count 2
[02:16:28] [PASSED] Link rate 2000000 lane count 1
[02:16:28] [PASSED] Link rate 1350000 lane count 4
[02:16:28] [PASSED] Link rate 1350000 lane count 2
[02:16:28] [PASSED] Link rate 1350000 lane count 1
[02:16:28] [PASSED] Link rate 1000000 lane count 4
[02:16:28] [PASSED] Link rate 1000000 lane count 2
[02:16:28] [PASSED] Link rate 1000000 lane count 1
[02:16:28] [PASSED] Link rate 810000 lane count 4
[02:16:28] [PASSED] Link rate 810000 lane count 2
[02:16:28] [PASSED] Link rate 810000 lane count 1
[02:16:28] [PASSED] Link rate 540000 lane count 4
[02:16:28] [PASSED] Link rate 540000 lane count 2
[02:16:28] [PASSED] Link rate 540000 lane count 1
[02:16:28] [PASSED] Link rate 270000 lane count 4
[02:16:28] [PASSED] Link rate 270000 lane count 2
[02:16:28] [PASSED] Link rate 270000 lane count 1
[02:16:28] [PASSED] Link rate 162000 lane count 4
[02:16:28] [PASSED] Link rate 162000 lane count 2
[02:16:28] [PASSED] Link rate 162000 lane count 1
[02:16:28] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[02:16:28] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[02:16:28] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[02:16:28] [PASSED] DP_POWER_UP_PHY with port number
[02:16:28] [PASSED] DP_POWER_DOWN_PHY with port number
[02:16:28] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[02:16:28] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[02:16:28] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[02:16:28] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[02:16:28] [PASSED] DP_QUERY_PAYLOAD with port number
[02:16:28] [PASSED] DP_QUERY_PAYLOAD with VCPI
[02:16:28] [PASSED] DP_REMOTE_DPCD_READ with port number
[02:16:28] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[02:16:28] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[02:16:28] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[02:16:28] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[02:16:28] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[02:16:28] [PASSED] DP_REMOTE_I2C_READ with port number
[02:16:28] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[02:16:28] [PASSED] DP_REMOTE_I2C_READ with transactions array
[02:16:28] [PASSED] DP_REMOTE_I2C_WRITE with port number
[02:16:28] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[02:16:28] [PASSED] DP_REMOTE_I2C_WRITE with data array
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[02:16:28] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[02:16:28] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[02:16:28] ================ [PASSED] drm_dp_mst_helper ================
[02:16:28] ================== drm_exec (7 subtests) ===================
[02:16:28] [PASSED] sanitycheck
[02:16:28] [PASSED] test_lock
[02:16:28] [PASSED] test_lock_unlock
[02:16:28] [PASSED] test_duplicates
[02:16:28] [PASSED] test_prepare
[02:16:28] [PASSED] test_prepare_array
[02:16:28] [PASSED] test_multiple_loops
[02:16:28] ==================== [PASSED] drm_exec =====================
[02:16:28] =========== drm_format_helper_test (17 subtests) ===========
[02:16:28] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[02:16:28] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[02:16:28] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[02:16:28] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[02:16:28] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[02:16:28] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[02:16:28] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[02:16:28] ============= drm_test_fb_xrgb8888_to_bgr888 ==============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[02:16:28] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[02:16:28] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[02:16:28] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[02:16:28] ============== drm_test_fb_xrgb8888_to_mono ===============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[02:16:28] ==================== drm_test_fb_swab =====================
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ================ [PASSED] drm_test_fb_swab =================
[02:16:28] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[02:16:28] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[02:16:28] [PASSED] single_pixel_source_buffer
[02:16:28] [PASSED] single_pixel_clip_rectangle
[02:16:28] [PASSED] well_known_colors
[02:16:28] [PASSED] destination_pitch
[02:16:28] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[02:16:28] ================= drm_test_fb_clip_offset =================
[02:16:28] [PASSED] pass through
[02:16:28] [PASSED] horizontal offset
[02:16:28] [PASSED] vertical offset
[02:16:28] [PASSED] horizontal and vertical offset
[02:16:28] [PASSED] horizontal offset (custom pitch)
[02:16:28] [PASSED] vertical offset (custom pitch)
[02:16:28] [PASSED] horizontal and vertical offset (custom pitch)
[02:16:28] ============= [PASSED] drm_test_fb_clip_offset =============
[02:16:28] =================== drm_test_fb_memcpy ====================
[02:16:28] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[02:16:28] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[02:16:28] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[02:16:28] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[02:16:28] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[02:16:28] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[02:16:28] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[02:16:28] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[02:16:28] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[02:16:28] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[02:16:28] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[02:16:28] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[02:16:28] =============== [PASSED] drm_test_fb_memcpy ================
[02:16:28] ============= [PASSED] drm_format_helper_test ==============
[02:16:28] ================= drm_format (18 subtests) =================
[02:16:28] [PASSED] drm_test_format_block_width_invalid
[02:16:28] [PASSED] drm_test_format_block_width_one_plane
[02:16:28] [PASSED] drm_test_format_block_width_two_plane
[02:16:28] [PASSED] drm_test_format_block_width_three_plane
[02:16:28] [PASSED] drm_test_format_block_width_tiled
[02:16:28] [PASSED] drm_test_format_block_height_invalid
[02:16:28] [PASSED] drm_test_format_block_height_one_plane
[02:16:28] [PASSED] drm_test_format_block_height_two_plane
[02:16:28] [PASSED] drm_test_format_block_height_three_plane
[02:16:28] [PASSED] drm_test_format_block_height_tiled
[02:16:28] [PASSED] drm_test_format_min_pitch_invalid
[02:16:28] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[02:16:28] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[02:16:28] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[02:16:28] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[02:16:28] [PASSED] drm_test_format_min_pitch_two_plane
[02:16:28] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[02:16:28] [PASSED] drm_test_format_min_pitch_tiled
[02:16:28] =================== [PASSED] drm_format ====================
[02:16:28] ============== drm_framebuffer (10 subtests) ===============
[02:16:28] ========== drm_test_framebuffer_check_src_coords ==========
[02:16:28] [PASSED] Success: source fits into fb
[02:16:28] [PASSED] Fail: overflowing fb with x-axis coordinate
[02:16:28] [PASSED] Fail: overflowing fb with y-axis coordinate
[02:16:28] [PASSED] Fail: overflowing fb with source width
[02:16:28] [PASSED] Fail: overflowing fb with source height
[02:16:28] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[02:16:28] [PASSED] drm_test_framebuffer_cleanup
[02:16:28] =============== drm_test_framebuffer_create ===============
[02:16:28] [PASSED] ABGR8888 normal sizes
[02:16:28] [PASSED] ABGR8888 max sizes
[02:16:28] [PASSED] ABGR8888 pitch greater than min required
[02:16:28] [PASSED] ABGR8888 pitch less than min required
[02:16:28] [PASSED] ABGR8888 Invalid width
[02:16:28] [PASSED] ABGR8888 Invalid buffer handle
[02:16:28] [PASSED] No pixel format
[02:16:28] [PASSED] ABGR8888 Width 0
[02:16:28] [PASSED] ABGR8888 Height 0
[02:16:28] [PASSED] ABGR8888 Out of bound height * pitch combination
[02:16:28] [PASSED] ABGR8888 Large buffer offset
[02:16:28] [PASSED] ABGR8888 Buffer offset for inexistent plane
[02:16:28] [PASSED] ABGR8888 Invalid flag
[02:16:28] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[02:16:28] [PASSED] ABGR8888 Valid buffer modifier
[02:16:28] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[02:16:28] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] NV12 Normal sizes
[02:16:28] [PASSED] NV12 Max sizes
[02:16:28] [PASSED] NV12 Invalid pitch
[02:16:28] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[02:16:28] [PASSED] NV12 different modifier per-plane
[02:16:28] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[02:16:28] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] NV12 Modifier for inexistent plane
[02:16:28] [PASSED] NV12 Handle for inexistent plane
[02:16:28] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[02:16:28] [PASSED] YVU420 Normal sizes
[02:16:28] [PASSED] YVU420 Max sizes
[02:16:28] [PASSED] YVU420 Invalid pitch
[02:16:28] [PASSED] YVU420 Different pitches
[02:16:28] [PASSED] YVU420 Different buffer offsets/pitches
[02:16:28] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[02:16:28] [PASSED] YVU420 Valid modifier
[02:16:28] [PASSED] YVU420 Different modifiers per plane
[02:16:28] [PASSED] YVU420 Modifier for inexistent plane
[02:16:28] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[02:16:28] [PASSED] X0L2 Normal sizes
[02:16:28] [PASSED] X0L2 Max sizes
[02:16:28] [PASSED] X0L2 Invalid pitch
[02:16:28] [PASSED] X0L2 Pitch greater than minimum required
[02:16:28] [PASSED] X0L2 Handle for inexistent plane
[02:16:28] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[02:16:28] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[02:16:28] [PASSED] X0L2 Valid modifier
[02:16:28] [PASSED] X0L2 Modifier for inexistent plane
[02:16:28] =========== [PASSED] drm_test_framebuffer_create ===========
[02:16:28] [PASSED] drm_test_framebuffer_free
[02:16:28] [PASSED] drm_test_framebuffer_init
[02:16:28] [PASSED] drm_test_framebuffer_init_bad_format
[02:16:28] [PASSED] drm_test_framebuffer_init_dev_mismatch
[02:16:28] [PASSED] drm_test_framebuffer_lookup
[02:16:28] [PASSED] drm_test_framebuffer_lookup_inexistent
[02:16:28] [PASSED] drm_test_framebuffer_modifiers_not_supported
[02:16:28] ================= [PASSED] drm_framebuffer =================
[02:16:28] ================ drm_gem_shmem (8 subtests) ================
[02:16:28] [PASSED] drm_gem_shmem_test_obj_create
[02:16:28] [PASSED] drm_gem_shmem_test_obj_create_private
[02:16:28] [PASSED] drm_gem_shmem_test_pin_pages
[02:16:28] [PASSED] drm_gem_shmem_test_vmap
[02:16:28] [PASSED] drm_gem_shmem_test_get_sg_table
[02:16:28] [PASSED] drm_gem_shmem_test_get_pages_sgt
[02:16:28] [PASSED] drm_gem_shmem_test_madvise
[02:16:28] [PASSED] drm_gem_shmem_test_purge
[02:16:28] ================== [PASSED] drm_gem_shmem ==================
[02:16:28] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[02:16:28] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 =======
[02:16:28] [PASSED] Automatic
[02:16:28] [PASSED] Full
[02:16:28] [PASSED] Limited 16:235
[02:16:28] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[02:16:28] [PASSED] drm_test_check_disable_connector
[02:16:28] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[02:16:28] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[02:16:28] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[02:16:28] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[02:16:28] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[02:16:28] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[02:16:28] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[02:16:28] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[02:16:28] [PASSED] drm_test_check_output_bpc_dvi
[02:16:28] [PASSED] drm_test_check_output_bpc_format_vic_1
[02:16:28] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[02:16:28] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[02:16:28] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[02:16:28] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[02:16:28] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[02:16:28] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[02:16:28] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[02:16:28] ============ drm_test_check_hdmi_color_format =============
[02:16:28] [PASSED] AUTO -> RGB
[02:16:28] [PASSED] YCBCR422 -> YUV422
[02:16:28] [PASSED] YCBCR420 -> YUV420
[02:16:28] [PASSED] YCBCR444 -> YUV444
[02:16:28] [PASSED] RGB -> RGB
[02:16:28] ======== [PASSED] drm_test_check_hdmi_color_format =========
[02:16:28] ======== drm_test_check_hdmi_color_format_420_only ========
[02:16:28] [PASSED] RGB should fail
[02:16:28] [PASSED] YUV444 should fail
[02:16:28] [PASSED] YUV422 should fail
[02:16:28] [PASSED] YUV420 should work
[02:16:28] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[02:16:28] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[02:16:28] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[02:16:28] [PASSED] drm_test_check_broadcast_rgb_value
[02:16:28] [PASSED] drm_test_check_bpc_8_value
[02:16:28] [PASSED] drm_test_check_bpc_10_value
[02:16:28] [PASSED] drm_test_check_bpc_12_value
[02:16:28] [PASSED] drm_test_check_format_value
[02:16:28] [PASSED] drm_test_check_tmds_char_value
[02:16:28] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[02:16:28] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[02:16:28] [PASSED] drm_test_check_mode_valid
[02:16:28] [PASSED] drm_test_check_mode_valid_reject
[02:16:28] [PASSED] drm_test_check_mode_valid_reject_rate
[02:16:28] [PASSED] drm_test_check_mode_valid_reject_max_clock
[02:16:28] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[02:16:28] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[02:16:28] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[02:16:28] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[02:16:28] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[02:16:28] [PASSED] drm_test_check_infoframes
[02:16:28] [PASSED] drm_test_check_reject_avi_infoframe
[02:16:28] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[02:16:28] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[02:16:28] [PASSED] drm_test_check_reject_audio_infoframe
[02:16:28] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[02:16:28] ================= drm_managed (2 subtests) =================
[02:16:28] [PASSED] drm_test_managed_release_action
[02:16:28] [PASSED] drm_test_managed_run_action
[02:16:28] =================== [PASSED] drm_managed ===================
[02:16:28] =================== drm_mm (6 subtests) ====================
[02:16:28] [PASSED] drm_test_mm_init
[02:16:28] [PASSED] drm_test_mm_debug
[02:16:28] [PASSED] drm_test_mm_align32
[02:16:28] [PASSED] drm_test_mm_align64
[02:16:28] [PASSED] drm_test_mm_lowest
[02:16:28] [PASSED] drm_test_mm_highest
[02:16:28] ===================== [PASSED] drm_mm ======================
[02:16:28] ============= drm_modes_analog_tv (5 subtests) =============
[02:16:28] [PASSED] drm_test_modes_analog_tv_mono_576i
[02:16:28] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[02:16:28] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[02:16:28] [PASSED] drm_test_modes_analog_tv_pal_576i
[02:16:28] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[02:16:28] =============== [PASSED] drm_modes_analog_tv ===============
[02:16:28] ============== drm_panic_helper (3 subtests) ===============
[02:16:28] ============= drm_test_panic_screen_user_map ==============
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] ========= [PASSED] drm_test_panic_screen_user_map ==========
[02:16:28] ============= drm_test_panic_screen_user_page =============
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] ========= [PASSED] drm_test_panic_screen_user_page =========
[02:16:28] ========== drm_test_panic_screen_user_set_pixel ===========
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[02:16:28] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[02:16:28] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[02:16:28] ================ [PASSED] drm_panic_helper =================
[02:16:28] ============== drm_plane_helper (2 subtests) ===============
[02:16:28] =============== drm_test_check_plane_state ================
[02:16:28] [PASSED] clipping_simple
[02:16:28] [PASSED] clipping_rotate_reflect
[02:16:28] [PASSED] positioning_simple
[02:16:28] [PASSED] upscaling
[02:16:28] [PASSED] downscaling
[02:16:28] [PASSED] rounding1
[02:16:28] [PASSED] rounding2
[02:16:28] [PASSED] rounding3
[02:16:28] [PASSED] rounding4
[02:16:28] =========== [PASSED] drm_test_check_plane_state ============
[02:16:28] =========== drm_test_check_invalid_plane_state ============
[02:16:28] [PASSED] positioning_invalid
[02:16:28] [PASSED] upscaling_invalid
[02:16:28] [PASSED] downscaling_invalid
[02:16:28] ======= [PASSED] drm_test_check_invalid_plane_state ========
[02:16:28] ================ [PASSED] drm_plane_helper =================
[02:16:28] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[02:16:28] ====== drm_test_connector_helper_tv_get_modes_check =======
[02:16:28] [PASSED] None
[02:16:28] [PASSED] PAL
[02:16:28] [PASSED] NTSC
[02:16:28] [PASSED] Both, NTSC Default
[02:16:28] [PASSED] Both, PAL Default
[02:16:28] [PASSED] Both, NTSC Default, with PAL on command-line
[02:16:28] [PASSED] Both, PAL Default, with NTSC on command-line
[02:16:28] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[02:16:28] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[02:16:28] ================== drm_rect (9 subtests) ===================
[02:16:28] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[02:16:28] [PASSED] drm_test_rect_clip_scaled_not_clipped
[02:16:28] [PASSED] drm_test_rect_clip_scaled_clipped
[02:16:28] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[02:16:28] ================= drm_test_rect_intersect =================
[02:16:28] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[02:16:28] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[02:16:28] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[02:16:28] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[02:16:28] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[02:16:28] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[02:16:28] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[02:16:28] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[02:16:28] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[02:16:28] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[02:16:28] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[02:16:28] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[02:16:28] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[02:16:28] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[02:16:28] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[02:16:28] ============= [PASSED] drm_test_rect_intersect =============
[02:16:28] ================ drm_test_rect_calc_hscale ================
[02:16:28] [PASSED] normal use
[02:16:28] [PASSED] out of max range
[02:16:28] [PASSED] out of min range
[02:16:28] [PASSED] zero dst
[02:16:28] [PASSED] negative src
[02:16:28] [PASSED] negative dst
[02:16:28] ============ [PASSED] drm_test_rect_calc_hscale ============
[02:16:28] ================ drm_test_rect_calc_vscale ================
[02:16:28] [PASSED] normal use
[02:16:28] [PASSED] out of max range
[02:16:28] [PASSED] out of min range
[02:16:28] [PASSED] zero dst
[02:16:28] [PASSED] negative src
[02:16:28] [PASSED] negative dst
[02:16:28] ============ [PASSED] drm_test_rect_calc_vscale ============
[02:16:28] ================== drm_test_rect_rotate ===================
[02:16:28] [PASSED] reflect-x
[02:16:28] [PASSED] reflect-y
[02:16:28] [PASSED] rotate-0
[02:16:28] [PASSED] rotate-90
[02:16:28] [PASSED] rotate-180
[02:16:28] [PASSED] rotate-270
[02:16:28] ============== [PASSED] drm_test_rect_rotate ===============
[02:16:28] ================ drm_test_rect_rotate_inv =================
[02:16:28] [PASSED] reflect-x
[02:16:28] [PASSED] reflect-y
[02:16:28] [PASSED] rotate-0
[02:16:28] [PASSED] rotate-90
[02:16:28] [PASSED] rotate-180
[02:16:28] [PASSED] rotate-270
[02:16:28] ============ [PASSED] drm_test_rect_rotate_inv =============
[02:16:28] ==================== [PASSED] drm_rect =====================
[02:16:28] ============ drm_sysfb_modeset_test (1 subtest) ============
[02:16:28] ============ drm_test_sysfb_build_fourcc_list =============
[02:16:28] [PASSED] no native formats
[02:16:28] [PASSED] XRGB8888 as native format
[02:16:28] [PASSED] remove duplicates
[02:16:28] [PASSED] convert alpha formats
[02:16:28] [PASSED] random formats
[02:16:28] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[02:16:28] ============= [PASSED] drm_sysfb_modeset_test ==============
[02:16:28] ================== drm_fixp (2 subtests) ===================
[02:16:28] [PASSED] drm_test_int2fixp
[02:16:28] [PASSED] drm_test_sm2fixp
[02:16:28] ==================== [PASSED] drm_fixp =====================
[02:16:28] ============================================================
[02:16:28] Testing complete. Ran 667 tests: passed: 667
[02:16:28] Elapsed time: 27.304s total, 1.864s configuring, 25.024s building, 0.409s 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
[02:16:28] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[02:16:30] 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
[02:16:40] Starting KUnit Kernel (1/1)...
[02:16:40] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[02:16:40] ================= ttm_device (5 subtests) ==================
[02:16:40] [PASSED] ttm_device_init_basic
[02:16:40] [PASSED] ttm_device_init_multiple
[02:16:40] [PASSED] ttm_device_fini_basic
[02:16:40] [PASSED] ttm_device_init_no_vma_man
[02:16:40] ================== ttm_device_init_pools ==================
[02:16:40] [PASSED] No DMA allocations, no DMA32 required
[02:16:40] [PASSED] DMA allocations, DMA32 required
[02:16:40] [PASSED] No DMA allocations, DMA32 required
[02:16:40] [PASSED] DMA allocations, no DMA32 required
[02:16:40] ============== [PASSED] ttm_device_init_pools ==============
[02:16:40] =================== [PASSED] ttm_device ====================
[02:16:40] ================== ttm_pool (8 subtests) ===================
[02:16:40] ================== ttm_pool_alloc_basic ===================
[02:16:40] [PASSED] One page
[02:16:40] [PASSED] More than one page
[02:16:40] [PASSED] Above the allocation limit
[02:16:40] [PASSED] One page, with coherent DMA mappings enabled
[02:16:40] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[02:16:40] ============== [PASSED] ttm_pool_alloc_basic ===============
[02:16:40] ============== ttm_pool_alloc_basic_dma_addr ==============
[02:16:40] [PASSED] One page
[02:16:40] [PASSED] More than one page
[02:16:40] [PASSED] Above the allocation limit
[02:16:40] [PASSED] One page, with coherent DMA mappings enabled
[02:16:40] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[02:16:40] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[02:16:40] [PASSED] ttm_pool_alloc_order_caching_match
[02:16:40] [PASSED] ttm_pool_alloc_caching_mismatch
[02:16:40] [PASSED] ttm_pool_alloc_order_mismatch
[02:16:40] [PASSED] ttm_pool_free_dma_alloc
[02:16:40] [PASSED] ttm_pool_free_no_dma_alloc
[02:16:40] [PASSED] ttm_pool_fini_basic
[02:16:40] ==================== [PASSED] ttm_pool =====================
[02:16:40] ================ ttm_resource (8 subtests) =================
[02:16:40] ================= ttm_resource_init_basic =================
[02:16:40] [PASSED] Init resource in TTM_PL_SYSTEM
[02:16:40] [PASSED] Init resource in TTM_PL_VRAM
[02:16:40] [PASSED] Init resource in a private placement
[02:16:40] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[02:16:40] ============= [PASSED] ttm_resource_init_basic =============
[02:16:40] [PASSED] ttm_resource_init_pinned
[02:16:40] [PASSED] ttm_resource_fini_basic
[02:16:40] [PASSED] ttm_resource_manager_init_basic
[02:16:40] [PASSED] ttm_resource_manager_usage_basic
[02:16:40] [PASSED] ttm_resource_manager_set_used_basic
[02:16:40] [PASSED] ttm_sys_man_alloc_basic
[02:16:40] [PASSED] ttm_sys_man_free_basic
[02:16:40] ================== [PASSED] ttm_resource ===================
[02:16:40] =================== ttm_tt (15 subtests) ===================
[02:16:40] ==================== ttm_tt_init_basic ====================
[02:16:40] [PASSED] Page-aligned size
[02:16:40] [PASSED] Extra pages requested
[02:16:40] ================ [PASSED] ttm_tt_init_basic ================
[02:16:40] [PASSED] ttm_tt_init_misaligned
[02:16:40] [PASSED] ttm_tt_fini_basic
[02:16:40] [PASSED] ttm_tt_fini_sg
[02:16:40] [PASSED] ttm_tt_fini_shmem
[02:16:40] [PASSED] ttm_tt_create_basic
[02:16:40] [PASSED] ttm_tt_create_invalid_bo_type
[02:16:40] [PASSED] ttm_tt_create_ttm_exists
[02:16:40] [PASSED] ttm_tt_create_failed
[02:16:40] [PASSED] ttm_tt_destroy_basic
[02:16:40] [PASSED] ttm_tt_populate_null_ttm
[02:16:40] [PASSED] ttm_tt_populate_populated_ttm
[02:16:40] [PASSED] ttm_tt_unpopulate_basic
[02:16:40] [PASSED] ttm_tt_unpopulate_empty_ttm
[02:16:40] [PASSED] ttm_tt_swapin_basic
[02:16:40] ===================== [PASSED] ttm_tt ======================
[02:16:40] =================== ttm_bo (14 subtests) ===================
[02:16:40] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[02:16:40] [PASSED] Cannot be interrupted and sleeps
[02:16:40] [PASSED] Cannot be interrupted, locks straight away
[02:16:40] [PASSED] Can be interrupted, sleeps
[02:16:40] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[02:16:40] [PASSED] ttm_bo_reserve_locked_no_sleep
[02:16:40] [PASSED] ttm_bo_reserve_no_wait_ticket
[02:16:40] [PASSED] ttm_bo_reserve_double_resv
[02:16:40] [PASSED] ttm_bo_reserve_interrupted
[02:16:40] [PASSED] ttm_bo_reserve_deadlock
[02:16:40] [PASSED] ttm_bo_unreserve_basic
[02:16:40] [PASSED] ttm_bo_unreserve_pinned
[02:16:40] [PASSED] ttm_bo_unreserve_bulk
[02:16:40] [PASSED] ttm_bo_fini_basic
[02:16:40] [PASSED] ttm_bo_fini_shared_resv
[02:16:40] [PASSED] ttm_bo_pin_basic
[02:16:40] [PASSED] ttm_bo_pin_unpin_resource
[02:16:40] [PASSED] ttm_bo_multiple_pin_one_unpin
[02:16:40] ===================== [PASSED] ttm_bo ======================
[02:16:40] ============== ttm_bo_validate (22 subtests) ===============
[02:16:40] ============== ttm_bo_init_reserved_sys_man ===============
[02:16:40] [PASSED] Buffer object for userspace
[02:16:40] [PASSED] Kernel buffer object
[02:16:40] [PASSED] Shared buffer object
[02:16:40] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[02:16:40] ============== ttm_bo_init_reserved_mock_man ==============
[02:16:40] [PASSED] Buffer object for userspace
[02:16:40] [PASSED] Kernel buffer object
[02:16:40] [PASSED] Shared buffer object
[02:16:40] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[02:16:40] [PASSED] ttm_bo_init_reserved_resv
[02:16:40] ================== ttm_bo_validate_basic ==================
[02:16:40] [PASSED] Buffer object for userspace
[02:16:40] [PASSED] Kernel buffer object
[02:16:40] [PASSED] Shared buffer object
[02:16:40] ============== [PASSED] ttm_bo_validate_basic ==============
[02:16:40] [PASSED] ttm_bo_validate_invalid_placement
[02:16:40] ============= ttm_bo_validate_same_placement ==============
[02:16:40] [PASSED] System manager
[02:16:40] [PASSED] VRAM manager
[02:16:40] ========= [PASSED] ttm_bo_validate_same_placement ==========
[02:16:40] [PASSED] ttm_bo_validate_failed_alloc
[02:16:40] [PASSED] ttm_bo_validate_pinned
[02:16:40] [PASSED] ttm_bo_validate_busy_placement
[02:16:40] ================ ttm_bo_validate_multihop =================
[02:16:40] [PASSED] Buffer object for userspace
[02:16:40] [PASSED] Kernel buffer object
[02:16:40] [PASSED] Shared buffer object
[02:16:40] ============ [PASSED] ttm_bo_validate_multihop =============
[02:16:40] ========== ttm_bo_validate_no_placement_signaled ==========
[02:16:40] [PASSED] Buffer object in system domain, no page vector
[02:16:40] [PASSED] Buffer object in system domain with an existing page vector
[02:16:40] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[02:16:40] ======== ttm_bo_validate_no_placement_not_signaled ========
[02:16:40] [PASSED] Buffer object for userspace
[02:16:40] [PASSED] Kernel buffer object
[02:16:40] [PASSED] Shared buffer object
[02:16:40] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[02:16:40] [PASSED] ttm_bo_validate_move_fence_signaled
[02:16:40] ========= ttm_bo_validate_move_fence_not_signaled =========
[02:16:40] [PASSED] Waits for GPU
[02:16:40] [PASSED] Tries to lock straight away
[02:16:40] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[02:16:40] [PASSED] ttm_bo_validate_swapout
[02:16:40] [PASSED] ttm_bo_validate_happy_evict
[02:16:40] [PASSED] ttm_bo_validate_all_pinned_evict
[02:16:40] [PASSED] ttm_bo_validate_allowed_only_evict
[02:16:40] [PASSED] ttm_bo_validate_deleted_evict
[02:16:40] [PASSED] ttm_bo_validate_busy_domain_evict
[02:16:40] [PASSED] ttm_bo_validate_evict_gutting
[02:16:40] [PASSED] ttm_bo_validate_recrusive_evict
[02:16:40] ================= [PASSED] ttm_bo_validate =================
[02:16:40] ============================================================
[02:16:40] Testing complete. Ran 102 tests: passed: 102
[02:16:40] Elapsed time: 12.182s total, 1.857s configuring, 10.110s 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
[02:16:40] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[02:16:42] 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
[02:16:51] Starting KUnit Kernel (1/1)...
[02:16:51] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[02:16:51] =============== dma-buf-fence (12 subtests) ================
[02:16:51] [PASSED] test_sanitycheck
[02:16:51] [PASSED] test_signaling
[02:16:51] [PASSED] test_add_callback
[02:16:51] [PASSED] test_late_add_callback
[02:16:51] [PASSED] test_rm_callback
[02:16:51] [PASSED] test_late_rm_callback
[02:16:51] [PASSED] test_status
[02:16:51] [PASSED] test_error
[02:16:51] [PASSED] test_wait
[02:16:51] [PASSED] test_wait_timeout
[02:16:51] [PASSED] test_stub
[02:16:51] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[02:16:51] ================== [PASSED] dma-buf-fence ==================
[02:16:51] ============ dma-buf-fence-chain (11 subtests) =============
[02:16:51] [PASSED] test_sanitycheck
[02:16:51] [PASSED] test_find_seqno
[02:16:51] [PASSED] test_find_signaled
[02:16:51] [PASSED] test_find_out_of_order
[02:16:56] [PASSED] test_find_gap
[02:16:56] [PASSED] test_find_race
[02:16:56] [PASSED] test_signal_forward
[02:16:56] [PASSED] test_signal_backward
[02:16:56] [PASSED] test_wait_forward
[02:16:56] [PASSED] test_wait_backward
[02:16:56] [PASSED] test_wait_random
[02:16:56] =============== [PASSED] dma-buf-fence-chain ===============
[02:16:56] ============ dma-buf-fence-unwrap (10 subtests) ============
[02:16:56] [PASSED] test_sanitycheck
[02:16:56] [PASSED] test_unwrap_array
[02:16:56] [PASSED] test_unwrap_chain
[02:16:56] [PASSED] test_unwrap_chain_array
[02:16:56] [PASSED] test_unwrap_merge
[02:16:56] [PASSED] test_unwrap_merge_duplicate
[02:16:56] [PASSED] test_unwrap_merge_seqno
[02:16:56] [PASSED] test_unwrap_merge_order
[02:16:56] [PASSED] test_unwrap_merge_complex
[02:16:56] [PASSED] test_unwrap_merge_complex_seqno
[02:16:56] ============== [PASSED] dma-buf-fence-unwrap ===============
[02:16:56] ================ dma-buf-resv (5 subtests) =================
[02:16:56] [PASSED] test_sanitycheck
[02:16:56] ===================== test_signaling ======================
[02:16:56] [PASSED] kernel
[02:16:56] [PASSED] write
[02:16:56] [PASSED] read
[02:16:56] [PASSED] bookkeep
[02:16:56] ================= [PASSED] test_signaling ==================
[02:16:56] ====================== test_for_each ======================
[02:16:56] [PASSED] kernel
[02:16:56] [PASSED] write
[02:16:56] [PASSED] read
[02:16:56] [PASSED] bookkeep
[02:16:56] ================== [PASSED] test_for_each ==================
[02:16:56] ================= test_for_each_unlocked ==================
[02:16:56] [PASSED] kernel
[02:16:56] [PASSED] write
[02:16:56] [PASSED] read
[02:16:56] [PASSED] bookkeep
[02:16:56] ============= [PASSED] test_for_each_unlocked ==============
[02:16:56] ===================== test_get_fences =====================
[02:16:56] [PASSED] kernel
[02:16:56] [PASSED] write
[02:16:56] [PASSED] read
[02:16:56] [PASSED] bookkeep
[02:16:56] ================= [PASSED] test_get_fences =================
[02:16:56] ================== [PASSED] dma-buf-resv ===================
[02:16:56] ============================================================
[02:16:56] Testing complete. Ran 50 tests: passed: 49, skipped: 1
[02:16:56] Elapsed time: 15.909s total, 1.885s configuring, 8.752s building, 5.257s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit
2026-10-13 2:06 ` [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit Karthik Poosa
@ 2026-10-13 2:23 ` sashiko-bot
2026-10-13 18:39 ` Poosa, Karthik
0 siblings, 1 reply; 27+ messages in thread
From: sashiko-bot @ 2026-10-13 2:23 UTC (permalink / raw)
To: Karthik Poosa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/xe/hwmon: missing error checks for pcode writes during preregistration
--
commit 79685dc42e50f60af65d94b261b8f9a9cccf79d0
Author: Karthik Poosa <karthik.poosa@intel.com>
drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit
Return early when the pcode read operation fails in
xe_hwmon_pcode_rmw_power_limit() and check the returned error in
callers to avoid updating power limit settings with invalid data.
> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
> index 5edeac961ec33..9884e06f83e59 100644
> --- a/drivers/gpu/drm/xe/xe_hwmon.c
> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
[ ... ]
> @@ -394,7 +396,9 @@ static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channe
> if (hwmon->xe->info.has_mbx_power_limits) {
> drm_dbg(&hwmon->xe->drm, "disabling %s on channel %d\n",
> PWR_ATTR_TO_STR(attr), channel);
> - xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
> + ret = xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
> + if (ret)
> + goto unlock;
> xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
> } else {
[Severity: Medium]
This problem wasn't introduced by this patch, but since the commit message
mentions checking the returned error in callers of
xe_hwmon_pcode_rmw_power_limit() to avoid invalid data, does this patch miss
the callers in xe_hwmon_get_preregistration_info()?
If any of these writes fail (e.g. due to a pcode timeout), the driver still
sets hwmon->boot_power_limit_read = true. This forces all subsequent power
limit queries to use READ_PL_FROM_PCODE or READ_PL_ACCEPTED parameters instead
of READ_PL_FROM_FW:
drivers/gpu/drm/xe/xe_hwmon.c:xe_hwmon_get_preregistration_info() {
...
} else {
drm_info(&hwmon->xe->drm, "Using mailbox commands for power limits\n");
/* Write default limits to read from pcode from now on. */
xe_hwmon_pcode_rmw_power_limit(hwmon, PL1_HWMON_ATTR,
CHANNEL_CARD, PWR_LIM | PWR_LIM_TIME,
hwmon->pl1_on_boot[CHANNEL_CARD]);
xe_hwmon_pcode_rmw_power_limit(hwmon, PL1_HWMON_ATTR,
CHANNEL_PKG, PWR_LIM | PWR_LIM_TIME,
hwmon->pl1_on_boot[CHANNEL_PKG]);
xe_hwmon_pcode_rmw_power_limit(hwmon, PL2_HWMON_ATTR,
CHANNEL_CARD, PWR_LIM | PWR_LIM_TIME,
hwmon->pl2_on_boot[CHANNEL_CARD]);
xe_hwmon_pcode_rmw_power_limit(hwmon, PL2_HWMON_ATTR,
CHANNEL_PKG, PWR_LIM | PWR_LIM_TIME,
hwmon->pl2_on_boot[CHANNEL_PKG]);
hwmon->scl_shift_power = PWR_UNIT;
hwmon->scl_shift_energy = ENERGY_UNIT;
hwmon->scl_shift_time = TIME_UNIT;
hwmon->boot_power_limit_read = true;
...
}
Because the defaults were never successfully committed to the pcode mailbox,
can these queries return stale, uninitialized, or invalid limit values,
causing userspace to see incorrect hardware monitoring data or misconfigure
power limits?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013020636.447620-1-karthik.poosa@intel.com?part=1
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings
2026-10-13 2:06 ` [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings Karthik Poosa
@ 2026-10-13 2:24 ` sashiko-bot
2026-10-13 14:54 ` Poosa, Karthik
0 siblings, 1 reply; 27+ messages in thread
From: sashiko-bot @ 2026-10-13 2:24 UTC (permalink / raw)
To: Karthik Poosa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] hwmon: MMIO read errors (U32_MAX) are treated as valid temperatures on legacy platforms
--
commit 30c789d23390d6abf7d18b4ec4f037b60404f1b9
Author: Karthik Poosa <karthik.poosa@intel.com>
drm/xe/hwmon: Add helpers to validate thermal sensor readings
This commit introduces mmio_temp_valid() and mbx_temp_valid() to check
whether a temperature sensor reading is valid. It gates these checks behind
the has_temp_sentinel flag.
> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
> index 2d1fa9159c58b..712a21a996362 100644
> --- a/drivers/gpu/drm/xe/xe_hwmon.c
> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
[ ... ]
> @@ -825,6 +828,23 @@ static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
> return ret;
> }
>
> +static inline bool mmio_temp_valid(const struct xe_hwmon *hwmon, u32 value)
> +{
> + /*
> + * On platforms lacking temperature sentinel support, a value of 0 is treated
> + * as invalid. While 0°C is theoretically possible, it is highly unlikely for
> + * a discrete GPU in normal environments, making it a reasonable fallback
> + * indicator for invalid or uninitialized temperature readings.
> + */
> + return hwmon->xe->info.has_temp_sentinel ? value != U32_MAX : value != 0;
[Severity: Medium]
Does this inadvertently treat PCIe MMIO read errors as valid temperatures on
legacy platforms?
When a PCIe target abort or link failure occurs, xe_mmio_read32() returns
U32_MAX (0xFFFFFFFF). If the platform lacks has_temp_sentinel support, the
condition evaluates value != 0. Because 0xFFFFFFFF is not 0, this returns
true.
Later, in xe_hwmon_temp_read(), this U32_MAX value will be blindly decoded:
*val = (s32)REG_FIELD_GET(TEMP_MASK_VRAM_N, reg_val) *
(REG_FIELD_GET(TEMP_SIGN_MASK, reg_val) ? -1 : 1) *
MILLIDEGREE_PER_DEGREE;
This could result in absurd temperature readings like -8,388,607 or 255
instead of correctly propagating an error code when the hardware fails.
Should U32_MAX be universally treated as invalid, regardless of the
has_temp_sentinel flag?
> +}
> +
> +/* Mailbox temperature is sign-magnitude (bit 7 sign, bits 6:0 magnitude). */
> +static inline bool mbx_temp_valid(const struct xe_hwmon *hwmon, u8 value)
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013020636.447620-1-karthik.poosa@intel.com?part=4
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads
2026-10-13 2:06 ` [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads Karthik Poosa
@ 2026-10-13 2:25 ` sashiko-bot
2026-10-13 18:40 ` Poosa, Karthik
0 siblings, 1 reply; 27+ messages in thread
From: sashiko-bot @ 2026-10-13 2:25 UTC (permalink / raw)
To: Karthik Poosa, intel-xe
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] drm/xe/hwmon: memory controller temperature incorrectly averages PCIe sensor
--
commit 560df9ca7dd177faf766f62db4da531e993c1514
Author: Karthik Poosa <karthik.poosa@intel.com>
drm/xe: Validate thermal sensor count before reads
This commit adds boundary checks to verify that READ_THERMAL_CONFIG reports
enough entries for the platform-specific memory controller and PCIe sensor
indices before attempting to read thermal data.
> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
> index 7311f969f574f..702c739c9bf0a 100644
> --- a/drivers/gpu/drm/xe/xe_hwmon.c
> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
> @@ -920,6 +920,13 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
> end = hwmon->temp.count - 1;
> }
>
> + if (end <= start || end > hwmon->temp.count) {
> + drm_warn(&hwmon->xe->drm,
> + "memory controller range [%d, %d) is invalid for temperature count %d\n",
> + start, end, hwmon->temp.count);
> + return -ENODATA;
> + }
> +
[Severity: Medium]
If the firmware reports a thermal config count such that hwmon->temp.count - 1
exceeds the hardcoded PCIe sensor index, will get_mc_temp() mistakenly average
the PCIe sensor into the memory controller temperature?
While the validation added here allows hwmon->temp.count - 1 to be larger than
the PCIe sensor index, get_mc_temp() statically bounds its loop using
end = hwmon->temp.count - 1. This could force the memory controller loop to
iterate past the intended MCTRL range and consume the PCIe sensor located at
that index:
for (i = start; i < end; i++) {
if (!mbx_temp_valid(hwmon, hwmon->temp.value[i]))
continue;
average += mbx_temp_decode(hwmon->temp.value[i]);
count++;
}
Should end be explicitly capped at xe_hwmon_pcie_temp_index(hwmon) when
calculating the memory controller average to prevent polluting the statistics
with out-of-range sensors?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013020636.447620-1-karthik.poosa@intel.com?part=15
^ permalink raw reply [flat|nested] 27+ messages in thread
* ✓ Xe.CI.BAT: success for drm/xe/hwmon: Update hwmon thermal mailbox
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (16 preceding siblings ...)
2026-10-13 2:17 ` ✓ CI.KUnit: success for drm/xe/hwmon: Update hwmon thermal mailbox Patchwork
@ 2026-10-13 5:38 ` Patchwork
2026-10-13 14:25 ` ✗ Xe.CI.FULL: failure " Patchwork
18 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-10-13 5:38 UTC (permalink / raw)
To: Poosa, Karthik; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]
== Series Details ==
Series: drm/xe/hwmon: Update hwmon thermal mailbox
URL : https://patchwork.freedesktop.org/series/175993/
State : success
== Summary ==
CI Bug Log - changes from xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376_BAT -> xe-pw-175993v1_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (15 -> 15)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in xe-pw-175993v1_BAT that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@core_hotunplug@unbind-rebind:
- bat-bmg-2: [PASS][1] -> [ABORT][2] ([Intel XE#9463])
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376/bat-bmg-2/igt@core_hotunplug@unbind-rebind.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175993v1/bat-bmg-2/igt@core_hotunplug@unbind-rebind.html
[Intel XE#9463]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9463
Build changes
-------------
* Linux: xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376 -> xe-pw-175993v1
IGT_9140: 3b0daa274edb520204660fa1e15424b66ce0aea0 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376: 882b0f966d25236f00d6ec0c349f7948d2ed1376
xe-pw-175993v1: 175993v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175993v1/index.html
[-- Attachment #2: Type: text/html, Size: 2081 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* ✗ Xe.CI.FULL: failure for drm/xe/hwmon: Update hwmon thermal mailbox
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
` (17 preceding siblings ...)
2026-10-13 5:38 ` ✓ Xe.CI.BAT: " Patchwork
@ 2026-10-13 14:25 ` Patchwork
18 siblings, 0 replies; 27+ messages in thread
From: Patchwork @ 2026-10-13 14:25 UTC (permalink / raw)
To: Poosa, Karthik; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
== Series Details ==
Series: drm/xe/hwmon: Update hwmon thermal mailbox
URL : https://patchwork.freedesktop.org/series/175993/
State : failure
== Summary ==
ERROR: The runconfig 'xe-5936-882b0f966d25236f00d6ec0c349f7948d2ed1376_FULL' does not exist in the database
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-175993v1/index.html
[-- Attachment #2: Type: text/html, Size: 938 bytes --]
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings
2026-10-13 2:24 ` sashiko-bot
@ 2026-10-13 14:54 ` Poosa, Karthik
2026-10-13 18:47 ` Poosa, Karthik
0 siblings, 1 reply; 27+ messages in thread
From: Poosa, Karthik @ 2026-10-13 14:54 UTC (permalink / raw)
To: sashiko-reviews, intel-xe
On 13-10-2026 07:54, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] hwmon: MMIO read errors (U32_MAX) are treated as valid temperatures on legacy platforms
> --
>
> commit 30c789d23390d6abf7d18b4ec4f037b60404f1b9
> Author: Karthik Poosa <karthik.poosa@intel.com>
>
> drm/xe/hwmon: Add helpers to validate thermal sensor readings
>
> This commit introduces mmio_temp_valid() and mbx_temp_valid() to check
> whether a temperature sensor reading is valid. It gates these checks behind
> the has_temp_sentinel flag.
>
>> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
>> index 2d1fa9159c58b..712a21a996362 100644
>> --- a/drivers/gpu/drm/xe/xe_hwmon.c
>> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
> [ ... ]
>
>> @@ -825,6 +828,23 @@ static int xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
>> return ret;
>> }
>>
>> +static inline bool mmio_temp_valid(const struct xe_hwmon *hwmon, u32 value)
>> +{
>> + /*
>> + * On platforms lacking temperature sentinel support, a value of 0 is treated
>> + * as invalid. While 0°C is theoretically possible, it is highly unlikely for
>> + * a discrete GPU in normal environments, making it a reasonable fallback
>> + * indicator for invalid or uninitialized temperature readings.
>> + */
>> + return hwmon->xe->info.has_temp_sentinel ? value != U32_MAX : value != 0;
> [Severity: Medium]
> Does this inadvertently treat PCIe MMIO read errors as valid temperatures on
> legacy platforms?
>
> When a PCIe target abort or link failure occurs, xe_mmio_read32() returns
> U32_MAX (0xFFFFFFFF). If the platform lacks has_temp_sentinel support, the
> condition evaluates value != 0. Because 0xFFFFFFFF is not 0, this returns
> true.
>
> Later, in xe_hwmon_temp_read(), this U32_MAX value will be blindly decoded:
>
> *val = (s32)REG_FIELD_GET(TEMP_MASK_VRAM_N, reg_val) *
> (REG_FIELD_GET(TEMP_SIGN_MASK, reg_val) ? -1 : 1) *
> MILLIDEGREE_PER_DEGREE;
>
> This could result in absurd temperature readings like -8,388,607 or 255
> instead of correctly propagating an error code when the hardware fails.
>
> Should U32_MAX be universally treated as invalid, regardless of the
> has_temp_sentinel flag?
An all-ones read means the PCIe link has failed, which is a device-level
condition handled outside hwmon. Once the device is unavailable,
xe_mmio_read32() returns 0, which is already treated as invalid.
mmio_temp_valid() is only used at probe, not in xe_hwmon_temp_read(). In the
next version I'll can add the check to the MMIO read path and return
-ENXIO, to
match the mailbox sensors.
>> +}
>> +
>> +/* Mailbox temperature is sign-magnitude (bit 7 sign, bits 6:0 magnitude). */
>> +static inline bool mbx_temp_valid(const struct xe_hwmon *hwmon, u8 value)
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit
2026-10-13 2:23 ` sashiko-bot
@ 2026-10-13 18:39 ` Poosa, Karthik
0 siblings, 0 replies; 27+ messages in thread
From: Poosa, Karthik @ 2026-10-13 18:39 UTC (permalink / raw)
To: sashiko-reviews, intel-xe
On 13-10-2026 07:53, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] drm/xe/hwmon: missing error checks for pcode writes during preregistration
> --
>
> commit 79685dc42e50f60af65d94b261b8f9a9cccf79d0
> Author: Karthik Poosa <karthik.poosa@intel.com>
>
> drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit
>
> Return early when the pcode read operation fails in
> xe_hwmon_pcode_rmw_power_limit() and check the returned error in
> callers to avoid updating power limit settings with invalid data.
>
>> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
>> index 5edeac961ec33..9884e06f83e59 100644
>> --- a/drivers/gpu/drm/xe/xe_hwmon.c
>> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
> [ ... ]
>> @@ -394,7 +396,9 @@ static int xe_hwmon_power_max_write(struct xe_hwmon *hwmon, u32 attr, int channe
>> if (hwmon->xe->info.has_mbx_power_limits) {
>> drm_dbg(&hwmon->xe->drm, "disabling %s on channel %d\n",
>> PWR_ATTR_TO_STR(attr), channel);
>> - xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
>> + ret = xe_hwmon_pcode_rmw_power_limit(hwmon, attr, channel, PWR_LIM_EN, 0);
>> + if (ret)
>> + goto unlock;
>> xe_hwmon_pcode_read_power_limit(hwmon, attr, channel, ®_val);
>> } else {
> [Severity: Medium]
> This problem wasn't introduced by this patch, but since the commit message
> mentions checking the returned error in callers of
> xe_hwmon_pcode_rmw_power_limit() to avoid invalid data, does this patch miss
> the callers in xe_hwmon_get_preregistration_info()?
>
> If any of these writes fail (e.g. due to a pcode timeout), the driver still
> sets hwmon->boot_power_limit_read = true. This forces all subsequent power
> limit queries to use READ_PL_FROM_PCODE or READ_PL_ACCEPTED parameters instead
> of READ_PL_FROM_FW:
>
> drivers/gpu/drm/xe/xe_hwmon.c:xe_hwmon_get_preregistration_info() {
> ...
> } else {
> drm_info(&hwmon->xe->drm, "Using mailbox commands for power limits\n");
> /* Write default limits to read from pcode from now on. */
> xe_hwmon_pcode_rmw_power_limit(hwmon, PL1_HWMON_ATTR,
> CHANNEL_CARD, PWR_LIM | PWR_LIM_TIME,
> hwmon->pl1_on_boot[CHANNEL_CARD]);
> xe_hwmon_pcode_rmw_power_limit(hwmon, PL1_HWMON_ATTR,
> CHANNEL_PKG, PWR_LIM | PWR_LIM_TIME,
> hwmon->pl1_on_boot[CHANNEL_PKG]);
> xe_hwmon_pcode_rmw_power_limit(hwmon, PL2_HWMON_ATTR,
> CHANNEL_CARD, PWR_LIM | PWR_LIM_TIME,
> hwmon->pl2_on_boot[CHANNEL_CARD]);
> xe_hwmon_pcode_rmw_power_limit(hwmon, PL2_HWMON_ATTR,
> CHANNEL_PKG, PWR_LIM | PWR_LIM_TIME,
> hwmon->pl2_on_boot[CHANNEL_PKG]);
> hwmon->scl_shift_power = PWR_UNIT;
> hwmon->scl_shift_energy = ENERGY_UNIT;
> hwmon->scl_shift_time = TIME_UNIT;
> hwmon->boot_power_limit_read = true;
> ...
> }
>
> Because the defaults were never successfully committed to the pcode mailbox,
> can these queries return stale, uninitialized, or invalid limit values,
> causing userspace to see incorrect hardware monitoring data or misconfigure
> power limits?
We can check these return and report a warning.
>
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads
2026-10-13 2:25 ` sashiko-bot
@ 2026-10-13 18:40 ` Poosa, Karthik
0 siblings, 0 replies; 27+ messages in thread
From: Poosa, Karthik @ 2026-10-13 18:40 UTC (permalink / raw)
To: sashiko-reviews, intel-xe
On 13-10-2026 07:55, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] drm/xe/hwmon: memory controller temperature incorrectly averages PCIe sensor
> --
>
> commit 560df9ca7dd177faf766f62db4da531e993c1514
> Author: Karthik Poosa <karthik.poosa@intel.com>
>
> drm/xe: Validate thermal sensor count before reads
>
> This commit adds boundary checks to verify that READ_THERMAL_CONFIG reports
> enough entries for the platform-specific memory controller and PCIe sensor
> indices before attempting to read thermal data.
>
>> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
>> index 7311f969f574f..702c739c9bf0a 100644
>> --- a/drivers/gpu/drm/xe/xe_hwmon.c
>> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
>> @@ -920,6 +920,13 @@ static int get_mc_temp(struct xe_hwmon *hwmon, long *val)
>> end = hwmon->temp.count - 1;
>> }
>>
>> + if (end <= start || end > hwmon->temp.count) {
>> + drm_warn(&hwmon->xe->drm,
>> + "memory controller range [%d, %d) is invalid for temperature count %d\n",
>> + start, end, hwmon->temp.count);
>> + return -ENODATA;
>> + }
>> +
> [Severity: Medium]
> If the firmware reports a thermal config count such that hwmon->temp.count - 1
> exceeds the hardcoded PCIe sensor index, will get_mc_temp() mistakenly average
> the PCIe sensor into the memory controller temperature?
>
> While the validation added here allows hwmon->temp.count - 1 to be larger than
> the PCIe sensor index, get_mc_temp() statically bounds its loop using
> end = hwmon->temp.count - 1. This could force the memory controller loop to
> iterate past the intended MCTRL range and consume the PCIe sensor located at
> that index:
>
> for (i = start; i < end; i++) {
> if (!mbx_temp_valid(hwmon, hwmon->temp.value[i]))
> continue;
> average += mbx_temp_decode(hwmon->temp.value[i]);
> count++;
> }
>
> Should end be explicitly capped at xe_hwmon_pcie_temp_index(hwmon) when
> calculating the memory controller average to prevent polluting the statistics
> with out-of-range sensors?
>
> [ ... ]
this shall be addressed in next revision.
^ permalink raw reply [flat|nested] 27+ messages in thread
* Re: [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings
2026-10-13 14:54 ` Poosa, Karthik
@ 2026-10-13 18:47 ` Poosa, Karthik
0 siblings, 0 replies; 27+ messages in thread
From: Poosa, Karthik @ 2026-10-13 18:47 UTC (permalink / raw)
To: sashiko-reviews, intel-xe
On 13-10-2026 20:24, Poosa, Karthik wrote:
>
> On 13-10-2026 07:54, sashiko-bot@kernel.org wrote:
>> Thank you for your contribution! Sashiko AI review found 1 potential
>> issue(s) to consider:
>> - [Medium] hwmon: MMIO read errors (U32_MAX) are treated as valid
>> temperatures on legacy platforms
>> --
>>
>> commit 30c789d23390d6abf7d18b4ec4f037b60404f1b9
>> Author: Karthik Poosa <karthik.poosa@intel.com>
>>
>> drm/xe/hwmon: Add helpers to validate thermal sensor readings
>>
>> This commit introduces mmio_temp_valid() and mbx_temp_valid() to check
>> whether a temperature sensor reading is valid. It gates these checks
>> behind
>> the has_temp_sentinel flag.
>>
>>> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c
>>> b/drivers/gpu/drm/xe/xe_hwmon.c
>>> index 2d1fa9159c58b..712a21a996362 100644
>>> --- a/drivers/gpu/drm/xe/xe_hwmon.c
>>> +++ b/drivers/gpu/drm/xe/xe_hwmon.c
>> [ ... ]
>>
>>> @@ -825,6 +828,23 @@ static int
>>> xe_hwmon_pcode_read_thermal_info(struct xe_hwmon *hwmon)
>>> return ret;
>>> }
>>> +static inline bool mmio_temp_valid(const struct xe_hwmon *hwmon,
>>> u32 value)
>>> +{
>>> + /*
>>> + * On platforms lacking temperature sentinel support, a value
>>> of 0 is treated
>>> + * as invalid. While 0°C is theoretically possible, it is
>>> highly unlikely for
>>> + * a discrete GPU in normal environments, making it a
>>> reasonable fallback
>>> + * indicator for invalid or uninitialized temperature readings.
>>> + */
>>> + return hwmon->xe->info.has_temp_sentinel ? value != U32_MAX :
>>> value != 0;
>> [Severity: Medium]
>> Does this inadvertently treat PCIe MMIO read errors as valid
>> temperatures on
>> legacy platforms?
>>
>> When a PCIe target abort or link failure occurs, xe_mmio_read32()
>> returns
>> U32_MAX (0xFFFFFFFF). If the platform lacks has_temp_sentinel
>> support, the
>> condition evaluates value != 0. Because 0xFFFFFFFF is not 0, this
>> returns
>> true.
>>
>> Later, in xe_hwmon_temp_read(), this U32_MAX value will be blindly
>> decoded:
>>
>> *val = (s32)REG_FIELD_GET(TEMP_MASK_VRAM_N, reg_val) *
>> (REG_FIELD_GET(TEMP_SIGN_MASK, reg_val) ? -1 : 1) *
>> MILLIDEGREE_PER_DEGREE;
>>
>> This could result in absurd temperature readings like -8,388,607 or 255
>> instead of correctly propagating an error code when the hardware fails.
>>
>> Should U32_MAX be universally treated as invalid, regardless of the
>> has_temp_sentinel flag?
> An all-ones read means the PCIe link has failed, which is a device-level
> condition handled outside hwmon. Once the device is unavailable,
> xe_mmio_read32() returns 0, which is already treated as invalid.
>
> mmio_temp_valid() is only used at probe, not in xe_hwmon_temp_read().
> In the
> next version I'll can add the check to the MMIO read path and return
> -ENXIO, to
> match the mailbox sensors.
This change will be added in next revision.
patch 11 drm/xe/hwmon: Decode CRI temperature registers as IEEE-754, as
this seems fit here, where the missing check for xe_mmio_valid() is needed.
>>> +}
>>> +
>>> +/* Mailbox temperature is sign-magnitude (bit 7 sign, bits 6:0
>>> magnitude). */
>>> +static inline bool mbx_temp_valid(const struct xe_hwmon *hwmon, u8
>>> value)
^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2026-10-13 18:47 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 2:06 [PATCH v11 00/16] drm/xe/hwmon: Update hwmon thermal mailbox Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 01/16] drm/xe/hwmon: Handle pcode read failures of xe_hwmon_pcode_rmw_power_limit Karthik Poosa
2026-10-13 2:23 ` sashiko-bot
2026-10-13 18:39 ` Poosa, Karthik
2026-10-13 2:06 ` [PATCH v11 02/16] drm/xe/hwmon: Decode mailbox temperature as sign-magnitude Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 03/16] drm/xe/hwmon: Fix thermal sensor data handling Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 04/16] drm/xe/hwmon: Add helpers to validate thermal sensor readings Karthik Poosa
2026-10-13 2:24 ` sashiko-bot
2026-10-13 14:54 ` Poosa, Karthik
2026-10-13 18:47 ` Poosa, Karthik
2026-10-13 2:06 ` [PATCH v11 05/16] drm/xe/hwmon: Handle unavailable memory controller sensors Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 06/16] drm/xe/hwmon: Detect unavailable PCIe thermal sensors Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 07/16] drm/xe/hwmon: Consolidate temperature sensor availability checks Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 08/16] drm/xe/hwmon: Cache temperature availability to reduce probe time Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 09/16] drm/xe/hwmon: use CRI-specific package and VRAM temperature registers Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 10/16] drm/xe/hwmon: Add platform-aware VRAM thermal channel support Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 11/16] drm/xe/hwmon: Decode CRI temperature registers as IEEE-754 Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 12/16] drm/xe/hwmon: Update memory controller temperature offset for CRI Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 13/16] drm/xe/hwmon: add PCIe temperature support " Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 14/16] drm/xe/hwmon: Simplify temperature channels config Karthik Poosa
2026-10-13 2:06 ` [PATCH v11 15/16] drm/xe: Validate thermal sensor count before reads Karthik Poosa
2026-10-13 2:25 ` sashiko-bot
2026-10-13 18:40 ` Poosa, Karthik
2026-10-13 2:06 ` [PATCH v11 16/16] drm/xe/hwmon: Propagate all hardware read errors Karthik Poosa
2026-10-13 2:17 ` ✓ CI.KUnit: success for drm/xe/hwmon: Update hwmon thermal mailbox Patchwork
2026-10-13 5:38 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-13 14:25 ` ✗ Xe.CI.FULL: failure " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox