* [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 15:09 ` sashiko-bot
2026-12-04 14:47 ` [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
` (12 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
GuC log snapshot reads registers to record the GuC timestamp for the
captured log. Add both registers to the PF runtime register allowlist
so VFs can read the timestamp.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
index fba2d5e1e94c..29249e6f7d41 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
@@ -115,6 +115,8 @@ static const struct xe_reg ver_35_runtime_regs[] = {
XE3P_XPC_GT_COMPUTE_DSS_3, /* _MMIO(0x9160) */
SERVICE_COPY_ENABLE, /* _MMIO(0x9170) */
RESOURCE_COPY_ENABLE, /* _MMIO(0x9174) */
+ GUC_PMTIMESTAMP_LO, /* _MMIO(0xc3e8) */
+ GUC_PMTIMESTAMP_HI, /* _MMIO(0xc3ec) */
};
static const struct xe_reg *pick_runtime_regs(struct xe_device *xe, unsigned int *count)
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers
2026-12-04 14:47 ` [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers Satyanarayana K V P
@ 2026-12-04 15:09 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 15:09 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] drm/xe: PF runtime cache returns frozen GuC timestamp to VFs
- [Low] drm/xe: torn 64-bit GuC timestamp read in read_many()
- [Low] drm/xe: lockless race on runtime.values in do_gt_restart()
- [Low] drm/xe: only ver_35_runtime_regs updated for GuC timestamp
--
commit 02a897024d2effcd581c20d41a369145f81023c5
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/pf: Allow VF access to GuC timestamp registers
This commit adds GUC_PMTIMESTAMP_LO and GUC_PMTIMESTAMP_HI to
ver_35_runtime_regs[] in the PF SR-IOV runtime service so VFs can query
them for GuC log snapshots.
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
> index fba2d5e1e94c8..29249e6f7d41d 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_service.c
> @@ -115,6 +115,8 @@ static const struct xe_reg ver_35_runtime_regs[] = {
> XE3P_XPC_GT_COMPUTE_DSS_3, /* _MMIO(0x9160) */
> SERVICE_COPY_ENABLE, /* _MMIO(0x9170) */
> RESOURCE_COPY_ENABLE, /* _MMIO(0x9174) */
> + GUC_PMTIMESTAMP_LO, /* _MMIO(0xc3e8) */
> + GUC_PMTIMESTAMP_HI, /* _MMIO(0xc3ec) */
> };
>
> static const struct xe_reg *pick_runtime_regs(struct xe_device *xe, unsigned int *count)
[Severity: Medium]
Will caching GUC_PMTIMESTAMP_LO and GUC_PMTIMESTAMP_HI in
ver_35_runtime_regs[] return a frozen timestamp to VFs instead of the live
GuC timestamp?
The PF runtime register service is a static cache for immutable registers,
not a live MMIO allowlist. pf_prepare_runtime_info() reads these registers
only during PF GT init or reset/resume, and VFs fetch the cached values
once at probe via xe_gt_sriov_vf_query_runtime().
Because GUC_PMTIMESTAMP_LO and GUC_PMTIMESTAMP_HI do not set
XE_REG_OPTION_VF, every xe_mmio_read64_2x32() in
xe_guc_log_snapshot_capture() routes through xe_gt_sriov_vf_read32() and
returns that stale timestamp, breaking correlation with snapshot->ktime.
To provide a live timestamp, these registers would need XE_REG_OPTION_VF
(if hardware permits direct VF reads) or an on-demand query instead of
static caching.
[Severity: Low]
Can read_many() cache a torn 64-bit value for GUC_PMTIMESTAMP_LO and
GUC_PMTIMESTAMP_HI?
pf_prepare_runtime_info() populates runtime.values[] via read_many(), which
issues two plain consecutive xe_mmio_read32() calls without the upper-dword
rollover check used by xe_mmio_read64_2x32().
If the lower 32-bit counter wraps between the two reads during PF GT init
or reset, the PF caches a timestamp off by 2^32 ticks. VF
xe_mmio_read64_2x32() then silently accepts it because both upper-dword
reads return the same cached value.
[Severity: Low]
Does adding a changing 64-bit counter to runtime.values[] introduce a
lockless data race during PF GT reset or resume?
Previously ver_35_runtime_regs[] only held immutable fuse registers. In
do_gt_restart(), xe_uc_load_hw() re-enables GuC communication before
xe_gt_sriov_pf_init_hw() overwrites runtime.values[] in read_many() without
synchronization:
CPU0 (gt_reset_worker) CPU1 (xe->sriov.wq)
do_gt_restart()
xe_uc_load_hw()
xe_guc_enable_communication()
xe_gt_sriov_pf_init_hw()
...
read_many()
values[LO] = new_lo
pf_service_runtime_query()
read values[LO] (new_lo)
read values[HI] (old_hi) <-- data race
values[HI] = new_hi
A concurrent VF runtime query (or debugfs read in
xe_gt_sriov_pf_service_print_runtime()) can observe a torn 64-bit timestamp
mixing pre-reset and post-reset halves.
[Severity: Low]
Should GUC_PMTIMESTAMP_LO and GUC_PMTIMESTAMP_HI also be added to the
earlier platform tables in pick_runtime_regs(), or is this change meant
only for GRAPHICS_VER >= 35?
xe_guc_log_snapshot_capture() reads GUC_PMTIMESTAMP_LO on all platforms,
while this patch only updates ver_35_runtime_regs[] and does not mention
that restriction in the commit message. On pre-ver-35 SR-IOV platforms,
VFs miss in vf_lookup_reg(), receive 0 for the timestamp, and trigger
xe_gt_WARN() under CONFIG_DRM_XE_DEBUG.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=1
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
2026-12-04 14:47 ` [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 15:22 ` sashiko-bot
2026-12-04 14:47 ` [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture Satyanarayana K V P
` (11 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
VF debug logging is supported starting with GuC 70.84.0 (compatibility
version 1.47.0). Gate the feature on the GuC firmware version and keep it
disabled on older or unsupported versions.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
---
drivers/gpu/drm/xe/xe_guc.c | 3 +++
drivers/gpu/drm/xe/xe_sriov_vf.c | 31 ++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_sriov_vf.h | 2 ++
drivers/gpu/drm/xe/xe_sriov_vf_types.h | 9 ++++++++
4 files changed, 45 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index fe3381602a82..b0d8cc35de62 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -47,6 +47,7 @@
#include "xe_sleep.h"
#include "xe_sriov.h"
#include "xe_sriov_pf_migration.h"
+#include "xe_sriov_vf.h"
#include "xe_tile.h"
#include "xe_uc.h"
#include "xe_uc_fw.h"
@@ -830,6 +831,8 @@ int xe_guc_init(struct xe_guc *guc)
if (ret)
goto out;
+ xe_sriov_vf_debug_log_init_early(xe);
+
ret = xe_guc_ct_init(&guc->ct);
if (ret)
goto out;
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
index 29894bd081c0..f2e519327f76 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
@@ -216,6 +216,37 @@ static void vf_migration_init_early(struct xe_device *xe)
}
+/**
+ * xe_sriov_vf_debug_log_supported - Report whether SR-IOV VF debug logging
+ * is supported or not.
+ * @xe: the &xe_device to check
+ *
+ * Returns: true if VF debug logging is supported, false otherwise.
+ */
+bool xe_sriov_vf_debug_log_supported(struct xe_device *xe)
+{
+ xe_assert(xe, IS_SRIOV_VF(xe));
+ return !xe->sriov.vf.debug.disabled;
+}
+
+/**
+ * xe_sriov_vf_debug_log_init_early - Detects VF debug logging support
+ * @xe: the &xe_device instance.
+ */
+void xe_sriov_vf_debug_log_init_early(struct xe_device *xe)
+{
+ struct xe_gt *gt = xe_root_mmio_gt(xe);
+ struct xe_uc_fw_version guc_version;
+
+ xe_gt_sriov_vf_guc_versions(gt, NULL, &guc_version);
+ if (MAKE_GUC_VER_STRUCT(guc_version) < MAKE_GUC_VER(1, 47, 0)) {
+ xe_sriov_notice(xe, "requires GuC ABI >= 1.47.0, but only %u.%u.%u found",
+ guc_version.major, guc_version.minor, guc_version.patch);
+ xe->sriov.vf.debug.disabled = true;
+ return;
+ }
+}
+
/**
* xe_sriov_vf_init_early - Initialize SR-IOV VF specific data.
* @xe: the &xe_device to initialize
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.h b/drivers/gpu/drm/xe/xe_sriov_vf.h
index e967d4166a43..284929d942ad 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf.h
+++ b/drivers/gpu/drm/xe/xe_sriov_vf.h
@@ -12,9 +12,11 @@ struct dentry;
struct xe_device;
void xe_sriov_vf_init_early(struct xe_device *xe);
+void xe_sriov_vf_debug_log_init_early(struct xe_device *xe);
int xe_sriov_vf_init_late(struct xe_device *xe);
bool xe_sriov_vf_migration_supported(struct xe_device *xe);
void xe_sriov_vf_migration_disable(struct xe_device *xe, const char *fmt, ...);
void xe_sriov_vf_debugfs_register(struct xe_device *xe, struct dentry *root);
+bool xe_sriov_vf_debug_log_supported(struct xe_device *xe);
#endif
diff --git a/drivers/gpu/drm/xe/xe_sriov_vf_types.h b/drivers/gpu/drm/xe/xe_sriov_vf_types.h
index d5f72d667817..da802abd3000 100644
--- a/drivers/gpu/drm/xe/xe_sriov_vf_types.h
+++ b/drivers/gpu/drm/xe/xe_sriov_vf_types.h
@@ -40,6 +40,15 @@ struct xe_device_vf {
bool disabled;
} migration;
+ /** @debug: VF debug log capture support */
+ struct {
+ /**
+ * @debug.disabled : flag indicating if debug logging support
+ * was turned off due to missing prerequisites
+ */
+ bool disabled;
+ } debug;
+
/** @ccs: VF CCS state data */
struct xe_sriov_vf_ccs ccs;
};
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions
2026-12-04 14:47 ` [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
@ 2026-12-04 15:22 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 15:22 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/xe/vf: per-GT xe_sriov_vf_debug_log_init_early() only
checks root GT
- [Low] drm/xe/vf: missing feature prefix and newline in
xe_sriov_notice()
--
commit 3558c9475bd8ba4a0b69aee25c2cd5a6869ae526
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/vf: Enable VF debug logging only on supported GUC versions
This commit adds an early GuC ABI version check (>= 1.47.0) during VF GuC
initialization to disable SR-IOV VF debug logging on unsupported firmware
versions, along with a helper to query whether it is supported.
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 00df83460022d..b8939f04ea24c 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
[ ... ]
> @@ -830,6 +831,8 @@ int xe_guc_init(struct xe_guc *guc)
> if (ret)
> goto out;
>
> + xe_sriov_vf_debug_log_init_early(xe);
> +
> ret = xe_guc_ct_init(&guc->ct);
> if (ret)
> goto out;
[Severity: Medium]
Should xe_sriov_vf_debug_log_init_early() check each GT rather than being
called per GT while hardcoding xe_root_mmio_gt(xe)?
xe_device_probe() invokes xe_gt_init() -> xe_uc_init() -> xe_guc_init()
once per GT, so on multi-GT VFs this runs repeatedly and always inspects
only the root GT. If the root GT runs GuC ABI >= 1.47.0 while a media or
remote GT loads an older GuC binary, xe_sriov_vf_debug_log_supported()
stays true and allows unsupported debug-log queries on that GT.
When the root GT itself is below 1.47.0, probe also re-checks it on every
subsequent GT and emits duplicate notices. Checking all GTs once at
device level after VF bootstrap, or tracking support per GT, would avoid
both issues.
> diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sriov_vf.c
> index 29894bd081c04..f2e519327f76d 100644
> --- a/drivers/gpu/drm/xe/xe_sriov_vf.c
> +++ b/drivers/gpu/drm/xe/xe_sriov_vf.c
[ ... ]
> +void xe_sriov_vf_debug_log_init_early(struct xe_device *xe)
> +{
> + struct xe_gt *gt = xe_root_mmio_gt(xe);
> + struct xe_uc_fw_version guc_version;
> +
> + xe_gt_sriov_vf_guc_versions(gt, NULL, &guc_version);
> + if (MAKE_GUC_VER_STRUCT(guc_version) < MAKE_GUC_VER(1, 47, 0)) {
> + xe_sriov_notice(xe, "requires GuC ABI >= 1.47.0, but only %u.%u.%u found",
> + guc_version.major, guc_version.minor, guc_version.patch);
[Severity: Low]
Is this xe_sriov_notice() missing both a feature prefix (such as "debug
logging disabled: ") and a trailing newline?
xe_sriov_notice() only prepends the VF prefix and does not append a
newline, unlike xe_sriov_vf_migration_disable() which wraps its message
with "migration disabled: %pV\n". As written, dmesg gets an unterminated
line that does not mention which feature was disabled.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=2
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
2026-12-04 14:47 ` [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers Satyanarayana K V P
2026-12-04 14:47 ` [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 15:34 ` sashiko-bot
2026-12-04 14:47 ` [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
` (10 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Starting with GuC 70.84.0 (VF compatibility version 1.47.0), a VF can
be given access to its own GuC log and debug state capture buffers.
Add the GuC ABI definitions required to support this.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
---
drivers/gpu/drm/xe/abi/guc_actions_abi.h | 4 ++
drivers/gpu/drm/xe/abi/guc_klvs_abi.h | 56 +++++++++++++++++++++++-
2 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/abi/guc_actions_abi.h b/drivers/gpu/drm/xe/abi/guc_actions_abi.h
index 520b771906cd..053af1efa74e 100644
--- a/drivers/gpu/drm/xe/abi/guc_actions_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_actions_abi.h
@@ -149,6 +149,10 @@ enum xe_guc_action {
XE_GUC_ACTION_SET_DEVICE_ENGINE_ACTIVITY_BUFFER = 0x550C,
XE_GUC_ACTION_SET_FUNCTION_ENGINE_ACTIVITY_BUFFER = 0x550D,
XE_GUC_ACTION_OPT_IN_FEATURE_KLV = 0x550E,
+ XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS = 0x5511,
+ XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS_MMIO = 0x5512,
+ XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY = 0x5513,
+ XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE = 0x5514,
XE_GUC_ACTION_NOTIFY_MEMORY_CAT_ERROR = 0x6000,
XE_GUC_ACTION_REPORT_PAGE_FAULT_REQ_DESC = 0x6002,
XE_GUC_ACTION_PAGE_FAULT_RES_DESC = 0x6003,
diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
index f3c721abca8b..7aacb1dd4436 100644
--- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
@@ -59,6 +59,22 @@
* Paging engine logical instances are guaranteed to be dense starting at
* index 0.
* Requires GuC ABI 1.36+
+ *
+ * _`GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE` : 0x3004
+ * Reports the required GuC log buffer size in bytes that a VF must allocate
+ * for its GuC log buffer. VF should query this KLV before registering the
+ * log buffer address to determine the correct allocation size. A returned
+ * value of 0 indicates that GuC log access has not been enabled for the VF.
+ * Requires GuC ABI 1.47+
+ *
+ * _`GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE` : 0x3005
+ * Reports the required debug state capture buffer size in bytes that a VF
+ * must allocate for its debug state capture buffer. VF should query this
+ * KLV before registering the debug state capture buffer address to determine
+ * the correct allocation size.
+ * A returned value of 0 indicates that access to debug state capture is not
+ * available because debug state capture has not been enabled for the VF.
+ * Requires GuC ABI 1.47+
*/
#define GUC_KLV_GLOBAL_CFG_GMD_ID_KEY 0x3000u
@@ -70,11 +86,29 @@
#define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_KEY 0x3003u
#define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_LEN 1u
+#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_KEY 0x3004u
+#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_LEN 1u
+
+#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_KEY 0x3005u
+#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_LEN 1u
+
/**
* DOC: GuC Self Config KLVs
*
* `GuC KLV`_ keys available for use with HOST2GUC_SELF_CFG_.
*
+ * _`GUC_KLV_SELF_CONFIG_DEBUG_STATE_CAPTURE_ENABLE` : 0x0600
+ * This KLV is configured only by PF to enable debug state capture for a
+ * specific VF during provisioning. When set, debug state capture is enabled
+ * for this VF and when cleared, debug state capture is disabled by default.
+ * This KLV is independent of GUC_KLV_OPT_IN_FEATURE_GUC_LOG_ENABLE and
+ * does not enable or disable GuC log access.
+ *
+ * _`GUC_KLV_SELF_CONFIG_GUC_LOG_ENABLE` : 0x0601
+ * This KLV is configured only by PF to enable GuC log access for a specific
+ * VF during provisioning. When set, GuC log access is enabled for this VF
+ * and when cleared, GuC log access is disabled by default.
+ *
* _`GUC_KLV_SELF_CFG_MEMIRQ_STATUS_ADDR` : 0x0900
* Refers to 64 bit Global Gfx address (in bytes) of memory based interrupts
* status vector for use by the GuC.
@@ -106,8 +140,22 @@
* _GUC_KLV_SELF_CFG_G2H_CTB_SIZE : 0x0907
* Refers to size of G2H `CT Buffer`_ in bytes.
* Should be a multiple of 4K.
+ *
+ * _`GUC_KLV_SELF_CFG_H2G_GUC_LOG_BUFF_ADDR` : 0x090B
+ * Refers to the 64-bit Global Gfx address of the VF's GuC log buffer. Must
+ * be 64-byte aligned and registered by VF.
+ *
+ * _`GUC_KLV_SELF_CFG_H2G_DEBUG_STATE_CAPT_BUFF_ADDR` : 0x090C
+ * Refers to the 64-bit Global Gfx address of the VF's debug state capture
+ * buffer. Must be 64-byte aligned.
*/
+#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_KEY 0x0600u
+#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_LEN 1u
+
+#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_KEY 0x0601u
+#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_LEN 1u
+
#define GUC_KLV_SELF_CFG_MEMIRQ_STATUS_ADDR_KEY 0x0900
#define GUC_KLV_SELF_CFG_MEMIRQ_STATUS_ADDR_LEN 2u
@@ -132,6 +180,12 @@
#define GUC_KLV_SELF_CFG_G2H_CTB_SIZE_KEY 0x0907
#define GUC_KLV_SELF_CFG_G2H_CTB_SIZE_LEN 1u
+#define GUC_KLV_SELF_CFG_H2G_GUC_LOG_BUFF_ADDR_KEY 0x090B
+#define GUC_KLV_SELF_CFG_H2G_GUC_LOG_BUFF_ADDR_LEN 2u
+
+#define GUC_KLV_SELF_CFG_H2G_DEBUG_STATE_CAPT_BUFF_ADDR_KEY 0x090C
+#define GUC_KLV_SELF_CFG_H2G_DEBUG_STATE_CAPT_BUFF_ADDR_LEN 2u
+
/*
* Per context scheduling policy update keys.
*/
@@ -150,7 +204,7 @@ enum {
*
* `GuC KLV`_ keys available for use with OPT_IN_FEATURE_KLV
*
- * _`GUC_KLV_OPT_IN_FEATURE_EXT_CAT_ERR_TYPE` : 0x4001
+ * _`GUC_KLV_OPT_IN_FEATURE_EXT_CAT_ERR_TYPE` : 0x4001
* Adds an extra dword to the XE_GUC_ACTION_NOTIFY_MEMORY_CAT_ERROR G2H
* containing the type of the CAT error. On HW that does not support
* reporting the CAT error type, the extra dword is set to 0xdeadbeef.
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture
2026-12-04 14:47 ` [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture Satyanarayana K V P
@ 2026-12-04 15:34 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 15:34 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] drm/xe/guc: VF provisioning KLVs 0x0600/0x0601 misclassified as
SELF_CFG
- [Low] drm/xe/guc: SR-IOV actions 0x5511-0x5514 placed in legacy
guc_actions_abi.h
- [Low] drm/xe: new GuC log/capture KLVs missing from
xe_guc_klv_key_to_string()
--
commit ace21c007b77c5e7ec1166d46f5f5a0fc932e85c
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/guc: Add KLV definitions for GuC log and debug state capture
This commit adds GuC ABI definitions for VF access to GuC logs and debug
state capture buffers, including four new GuC actions and several Global
Config and Self Config KLVs.
> diff --git a/drivers/gpu/drm/xe/abi/guc_actions_abi.h b/drivers/gpu/drm/xe/abi/guc_actions_abi.h
> index 520b771906cdd..053af1efa74e9 100644
> --- a/drivers/gpu/drm/xe/abi/guc_actions_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_actions_abi.h
> @@ -149,6 +149,10 @@ enum xe_guc_action {
> XE_GUC_ACTION_SET_DEVICE_ENGINE_ACTIVITY_BUFFER = 0x550C,
> XE_GUC_ACTION_SET_FUNCTION_ENGINE_ACTIVITY_BUFFER = 0x550D,
> XE_GUC_ACTION_OPT_IN_FEATURE_KLV = 0x550E,
> + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS = 0x5511,
> + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS_MMIO = 0x5512,
> + XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY = 0x5513,
> + XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE = 0x5514,
[Severity: Low]
Should these four SR-IOV actions live in
drivers/gpu/drm/xe/abi/guc_actions_sriov_abi.h instead of the legacy
enum xe_guc_action?
All other 0x55xx SR-IOV actions (such as GUC_ACTION_VF2GUC_RESFIX_START)
are defined there with GUC_ACTION_* macros and HXG message layout
documentation. Placing these in guc_actions_abi.h splits the SR-IOV
action space across two headers and leaves their HXG wire formats
undocumented.
Also, the commit subject mentions only KLV definitions and omits these
four new GuC actions.
> diff --git a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> index d6fa69f154b3f..87f7f04cf4097 100644
> --- a/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_klvs_abi.h
[ ... ]
> @@ -70,11 +86,29 @@
> #define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_KEY 0x3003u
> #define GUC_KLV_GLOBAL_CFG_NUM_PAGING_ENGINE_INSTANCES_LEN 1u
>
> +#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_KEY 0x3004u
> +#define GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_LEN 1u
> +
> +#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_KEY 0x3005u
> +#define GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_LEN 1u
[Severity: Low]
Should xe_guc_klv_key_to_string() in xe_guc_klv_helpers.c also be
updated for the new Global Config KLVs (0x3004, 0x3005) and the PF
provisioning KLVs (0x0600, 0x0601)?
Once commit "drm/xe/pf: Enable VF Guc log and debug state capture" wires
0x0600 and 0x0601 into pf_push_vf_cfg_klvs(), xe_guc_klv_print() will
log them as (unknown) on errors and when CONFIG_DRM_XE_DEBUG_SRIOV is
enabled, unlike every other KLV pushed through pf_push_vf_buf_klvs().
The two Global Config KLVs are likewise unmapped alongside their sibling
Global Config entries.
> +
> /**
> * DOC: GuC Self Config KLVs
> *
> * `GuC KLV`_ keys available for use with HOST2GUC_SELF_CFG_.
> *
> + * _`GUC_KLV_SELF_CONFIG_DEBUG_STATE_CAPTURE_ENABLE` : 0x0600
> + * This KLV is configured only by PF to enable debug state capture for a
> + * specific VF during provisioning. When set, debug state capture is enabled
> + * for this VF and when cleared, debug state capture is disabled by default.
> + * This KLV is independent of GUC_KLV_OPT_IN_FEATURE_GUC_LOG_ENABLE and
> + * does not enable or disable GuC log access.
> + *
> + * _`GUC_KLV_SELF_CONFIG_GUC_LOG_ENABLE` : 0x0601
> + * This KLV is configured only by PF to enable GuC log access for a specific
> + * VF during provisioning. When set, GuC log access is enabled for this VF
> + * and when cleared, GuC log access is disabled by default.
[ ... ]
> +#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_KEY 0x0600u
> +#define GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_LEN 1u
> +
> +#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_KEY 0x0601u
> +#define GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_LEN 1u
[Severity: Low]
Should keys 0x0600 and 0x0601 be defined under DOC: GuC VF Configuration
KLVs with a GUC_KLV_VF_CFG_ prefix rather than under GuC Self Config
KLVs?
GUC_ACTION_HOST2GUC_SELF_CFG carries no VFID and can only configure the
calling function itself. As the comments state, these two keys are
configured only by the PF for a specific VF during provisioning and are
sent via GUC_ACTION_PF2GUC_UPDATE_VF_CFG (pf_push_vf_cfg_klvs() ->
guc_action_update_vf_cfg()).
In addition, the DOC anchors use GUC_KLV_SELF_CONFIG_* while the macros
use GUC_KLV_SELF_CFG_*. The comment for 0x0600 also references
GUC_KLV_OPT_IN_FEATURE_GUC_LOG_ENABLE, which does not exist in the tree
and appears to mean the 0x0601 GuC log enable KLV below it.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=3
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (2 preceding siblings ...)
2026-12-04 14:47 ` [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 15:50 ` sashiko-bot
2026-12-04 14:47 ` [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture Satyanarayana K V P
` (9 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
VF debug logging is supported starting with GuC 70.84.0. Gate the
feature on the GuC firmware version and keep it disabled on older
or unsupported versions.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
---
drivers/gpu/drm/xe/xe_gt_sriov_pf.c | 15 +++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h | 15 +++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h | 11 +++++++++++
3 files changed, 41 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
index 7868056841b3..d3564f567be7 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
@@ -17,6 +17,7 @@
#include "xe_gt_sriov_pf_policy.h"
#include "xe_gt_sriov_pf_service.h"
#include "xe_gt_sriov_printk.h"
+#include "xe_guc.h"
#include "xe_guc_submit.h"
#include "xe_mmio.h"
#include "xe_pm.h"
@@ -64,6 +65,17 @@ static void pf_fini_workers(struct xe_gt *gt)
}
}
+static void pf_check_vf_debug_support(struct xe_gt *gt)
+{
+ struct xe_guc *guc = >->uc.guc;
+
+ if (IS_SRIOV_PF(gt_to_xe(gt)) &&
+ !GUC_FIRMWARE_VER_AT_LEAST(guc, 70, 84, 0)) {
+ xe_gt_notice(gt, "VF Log needs GuC version >= 70.84.0\n");
+ gt->sriov.pf.vf_debug_log.disabled = true;
+ }
+}
+
/**
* xe_gt_sriov_pf_init_early - Prepare SR-IOV PF data structures on PF.
* @gt: the &xe_gt to initialize
@@ -105,6 +117,9 @@ static int pf_init_late(struct xe_gt *gt)
struct xe_device *xe = gt_to_xe(gt);
xe_gt_assert(gt, IS_SRIOV_PF(xe));
+
+ pf_check_vf_debug_support(gt);
+
return devm_add_action_or_reset(xe->drm.dev, pf_fini_action, gt);
}
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h
index 6af219d93c3b..4bd80ca94a73 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_helpers.h
@@ -32,4 +32,19 @@ static inline struct mutex *xe_gt_sriov_pf_master_mutex(struct xe_gt *gt)
return xe_sriov_pf_master_mutex(gt_to_xe(gt));
}
+/**
+ * xe_gt_sriov_pf_debug_log_supported - Report whether SR-IOV VF debug logging
+ * is supported or not.
+ * @gt: the PF &xe_gt
+ *
+ * Return: True if SR-IOV VF debug logging is supported, false otherwise.
+ */
+static inline bool xe_gt_sriov_pf_debug_log_supported(struct xe_gt *gt)
+{
+ struct xe_device *xe = gt_to_xe(gt);
+
+ xe_assert(xe, IS_SRIOV_PF(xe));
+ return !gt->sriov.pf.vf_debug_log.disabled;
+}
+
#endif
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
index 6296483c44ec..8d32da458f04 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
@@ -43,6 +43,15 @@ struct xe_gt_sriov_pf_workers {
struct work_struct restart;
};
+/** @vf_debug_log: VF debug log capture support */
+struct xe_gt_sriov_pf_debug_log_vf {
+ /**
+ * @vf_debug_log.disabled: flag indicating if debug logging support
+ * was turned off due to missing prerequisites.
+ */
+ bool disabled;
+};
+
/**
* struct xe_gt_sriov_pf - GT level PF virtualization data.
* @workers: workers data.
@@ -51,6 +60,7 @@ struct xe_gt_sriov_pf_workers {
* @policy: policy data.
* @spare: PF-only provisioning configuration.
* @vfs: metadata for all VFs.
+ * @vf_debug_log: VF debug log capture support.
*/
struct xe_gt_sriov_pf {
struct xe_gt_sriov_pf_workers workers;
@@ -59,6 +69,7 @@ struct xe_gt_sriov_pf {
struct xe_gt_sriov_pf_policy policy;
struct xe_gt_sriov_spare_config spare;
struct xe_gt_sriov_metadata *vfs;
+ struct xe_gt_sriov_pf_debug_log_vf vf_debug_log;
};
#endif
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions
2026-12-04 14:47 ` [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
@ 2026-12-04 15:50 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 15:50 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] drm/xe/pf: malformed kernel-doc on struct
xe_gt_sriov_pf_debug_log_vf
- [Low] drm/xe/pf: redundant check and xe_gt_notice() in
pf_check_vf_debug_support()
--
commit df13c16220858cfac4be0824fdff666584c2548c
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/pf: Enable VF debug logging only on supported GUC versions
This commit checks the GuC firmware version during PF late initialization
and disables VF debug logging when the version is older than 70.84.0.
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
> index 7868056841b3c..d3564f567be7f 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c
[ ... ]
> @@ -64,6 +65,17 @@ static void pf_fini_workers(struct xe_gt *gt)
> }
> }
>
> +static void pf_check_vf_debug_support(struct xe_gt *gt)
> +{
> + struct xe_guc *guc = >->uc.guc;
> +
> + if (IS_SRIOV_PF(gt_to_xe(gt)) &&
> + !GUC_FIRMWARE_VER_AT_LEAST(guc, 70, 84, 0)) {
> + xe_gt_notice(gt, "VF Log needs GuC version >= 70.84.0\n");
> + gt->sriov.pf.vf_debug_log.disabled = true;
> + }
> +}
[Severity: Low]
Is the runtime IS_SRIOV_PF() check needed here? The sole caller,
pf_init_late(), already enforces xe_gt_assert(gt, IS_SRIOV_PF(xe)), and
sibling helpers like pf_fini_workers() use xe_gt_assert() instead.
Also, should this log with xe_gt_sriov_notice() rather than xe_gt_notice()
so it carries the same SR-IOV prefix as the other messages in this file?
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
> index 6296483c44ec3..8d32da458f04a 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h
> @@ -43,6 +43,15 @@ struct xe_gt_sriov_pf_workers {
> struct work_struct restart;
> };
>
> +/** @vf_debug_log: VF debug log capture support */
> +struct xe_gt_sriov_pf_debug_log_vf {
> + /**
> + * @vf_debug_log.disabled: flag indicating if debug logging support
> + * was turned off due to missing prerequisites.
> + */
> + bool disabled;
> +};
[Severity: Low]
Will scripts/kernel-doc silently skip struct xe_gt_sriov_pf_debug_log_vf?
As a standalone struct it needs a multi-line "/**\n * struct ..." header
like struct xe_gt_sriov_pf_workers above it rather than single-line
member syntax.
The member tag should also be @disabled instead of @vf_debug_log.disabled,
otherwise scripts/kernel-doc -none -Werror (under CONFIG_DRM_XE_WERROR)
will reject it once the struct header is parsed.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=4
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (3 preceding siblings ...)
2026-12-04 14:47 ` [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 16:04 ` sashiko-bot
2026-12-04 14:47 ` [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers Satyanarayana K V P
` (8 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Starting with GuC 70.84.0, the PF can enable a VF's access to its GuC log
and debug state capture independently.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 30 ++++++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h | 4 +++
drivers/gpu/drm/xe/xe_sriov_pf_provision.c | 22 ++++++++++++++++
3 files changed, 56 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
index ee8054cca183..2235e0ea5ce8 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
@@ -192,6 +192,36 @@ static int pf_push_vf_cfg_dbs(struct xe_gt *gt, unsigned int vfid, u32 begin, u3
return pf_push_vf_cfg_klvs(gt, vfid, 2, klvs, ARRAY_SIZE(klvs));
}
+static int pf_push_vf_cfg_guc_log(struct xe_gt *gt, unsigned int vfid, u32 enable)
+{
+ u32 klvs[] = {
+ PREP_GUC_KLV_TAG(SELF_CFG_GUC_LOG_ENABLE),
+ enable,
+ };
+
+ return pf_push_vf_cfg_klvs(gt, vfid, 1, klvs, ARRAY_SIZE(klvs));
+}
+
+static int pf_push_vf_cfg_debug_state_capture(struct xe_gt *gt, unsigned int vfid, u32 enable)
+{
+ u32 klvs[] = {
+ PREP_GUC_KLV_TAG(SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE),
+ enable,
+ };
+
+ return pf_push_vf_cfg_klvs(gt, vfid, 1, klvs, ARRAY_SIZE(klvs));
+}
+
+int xe_gt_sriov_pf_cfg_vf_guc_log(struct xe_gt *gt, unsigned int vfid, bool enable)
+{
+ return pf_push_vf_cfg_guc_log(gt, vfid, enable);
+}
+
+int xe_gt_sriov_pf_cfg_vf_debug_state_capture(struct xe_gt *gt, unsigned int vfid, bool enable)
+{
+ return pf_push_vf_cfg_debug_state_capture(gt, vfid, enable);
+}
+
static int pf_push_vf_grp_cfg_u32(struct xe_gt *gt, unsigned int vfid,
u16 key, const u32 *values, u32 count)
{
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
index 0d45dc9672e7..97a84aab3c88 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
@@ -118,4 +118,8 @@ int xe_gt_sriov_pf_config_print_lmem(struct xe_gt *gt, struct drm_printer *p);
int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p);
+int xe_gt_sriov_pf_cfg_vf_guc_log(struct xe_gt *gt, unsigned int vfid, bool enable);
+int xe_gt_sriov_pf_cfg_vf_debug_state_capture(struct xe_gt *gt, unsigned int vfid,
+ bool enable);
+
#endif
diff --git a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
index 598fd77c230f..04f30cd00a6f 100644
--- a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
+++ b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
@@ -6,6 +6,7 @@
#include "xe_assert.h"
#include "xe_device.h"
#include "xe_gt_sriov_pf_config.h"
+#include "xe_gt_sriov_pf_helpers.h"
#include "xe_gt_sriov_pf_policy.h"
#include "xe_lmtt.h"
#include "xe_sriov.h"
@@ -33,6 +34,25 @@ static bool pf_auto_provisioning_mode(struct xe_device *xe)
return xe->sriov.pf.provision.mode == XE_SRIOV_PROVISIONING_MODE_AUTO;
}
+static int pf_config_guc_debug_logs(struct xe_gt *gt, unsigned int num_vfs, bool enable)
+{
+ unsigned int n;
+ int result = 0;
+ int err;
+
+ if (!xe_gt_sriov_pf_debug_log_supported(gt))
+ return 0;
+
+ for (n = 1; n <= num_vfs; n++) {
+ err = xe_gt_sriov_pf_cfg_vf_guc_log(gt, n, enable);
+ result = result ?: err;
+ err = xe_gt_sriov_pf_cfg_vf_debug_state_capture(gt, n, enable);
+ result = result ?: err;
+ }
+
+ return result;
+}
+
static int pf_provision_vfs(struct xe_device *xe, unsigned int num_vfs)
{
struct xe_gt *gt;
@@ -43,6 +63,8 @@ static int pf_provision_vfs(struct xe_device *xe, unsigned int num_vfs)
lockdep_assert_held(xe_sriov_pf_master_mutex(xe));
for_each_gt(gt, xe, id) {
+ err = pf_config_guc_debug_logs(gt, num_vfs, true);
+ result = result ?: err;
err = xe_gt_sriov_pf_config_set_fair_sched_locked(gt, num_vfs);
result = result ?: err;
err = xe_gt_sriov_pf_config_set_fair_locked(gt, VFID(1), num_vfs);
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture
2026-12-04 14:47 ` [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture Satyanarayana K V P
@ 2026-12-04 16:04 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 16:04 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 6 potential
issues to consider:
- [High] drm/xe/pf: VF GuC log and debug capture flags lost on reset and
refresh
- [Medium] drm/xe: VF GuC log and debug capture skipped in custom
provisioning mode
- [Medium] drm/xe: pf_config_guc_debug_logs() ignores errors causing
O(num_vfs) stalls
- [Low] drm/xe/pf: missing KLV strings in xe_guc_klv_key_to_string()
- [Low] drm/xe/pf: commit message omits driver changes and provisioning
rationale
- [Low] drm/xe/pf: inconsistent VF debug log config APIs and duplicated
KLV helper
--
commit 0b090a19c988011c03030db7e15b2913e2827252
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> drm/xe/pf: Enable VF Guc log and debug state capture
>
> Starting with GuC 70.84.0, the PF can enable a VF's access to its GuC log
> and debug state capture independently.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
[Severity: Low]
The commit message only mentions the GuC 70.84.0 capability and does not
describe what the patch implements or why both features are enabled
unconditionally together only during auto-provisioning rather than exposed
independently or handled in custom provisioning mode.
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> index 926f1e83bd79d..ff8cee414a0f4 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
> @@ -192,6 +192,36 @@ static int pf_push_vf_cfg_dbs(struct xe_gt *gt, unsigned int vfid, u32 begin, u3
> return pf_push_vf_cfg_klvs(gt, vfid, 2, klvs, ARRAY_SIZE(klvs));
> }
>
> +static int pf_push_vf_cfg_guc_log(struct xe_gt *gt, unsigned int vfid, u32 enable)
> +{
> + u32 klvs[] = {
> + PREP_GUC_KLV_TAG(SELF_CFG_GUC_LOG_ENABLE),
> + enable,
> + };
> +
> + return pf_push_vf_cfg_klvs(gt, vfid, 1, klvs, ARRAY_SIZE(klvs));
> +}
> +
> +static int pf_push_vf_cfg_debug_state_capture(struct xe_gt *gt, unsigned int vfid, u32 enable)
> +{
> + u32 klvs[] = {
> + PREP_GUC_KLV_TAG(SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE),
> + enable,
> + };
> +
> + return pf_push_vf_cfg_klvs(gt, vfid, 1, klvs, ARRAY_SIZE(klvs));
> +}
[Severity: Low]
Should GUC_KLV_SELF_CFG_GUC_LOG_ENABLE_KEY and
GUC_KLV_SELF_CFG_DEBUG_STATE_CAPTURE_ENABLE_KEY also be added to
xe_guc_klv_key_to_string()? Without entries there, pf_push_vf_buf_klvs()
prints both keys as "(unknown)" on push errors and under
CONFIG_DRM_XE_DEBUG_SRIOV.
> +
> +int xe_gt_sriov_pf_cfg_vf_guc_log(struct xe_gt *gt, unsigned int vfid, bool enable)
> +{
> + return pf_push_vf_cfg_guc_log(gt, vfid, enable);
> +}
> +
> +int xe_gt_sriov_pf_cfg_vf_debug_state_capture(struct xe_gt *gt, unsigned int vfid, bool enable)
> +{
> + return pf_push_vf_cfg_debug_state_capture(gt, vfid, enable);
> +}
[Severity: High]
Are these two settings lost across GT resets, PF suspend/resume, and VF
config refreshes?
Both functions push the KLVs straight to GuC without recording them in
struct xe_gt_sriov_config or serializing them in encode_config(). After a
GT reset or PF resume, GuC reloads with both KLVs reset to their default
disabled state, and xe_gt_sriov_pf_config_restart() ->
pf_push_full_vf_config() only re-pushes what encode_config() emits,
silently disabling VF GuC log and debug state capture for all VFs.
Any VF config refresh via pf_refresh_vf_cfg() (which calls
pf_send_vf_cfg_reset() before pf_push_full_vf_config()) and
xe_gt_sriov_pf_config_save() / xe_gt_sriov_pf_config_restore() drop both
settings the same way.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
> index 0d45dc9672e7b..97a84aab3c880 100644
> --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
> +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.h
> @@ -118,4 +118,8 @@ int xe_gt_sriov_pf_config_print_lmem(struct xe_gt *gt, struct drm_printer *p);
>
> int xe_gt_sriov_pf_config_print_available_ggtt(struct xe_gt *gt, struct drm_printer *p);
>
> +int xe_gt_sriov_pf_cfg_vf_guc_log(struct xe_gt *gt, unsigned int vfid, bool enable);
> +int xe_gt_sriov_pf_cfg_vf_debug_state_capture(struct xe_gt *gt, unsigned int vfid,
> + bool enable);
> +
> #endif
[Severity: Low]
This isn't a bug, but these declarations diverge from the conventions in
xe_gt_sriov_pf_config.h: every other public function uses the
xe_gt_sriov_pf_config_* prefix, has a kernel-doc comment, and either
acquires xe_gt_sriov_pf_master_mutex(gt) internally or carries a _locked
suffix with lockdep_assert_held() and PF/vfid assertions.
Also, pf_push_vf_cfg_guc_log() and pf_push_vf_cfg_debug_state_capture()
duplicate the existing pf_push_vf_cfg_u32() helper in
xe_gt_sriov_pf_config.c instead of reusing it.
> diff --git a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
> index 598fd77c230f6..04f30cd00a6fb 100644
> --- a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
> +++ b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
[ ... ]
> @@ -33,6 +34,25 @@ static bool pf_auto_provisioning_mode(struct xe_device *xe)
> return xe->sriov.pf.provision.mode == XE_SRIOV_PROVISIONING_MODE_AUTO;
> }
>
> +static int pf_config_guc_debug_logs(struct xe_gt *gt, unsigned int num_vfs, bool enable)
> +{
> + unsigned int n;
> + int result = 0;
> + int err;
> +
> + if (!xe_gt_sriov_pf_debug_log_supported(gt))
> + return 0;
> +
> + for (n = 1; n <= num_vfs; n++) {
> + err = xe_gt_sriov_pf_cfg_vf_guc_log(gt, n, enable);
> + result = result ?: err;
> + err = xe_gt_sriov_pf_cfg_vf_debug_state_capture(gt, n, enable);
> + result = result ?: err;
> + }
> +
> + return result;
> +}
[Severity: Medium]
Should this loop break on the first error?
xe_sriov_pf_provision_vfs() holds xe_sriov_pf_master_mutex(xe) across all
GTs, and each KLV push calls guc_ct_send_recv(), which waits up to HZ and
returns -ETIME without disabling the CT channel. If GuC is unresponsive,
continuing the loop causes 2 * num_vfs consecutive 1-second stalls per GT
(over 120 seconds with 63 VFs), blocking other PF SR-IOV operations and
risking hung-task warnings. Sibling bulk loops such as
xe_gt_sriov_pf_config_bulk_set_ggtt_locked() break immediately on error.
> @@ -43,6 +63,8 @@ static int pf_provision_vfs(struct xe_device *xe, unsigned int num_vfs)
> lockdep_assert_held(xe_sriov_pf_master_mutex(xe));
>
> for_each_gt(gt, xe, id) {
> + err = pf_config_guc_debug_logs(gt, num_vfs, true);
> + result = result ?: err;
> err = xe_gt_sriov_pf_config_set_fair_sched_locked(gt, num_vfs);
> result = result ?: err;
> err = xe_gt_sriov_pf_config_set_fair_locked(gt, VFID(1), num_vfs);
[Severity: Medium]
Can VFs provisioned in custom mode ever get GuC log or debug state capture
enabled?
pf_config_guc_debug_logs() is only called from pf_provision_vfs(), which
xe_sriov_pf_provision_vfs() skips whenever the PF is in
XE_SRIOV_PROVISIONING_MODE_CUSTOM (entered as soon as any PF policy or VF
quota is written via debugfs). There is also no PF interface to enable or
toggle the two features independently despite the commit message stating
independent control.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=5
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (4 preceding siblings ...)
2026-12-04 14:47 ` [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 16:31 ` sashiko-bot
2026-12-04 14:47 ` [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state " Satyanarayana K V P
` (7 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Query sizes of Guc log and debug state capture buffers during VF
initialization and allocate buffers for the same. A zero size
indicates that the PF did not enable the feature and so skip
allocation.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 43 +++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 4 ++
drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h | 12 ++++++
drivers/gpu/drm/xe/xe_guc_ads.c | 51 ++++++++++++++++++++++-
drivers/gpu/drm/xe/xe_guc_ads.h | 1 +
drivers/gpu/drm/xe/xe_guc_log.c | 46 +++++++++++++++++++-
drivers/gpu/drm/xe/xe_guc_log.h | 2 +
7 files changed, 157 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 60f1b29358f9..8bb01d7e41f9 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -1623,3 +1623,46 @@ int xe_gt_sriov_vf_wait_valid_ggtt(struct xe_gt *gt)
return atomic_read(>->sriov.vf.migration.fixups_complete_count);
}
+
+/**
+ * xe_gt_sriov_vf_guc_log_buff_size() - Get the size of the GuC log buffer.
+ * @gt: the &xe_gt
+ * @size: the &size of the GuC log buffer
+ *
+ * With size is zero means either it is not supported or not enabled by PF.
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_gt_sriov_vf_guc_log_buff_size(struct xe_gt *gt, u32 *size)
+{
+ int key = GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_KEY;
+
+ if (!xe_sriov_vf_debug_log_supported(gt_to_xe(gt))) {
+ *size = 0;
+ return 0;
+ }
+
+ return guc_action_query_single_klv32(>->uc.guc, key, size);
+}
+
+/**
+ * xe_gt_sriov_vf_guc_debug_state_capture_buff_size() - Get the size of the
+ * GuC debug state capture buffer.
+ * @gt: the &xe_gt
+ * @size: the &size of the GuC debug state capture buffer
+ *
+ * With size is zero means either it is not supported or not enabled by PF.
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_gt_sriov_vf_guc_debug_state_capture_buff_size(struct xe_gt *gt, u32 *size)
+{
+ int key = GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_KEY;
+
+ if (!xe_sriov_vf_debug_log_supported(gt_to_xe(gt))) {
+ *size = 0;
+ return 0;
+ }
+
+ return guc_action_query_single_klv32(>->uc.guc, key, size);
+}
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
index d171a8242a34..f4447319ac7e 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
@@ -43,4 +43,8 @@ int xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p);
int xe_gt_sriov_vf_wait_valid_ggtt(struct xe_gt *gt);
int xe_vf_migration_fixups_complete_count(struct xe_gt *gt);
+int xe_gt_sriov_vf_guc_log_buff_size(struct xe_gt *gt, u32 *size);
+int xe_gt_sriov_vf_guc_debug_state_capture_buff_size(struct xe_gt *gt,
+ u32 *size);
+
#endif
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h
index 466f0abd9c28..d495ddfec23a 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf_types.h
@@ -83,6 +83,16 @@ struct xe_gt_sriov_vf_migration {
bool ggtt_need_fixes;
};
+/**
+ * struct xe_gt_sriov_vf_debug_log - VF debug log configuration.
+ */
+struct xe_gt_sriov_vf_debug_log {
+ /** @guc_log_enabled: whether GuC log is enabled or not. */
+ bool guc_log_enabled;
+ /** @debug_state_capture_enabled: whether debug state capture is enabled or not. */
+ bool debug_state_capture_enabled;
+};
+
/**
* struct xe_gt_sriov_vf - GT level VF virtualization data.
*/
@@ -97,6 +107,8 @@ struct xe_gt_sriov_vf {
struct xe_gt_sriov_vf_runtime runtime;
/** @migration: migration data for the VF. */
struct xe_gt_sriov_vf_migration migration;
+ /** @debug_log: debug log configuration for the VF. */
+ struct xe_gt_sriov_vf_debug_log debug_log;
};
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index f333480f94e5..a4854d5a7080 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -434,6 +434,49 @@ static int calculate_waklv_size(struct xe_guc_ads *ads)
return SZ_4K;
}
+/**
+ * xe_guc_debug_capture_support() - Check if VF GuC debug state capture is
+ * supported
+ * @ads: the &ads
+ *
+ * Returns: true if VF GuC debug state capture is enabled, false otherwise.
+ */
+bool xe_guc_debug_capture_support(struct xe_guc_ads *ads)
+{
+ struct xe_gt *gt = ads_to_gt(ads);
+
+ return gt->sriov.vf.debug_log.debug_state_capture_enabled;
+}
+
+static u32 guc_capture_size(struct xe_guc_ads *ads)
+{
+ u32 size = xe_guc_capture_ads_input_worst_size(ads_to_guc(ads));
+ struct xe_gt *gt = ads_to_gt(ads);
+ int err;
+
+ if (!IS_SRIOV_VF(gt_to_xe(gt)))
+ return size;
+
+ gt->sriov.vf.debug_log.debug_state_capture_enabled = false;
+ err = xe_gt_sriov_vf_guc_debug_state_capture_buff_size(gt, &size);
+ if (err) {
+ xe_gt_err(gt, "Failed to query debug state capture size!\n");
+ size = 0;
+ goto out;
+ }
+
+ if (!size) {
+ xe_gt_notice(gt, "VF debug state capture is not enabled by PF\n");
+ goto out;
+ }
+
+ gt->sriov.vf.debug_log.debug_state_capture_enabled = true;
+ xe_gt_notice(gt, "VF GuC debug state capture buffer size: %u bytes\n", size);
+
+out:
+ return size;
+}
+
#define MAX_GOLDEN_LRC_SIZE (SZ_4K * 64)
int xe_guc_ads_init(struct xe_guc_ads *ads)
@@ -444,10 +487,13 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)
struct xe_bo *bo;
ads->golden_lrc_size = calculate_golden_lrc_size(ads);
- ads->capture_size = xe_guc_capture_ads_input_worst_size(ads_to_guc(ads));
+ ads->capture_size = guc_capture_size(ads);
ads->regset_size = calculate_regset_size(gt);
ads->ads_waklv_size = calculate_waklv_size(ads);
+ if (!ads->capture_size)
+ return 0;
+
bo = xe_managed_bo_create_pin_map(xe, tile, guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE,
XE_BO_FLAG_SYSTEM |
XE_BO_FLAG_GGTT |
@@ -459,6 +505,9 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)
ads->bo = bo;
+ if (IS_SRIOV_VF(xe))
+ return 0;
+
if (xe->info.has_usm) {
/*
* Allocate a separate BO for the HW fault ring (UM queues).
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.h b/drivers/gpu/drm/xe/xe_guc_ads.h
index 7a39f361cb17..9918fd615702 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.h
+++ b/drivers/gpu/drm/xe/xe_guc_ads.h
@@ -17,5 +17,6 @@ void xe_guc_ads_populate_minimal(struct xe_guc_ads *ads);
void xe_guc_ads_populate_post_load(struct xe_guc_ads *ads);
int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
bool enable_engine_reset);
+bool xe_guc_debug_capture_support(struct xe_guc_ads *ads);
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c
index 80d80393b05d..7625e07026a7 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.c
+++ b/drivers/gpu/drm/xe/xe_guc_log.c
@@ -812,14 +812,58 @@ void xe_guc_log_print_lfd(struct xe_guc_log *log, struct drm_printer *p)
xe_guc_log_snapshot_free(snapshot);
}
+/**
+ * xe_guc_log_vf_supported() - Check if VF GuC log is supported
+ * @log: &log
+ *
+ * Returns: true if VF GuC log is enabled, false otherwise.
+ */
+bool xe_guc_log_vf_supported(struct xe_guc_log *log)
+{
+ struct xe_gt *gt = log_to_gt(log);
+
+ return gt->sriov.vf.debug_log.guc_log_enabled;
+}
+
+static size_t guc_log_size(struct xe_gt *gt)
+{
+ u32 size = GUC_LOG_SIZE;
+ int err;
+
+ if (!IS_SRIOV_VF(gt_to_xe(gt)))
+ return size;
+
+ gt->sriov.vf.debug_log.guc_log_enabled = false;
+ err = xe_gt_sriov_vf_guc_log_buff_size(gt, &size);
+ if (err) {
+ xe_gt_err(gt, "Failed to query Guc log size!\n");
+ size = 0;
+ goto out;
+ }
+
+ if (!size) {
+ xe_gt_notice(gt, "VF GuC log not enabled by PF\n");
+ goto out;
+ }
+
+ gt->sriov.vf.debug_log.guc_log_enabled = true;
+ xe_gt_notice(gt, "VF Guc log size is %u\n", size);
+out:
+ return size;
+}
+
int xe_guc_log_init(struct xe_guc_log *log)
{
struct xe_device *xe = log_to_xe(log);
struct xe_gt *gt = log_to_gt(log);
struct xe_tile *tile = gt_to_tile(gt);
+ size_t size = guc_log_size(gt);
struct xe_bo *bo;
- bo = xe_managed_bo_create_pin_map(xe, tile, GUC_LOG_SIZE,
+ if (!size)
+ return 0;
+
+ bo = xe_managed_bo_create_pin_map(xe, tile, size,
XE_BO_FLAG_SYSTEM |
XE_BO_FLAG_GGTT |
XE_BO_FLAG_GGTT_INVALIDATE |
diff --git a/drivers/gpu/drm/xe/xe_guc_log.h b/drivers/gpu/drm/xe/xe_guc_log.h
index bb6415271e5f..e0e63b0fc659 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.h
+++ b/drivers/gpu/drm/xe/xe_guc_log.h
@@ -81,4 +81,6 @@ bool xe_guc_check_log_buf_overflow(struct xe_guc_log *log,
enum guc_log_type type,
unsigned int full_cnt);
+bool xe_guc_log_vf_supported(struct xe_guc_log *log);
+
#endif
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers
2026-12-04 14:47 ` [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers Satyanarayana K V P
@ 2026-12-04 16:31 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 16:31 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 6 potential
issues to consider:
- [High] drm/xe: unguarded gt->sriov.vf union read in VF debug/log
helpers
- [High] drm/xe: unaligned VF GuC log size triggers BUG_ON in
xe_guc_log_init()
- [Medium] drm/xe: VF capture BO over-allocated and unzeroed in
xe_guc_ads_init()
- [Medium] drm/xe: uninitialized VF ads->bo mapped to GGTT in
xe_guc_ads_init()
- [Medium] drm/xe: 32-bit overflow in PAGE_ALIGN() in
guc_ads_capture_size()
- [Medium] drm/xe: signed int overflow in xe_guc_log_snapshot_capture()
--
commit ed04b7320e3205eaeb1e90354391eab392dd317d
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/vf: Query and allocate VF GuC log and debug capture buffers
This commit adds VF helpers to query the GuC log and debug state capture
buffer sizes from the PF and uses them to allocate the corresponding
buffers in xe_guc_log_init() and xe_guc_ads_init().
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
> index 4b7d423e715ca..1cce54cc711d4 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
> @@ -446,6 +446,49 @@ static int calculate_waklv_size(struct xe_guc_ads *ads)
> return SZ_4K;
> }
>
> +/**
> + * xe_guc_debug_capture_support() - Check if VF GuC debug state capture is
> + * supported
> + * @ads: the &ads
> + *
> + * Returns: true if VF GuC debug state capture is enabled, false otherwise.
> + */
> +bool xe_guc_debug_capture_support(struct xe_guc_ads *ads)
> +{
> + struct xe_gt *gt = ads_to_gt(ads);
> +
> + return gt->sriov.vf.debug_log.debug_state_capture_enabled;
> +}
[Severity: High]
Can xe_guc_debug_capture_support() and xe_guc_log_vf_supported() read
aliased PF state when called on a non-VF device?
gt->sriov is a union of pf and vf, so reading gt->sriov.vf.debug_log
without checking IS_SRIOV_VF(gt_to_xe(gt)) performs an unlocked read of
live PF fields on a PF and can return true. Later in this series,
devcoredump_snapshot() calls xe_guc_log_vf_supported() unconditionally on
PF devices, which can then run xe_guc_log_vf_request_snapshot() on a PF
and lock the uninitialized vf_log_capture_lock mutex.
Returning false when !IS_SRIOV_VF(gt_to_xe(gt)) in both helpers (and
reflecting VF-only scope in xe_guc_debug_capture_support()'s name) would
avoid the union aliasing.
> +
> +static u32 guc_capture_size(struct xe_guc_ads *ads)
> +{
> + u32 size = xe_guc_capture_ads_input_worst_size(ads_to_guc(ads));
> + struct xe_gt *gt = ads_to_gt(ads);
> + int err;
> +
> + if (!IS_SRIOV_VF(gt_to_xe(gt)))
> + return size;
> +
> + gt->sriov.vf.debug_log.debug_state_capture_enabled = false;
> + err = xe_gt_sriov_vf_guc_debug_state_capture_buff_size(gt, &size);
> + if (err) {
> + xe_gt_err(gt, "Failed to query debug state capture size!\n");
> + size = 0;
> + goto out;
> + }
> +
> + if (!size) {
> + xe_gt_notice(gt, "VF debug state capture is not enabled by PF\n");
> + goto out;
> + }
> +
> + gt->sriov.vf.debug_log.debug_state_capture_enabled = true;
> + xe_gt_notice(gt, "VF GuC debug state capture buffer size: %u bytes\n", size);
> +
> +out:
> + return size;
> +}
[Severity: Medium]
Can an unchecked capture buffer size from GuC overflow PAGE_ALIGN() in
guc_ads_capture_size()?
drivers/gpu/drm/xe/xe_guc_ads.c:guc_ads_capture_size() {
return PAGE_ALIGN(ads->capture_size);
}
Because ads->capture_size is a u32, PAGE_ALIGN() evaluates in 32-bit
arithmetic and wraps values above U32_MAX - (PAGE_SIZE - 1) to 0.
xe_guc_ads_init() then allocates ads->bo with 0 bytes for capture while
leaving ads->capture_size near 4 GiB and debug_state_capture_enabled set.
Validating an upper bound on size in guc_capture_size() would prevent
this wrap.
[ ... ]
> @@ -456,10 +499,13 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)
> struct xe_bo *bo;
>
> ads->golden_lrc_size = calculate_golden_lrc_size(ads);
> - ads->capture_size = xe_guc_capture_ads_input_worst_size(ads_to_guc(ads));
> + ads->capture_size = guc_capture_size(ads);
> ads->regset_size = calculate_regset_size(gt);
> ads->ads_waklv_size = calculate_waklv_size(ads);
>
> + if (!ads->capture_size)
> + return 0;
> +
> bo = xe_managed_bo_create_pin_map(xe, tile, guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE,
> XE_BO_FLAG_SYSTEM |
> XE_BO_FLAG_GGTT |
[Severity: Medium]
Does reusing xe_guc_ads_init() over-allocate VF GGTT and pinned RAM for
the VF debug state capture buffer?
On a VF, guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE adds at least 256 KiB
plus unused PF ADS headers, golden LRC, regset, and WA KLV space per GT,
which can exhaust tight PF-provisioned VF GGTT budgets and makes
xe_bo_size(ads->bo) disagree with ads->capture_size.
Also, gating BO allocation on !ads->capture_size unconditionally skips
ads->bo on native and PF devices where xe_guc_ads_populate_minimal()
expects it to be non-NULL. Restricting the zero-size skip to
IS_SRIOV_VF(xe) and allocating only the validated capture size for VFs
would avoid both issues.
[ ... ]
> @@ -471,6 +517,9 @@ int xe_guc_ads_init(struct xe_guc_ads *ads)
>
> ads->bo = bo;
>
> + if (IS_SRIOV_VF(xe))
> + return 0;
> +
[Severity: Medium]
Is ads->bo left uninitialized when mapped into the GGTT on a VF?
ttm_tt_create() does not zero-allocate ttm_bo_type_kernel BOs, and VFs
never call xe_guc_ads_populate*(). Without an xe_map_memset() here like
xe_guc_log_init() does, stale guest memory is exposed to the GPU/GuC/PF
and remains in unwritten parts of the capture buffer and its header.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c
> index 80d80393b05db..7625e07026a7d 100644
> --- a/drivers/gpu/drm/xe/xe_guc_log.c
> +++ b/drivers/gpu/drm/xe/xe_guc_log.c
[ ... ]
> +static size_t guc_log_size(struct xe_gt *gt)
> +{
> + u32 size = GUC_LOG_SIZE;
> + int err;
> +
> + if (!IS_SRIOV_VF(gt_to_xe(gt)))
> + return size;
> +
> + gt->sriov.vf.debug_log.guc_log_enabled = false;
> + err = xe_gt_sriov_vf_guc_log_buff_size(gt, &size);
> + if (err) {
> + xe_gt_err(gt, "Failed to query Guc log size!\n");
> + size = 0;
> + goto out;
> + }
> +
> + if (!size) {
> + xe_gt_notice(gt, "VF GuC log not enabled by PF\n");
> + goto out;
> + }
> +
> + gt->sriov.vf.debug_log.guc_log_enabled = true;
> + xe_gt_notice(gt, "VF Guc log size is %u\n", size);
> +out:
> + return size;
> +}
[Severity: Medium]
Can an unbounded VF GuC log size trigger a signed int overflow in
xe_guc_log_snapshot_capture()?
drivers/gpu/drm/xe/xe_guc_log.c:xe_guc_log_snapshot_capture() {
...
for (i = 0; i < snapshot->num_chunks; i++) {
size_t size = min(GUC_LOG_CHUNK_SIZE, remain);
xe_map_memcpy_from(xe, snapshot->copy[i], &log->bo->vmap,
i * GUC_LOG_CHUNK_SIZE, size);
...
}
Both i and GUC_LOG_CHUNK_SIZE (SZ_2M) are signed 32-bit ints. If GuC
reports a log size above 2 GiB, i * GUC_LOG_CHUNK_SIZE overflows at
i == 1024 and sign-extends to a huge size_t offset in
xe_map_memcpy_from(), causing an out-of-bounds read.
Enforcing an upper bound in guc_log_size() and using size_t for the
offset calculation would prevent this.
> +
> int xe_guc_log_init(struct xe_guc_log *log)
> {
> struct xe_device *xe = log_to_xe(log);
> struct xe_gt *gt = log_to_gt(log);
> struct xe_tile *tile = gt_to_tile(gt);
> + size_t size = guc_log_size(gt);
> struct xe_bo *bo;
>
> - bo = xe_managed_bo_create_pin_map(xe, tile, GUC_LOG_SIZE,
> + if (!size)
> + return 0;
> +
> + bo = xe_managed_bo_create_pin_map(xe, tile, size,
> XE_BO_FLAG_SYSTEM |
[Severity: High]
Can an unaligned VF GuC log size panic the kernel in
drm_gem_private_object_init()?
xe_guc_log_init() passes the raw KLV byte count directly to
xe_managed_bo_create_pin_map(). For ttm_bo_type_kernel system BOs,
xe_bo_init_locked() passes size unchanged to
drm_gem_private_object_init(), which runs:
drivers/gpu/drm/drm_gem.c:drm_gem_private_object_init() {
...
BUG_ON((size & (PAGE_SIZE - 1)) != 0);
...
}
On 16 KiB or 64 KiB page kernels (or if GuC reports any size not aligned
to PAGE_SIZE), this panics during VF probe. Checking alignment or
safely aligning size in size_t before allocation would avoid the crash.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=6
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state capture buffers
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (5 preceding siblings ...)
2026-12-04 14:47 ` [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 17:04 ` sashiko-bot
2026-12-04 14:47 ` [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup Satyanarayana K V P
` (6 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Register the VF GuC log and debug state capture buffers with Guc so that
GuC can copy logs when required.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 29 +++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 3 +++
drivers/gpu/drm/xe/xe_guc_ads.c | 20 ++++++++++++++++++++
drivers/gpu/drm/xe/xe_guc_ads.h | 1 +
drivers/gpu/drm/xe/xe_guc_log.c | 20 ++++++++++++++++++++
drivers/gpu/drm/xe/xe_guc_log.h | 1 +
drivers/gpu/drm/xe/xe_uc.c | 10 ++++++++++
7 files changed, 84 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 8bb01d7e41f9..8beee87b15b8 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -1666,3 +1666,32 @@ int xe_gt_sriov_vf_guc_debug_state_capture_buff_size(struct xe_gt *gt, u32 *size
return guc_action_query_single_klv32(>->uc.guc, key, size);
}
+
+/**
+ * xe_gt_sriov_vf_register_guc_log_buff() - Register GuC log buffer for VF
+ * @gt: the &xe_gt
+ * @addr: the address of the GuC log buffer
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_gt_sriov_vf_register_guc_log_buff(struct xe_gt *gt, u64 addr)
+{
+ return xe_guc_self_cfg64(>->uc.guc,
+ GUC_KLV_SELF_CFG_H2G_GUC_LOG_BUFF_ADDR_KEY,
+ addr);
+}
+
+/**
+ * xe_gt_sriov_vf_register_debug_state_capt_buff() - Register the GuC debug
+ * state capture buffer for VF
+ * @gt: the &xe_gt
+ * @addr: the address of the GuC debug state capture buffer
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_gt_sriov_vf_register_debug_state_capt_buff(struct xe_gt *gt, u64 addr)
+{
+ return xe_guc_self_cfg64(>->uc.guc,
+ GUC_KLV_SELF_CFG_H2G_DEBUG_STATE_CAPT_BUFF_ADDR_KEY,
+ addr);
+}
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
index f4447319ac7e..438001713681 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h
@@ -46,5 +46,8 @@ int xe_vf_migration_fixups_complete_count(struct xe_gt *gt);
int xe_gt_sriov_vf_guc_log_buff_size(struct xe_gt *gt, u32 *size);
int xe_gt_sriov_vf_guc_debug_state_capture_buff_size(struct xe_gt *gt,
u32 *size);
+int xe_gt_sriov_vf_register_guc_log_buff(struct xe_gt *gt, u64 addr);
+int xe_gt_sriov_vf_register_debug_state_capt_buff(struct xe_gt *gt,
+ u64 addr);
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index a4854d5a7080..144eb83f2b98 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -1194,3 +1194,23 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
return guc_ads_action_update_policies(ads, xe_guc_buf_flush(buf));
}
+
+/**
+ * xe_guc_ads_capture_init_vf() - Initialize the GuC debug state capture buffer for a VF.
+ * @ads: Additional data structures object
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_guc_ads_capture_init_vf(struct xe_guc_ads *ads)
+{
+ struct xe_device *xe = ads_to_xe(ads);
+ struct xe_gt *gt = ads_to_gt(ads);
+ struct xe_bo *bo = ads->bo;
+
+ xe_gt_assert(gt, IS_SRIOV_VF(xe));
+
+ if (!xe_guc_debug_capture_support(ads))
+ return 0;
+
+ return xe_gt_sriov_vf_register_debug_state_capt_buff(gt, xe_bo_ggtt_addr(bo));
+}
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.h b/drivers/gpu/drm/xe/xe_guc_ads.h
index 9918fd615702..ea5f6912b351 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.h
+++ b/drivers/gpu/drm/xe/xe_guc_ads.h
@@ -18,5 +18,6 @@ void xe_guc_ads_populate_post_load(struct xe_guc_ads *ads);
int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
bool enable_engine_reset);
bool xe_guc_debug_capture_support(struct xe_guc_ads *ads);
+int xe_guc_ads_capture_init_vf(struct xe_guc_ads *ads);
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c
index 7625e07026a7..0ed905c739dd 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.c
+++ b/drivers/gpu/drm/xe/xe_guc_log.c
@@ -915,3 +915,23 @@ bool xe_guc_check_log_buf_overflow(struct xe_guc_log *log, enum guc_log_type typ
return overflow;
}
+
+/**
+ * xe_guc_log_init_vf() - Initialize the GuC log for a VF.
+ * @log: The log object.
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_guc_log_init_vf(struct xe_guc_log *log)
+{
+ struct xe_device *xe = log_to_xe(log);
+ struct xe_gt *gt = log_to_gt(log);
+ struct xe_bo *bo = log->bo;
+
+ xe_gt_assert(gt, IS_SRIOV_VF(xe));
+
+ if (!xe_guc_log_vf_supported(log))
+ return 0;
+
+ return xe_gt_sriov_vf_register_guc_log_buff(gt, xe_bo_ggtt_addr(bo));
+}
diff --git a/drivers/gpu/drm/xe/xe_guc_log.h b/drivers/gpu/drm/xe/xe_guc_log.h
index e0e63b0fc659..225e2e274cf4 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.h
+++ b/drivers/gpu/drm/xe/xe_guc_log.h
@@ -82,5 +82,6 @@ bool xe_guc_check_log_buf_overflow(struct xe_guc_log *log,
unsigned int full_cnt);
bool xe_guc_log_vf_supported(struct xe_guc_log *log);
+int xe_guc_log_init_vf(struct xe_guc_log *log);
#endif
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index ff13f6e6ccb6..d2e863d457b7 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -14,7 +14,9 @@
#include "xe_gt_printk.h"
#include "xe_gt_sriov_vf.h"
#include "xe_guc.h"
+#include "xe_guc_ads.h"
#include "xe_guc_ct.h"
+#include "xe_guc_log.h"
#include "xe_guc_pc.h"
#include "xe_guc_rc.h"
#include "xe_guc_engine_activity.h"
@@ -298,6 +300,14 @@ static int vf_uc_load_hw(struct xe_uc *uc)
if (err)
return err;
+ err = xe_guc_log_init_vf(&uc->guc.log);
+ if (err)
+ return err;
+
+ err = xe_guc_ads_capture_init_vf(&uc->guc.ads);
+ if (err)
+ return err;
+
return 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state capture buffers
2026-12-04 14:47 ` [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state " Satyanarayana K V P
@ 2026-12-04 17:04 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 17:04 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] drm/xe/vf: unzeroed, over-allocated ads->bo in
xe_guc_ads_init()
- [Medium] drm/xe/vf: xe_guc_ads_capture_init_vf() registers unzeroed
oversized ads->bo
- [Medium] drm/xe: 32-bit PAGE_ALIGN() overflow in
guc_ads_capture_size() on VF
- [Medium] drm/xe: vf_uc_load_hw() treats optional VF debug buffer
failures as fatal
- [Medium] drm/xe: unlocked GuC MMIO and GGTT reads race in
vf_uc_load_hw()
--
commit 7024ffdee54876cf009415bddb46a20639b5f1de
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/vf: Register VF GuC log and debug state capture buffers
This commit adds VF helpers to register the GuC log and debug state capture
buffers with GuC via self-configuration KLVs and invokes them from
vf_uc_load_hw().
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
> index 1cce54cc711d4..e6d7833ea8b91 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
> @@ -1206,3 +1206,23 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
>
> return guc_ads_action_update_policies(ads, xe_guc_buf_flush(buf));
> }
> +
> +/**
> + * xe_guc_ads_capture_init_vf() - Initialize the GuC debug state capture buffer for a VF.
> + * @ads: Additional data structures object
> + *
> + * Return: 0 on success, or a negative error code on failure.
> + */
> +int xe_guc_ads_capture_init_vf(struct xe_guc_ads *ads)
> +{
> + struct xe_device *xe = ads_to_xe(ads);
> + struct xe_gt *gt = ads_to_gt(ads);
> + struct xe_bo *bo = ads->bo;
> +
> + xe_gt_assert(gt, IS_SRIOV_VF(xe));
> +
> + if (!xe_guc_debug_capture_support(ads))
> + return 0;
> +
> + return xe_gt_sriov_vf_register_debug_state_capt_buff(gt, xe_bo_ggtt_addr(bo));
> +}
[Severity: Medium]
Does xe_guc_ads_capture_init_vf() register an unzeroed and over-allocated
ads->bo with GuC?
xe_guc_ads_init() allocates ads->bo with xe_managed_bo_create_pin_map()
(a ttm_bo_type_kernel BO, which does not set TTM_TT_FLAG_ZERO_ALLOC) and
returns early on VF without calling xe_map_memset(). Since neither
xe_guc_ads_populate() nor xe_guc_ads_populate_minimal() runs on VF, stale
kernel pages are exposed to GuC and later capture readers. It also
allocates guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE, wasting over 256 KiB of
pinned system memory and GGTT space per GT on native ADS sections that VFs
do not use.
[Severity: Medium]
Should the VF debug state capture output buffer be separated from
guc->ads.bo and cleared on load and reset?
Overloading guc->ads.bo breaks the invariant that ads->bo is NULL on VFs,
ties the allocation to PF-only ADS headers, regsets, WAKLV, and
MAX_GOLDEN_LRC_SIZE (over 264 KiB of wasted pinned RAM and PF-partitioned
VF GGTT per GT), and leaves struct guc_debug_snapshot_buffer_state_vf at
offset 0 uninitialized on first load or stale across GT resets and resumes
when vf_uc_load_hw() re-registers the buffer. Keeping a dedicated BO in
xe_guc_capture sized to PAGE_ALIGN(size) and zeroed on init and reset would
avoid both issues.
[Severity: Medium]
Can guc_ads_capture_size() overflow in 32-bit arithmetic and cause
xe_guc_ads_capture_init_vf() to register an undersized BO with GuC?
guc_capture_size() stores the GuC-reported capture buffer size directly
into u32 ads->capture_size without an upper-bound check. In
guc_ads_capture_size(), PAGE_ALIGN(ads->capture_size) is evaluated in
32-bit arithmetic, so any value above 0xfffff000 wraps to 0 while
if (!ads->capture_size) in xe_guc_ads_init() still passes. Registering
the resulting undersized ads->bo risks out-of-bounds GGTT DMA writes from
GuC into adjacent VF kernel buffers.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
> index ff13f6e6ccb66..d2e863d457b7f 100644
> --- a/drivers/gpu/drm/xe/xe_uc.c
> +++ b/drivers/gpu/drm/xe/xe_uc.c
[ ... ]
> @@ -298,6 +300,14 @@ static int vf_uc_load_hw(struct xe_uc *uc)
> if (err)
> return err;
>
> + err = xe_guc_log_init_vf(&uc->guc.log);
> + if (err)
> + return err;
> +
> + err = xe_guc_ads_capture_init_vf(&uc->guc.ads);
> + if (err)
> + return err;
> +
> return 0;
> }
[Severity: Medium]
Should failures from xe_guc_log_init_vf() and xe_guc_ads_capture_init_vf()
be fatal to vf_uc_load_hw()?
vf_uc_load_hw() is called during VF probe, system resume, and GT reset
recovery (gt_reset_worker() -> vf_gt_restart()), where any non-zero error
permanently wedges the device via xe_wedge_declare(). Because
guc_log_enabled and debug_state_capture_enabled are cached once at probe
and never re-queried, a PF reset or VF migration to a PF without VF debug
logging enabled can cause GuC to reject the HOST2GUC_SELF_CFG registration
with an error such as -ENOKEY or -ENXIO.
Logging the failure and clearing the corresponding VF debug flag instead of
returning the error would match how guc_log_size() and guc_capture_size()
already treat optional VF debug buffer errors. Also, since these helpers
re-register buffers on every reset and resume rather than doing one-time SW
init, a register/enable-oriented name would be clearer.
[Severity: Medium]
Can xe_guc_log_init_vf() and xe_guc_ads_capture_init_vf() race with
vf_post_migration_recovery() or gt_reset_worker() on the unlocked GuC MMIO
scratch registers and GGTT addresses?
Both helpers run after xe_guc_enable_communication() has enabled memirq and
CT, while xe_gt_init() and xe_gt_resume() execute outside gt->ordered_wq:
CPU0 (xe_gt_init / xe_gt_resume) CPU1 (gt->ordered_wq)
vf_uc_load_hw()
xe_guc_enable_communication()
...
xe_guc_log_init_vf()
addr = xe_bo_ggtt_addr(bo)
vf_post_migration_recovery()
vf_post_migration_resfix_start()
xe_guc_mmio_send_recv()
xe_guc_self_cfg64(..., addr)
xe_guc_mmio_send_recv() <-- races on VF_SW_FLAG(0..3)
vf_post_migration_fixups()
xe_ggtt_shift_nodes()
xe_guc_mmio_send_recv() writes and polls VF_SW_FLAG(0..3) or
MED_VF_SW_FLAG(0..3) without locking, so concurrent MMIO requests from
vf_post_migration_recovery() (or from gt_reset_worker() triggered by a G2H
fault during xe_gt_init()) can corrupt HxG requests and replies. In
addition, sampling xe_bo_ggtt_addr(bo) without synchronizing against
xe_ggtt_shift_nodes() can register a stale pre-migration GGTT address with
the post-migration GuC.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=7
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (6 preceding siblings ...)
2026-12-04 14:47 ` [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state " Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 17:30 ` sashiko-bot
2026-12-04 14:47 ` [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture Satyanarayana K V P
` (5 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Initialize VF GuC log and debug capture resources as part of GuC
initialization, so their buffers are ready before the VF GuC load path
registers them.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
---
drivers/gpu/drm/xe/xe_guc.c | 73 ++++++++++---
drivers/gpu/drm/xe/xe_guc_ct.c | 3 +
drivers/gpu/drm/xe/xe_guc_debugfs.c | 35 +++++++
drivers/gpu/drm/xe/xe_guc_log.c | 143 +++++++++++++++++++++++++-
drivers/gpu/drm/xe/xe_guc_log.h | 5 +-
drivers/gpu/drm/xe/xe_guc_log_types.h | 6 ++
6 files changed, 248 insertions(+), 17 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index b0d8cc35de62..7af24e557f2b 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -260,10 +260,31 @@ static void guc_print_params(struct xe_guc *guc)
xe_gt_dbg(gt, "GuC param[%2d] = 0x%08x\n", i, params[i]);
}
+static void guc_init_params_vf(struct xe_guc *guc)
+{
+ bool debug_capt_en = xe_guc_debug_capture_support(&guc->ads);
+ bool guc_log_en = xe_guc_log_vf_supported(&guc->log);
+ u32 *params = guc->params;
+
+ params[GUC_CTL_LOG_PARAMS] = guc_log_en ? guc_ctl_log_params_flags(guc) : 0;
+ params[GUC_CTL_DEBUG] = guc_log_en ? guc_ctl_debug_flags(guc) : 0;
+ params[GUC_CTL_ADS] = debug_capt_en ? guc_ctl_ads_flags(guc) : 0;
+ params[GUC_CTL_FEATURE] = 0;
+ params[GUC_CTL_WA] = 0;
+ params[GUC_CTL_DEVID] = guc_ctl_devid(guc);
+
+ guc_print_params(guc);
+}
+
static void guc_init_params(struct xe_guc *guc)
{
u32 *params = guc->params;
+ if (IS_SRIOV_VF(guc_to_xe(guc))) {
+ guc_init_params_vf(guc);
+ return;
+ }
+
params[GUC_CTL_LOG_PARAMS] = guc_ctl_log_params_flags(guc);
params[GUC_CTL_FEATURE] = 0;
params[GUC_CTL_DEBUG] = guc_ctl_debug_flags(guc);
@@ -796,6 +817,44 @@ int xe_guc_init_noalloc(struct xe_guc *guc)
return ret;
}
+static int guc_init_vf(struct xe_guc *guc)
+{
+ struct xe_device *xe = guc_to_xe(guc);
+ struct xe_gt *gt = guc_to_gt(guc);
+ int ret;
+
+ xe_gt_assert(gt, IS_SRIOV_VF(xe));
+
+ ret = devm_add_action_or_reset(xe->drm.dev, vf_guc_fini_hw, guc);
+ if (ret)
+ goto out;
+
+ xe_sriov_vf_debug_log_init_early(xe);
+
+ ret = xe_guc_log_init(&guc->log);
+ if (ret)
+ goto out;
+
+ ret = xe_guc_capture_init(guc);
+ if (ret)
+ goto out;
+
+ ret = xe_guc_ads_init(&guc->ads);
+ if (ret)
+ goto out;
+
+ ret = xe_guc_ct_init(&guc->ct);
+ if (ret)
+ goto out;
+
+ guc_init_params(guc);
+
+ return 0;
+out:
+ xe_log_err(gt, GUC, ret, "Initialization error\n");
+ return ret;
+}
+
int xe_guc_init(struct xe_guc *guc)
{
struct xe_device *xe = guc_to_xe(guc);
@@ -826,18 +885,8 @@ int xe_guc_init(struct xe_guc *guc)
xe_gt_notice(gt, "indirect ring state requires WA in GuC submit ver 1.26+\n");
}
- if (IS_SRIOV_VF(xe)) {
- ret = devm_add_action_or_reset(xe->drm.dev, vf_guc_fini_hw, guc);
- if (ret)
- goto out;
-
- xe_sriov_vf_debug_log_init_early(xe);
-
- ret = xe_guc_ct_init(&guc->ct);
- if (ret)
- goto out;
- return 0;
- }
+ if (IS_SRIOV_VF(xe))
+ return guc_init_vf(guc);
ret = xe_guc_log_init(&guc->log);
if (ret)
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 121955ac4abf..3cc1851b96ad 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -1863,6 +1863,9 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
case XE_GUC_ACTION_NOTIFY_FLUSH_LOG_BUFFER_TO_FILE:
/* FIXME: Handle this */
break;
+ case XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY:
+ ret = xe_guc_log_vf_handler(&guc->log, payload, adj_len);
+ break;
case XE_GUC_ACTION_NOTIFY_MEMORY_CAT_ERROR:
ret = xe_guc_exec_queue_memory_cat_error_handler(guc, payload,
adj_len);
diff --git a/drivers/gpu/drm/xe/xe_guc_debugfs.c b/drivers/gpu/drm/xe/xe_guc_debugfs.c
index 2f23119686d4..bc5f10a34236 100644
--- a/drivers/gpu/drm/xe/xe_guc_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_guc_debugfs.c
@@ -5,6 +5,8 @@
#include "xe_guc_debugfs.h"
+#include <linux/zstd.h>
+
#include <drm/drm_debugfs.h>
#include <drm/drm_managed.h>
@@ -104,6 +106,35 @@ static int guc_pc(struct xe_guc *guc, struct drm_printer *p)
return 0;
}
+static int guc_log_vf(struct xe_guc *guc, struct drm_printer *p)
+{
+ struct seq_file *m = p->arg;
+ size_t size;
+ char *buf;
+
+ size = xe_guc_log_vf_size(&guc->log);
+ if (!size) {
+ drm_printf(p, "GuC log capture from VF is not supported / disabled by PF!!!\n");
+ return 0;
+ }
+
+ if (IS_ENABLED(CONFIG_DRM_XE_COMPRESS_DUMP))
+ size = max(size, zstd_compress_bound(size));
+
+ if (seq_get_buf(m, &buf) <= size) {
+ seq_commit(m, -1);
+ return 0;
+ }
+
+ xe_guc_log_vf_print(&guc->log, p);
+
+ return 0;
+}
+
+static const struct drm_info_list vf_only_debugfs_list[] = {
+ { "guc_log", .show = guc_debugfs_show, .data = guc_log_vf },
+};
+
/*
* only for GuC debugfs files which can be safely used on the VF as well:
* - without access to the GuC privileged registers
@@ -144,5 +175,9 @@ void xe_guc_debugfs_register(struct xe_guc *guc, struct dentry *parent)
drm_debugfs_create_files(slpc_debugfs_list,
ARRAY_SIZE(slpc_debugfs_list),
parent, minor);
+ } else {
+ drm_debugfs_create_files(vf_only_debugfs_list,
+ ARRAY_SIZE(vf_only_debugfs_list),
+ parent, minor);
}
}
diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c
index 0ed905c739dd..e2cf275b7fd7 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.c
+++ b/drivers/gpu/drm/xe/xe_guc_log.c
@@ -13,6 +13,7 @@
#include <linux/utsname.h>
#include <drm/drm_managed.h>
+#include "abi/guc_actions_abi.h"
#include "abi/guc_lfd_abi.h"
#include "regs/xe_guc_regs.h"
#include "xe_bo.h"
@@ -21,6 +22,7 @@
#include "xe_gt_printk.h"
#include "xe_gt_types.h"
#include "xe_guc.h"
+#include "xe_guc_ct.h"
#include "xe_map.h"
#include "xe_mmio.h"
#include "xe_module.h"
@@ -45,6 +47,8 @@
#define GUC_LOG_BUFFER_STATE_HEADER_LENGTH 4096
#define GUC_LOG_BUFFER_INIT_CONFIG 3
+#define GUC_LOG_VF_READY_TIMEOUT (5 * HZ)
+
struct guc_log_buffer_entry_list {
u32 offset;
u32 rd_ptr;
@@ -223,8 +227,13 @@ struct xe_guc_log_snapshot *xe_guc_log_snapshot_capture(struct xe_guc_log *log,
snapshot->ktime = ktime_get_boottime_ns();
snapshot->level = log->level;
- snapshot->ver_found = guc->fw.versions.found[XE_UC_FW_VER_RELEASE];
- snapshot->ver_want = guc->fw.versions.wanted;
+ if (!IS_SRIOV_VF(xe)) {
+ snapshot->ver_found = guc->fw.versions.found[XE_UC_FW_VER_RELEASE];
+ snapshot->ver_want = guc->fw.versions.wanted;
+ } else {
+ snapshot->ver_found = gt->sriov.vf.guc_version;
+ snapshot->ver_want = gt->sriov.vf.wanted_guc_version;
+ }
snapshot->path = guc->fw.path;
return snapshot;
@@ -825,8 +834,9 @@ bool xe_guc_log_vf_supported(struct xe_guc_log *log)
return gt->sriov.vf.debug_log.guc_log_enabled;
}
-static size_t guc_log_size(struct xe_gt *gt)
+static size_t guc_log_size(struct xe_guc_log *log)
{
+ struct xe_gt *gt = log_to_gt(log);
u32 size = GUC_LOG_SIZE;
int err;
@@ -857,12 +867,22 @@ int xe_guc_log_init(struct xe_guc_log *log)
struct xe_device *xe = log_to_xe(log);
struct xe_gt *gt = log_to_gt(log);
struct xe_tile *tile = gt_to_tile(gt);
- size_t size = guc_log_size(gt);
+ size_t size = guc_log_size(log);
struct xe_bo *bo;
+ int err;
if (!size)
return 0;
+ if (IS_SRIOV_VF(xe)) {
+ err = drmm_mutex_init(&xe->drm, &log->vf_log_capture_lock);
+ if (err) {
+ gt->sriov.vf.debug_log.guc_log_enabled = false;
+ return err;
+ }
+ init_completion(&log->vf_log_ready);
+ }
+
bo = xe_managed_bo_create_pin_map(xe, tile, size,
XE_BO_FLAG_SYSTEM |
XE_BO_FLAG_GGTT |
@@ -935,3 +955,118 @@ int xe_guc_log_init_vf(struct xe_guc_log *log)
return xe_gt_sriov_vf_register_guc_log_buff(gt, xe_bo_ggtt_addr(bo));
}
+
+/**
+ * xe_guc_log_vf_size - Get the size of the VF log buffer.
+ * @log: The log object.
+ *
+ * Return: The size of the VF log buffer.
+ */
+size_t xe_guc_log_vf_size(struct xe_guc_log *log)
+{
+ return xe_guc_log_vf_supported(log) ? xe_bo_size(log->bo) : 0;
+}
+
+/**
+ * xe_guc_log_vf_handler - Handle GuC notifications for VF log messages
+ * @log: The log object.
+ * @msg: The message received from the GuC.
+ * @len: The length of the message.
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_guc_log_vf_handler(struct xe_guc_log *log, u32 *msg, u32 len)
+{
+ complete(&log->vf_log_ready);
+ return 0;
+}
+
+static int xe_guc_log_vf_request_snapshot_mmio_locked(struct xe_guc_log *log)
+{
+ struct xe_guc *guc = log_to_guc(log);
+ struct xe_gt *gt = log_to_gt(log);
+ int ret;
+ u32 request[GUC_HXG_REQUEST_MSG_MIN_LEN] = {
+ FIELD_PREP(GUC_HXG_MSG_0_ORIGIN, GUC_HXG_ORIGIN_HOST) |
+ FIELD_PREP(GUC_HXG_MSG_0_TYPE, GUC_HXG_TYPE_REQUEST) |
+ FIELD_PREP(GUC_HXG_REQUEST_MSG_0_ACTION,
+ XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS_MMIO),
+ };
+
+ xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
+ xe_gt_notice(gt, "Requesting Guc log using MMIO mode\n");
+
+ ret = xe_guc_mmio_send(guc, request, ARRAY_SIZE(request));
+
+ return ret > 0 ? -EPROTO : ret;
+}
+
+static int xe_guc_log_vf_request_snapshot_ct_locked(struct xe_guc_log *log)
+{
+ struct xe_guc *guc = log_to_guc(log);
+ struct xe_gt *gt = log_to_gt(log);
+ int ret;
+ u32 action[] = {
+ XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS,
+ };
+
+ xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
+ xe_gt_notice(gt, "Requesting Guc log using CTB mode\n");
+
+ reinit_completion(&log->vf_log_ready);
+ ret = xe_guc_ct_send(&guc->ct, action, ARRAY_SIZE(action), 0, 0);
+ if (ret < 0) {
+ xe_gt_err(gt, "Failed to request GuC log snapshot from GuC: %d\n", ret);
+ return ret;
+ } else if (!wait_for_completion_timeout(&log->vf_log_ready,
+ GUC_LOG_VF_READY_TIMEOUT)) {
+ xe_gt_err(gt, "Timedout waiting for Guc log capture!\n");
+ return -ETIMEDOUT;
+ }
+ return 0;
+}
+
+/**
+ * xe_guc_log_vf_request_snapshot - Request GuC log from the VF.
+ * @log: The log object.
+ *
+ * If CTB mode is enabled, it will use the CTB method; otherwise,
+ * it will use MMIO.
+ *
+ * Return: 0 on success, or a negative error code on failure.
+ */
+int xe_guc_log_vf_request_snapshot(struct xe_guc_log *log)
+{
+ struct xe_guc *guc = log_to_guc(log);
+ bool ct_mode = xe_guc_ct_enabled(&guc->ct);
+
+ xe_gt_assert(guc_to_gt(guc), IS_SRIOV_VF(guc_to_xe(guc)));
+
+ if (!xe_guc_log_vf_supported(log))
+ return 0;
+
+ guard(mutex)(&log->vf_log_capture_lock);
+
+ if (ct_mode)
+ return xe_guc_log_vf_request_snapshot_ct_locked(log);
+ else
+ return xe_guc_log_vf_request_snapshot_mmio_locked(log);
+}
+
+/**
+ * xe_guc_log_vf_print - Request and print the VF log using the appropriate method (MMIO or CTB)
+ * @log: The log object.
+ * @p: The DRM printer to use for output.
+ */
+void xe_guc_log_vf_print(struct xe_guc_log *log, struct drm_printer *p)
+{
+ int err;
+
+ err = xe_guc_log_vf_request_snapshot(log);
+ if (err < 0) {
+ drm_printf(p, "Error in capturing Guc log!!\n");
+ return;
+ }
+
+ xe_guc_log_print(log, p);
+}
diff --git a/drivers/gpu/drm/xe/xe_guc_log.h b/drivers/gpu/drm/xe/xe_guc_log.h
index 225e2e274cf4..c98d7f3ca653 100644
--- a/drivers/gpu/drm/xe/xe_guc_log.h
+++ b/drivers/gpu/drm/xe/xe_guc_log.h
@@ -83,5 +83,8 @@ bool xe_guc_check_log_buf_overflow(struct xe_guc_log *log,
bool xe_guc_log_vf_supported(struct xe_guc_log *log);
int xe_guc_log_init_vf(struct xe_guc_log *log);
-
+int xe_guc_log_vf_request_snapshot(struct xe_guc_log *log);
+size_t xe_guc_log_vf_size(struct xe_guc_log *log);
+int xe_guc_log_vf_handler(struct xe_guc_log *log, u32 *msg, u32 len);
+void xe_guc_log_vf_print(struct xe_guc_log *log, struct drm_printer *p);
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_log_types.h b/drivers/gpu/drm/xe/xe_guc_log_types.h
index a38e9619c95d..cce96b35a7e0 100644
--- a/drivers/gpu/drm/xe/xe_guc_log_types.h
+++ b/drivers/gpu/drm/xe/xe_guc_log_types.h
@@ -6,6 +6,8 @@
#ifndef _XE_GUC_LOG_TYPES_H_
#define _XE_GUC_LOG_TYPES_H_
+#include <linux/completion.h>
+#include <linux/mutex.h>
#include <linux/types.h>
#include "abi/guc_log_abi.h"
@@ -72,6 +74,10 @@ struct xe_guc_log {
u32 overflow;
u32 flush;
} stats[GUC_LOG_BUFFER_TYPE_MAX];
+ /** @vf_log_capture_lock: serializes VF log requests. */
+ struct mutex vf_log_capture_lock;
+ /** @vf_log_ready: signalled when GuC notifies the VF that log is ready */
+ struct completion vf_log_ready;
};
#endif
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup
2026-12-04 14:47 ` [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup Satyanarayana K V P
@ 2026-12-04 17:30 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 17:30 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 15 potential
issues to consider:
- [High] drm/xe/vf: vf_guc_fini_hw() registered before log and ADS BO
allocations
- [Medium] drm/xe/vf: xe_guc_ads_init() over-allocates PF ADS and golden
LRC space
- [Medium] drm/xe: complete() called on uninitialized vf_log_ready
completion
- [Medium] drm/xe: unsynchronized xe_guc_mmio_send() races with VF reset
and migration
- [Medium] drm/xe: vf_log_capture_lock dropped before log->bo copy and
ct_mode TOCTOU
- [Medium] drm/xe: completion race in
xe_guc_log_vf_request_snapshot_ct_locked()
- [Medium] drm/xe: stale or missing GUC_PMTIMESTAMP in VF
xe_guc_log_snapshot_capture()
- [Medium] drm/xe: guc_init_vf() initializes guc->capture when capture
BO is NULL
- [Medium] drm/xe: missing page alignment for VF GuC log size in
xe_guc_log_init()
- [Low] drm/xe/vf: guc_init_params_vf() fills unused guc->params with PF
sizes
- [Low] drm/xe/vf: commit message omits G2H handler, snapshot APIs, and
debugfs
- [Low] drm/xe: guc_log_vf() mis-sizes seq_file buffer for ASCII85 and
zstd dumps
- [Low] drm/xe: commit message omits VF log capture protocol and debugfs
changes
- [Low] drm/xe: stale CT mode check before mutex in
xe_guc_log_vf_request_snapshot()
- [Low] drm/xe: 32-bit wraparound in PAGE_ALIGN() in
guc_ads_capture_size()
--
commit 90511c95d48796d8b3f7ed4ec94220879d274db8
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> drm/xe/vf: Initialize GuC logging buffers during GuC setup
>
> Initialize VF GuC log and debug capture resources as part of GuC
> initialization, so their buffers are ready before the VF GuC load path
> registers them.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
[Severity: Low]
Does the commit message describe all of the significant changes in this
patch? Beyond initializing the VF GuC log and debug capture buffers in
xe_guc.c, this commit also adds the
XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY G2H handler, VF firmware version
handling in xe_guc_log_snapshot_capture(), the CTB and MMIO VF log snapshot
helpers, and the VF guc_log debugfs entry.
[Severity: Low]
Should the VF GuC log capture protocol and debugfs exposure either be
described in the commit message or split into separate patches so this
commit matches its title?
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index b8939f04ea24c..2d3a174e74c9a 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -260,10 +260,31 @@ static void guc_print_params(struct xe_guc *guc)
> xe_gt_dbg(gt, "GuC param[%2d] = 0x%08x\n", i, params[i]);
> }
>
> +static void guc_init_params_vf(struct xe_guc *guc)
> +{
> + bool debug_capt_en = xe_guc_debug_capture_support(&guc->ads);
> + bool guc_log_en = xe_guc_log_vf_supported(&guc->log);
> + u32 *params = guc->params;
> +
> + params[GUC_CTL_LOG_PARAMS] = guc_log_en ? guc_ctl_log_params_flags(guc) : 0;
> + params[GUC_CTL_DEBUG] = guc_log_en ? guc_ctl_debug_flags(guc) : 0;
> + params[GUC_CTL_ADS] = debug_capt_en ? guc_ctl_ads_flags(guc) : 0;
> + params[GUC_CTL_FEATURE] = 0;
> + params[GUC_CTL_WA] = 0;
> + params[GUC_CTL_DEVID] = guc_ctl_devid(guc);
> +
> + guc_print_params(guc);
> +}
[Severity: Low]
Is guc_init_params_vf() dead code on VFs? guc->params is only read by
guc_write_params() during PF firmware upload, which VFs never run, and
guc_ctl_log_params_flags() encodes compile-time PF buffer sizes rather than
the queried VF log size, causing guc_print_params() to emit misleading
debug output.
[ ... ]
> @@ -796,6 +817,44 @@ int xe_guc_init_noalloc(struct xe_guc *guc)
> return ret;
> }
>
> +static int guc_init_vf(struct xe_guc *guc)
> +{
> + struct xe_device *xe = guc_to_xe(guc);
> + struct xe_gt *gt = guc_to_gt(guc);
> + int ret;
> +
> + xe_gt_assert(gt, IS_SRIOV_VF(xe));
> +
> + ret = devm_add_action_or_reset(xe->drm.dev, vf_guc_fini_hw, guc);
> + if (ret)
> + goto out;
> +
> + xe_sriov_vf_debug_log_init_early(xe);
> +
> + ret = xe_guc_log_init(&guc->log);
> + if (ret)
> + goto out;
[Severity: High]
Does registering vf_guc_fini_hw() before xe_guc_log_init() and
xe_guc_ads_init() invert the devm teardown order?
Because devm actions run in LIFO order and xe_managed_bo_create_pin_map()
registers __xe_bo_unpin_map_no_vm() on the same devm list, unbinding the VF
driver will unpin log->bo and ads->bo, clear their GGTT PTEs, and free
their backing pages before vf_guc_fini_hw() resets VF GuC state. Since
neither buffer is deregistered earlier, GuC can still DMA to those GGTT
addresses during teardown, causing GGTT page faults or use-after-free.
Registering vf_guc_fini_hw() after the BO allocations, matching PF
guc_fini_hw(), would keep the buffers pinned until VF reset.
> +
> + ret = xe_guc_capture_init(guc);
> + if (ret)
> + goto out;
[Severity: Medium]
Can calling xe_guc_capture_init() unconditionally on VFs cause a NULL
pointer dereference when debug state capture is disabled or unsupported?
When VF debug state capture is disabled by the PF or unsupported by GuC
firmware, xe_guc_ads_init() returns 0 with guc->ads.bo left NULL (and
xe_guc_log_init() leaves guc->log.bo NULL when VF logging is disabled).
Because guc->capture is now non-NULL, xe_guc_capture_process() enters
__guc_capture_process_output() and dereferences &guc->log.bo->vmap (or
reads hardcoded PF capture offsets out of bounds on a VF log BO).
Although commit "drm/xe/guc: Process VF GuC error state captures" later
switches VFs to guc_capture_process_output_vf() reading &guc->ads.bo->vmap,
an unexpected G2H capture notification on a VF with debug capture disabled
still dereferences NULL guc->ads.bo, and VFs with capture disabled still
allocate guc->capture unnecessarily. Moving the IS_SRIOV_VF() check before
xe_guc_capture_ads_input_worst_size() in guc_capture_size() allows skipping
xe_guc_capture_init() when VF debug capture is disabled, provided capture
consumers check guc->capture and guc->ads.bo.
> +
> + ret = xe_guc_ads_init(&guc->ads);
> + if (ret)
> + goto out;
[Severity: Medium]
Does calling xe_guc_ads_init() on VFs over-allocate pinned memory and GGTT
space?
xe_guc_ads_init() allocates guc_ads_size(ads) + MAX_GOLDEN_LRC_SIZE, which
includes the PF ADS blob, regsets, WA KLVs, and 256 KiB of golden LRC
space, even though VFs only use ads->bo as the debug state capture buffer
of size PAGE_ALIGN(ads->capture_size). That wastes roughly 280 KiB of
pinned system memory and provisioned VF GGTT quota per VF GT whenever debug
state capture is enabled.
[Severity: Low]
Can PAGE_ALIGN(ads->capture_size) in guc_ads_capture_size() wrap around to
0 in 32-bit arithmetic?
xe_guc_ads_init() sets ads->capture_size (u32) from the GuC KLV query
GUC_KLV_GLOBAL_CFG_GUC_DEBUG_CAPTURE_BUFF_SIZE_KEY with no upper-bound
check. Because PAGE_ALIGN() preserves __typeof__(x), any value in
[0xfffff001, 0xffffffff] wraps to 0 before widening to size_t, causing
xe_guc_ads_init() to allocate and register an undersized BO with zero bytes
reserved for capture instead of failing. Widening capture_size to size_t
or bounds-checking it in guc_capture_size() avoids the wraparound.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
> index 121955ac4abf9..3cc1851b96add 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ct.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
> @@ -1863,6 +1863,9 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
> case XE_GUC_ACTION_NOTIFY_FLUSH_LOG_BUFFER_TO_FILE:
> /* FIXME: Handle this */
> break;
> + case XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY:
> + ret = xe_guc_log_vf_handler(&guc->log, payload, adj_len);
> + break;
[Severity: Medium]
Can XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY trigger a NULL pointer
dereference on an uninitialized vf_log_ready completion?
xe_guc_log_init() only calls init_completion(&log->vf_log_ready) when
IS_SRIOV_VF(xe) is true and guc_log_size() is non-zero, leaving
vf_log_ready zero-initialized on PF/native devices and on VFs with logging
disabled. If an unexpected G2H notification arrives,
xe_guc_log_vf_handler() calls complete(&log->vf_log_ready) directly; in
swake_up_locked(), list_empty(&q->task_list) returns false when
task_list.next is NULL, causing a near-NULL dereference in
try_to_wake_up(). Validating IS_SRIOV_VF(xe) and
xe_guc_log_vf_supported(log) in xe_guc_log_vf_handler() (or unconditionally
initializing vf_log_ready) avoids the crash.
> diff --git a/drivers/gpu/drm/xe/xe_guc_debugfs.c b/drivers/gpu/drm/xe/xe_guc_debugfs.c
> index 2f23119686d44..bc5f10a34236b 100644
> --- a/drivers/gpu/drm/xe/xe_guc_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_guc_debugfs.c
[ ... ]
> @@ -104,6 +106,35 @@ static int guc_pc(struct xe_guc *guc, struct drm_printer *p)
> return 0;
> }
>
> +static int guc_log_vf(struct xe_guc *guc, struct drm_printer *p)
> +{
> + struct seq_file *m = p->arg;
> + size_t size;
> + char *buf;
> +
> + size = xe_guc_log_vf_size(&guc->log);
> + if (!size) {
> + drm_printf(p, "GuC log capture from VF is not supported / disabled by PF!!!\n");
> + return 0;
> + }
> +
> + if (IS_ENABLED(CONFIG_DRM_XE_COMPRESS_DUMP))
> + size = max(size, zstd_compress_bound(size));
> +
> + if (seq_get_buf(m, &buf) <= size) {
> + seq_commit(m, -1);
> + return 0;
> + }
> +
> + xe_guc_log_vf_print(&guc->log, p);
> +
> + return 0;
> +}
[Severity: Low]
Does guc_log_vf() mis-size the seq_file buffer for both uncompressed and
ZSTD-compressed dumps?
xe_guc_log_vf_print() emits metadata headers and ASCII85-encoded text
(expanding 4 binary bytes up to 5 characters), which exceeds the raw or
zstd_compress_bound() byte size checked against seq_get_buf(). When
compression is disabled or falls back to raw, m->buf can still overflow and
cause seq_file to re-run guc_log_vf() and request a second GuC log
snapshot. Conversely, when CONFIG_DRM_XE_COMPRESS_DUMP is enabled,
requiring seq_get_buf() > zstd_compress_bound(size) up front forces
repeated seq_file kvmalloc() doublings up to 32 MiB even when the
compressed output is much smaller.
[ ... ]
> diff --git a/drivers/gpu/drm/xe/xe_guc_log.c b/drivers/gpu/drm/xe/xe_guc_log.c
> index 0ed905c739dd3..e2cf275b7fd72 100644
> --- a/drivers/gpu/drm/xe/xe_guc_log.c
> +++ b/drivers/gpu/drm/xe/xe_guc_log.c
[ ... ]
> @@ -223,8 +227,13 @@ struct xe_guc_log_snapshot *xe_guc_log_snapshot_capture(struct xe_guc_log *log,
>
> snapshot->ktime = ktime_get_boottime_ns();
> snapshot->level = log->level;
> - snapshot->ver_found = guc->fw.versions.found[XE_UC_FW_VER_RELEASE];
> - snapshot->ver_want = guc->fw.versions.wanted;
> + if (!IS_SRIOV_VF(xe)) {
> + snapshot->ver_found = guc->fw.versions.found[XE_UC_FW_VER_RELEASE];
> + snapshot->ver_want = guc->fw.versions.wanted;
> + } else {
> + snapshot->ver_found = gt->sriov.vf.guc_version;
> + snapshot->ver_want = gt->sriov.vf.wanted_guc_version;
> + }
[Severity: Medium]
Will GUC_PMTIMESTAMP_LO/HI in xe_guc_log_snapshot_capture() return a stale
or zero timestamp on VFs?
GUC_PMTIMESTAMP_LO and GUC_PMTIMESTAMP_HI are defined without
XE_REG_OPTION_VF, so xe_mmio_read64_2x32() diverts VF reads to
xe_gt_sriov_vf_read32(), which consults the static VF runtime register
cache. Those registers are only in ver_35_runtime_regs[] and are read once
during PF init, so on GRAPHICS_VER < 35 VFs read 0 with two xe_gt_WARN()
splats under CONFIG_DRM_XE_DEBUG, and on GRAPHICS_VER >= 35
snapshot->stamp stays frozen at the PF boot-time value instead of the live
GuC timestamp.
[ ... ]
> @@ -857,12 +867,22 @@ int xe_guc_log_init(struct xe_guc_log *log)
> struct xe_device *xe = log_to_xe(log);
> struct xe_gt *gt = log_to_gt(log);
> struct xe_tile *tile = gt_to_tile(gt);
> - size_t size = guc_log_size(gt);
> + size_t size = guc_log_size(log);
> struct xe_bo *bo;
> + int err;
>
> if (!size)
> return 0;
>
> + if (IS_SRIOV_VF(xe)) {
> + err = drmm_mutex_init(&xe->drm, &log->vf_log_capture_lock);
> + if (err) {
> + gt->sriov.vf.debug_log.guc_log_enabled = false;
> + return err;
> + }
> + init_completion(&log->vf_log_ready);
> + }
> +
> bo = xe_managed_bo_create_pin_map(xe, tile, size,
[Severity: Medium]
Can an unaligned VF GuC log size from GuC hit BUG_ON() in
drm_gem_private_object_init()?
guc_log_size() returns the raw u32 byte count from
GUC_KLV_GLOBAL_CFG_GUC_LOG_BUFF_SIZE_KEY without checking
IS_ALIGNED(size, PAGE_SIZE) or applying PAGE_ALIGN(). For
XE_BO_FLAG_SYSTEM kernel BOs, xe_bo_init_locked() passes size straight to
drm_gem_private_object_init(), which panics on
BUG_ON((size & (PAGE_SIZE - 1)) != 0) if GuC returns a non-page-aligned
size. Validating alignment or using PAGE_ALIGN(size) (with bounds
checking) avoids the panic.
[ ... ]
> +static int xe_guc_log_vf_request_snapshot_mmio_locked(struct xe_guc_log *log)
> +{
> + struct xe_guc *guc = log_to_guc(log);
> + struct xe_gt *gt = log_to_gt(log);
> + int ret;
> + u32 request[GUC_HXG_REQUEST_MSG_MIN_LEN] = {
> + FIELD_PREP(GUC_HXG_MSG_0_ORIGIN, GUC_HXG_ORIGIN_HOST) |
> + FIELD_PREP(GUC_HXG_MSG_0_TYPE, GUC_HXG_TYPE_REQUEST) |
> + FIELD_PREP(GUC_HXG_REQUEST_MSG_0_ACTION,
> + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS_MMIO),
> + };
> +
> + xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
> + xe_gt_notice(gt, "Requesting Guc log using MMIO mode\n");
> +
> + ret = xe_guc_mmio_send(guc, request, ARRAY_SIZE(request));
> +
> + return ret > 0 ? -EPROTO : ret;
> +}
[Severity: Medium]
Can xe_guc_log_vf_request_snapshot_mmio_locked() race with GT reset or VF
post-migration recovery on the shared MMIO mailbox?
xe_guc_mmio_send_recv() writes and polls VF_SW_FLAG / MED_VF_SW_FLAG with
no lock. When CT is stopped during gt_reset_worker() or
vf_post_migration_shutdown(), a concurrent debugfs read of guc_log falls
back to MMIO mode while holding only vf_log_capture_lock:
CPU0 (debugfs guc_log) CPU1 (gt_reset_worker)
guc_log_vf() xe_uc_stop() /* CT now disabled */
xe_guc_ct_enabled() == false do_gt_restart() -> vf_uc_load_hw()
xe_guc_mmio_send() xe_guc_mmio_send_recv()
write VF_SW_FLAG(0) write VF_SW_FLAG(0..len-1)
poll reply <-- corrupted HXG
Overlapping MMIO HXG transactions corrupt both exchanges, which can fail VF
post-migration recovery or fail GT reset and wedge the GPU.
> +
> +static int xe_guc_log_vf_request_snapshot_ct_locked(struct xe_guc_log *log)
> +{
> + struct xe_guc *guc = log_to_guc(log);
> + struct xe_gt *gt = log_to_gt(log);
> + int ret;
> + u32 action[] = {
> + XE_GUC_ACTION_VF2GUC_REQUEST_GUC_LOGS,
> + };
> +
> + xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt)));
> + xe_gt_notice(gt, "Requesting Guc log using CTB mode\n");
> +
> + reinit_completion(&log->vf_log_ready);
> + ret = xe_guc_ct_send(&guc->ct, action, ARRAY_SIZE(action), 0, 0);
> + if (ret < 0) {
> + xe_gt_err(gt, "Failed to request GuC log snapshot from GuC: %d\n", ret);
> + return ret;
> + } else if (!wait_for_completion_timeout(&log->vf_log_ready,
> + GUC_LOG_VF_READY_TIMEOUT)) {
> + xe_gt_err(gt, "Timedout waiting for Guc log capture!\n");
> + return -ETIMEDOUT;
> + }
> + return 0;
> +}
[Severity: Medium]
Can a delayed G2H notification after a timeout race with
reinit_completion() and prematurely wake a later snapshot request?
reinit_completion() stores vf_log_ready.done = 0 without locking, which
data-races with complete() in xe_guc_log_vf_handler() on ct->g2h_wq, and
requests have no sequence correlation:
CPU0 (caller 2) ct->g2h_wq (late reply to caller 1)
reinit_completion(&vf_log_ready)
xe_guc_ct_send(REQUEST_GUC_LOGS)
xe_guc_log_vf_handler()
complete(&vf_log_ready)
wait_for_completion_timeout() /* wakes early while GuC writes */
xe_guc_log_snapshot_capture() <-- reads log->bo during GuC DMA
Caller 2 then copies log->bo while GuC is still writing caller 2's snapshot
into it, producing a torn log dump.
> +
> +int xe_guc_log_vf_request_snapshot(struct xe_guc_log *log)
> +{
> + struct xe_guc *guc = log_to_guc(log);
> + bool ct_mode = xe_guc_ct_enabled(&guc->ct);
> +
> + xe_gt_assert(guc_to_gt(guc), IS_SRIOV_VF(guc_to_xe(guc)));
> +
> + if (!xe_guc_log_vf_supported(log))
> + return 0;
> +
> + guard(mutex)(&log->vf_log_capture_lock);
> +
> + if (ct_mode)
> + return xe_guc_log_vf_request_snapshot_ct_locked(log);
> + else
> + return xe_guc_log_vf_request_snapshot_mmio_locked(log);
> +}
[Severity: Low]
Can ct_mode become stale before vf_log_capture_lock is acquired?
xe_guc_ct_enabled(&guc->ct) is sampled before blocking on
log->vf_log_capture_lock, which another caller can hold for up to
GUC_LOG_VF_READY_TIMEOUT (5 seconds). If CT state transitions while
waiting (for example during GT reset or migration), the waiter dispatches
using the stale transport mode; sampling xe_guc_ct_enabled() after
acquiring vf_log_capture_lock avoids this.
> +
> +void xe_guc_log_vf_print(struct xe_guc_log *log, struct drm_printer *p)
> +{
> + int err;
> +
> + err = xe_guc_log_vf_request_snapshot(log);
> + if (err < 0) {
> + drm_printf(p, "Error in capturing Guc log!!\n");
> + return;
> + }
> +
> + xe_guc_log_print(log, p);
> +}
[Severity: Medium]
Does dropping vf_log_capture_lock before xe_guc_log_print() allow a
concurrent reader to overwrite log->bo mid-copy?
xe_guc_log_vf_request_snapshot() releases log->vf_log_capture_lock upon
return, before xe_guc_log_print() -> xe_guc_log_snapshot_capture() copies
multi-MB chunks out of log->bo->vmap:
CPU0 (reader 1) CPU1 (reader 2)
xe_guc_log_vf_request_snapshot()
lock(&vf_log_capture_lock)
... GuC writes log->bo ...
unlock(&vf_log_capture_lock)
xe_guc_log_print() xe_guc_log_vf_request_snapshot()
xe_map_memcpy_from(log->bo) lock(&vf_log_capture_lock)
request GuC DMA to log->bo <-- race
Holding vf_log_capture_lock across both the GuC snapshot request and
xe_guc_log_snapshot_capture() prevents concurrent readers from tearing
log->bo. In addition, ct_mode is sampled before acquiring
vf_log_capture_lock, and delayed G2H notifications after a timeout can
prematurely wake a subsequent CTB request.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=8
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (7 preceding siblings ...)
2026-12-04 14:47 ` [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 17:52 ` sashiko-bot
2026-12-04 14:47 ` [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF Satyanarayana K V P
` (4 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Piotr Piórkowski,
Michał Winiarski
Separate the capture register set into common and PF only register sets
and register common register sets for both PF and VF.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_guc_capture.c | 66 ++++++++++++++++++++++++++---
1 file changed, 59 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
index e528b3e9d158..49a15f86eca8 100644
--- a/drivers/gpu/drm/xe/xe_guc_capture.c
+++ b/drivers/gpu/drm/xe/xe_guc_capture.c
@@ -106,13 +106,11 @@ struct __guc_capture_parsed_output {
{ FORCEWAKE_GT, REG_32BIT, 0, 0, 0, "FORCEWAKE_GT"}
#define COMMON_BASE_ENGINE_INSTANCE \
- { RING_HWSTAM(0), REG_32BIT, 0, 0, 0, "HWSTAM"}, \
{ RING_HWS_PGA(0), REG_32BIT, 0, 0, 0, "RING_HWS_PGA"}, \
{ RING_HEAD(0), REG_32BIT, 0, 0, 0, "RING_HEAD"}, \
{ RING_TAIL(0), REG_32BIT, 0, 0, 0, "RING_TAIL"}, \
{ RING_CTL(0), REG_32BIT, 0, 0, 0, "RING_CTL"}, \
{ RING_MI_MODE(0), REG_32BIT, 0, 0, 0, "RING_MI_MODE"}, \
- { GFX_MODE(0), REG_32BIT, 0, 0, 0, "GFX_MODE"}, \
{ RING_ESR(0), REG_32BIT, 0, 0, 0, "RING_ESR"}, \
{ RING_EMR(0), REG_32BIT, 0, 0, 0, "RING_EMR"}, \
{ RING_EIR(0), REG_32BIT, 0, 0, 0, "RING_EIR"}, \
@@ -138,6 +136,10 @@ struct __guc_capture_parsed_output {
{ RING_BUFFER_HEAD_PREEMPT_REG(0), REG_32BIT, 0, 0, 0, "RING_BUFFER_HEAD_PREEMPT_REG"}, \
{ RING_BB_ADDR_DIFF(0), REG_32BIT, 0, 0, 0, "RING_BB_ADDR_DIFF"} \
+#define COMMON_BASE_ENGINE_INSTANCE_PF_ONLY \
+ { RING_HWSTAM(0), REG_32BIT, 0, 0, 0, "HWSTAM"}, \
+ { GFX_MODE(0), REG_32BIT, 0, 0, 0, "GFX_MODE"}
+
#define COMMON_XELP_RC_CLASS \
{ RCU_MODE, REG_32BIT, 0, 0, 0, "RCU_MODE"}
@@ -168,10 +170,12 @@ struct __guc_capture_parsed_output {
{ RING_CSPWRFSM(0), REG_32BIT, 0, 0, 0, "RING_CSPWRFSM"}, \
{ RING_CSBEFSM(0), REG_32BIT, 0, 0, 0, "RING_CSBEFSM"}, \
{ RING_CSFE_GLB_CHICKEN3(0), REG_32BIT, 0, 0, 0, "RING_CSFE_GLB_CHICKEN3"}, \
- { RING_PSMI_CTL(0), REG_32BIT, 0, 0, 0, "RING_PSMI_CTL"}, \
{ RING_INSTPS(0), REG_32BIT, 0, 0, 0, "RING_INSTPS"}, \
{ RING_BB_STATE(0), REG_32BIT, 0, 0, 0, "RING_BB_STATE"}
+#define XE3P_CS_DEBUG_INSTANCE_PF_ONLY \
+ { RING_PSMI_CTL(0), REG_32BIT, 0, 0, 0, "RING_PSMI_CTL"}
+
/*
* CS_CHICKEN1 has GPGPU/3D preempt bits; keep with RCS/CCS only.
* RCS+CCS share GUC_CAPTURE_LIST_CLASS_RENDER_COMPUTE, so these cannot
@@ -193,6 +197,7 @@ static const struct __guc_mmio_reg_descr xe_lp_global_regs[] = {
/* Render / Compute Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe_rc_inst_regs[] = {
COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
};
/* Render / Compute Engine-Class */
@@ -209,6 +214,11 @@ static const struct __guc_mmio_reg_descr xe_hpg_rc_class_regs[] = {
/* Media Decode/Encode Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe_vd_inst_regs[] = {
COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
+};
+
+static const struct __guc_mmio_reg_descr xe_vd_inst_regs_vf[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
};
/* Video Enhancement Engine-Class */
@@ -219,23 +229,45 @@ static const struct __guc_mmio_reg_descr xe_vec_class_regs[] = {
/* Video Enhancement Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe_vec_inst_regs[] = {
COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
};
-#define XE_BLT_INST_REGS \
- COMMON_BASE_ENGINE_INSTANCE
+static const struct __guc_mmio_reg_descr xe_vec_inst_regs_vf[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
+};
/* Blitter Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe_blt_inst_regs[] = {
- XE_BLT_INST_REGS,
+ COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
+};
+
+static const struct __guc_mmio_reg_descr xe_blt_inst_regs_vf[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
};
/* XE_LP - GSC Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe_lp_gsc_inst_regs[] = {
COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
+};
+
+static const struct __guc_mmio_reg_descr xe_lp_gsc_inst_regs_vf[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
};
/* Render / Compute Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe3p_rc_inst_regs[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY,
+ XE3P_BASE_ENGINE_INSTANCE,
+ XE3P_CS_DEBUG_INSTANCE,
+ XE3P_CS_DEBUG_INSTANCE_PF_ONLY,
+ XE3P_RC_CS_PREEMPT_INSTANCE,
+ XE3P_RC_SLICE_INSTANCE,
+};
+
+static const struct __guc_mmio_reg_descr xe3p_rc_inst_regs_vf[] = {
COMMON_BASE_ENGINE_INSTANCE,
XE3P_BASE_ENGINE_INSTANCE,
XE3P_CS_DEBUG_INSTANCE,
@@ -245,7 +277,15 @@ static const struct __guc_mmio_reg_descr xe3p_rc_inst_regs[] = {
/* Xe3p Blitter Per-Engine-Instance */
static const struct __guc_mmio_reg_descr xe3p_blt_inst_regs[] = {
- XE_BLT_INST_REGS,
+ COMMON_BASE_ENGINE_INSTANCE,
+ COMMON_BASE_ENGINE_INSTANCE_PF_ONLY,
+ XE3P_CS_DEBUG_INSTANCE,
+ XE3P_CS_DEBUG_INSTANCE_PF_ONLY,
+ XE3P_BCS_ONLY_INSTANCE,
+};
+
+static const struct __guc_mmio_reg_descr xe3p_blt_inst_regs_vf[] = {
+ COMMON_BASE_ENGINE_INSTANCE,
XE3P_CS_DEBUG_INSTANCE,
XE3P_BCS_ONLY_INSTANCE,
};
@@ -307,16 +347,28 @@ static const struct __guc_mmio_reg_descr_group xe3p_lists[] = {
MAKE_REGLIST(xe_lp_global_regs, PF, GLOBAL, 0),
MAKE_REGLIST(xe_hpg_rc_class_regs, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_RENDER_COMPUTE),
MAKE_REGLIST(xe3p_rc_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_RENDER_COMPUTE),
+ MAKE_REGLIST(xe3p_rc_inst_regs_vf, VF, ENGINE_INSTANCE,
+ GUC_CAPTURE_LIST_CLASS_RENDER_COMPUTE),
MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEO),
+ MAKE_REGLIST(empty_regs_list, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEO),
MAKE_REGLIST(xe_vd_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_VIDEO),
+ MAKE_REGLIST(xe_vd_inst_regs_vf, VF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_VIDEO),
MAKE_REGLIST(xe_vec_class_regs, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
+ MAKE_REGLIST(xe_vec_class_regs, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
MAKE_REGLIST(xe_vec_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
+ MAKE_REGLIST(xe_vec_inst_regs_vf, VF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_BLITTER),
+ MAKE_REGLIST(empty_regs_list, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_BLITTER),
MAKE_REGLIST(xe3p_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_BLITTER),
+ MAKE_REGLIST(xe3p_blt_inst_regs_vf, VF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_BLITTER),
MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
+ MAKE_REGLIST(empty_regs_list, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
MAKE_REGLIST(xe_lp_gsc_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
+ MAKE_REGLIST(xe_lp_gsc_inst_regs_vf, VF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_GSC_OTHER),
MAKE_REGLIST(empty_regs_list, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_PAGING),
+ MAKE_REGLIST(empty_regs_list, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_PAGING),
MAKE_REGLIST(xe_blt_inst_regs, PF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_PAGING),
+ MAKE_REGLIST(xe_blt_inst_regs_vf, VF, ENGINE_INSTANCE, GUC_CAPTURE_LIST_CLASS_PAGING),
{}
};
static const char * const capture_list_type_names[] = {
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture
2026-12-04 14:47 ` [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture Satyanarayana K V P
@ 2026-12-04 17:52 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 17:52 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] drm/xe/guc: VF capture lists missing from xe_hpg_lists and
xe_lp_lists
- [Medium] drm/xe/guc: PF-owned RING_HWS_PGA left in VF capture register
lists
- [Medium] drm/xe/guc: GT-global SFC_DONE registers exposed in VF
capture list
- [Medium] drm/xe/guc: RING_EXECLIST_SQ_CONTENTS exposed in VF capture
lists
- [Low] drm/xe/guc: commit message omits PF-only rationale and Xe3p-only
scope
--
commit 228223cb9db744854f25f4fc783254a025baa753
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> drm/xe/guc: Register VF-accessible registers for error capture
>
> Separate the capture register set into common and PF only register sets
> and register common register sets for both PF and VF.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
[Severity: Low]
Could the commit message explain why RING_HWSTAM, GFX_MODE, and
RING_PSMI_CTL are moved to PF-only sets while the remaining registers stay
VF-accessible? It also says common register sets are registered for both
PF and VF without noting that VF lists are only wired into xe3p_lists,
leaving xe_hpg_lists and xe_lp_lists PF-only.
> diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
> index e528b3e9d158c..49a15f86eca8e 100644
> --- a/drivers/gpu/drm/xe/xe_guc_capture.c
> +++ b/drivers/gpu/drm/xe/xe_guc_capture.c
> @@ -106,13 +106,11 @@ struct __guc_capture_parsed_output {
> { FORCEWAKE_GT, REG_32BIT, 0, 0, 0, "FORCEWAKE_GT"}
>
> #define COMMON_BASE_ENGINE_INSTANCE \
> - { RING_HWSTAM(0), REG_32BIT, 0, 0, 0, "HWSTAM"}, \
> { RING_HWS_PGA(0), REG_32BIT, 0, 0, 0, "RING_HWS_PGA"}, \
[Severity: Medium]
Should RING_HWS_PGA(0) also move into COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
alongside RING_HWSTAM(0)?
xe_hw_engine_enable_ring() writes the PF's Global HWSP GGTT address to
RING_HWS_PGA on PF only. Leaving it in all VF capture lists in xe3p_lists[]
could leak that PF GGTT address into a VF's capture buffer on an engine hang
or cause GuC to reject the capture.
[ ... ]
> @@ -138,6 +136,10 @@ struct __guc_capture_parsed_output {
> { RING_BUFFER_HEAD_PREEMPT_REG(0), REG_32BIT, 0, 0, 0, "RING_BUFFER_HEAD_PREEMPT_REG"}, \
> { RING_BB_ADDR_DIFF(0), REG_32BIT, 0, 0, 0, "RING_BB_ADDR_DIFF"} \
>
> +#define COMMON_BASE_ENGINE_INSTANCE_PF_ONLY \
> + { RING_HWSTAM(0), REG_32BIT, 0, 0, 0, "HWSTAM"}, \
> + { GFX_MODE(0), REG_32BIT, 0, 0, 0, "GFX_MODE"}
[Severity: Medium]
Does COMMON_BASE_ENGINE_INSTANCE still expose
RING_EXECLIST_SQ_CONTENTS_LO/HI to VFs across all six VF engine-instance
capture lists?
Those registers hold the 64-bit LRC descriptor written to Execlist Submit
Queue slot 0 and are not cleared by hardware. If a VF hang collides with
GuC submitting a preempting PF or co-resident VF descriptor, capturing them
could leak another tenant's GGTT LRCA and context ID unless GuC scrubs them.
Moving RING_EXECLIST_SQ_CONTENTS_LO/HI into
COMMON_BASE_ENGINE_INSTANCE_PF_ONLY (or documenting a GuC scrubbing
guarantee) would avoid this cross-tenant leak.
[ ... ]
> @@ -193,6 +197,7 @@ static const struct __guc_mmio_reg_descr xe_lp_global_regs[] = {
> /* Render / Compute Per-Engine-Instance */
> static const struct __guc_mmio_reg_descr xe_rc_inst_regs[] = {
> COMMON_BASE_ENGINE_INSTANCE,
> + COMMON_BASE_ENGINE_INSTANCE_PF_ONLY
> };
[Severity: Medium]
Should VF capture lists also be added to xe_hpg_lists and xe_lp_lists,
including a VF counterpart for xe_rc_inst_regs?
pf_check_vf_debug_support() enables VF debug state capture on every SR-IOV
platform running GuC >= 70.84.0 without restricting to Xe3p, and
guc_capture_get_device_reglist() selects xe_hpg_lists or xe_lp_lists for all
SR-IOV platforms with GRAPHICS_VER < 35 (such as BMG, PTL, ATS-M, and ADL).
Because only xe3p_lists has VF entries, guc_capture_prep_lists() gets
-ENODATA for every VF list on pre-Xe3p platforms and points every VF capture
slot in ADS to null_ggtt, silently producing empty VF error captures.
[ ... ]
> @@ -307,16 +347,28 @@ static const struct __guc_mmio_reg_descr_group xe3p_lists[] = {
[ ... ]
> MAKE_REGLIST(xe_vec_class_regs, PF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
> + MAKE_REGLIST(xe_vec_class_regs, VF, ENGINE_CLASS, GUC_CAPTURE_LIST_CLASS_VIDEOENHANCE),
[Severity: Medium]
Should VF VIDEOENHANCE ENGINE_CLASS use empty_regs_list instead of
xe_vec_class_regs?
xe_vec_class_regs captures all four GT-global SFC_DONE(0..3) registers,
while every other VF GLOBAL and ENGINE_CLASS entry uses empty_regs_list or
is omitted. On a VECS hang, this could expose PF or co-resident VF SFC
pipeline state across media slices unless GuC filters them for VF captures.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=9
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (8 preceding siblings ...)
2026-12-04 14:47 ` [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 18:13 ` sashiko-bot
2026-12-04 14:47 ` [RFC 11/11] drm/xe/guc: Process VF GuC error state captures Satyanarayana K V P
` (3 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Michał Winiarski,
Piotr Piórkowski
GuC sends debug state capture notification to a VF when data is ready.
Install a new handler to process this notification and extract the error
state capture data.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/xe_guc_capture.c | 20 ++++++++++++++++++++
drivers/gpu/drm/xe/xe_guc_capture.h | 1 +
drivers/gpu/drm/xe/xe_guc_ct.c | 4 ++++
3 files changed, 25 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
index 49a15f86eca8..7e3b1bb23433 100644
--- a/drivers/gpu/drm/xe/xe_guc_capture.c
+++ b/drivers/gpu/drm/xe/xe_guc_capture.c
@@ -1566,6 +1566,9 @@ static void __guc_capture_process_output(struct xe_guc *guc)
log_buf_state_offset + offsetof(struct guc_log_buffer_state, read_ptr), u32,
write_offset);
+ if (IS_SRIOV_VF(guc_to_xe(guc)))
+ return;
+
/*
* Clear the flush_to_file from local first, the local was loaded by above
* xe_map_memcpy_from, then write out the "updated local" through
@@ -2174,3 +2177,20 @@ int xe_guc_capture_init(struct xe_guc *guc)
return 0;
}
+
+/**
+ * xe_guc_capture_vf_handler - Handle G2H notification for debug error state
+ * capture for VF.
+ * @guc: The GuC object
+ * @msg: The message from GuC
+ * @len: The length of the message
+ *
+ * Process debug error state capture messages from GuC for a VF.
+ *
+ * Returns: 0 on success.
+ */
+int xe_guc_capture_vf_handler(struct xe_guc *guc, u32 *msg, u32 len)
+{
+ xe_guc_capture_process(guc);
+ return 0;
+}
diff --git a/drivers/gpu/drm/xe/xe_guc_capture.h b/drivers/gpu/drm/xe/xe_guc_capture.h
index fcd4f1298536..3ed9d147ac63 100644
--- a/drivers/gpu/drm/xe/xe_guc_capture.h
+++ b/drivers/gpu/drm/xe/xe_guc_capture.h
@@ -59,5 +59,6 @@ void xe_engine_snapshot_capture_for_queue(struct xe_exec_queue *q);
void xe_guc_capture_steered_list_init(struct xe_guc *guc);
void xe_guc_capture_put_matched_nodes(struct xe_guc *guc);
int xe_guc_capture_init(struct xe_guc *guc);
+int xe_guc_capture_vf_handler(struct xe_guc *guc, u32 *msg, u32 len);
#endif
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 3cc1851b96ad..15706cc798d5 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -25,6 +25,7 @@
#include "xe_gt_sriov_pf_control.h"
#include "xe_gt_sriov_pf_monitor.h"
#include "xe_guc.h"
+#include "xe_guc_capture.h"
#include "xe_guc_log.h"
#include "xe_guc_pagefault.h"
#include "xe_guc_relay.h"
@@ -1866,6 +1867,9 @@ static int process_g2h_msg(struct xe_guc_ct *ct, u32 *msg, u32 len)
case XE_GUC_ACTION_GUC2VF_NOTIFY_GUC_LOG_READY:
ret = xe_guc_log_vf_handler(&guc->log, payload, adj_len);
break;
+ case XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE:
+ ret = xe_guc_capture_vf_handler(guc, payload, adj_len);
+ break;
case XE_GUC_ACTION_NOTIFY_MEMORY_CAT_ERROR:
ret = xe_guc_exec_queue_memory_cat_error_handler(guc, payload,
adj_len);
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF
2026-12-04 14:47 ` [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF Satyanarayana K V P
@ 2026-12-04 18:13 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 18:13 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/xe: xe_guc_capture_vf_handler() accesses guc->log.bo
instead of ads.bo
- [Low] drm/xe/guc: dead IS_SRIOV_VF() return in
__guc_capture_process_output()
--
commit d6a2fcb7b67e7c0a4ddd0116f5daace11e2e2b61
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
drm/xe/guc: Handle GuC debug state capture notifications for VF
This commit adds xe_guc_capture_vf_handler() to process
XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE notifications on a VF and
returns early from __guc_capture_process_output() when running on a VF.
> diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
> index 49a15f86eca8e..7e3b1bb234331 100644
> --- a/drivers/gpu/drm/xe/xe_guc_capture.c
> +++ b/drivers/gpu/drm/xe/xe_guc_capture.c
> @@ -1566,6 +1566,9 @@ static void __guc_capture_process_output(struct xe_guc *guc)
> log_buf_state_offset + offsetof(struct guc_log_buffer_state, read_ptr), u32,
> write_offset);
>
> + if (IS_SRIOV_VF(guc_to_xe(guc)))
> + return;
> +
[Severity: Low]
Is this IS_SRIOV_VF() early return needed once the series is complete?
It is not mentioned in a comment or the commit message, and commit
"drm/xe/guc: Process VF GuC error state captures" later restricts
xe_guc_capture_process() to call static __guc_capture_process_output()
only on non-VFs, leaving this check as unreachable dead code.
[ ... ]
> @@ -2174,3 +2177,20 @@ int xe_guc_capture_init(struct xe_guc *guc)
>
> return 0;
> }
> +
> +/**
> + * xe_guc_capture_vf_handler - Handle G2H notification for debug error state
> + * capture for VF.
> + * @guc: The GuC object
> + * @msg: The message from GuC
> + * @len: The length of the message
> + *
> + * Process debug error state capture messages from GuC for a VF.
> + *
> + * Returns: 0 on success.
> + */
> +int xe_guc_capture_vf_handler(struct xe_guc *guc, u32 *msg, u32 len)
> +{
> + xe_guc_capture_process(guc);
> + return 0;
> +}
[Severity: Medium]
Can this dereference a NULL guc->log.bo or access the wrong buffer at
this commit?
xe_guc_capture_vf_handler() is wired into process_g2h_msg() here and
calls xe_guc_capture_process() -> __guc_capture_process_output(), which
reads and updates guc->log.bo->vmap using PF log layout constants instead
of the guc->ads.bo buffer registered by xe_guc_ads_capture_init_vf().
When the PF enables debug state capture without GuC logging,
xe_guc_log_init() leaves guc->log.bo NULL, causing a NULL pointer
dereference on a VF capture notification. When both are enabled, it
writes read_ptr to guc->log.bo without holding log->vf_log_capture_lock.
Commit "drm/xe/guc: Process VF GuC error state captures" fixes this later
in the series, but this commit breaks git bisect. Introducing VF capture
output processing before (or squashed with) wiring up
XE_GUC_ACTION_GUC2VF_NOTIFY_DEBUG_STATE_CAPTURE would keep it bisectable.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=10
^ permalink raw reply [flat|nested] 26+ messages in thread
* [RFC 11/11] drm/xe/guc: Process VF GuC error state captures
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (9 preceding siblings ...)
2026-12-04 14:47 ` [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF Satyanarayana K V P
@ 2026-12-04 14:47 ` Satyanarayana K V P
2026-12-04 18:41 ` sashiko-bot
2026-12-04 14:56 ` ✗ CI.checkpatch: warning for Enable GuC log and debug error state capture for VF Patchwork
` (2 subsequent siblings)
13 siblings, 1 reply; 26+ messages in thread
From: Satyanarayana K V P @ 2026-12-04 14:47 UTC (permalink / raw)
To: intel-xe
Cc: daniele.ceraolospurio, Satyanarayana K V P, Michał Winiarski,
Piotr Piórkowski
Process the debug error state capture snapshot received from GuC for a VF.
Initialize the capture preallocated nodes for VFs and allow coredump
matching and engine snapshot collection to consume captures reported
for VF queues.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
drivers/gpu/drm/xe/abi/guc_log_abi.h | 97 +++++++++++++++++++++++++++-
drivers/gpu/drm/xe/xe_devcoredump.c | 4 ++
drivers/gpu/drm/xe/xe_guc_capture.c | 76 +++++++++++++++++++---
3 files changed, 168 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/xe/abi/guc_log_abi.h b/drivers/gpu/drm/xe/abi/guc_log_abi.h
index fbf212d59a40..58706b0e80c4 100644
--- a/drivers/gpu/drm/xe/abi/guc_log_abi.h
+++ b/drivers/gpu/drm/xe/abi/guc_log_abi.h
@@ -9,7 +9,7 @@
#include <linux/types.h>
/**
- * DOC: GuC Log buffer Layout
+ * DOC: GuC Log buffer Layout for native / PF
*
* The in-memory log buffer layout is as follows::
*
@@ -42,6 +42,44 @@
* +===============================+ Total: GUC_LOG_SIZE
*/
+/**
+ * DOC: GuC Log buffer and capture dump state Layout for VF
+ *
+ * The in-memory log buffer layout is as follows::
+ *
+ * +===============================+ 0000h
+ * | Debug state header | ^
+ * +-------------------------------+ 32B |
+ * | | |
+ * | Reserved | 4KB
+ * | | |
+ * | | v
+ * +===============================+ <--- EVENT_DATA_OFFSET
+ * | | ^
+ * | | |
+ * | | |
+ * | Event logs(raw data) | EVENT_DATA_BUFFER_SIZE
+ * | | |
+ * | | |
+ * | | v
+ * +===============================+ Total: GUC_LOG_SIZE
+ *
+ * +===============================+ 0000h
+ * | Crash dump state header | ^
+ * +-------------------------------+ 32B |
+ * | | |
+ * | Reserved | 4KB
+ * | | |
+ * | | v
+ * +===============================+ <--- STATE_CAPTURE_OFFSET
+ * | | ^
+ * | | |
+ * | Error state capture(raw data) | STATE_CAPTURE_BUFFER_SIZE
+ * | | |
+ * | | v
+ * +===============================+ Total: STATE_CAPTURE_SIZE
+ */
+
/* GuC logging buffer types */
enum guc_log_type {
GUC_LOG_TYPE_EVENT_DATA,
@@ -106,4 +144,61 @@ struct guc_log_buffer_state {
u32 version;
} __packed;
+/**
+ * struct guc_debug_snapshot_buffer_state_vf - guc debug capture snapshot
+ *
+ * Below state structure is used for coordination of retrieval of debug state
+ * capture of debug state from GuC firmware. This is a circular buffer where
+ * start_ptr points to the oldest valid byte and end_ptr points to one past
+ * the newest valid byte. In case if the buffer has wrapped around, wrap_offset
+ * indicates the byte offset one past the last valid byte before the wraparound.
+ * The flags field indicates whether the buffer is full or if an overflow has
+ * occurred. The log_entry_version field indicates the version of the log entry
+ * format.
+ */
+struct guc_debug_snapshot_buffer_state_vf {
+ /** @marker: buffer state start marker */
+ u32 marker[2];
+ /** @version: The version of the this structure */
+ struct version {
+ /** @version.minor: Minor version number */
+ u32 minor:8;
+ /** @version.major: Major version number */
+ u32 major:8;
+ /** @version.reserved: Reserved for future use */
+ u32 reserved:16;
+ } __packed version;
+ /**
+ * @start_ptr: Byte offset of the first (oldest) valid byte of data
+ * in the data region.
+ */
+ u32 start_ptr;
+ /**
+ * @end_ptr: Byte offset one past the last (newest) valid byte of data
+ * in the data region.
+ */
+ u32 end_ptr;
+ /** @size: Log buffer size in bytes */
+ u32 size;
+ /**
+ * @wrap_offset: wraparound offset.
+ * Byte offset one past the last valid byte of data before a wraparound.
+ * If start_ptr >= end_ptr, the valid data is [start_ptr, wrap_offset)
+ * followed by [0, end_ptr).
+ */
+ u32 wrap_offset;
+ /**
+ * @flags: Buffer full or overflow.
+ * full: When set, start_ptr == end_ptr means the region is full.
+ * When clear, start_ptr == end_ptr means the region is empty.
+ * overflow: When set, unread data was overwritten before the snapshot
+ * was taken, so data has been lost.
+ */
+ u32 flags;
+#define GUC_LOG_BUFFER_STATE_FULL BIT(0)
+#define GUC_LOG_BUFFER_STATE_OVERFLOW BIT(1)
+ /** @log_entry_version: The Guc-Log-Entry format version */
+ u32 log_entry_version;
+} __packed;
+
#endif
diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c
index 7634246d7725..c9768842c643 100644
--- a/drivers/gpu/drm/xe/xe_devcoredump.c
+++ b/drivers/gpu/drm/xe/xe_devcoredump.c
@@ -678,6 +678,10 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FORCEWAKE_ALL);
+ /* We need request GuC log and keep it ready in the buffer */
+ if (xe_guc_log_vf_supported(&guc->log))
+ xe_guc_log_vf_request_snapshot(&guc->log);
+
cookie = dma_fence_begin_signalling();
other_gt = gt->tile->media_gt == gt ? gt->tile->primary_gt
diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
index 7e3b1bb23433..45bbc7cd4893 100644
--- a/drivers/gpu/drm/xe/xe_guc_capture.c
+++ b/drivers/gpu/drm/xe/xe_guc_capture.c
@@ -1151,6 +1151,8 @@ guc_capture_log_remove_bytes(struct xe_guc *guc, struct __guc_capture_bufstate *
{
#define GUC_CAPTURE_LOG_BUF_COPY_RETRY_MAX 3
+ struct iosys_map *src = IS_SRIOV_VF(guc_to_xe(guc)) ?
+ &guc->ads.bo->vmap : &guc->log.bo->vmap;
int fill_size = 0, tries = GUC_CAPTURE_LOG_BUF_COPY_RETRY_MAX;
int copy_size, avail;
@@ -1175,7 +1177,7 @@ guc_capture_log_remove_bytes(struct xe_guc *guc, struct __guc_capture_bufstate *
/* Only copy to u32 aligned data */
copy_size = avail < bytes_needed ? avail - misaligned : bytes_needed;
- xe_map_memcpy_from(guc_to_xe(guc), out + fill_size, &guc->log.bo->vmap,
+ xe_map_memcpy_from(guc_to_xe(guc), out + fill_size, src,
buf->data_offset + buf->rd, copy_size);
buf->rd += copy_size;
fill_size += copy_size;
@@ -1581,6 +1583,60 @@ static void __guc_capture_process_output(struct xe_guc *guc)
__guc_capture_flushlog_complete(guc);
}
+static void guc_capture_process_output_vf(struct xe_guc *guc)
+{
+ struct guc_debug_snapshot_buffer_state_vf log_buf_state_local;
+ struct xe_uc *uc = container_of(guc, typeof(*uc), guc);
+ struct __guc_capture_bufstate buf;
+ u32 log_buf_state_offset;
+ u32 src_data_offset;
+ int ret;
+
+ log_buf_state_offset = 0;
+ src_data_offset = XE_GUC_LOG_EVENT_DATA_OFFSET;
+
+ /*
+ * Make a copy of the state structure, inside GuC log buffer
+ * (which is uncached mapped), on the stack to avoid reading
+ * from it multiple times.
+ */
+ xe_map_memcpy_from(guc_to_xe(guc), &log_buf_state_local, &guc->ads.bo->vmap,
+ log_buf_state_offset, sizeof(struct guc_debug_snapshot_buffer_state_vf));
+
+ xe_gt_dbg(guc_to_gt(guc),
+ "vf log-state: markers = 0x%08x,0x%08x ver = %u.%u start = 0x%08x end = 0x%08x\n",
+ log_buf_state_local.marker[0], log_buf_state_local.marker[1],
+ log_buf_state_local.version.major, log_buf_state_local.version.minor,
+ log_buf_state_local.start_ptr, log_buf_state_local.end_ptr);
+ xe_gt_dbg(guc_to_gt(guc),
+ "size = 0x%08x wrap = 0x%08x flags = 0x%08x logver = 0x%08x\n",
+ log_buf_state_local.size, log_buf_state_local.wrap_offset,
+ log_buf_state_local.flags, log_buf_state_local.log_entry_version);
+
+ /* Overflow and full count are for the dump parser. */
+ xe_gt_dbg(guc_to_gt(guc), "vf log-state: overflow = %lu full = %lu\n",
+ FIELD_GET(GUC_LOG_BUFFER_STATE_FULL, log_buf_state_local.flags),
+ FIELD_GET(GUC_LOG_BUFFER_STATE_OVERFLOW, log_buf_state_local.flags));
+
+ buf.size = log_buf_state_local.size;
+ buf.rd = log_buf_state_local.start_ptr;
+ buf.wr = log_buf_state_local.end_ptr;
+ buf.data_offset = src_data_offset;
+
+ if (!xe_guc_read_stopped(guc)) {
+ do {
+ ret = guc_capture_extract_reglists(guc, &buf);
+ if (ret && ret != -ENODATA)
+ xe_gt_dbg(guc_to_gt(guc), "Capture extraction failed:%d\n", ret);
+ } while (ret >= 0);
+ }
+
+ /* Make start_ptr same as end_ptr */
+ xe_map_wr(guc_to_xe(guc), &guc->ads.bo->vmap,
+ log_buf_state_offset + offsetof(struct guc_debug_snapshot_buffer_state_vf,
+ start_ptr), u32, log_buf_state_local.end_ptr);
+}
+
/*
* xe_guc_capture_process - Process GuC register captured data
* @guc: The GuC object
@@ -1593,7 +1649,14 @@ static void __guc_capture_process_output(struct xe_guc *guc)
*/
void xe_guc_capture_process(struct xe_guc *guc)
{
- if (guc->capture)
+ if (!guc->capture) {
+ xe_gt_warn(guc_to_gt(guc), "GuC capture not initialized\n");
+ return;
+ }
+
+ if (IS_SRIOV_VF(guc_to_xe(guc)))
+ guc_capture_process_output_vf(guc);
+ else
__guc_capture_process_output(guc);
}
@@ -2024,9 +2087,6 @@ xe_guc_capture_get_matching_and_lock(struct xe_exec_queue *q)
if (!xe_device_uc_enabled(xe))
return NULL;
- if (IS_SRIOV_VF(xe))
- return NULL;
-
ss = &xe->devcoredump.snapshot;
if (ss->matched_node && ss->matched_node->source == XE_ENGINE_CAPTURE_SOURCE_GUC)
return ss->matched_node;
@@ -2079,9 +2139,6 @@ xe_engine_snapshot_capture_for_queue(struct xe_exec_queue *q)
enum xe_hw_engine_id id;
u32 adj_logical_mask = q->logical_mask;
- if (IS_SRIOV_VF(xe))
- return;
-
for_each_hw_engine(hwe, q->gt, id) {
if (hwe->class != q->hwe->class ||
!(BIT(hwe->logical_instance) & adj_logical_mask)) {
@@ -2175,6 +2232,9 @@ int xe_guc_capture_init(struct xe_guc *guc)
INIT_LIST_HEAD(&guc->capture->outlist);
INIT_LIST_HEAD(&guc->capture->cachelist);
+ if (IS_SRIOV_VF(guc_to_xe(guc)))
+ guc_capture_create_prealloc_nodes(guc);
+
return 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [RFC 11/11] drm/xe/guc: Process VF GuC error state captures
2026-12-04 14:47 ` [RFC 11/11] drm/xe/guc: Process VF GuC error state captures Satyanarayana K V P
@ 2026-12-04 18:41 ` sashiko-bot
0 siblings, 0 replies; 26+ messages in thread
From: sashiko-bot @ 2026-12-04 18:41 UTC (permalink / raw)
To: Satyanarayana K V P, intel-xe
Thank you for your contribution! Sashiko AI review found 14 potential
issues to consider:
- [High] drm/xe: union type confusion in devcoredump_snapshot() on
SR-IOV PF
- [High] drm/xe: xe_hw_engine_snapshot_capture() drops VF captures and
leaks nodes
- [Medium] drm/xe: devcoredump_snapshot() stalls TDR on hung or stopped
VF GuC
- [Medium] drm/xe/guc: NULL guc->ads.bo deref in
guc_capture_process_output_vf()
- [Medium] drm/xe/guc: unvalidated VF header bounds in
guc_capture_process_output_vf()
- [Medium] drm/xe/guc: guc_capture_process_output_vf() ignores
wrap_offset and FULL flag
- [Medium] drm/xe/guc: unconditional VF node prealloc in
xe_guc_capture_init()
- [Medium] drm/xe: unserialized xe_guc_mmio_send() from
devcoredump_snapshot()
- [Low] drm/xe: vf_log_capture_lock dropped before log BO copy in
devcoredump
- [Low] drm/xe: non-portable bitfields and struct version tag in
guc_log_abi.h
- [Low] drm/xe/guc: swapped overflow and full args in
guc_capture_process_output_vf()
- [Low] drm/xe/guc: non-portable bitfields and wrong DOC size in
guc_log_abi.h
- [Low] drm/xe: unused uc variable and unreachable VF check in
xe_guc_capture.c
- [Low] drm/xe: commit message omits VF GuC log request in
devcoredump_snapshot()
--
commit 4aa56cd4efff155a6869d4a8e1711b02a0d8fd3a
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> drm/xe/guc: Process VF GuC error state captures
>
> Process the debug error state capture snapshot received from GuC for a VF.
> Initialize the capture preallocated nodes for VFs and allow coredump
> matching and engine snapshot collection to consume captures reported
> for VF queues.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
[Severity: Low]
Should the commit message mention the VF GuC event log snapshot request
added to devcoredump_snapshot()? Calling xe_guc_log_vf_request_snapshot()
populates guc->log.bo before xe_guc_log_snapshot_capture() copies it,
which is separate from error state capture processing and may belong in
its own commit or be described here.
> diff --git a/drivers/gpu/drm/xe/abi/guc_log_abi.h b/drivers/gpu/drm/xe/abi/guc_log_abi.h
> index fbf212d59a40e..58706b0e80c4c 100644
> --- a/drivers/gpu/drm/xe/abi/guc_log_abi.h
> +++ b/drivers/gpu/drm/xe/abi/guc_log_abi.h
[ ... ]
> + * +===============================+ 0000h
> + * | Crash dump state header | ^
> + * +-------------------------------+ 32B |
> + * | | |
> + * | Reserved | 4KB
[Severity: Low]
Are the header label and size in this diagram accurate? This buffer holds
error state capture rather than a crash dump, and
struct guc_debug_snapshot_buffer_state_vf has nine u32 fields (36 bytes),
not 32B.
[ ... ]
> +struct guc_debug_snapshot_buffer_state_vf {
> + /** @marker: buffer state start marker */
> + u32 marker[2];
> + /** @version: The version of the this structure */
> + struct version {
> + /** @version.minor: Minor version number */
> + u32 minor:8;
> + /** @version.major: Major version number */
> + u32 major:8;
> + /** @version.reserved: Reserved for future use */
> + u32 reserved:16;
> + } __packed version;
[Severity: Low]
Should version be a plain u32 with GENMASK() definitions instead of a
named bitfield struct? C bitfield ordering is endianness- and
compiler-dependent (unlike the rest of drivers/gpu/drm/xe/abi/), and
declaring a tagged struct version here exports that tag at file scope to
every includer of this header.
> diff --git a/drivers/gpu/drm/xe/xe_devcoredump.c b/drivers/gpu/drm/xe/xe_devcoredump.c
> index 7634246d77258..c9768842c6435 100644
> --- a/drivers/gpu/drm/xe/xe_devcoredump.c
> +++ b/drivers/gpu/drm/xe/xe_devcoredump.c
> @@ -678,6 +678,10 @@ static void devcoredump_snapshot(struct xe_devcoredump *coredump,
>
> CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FORCEWAKE_ALL);
>
> + /* We need request GuC log and keep it ready in the buffer */
> + if (xe_guc_log_vf_supported(&guc->log))
> + xe_guc_log_vf_request_snapshot(&guc->log);
> +
> cookie = dma_fence_begin_signalling();
[Severity: High]
Can this trigger union type confusion and a NULL pointer dereference on an
SR-IOV PF?
devcoredump_snapshot() runs on native, PF, and VF devices, but
xe_guc_log_vf_supported() reads gt->sriov.vf.debug_log.guc_log_enabled
without checking IS_SRIOV_VF(). Because gt->sriov is a union of pf and
vf, on a PF this reads an aliased byte from live gt->sriov.pf data.
If that byte is non-zero, xe_guc_log_vf_request_snapshot() runs on the PF,
where xe_guc_log_init() never initialized log->vf_log_capture_lock or
log->vf_log_ready, hitting xe_gt_assert(gt, IS_SRIOV_VF(xe)) and crashing
in wait_for_completion_timeout(). Checking IS_SRIOV_VF(gt_to_xe(gt))
inside xe_guc_log_vf_supported() would prevent this.
[Severity: Medium]
Can calling xe_guc_log_vf_request_snapshot() here stall TDR and GT reset
recovery when the VF GuC is hung or stopped?
guc_exec_queue_timedout_job() calls xe_devcoredump() right before
xe_gt_reset_async(), including after a schedule-disable timeout or when
xe_guc_read_stopped(guc) is already set. Without checking
xe_guc_read_stopped(guc), this blocks under coredump->lock for up to
GUC_LOG_VF_READY_TIMEOUT (5 seconds) waiting on CTB (or falls back to
blocking MMIO HXG requests when CT is stopped), while also ignoring the
return value.
[Severity: Medium]
Can the MMIO fallback in xe_guc_log_vf_request_snapshot() race with
xe_uc_suspend() on the shared per-GT MMIO mailbox?
CPU0 (PM suspend) CPU1 (gt->ordered_wq)
xe_uc_suspend()
uc_reset_wait() /* stopped=1 */
xe_uc_stop()
xe_guc_ct_stop()
guc_exec_queue_timedout_job()
xe_devcoredump()
devcoredump_snapshot()
xe_guc_log_vf_request_snapshot()
/* !ct_enabled -> MMIO path */
xe_guc_suspend()
xe_guc_softreset()
xe_guc_mmio_send() xe_guc_mmio_send()
<-- concurrent VF_SW_FLAG use
drm_sched_wqueue_stop() does not cancel sched->work_tdr, and
xe_guc_mmio_send_recv() writes and polls VF_SW_FLAG / MED_VF_SW_FLAG
without mutual exclusion. Overlapping requests can corrupt the mailbox
exchange and fail xe_guc_softreset(), aborting suspend.
[Severity: Low]
Can log->bo be overwritten by GuC while devcoredump_snapshot() is copying
it?
xe_guc_log_vf_request_snapshot() drops log->vf_log_capture_lock before
returning, while xe_guc_log_snapshot_capture() copies log->bo->vmap in
chunks later in devcoredump_snapshot(). A concurrent debugfs guc_log read
via xe_guc_log_vf_print() can request a new snapshot mid-copy, producing
a torn log dump.
> diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
> index 7e3b1bb234331..45bbc7cd48936 100644
> --- a/drivers/gpu/drm/xe/xe_guc_capture.c
> +++ b/drivers/gpu/drm/xe/xe_guc_capture.c
[ ... ]
> @@ -1581,6 +1583,60 @@ static void __guc_capture_process_output(struct xe_guc *guc)
> __guc_capture_flushlog_complete(guc);
> }
>
> +static void guc_capture_process_output_vf(struct xe_guc *guc)
> +{
> + struct guc_debug_snapshot_buffer_state_vf log_buf_state_local;
> + struct xe_uc *uc = container_of(guc, typeof(*uc), guc);
[Severity: Low]
Is uc unused here? Also, now that xe_guc_capture_process() routes all VFs
to guc_capture_process_output_vf(), the IS_SRIOV_VF() early return inside
__guc_capture_process_output() is unreachable dead code and can be
removed.
[ ... ]
> + xe_map_memcpy_from(guc_to_xe(guc), &log_buf_state_local, &guc->ads.bo->vmap,
> + log_buf_state_offset, sizeof(struct guc_debug_snapshot_buffer_state_vf));
[Severity: Medium]
Can guc->ads.bo be NULL here?
guc_init_vf() always allocates guc->capture before calling
xe_guc_ads_init(), which returns 0 early leaving ads->bo == NULL when
ads->capture_size is 0 (VF debug state capture disabled by the PF). If an
unexpected capture G2H notification arrives, xe_guc_capture_process() only
checks !guc->capture and reaches &guc->ads.bo->vmap, causing a NULL
pointer dereference.
[ ... ]
> + /* Overflow and full count are for the dump parser. */
> + xe_gt_dbg(guc_to_gt(guc), "vf log-state: overflow = %lu full = %lu\n",
> + FIELD_GET(GUC_LOG_BUFFER_STATE_FULL, log_buf_state_local.flags),
> + FIELD_GET(GUC_LOG_BUFFER_STATE_OVERFLOW, log_buf_state_local.flags));
[Severity: Low]
Are the FIELD_GET() arguments swapped relative to the format string?
The format prints overflow first and full second, while the arguments pass
GUC_LOG_BUFFER_STATE_FULL then GUC_LOG_BUFFER_STATE_OVERFLOW.
> +
> + buf.size = log_buf_state_local.size;
> + buf.rd = log_buf_state_local.start_ptr;
> + buf.wr = log_buf_state_local.end_ptr;
> + buf.data_offset = src_data_offset;
[Severity: Medium]
Can malformed or uninitialized header fields in guc->ads.bo cause an
out-of-bounds read or buffer overflow in guc_capture_log_remove_bytes()?
Unlike __guc_capture_process_output(), this assigns size, start_ptr, and
end_ptr from firmware-writable memory without checking them against
xe_bo_size(guc->ads.bo) - src_data_offset (or INT_MAX), or verifying
rd <= size and wr <= size. If start_ptr > size and start_ptr > end_ptr,
guc_capture_buf_cnt_to_end() returns a negative int that
guc_capture_log_remove_bytes() passes as copy_size to xe_map_memcpy_from(),
sign-extending it to size_t and overflowing the destination buffer.
> +
> + if (!xe_guc_read_stopped(guc)) {
> + do {
> + ret = guc_capture_extract_reglists(guc, &buf);
> + if (ret && ret != -ENODATA)
> + xe_gt_dbg(guc_to_gt(guc), "Capture extraction failed:%d\n", ret);
> + } while (ret >= 0);
> + }
> +
> + /* Make start_ptr same as end_ptr */
> + xe_map_wr(guc_to_xe(guc), &guc->ads.bo->vmap,
> + log_buf_state_offset + offsetof(struct guc_debug_snapshot_buffer_state_vf,
> + start_ptr), u32, log_buf_state_local.end_ptr);
> +}
[Severity: Medium]
Does this drop full capture buffers and corrupt wrapped streams?
Per struct guc_debug_snapshot_buffer_state_vf, when start_ptr >= end_ptr
valid data is [start_ptr, wrap_offset) followed by [0, end_ptr), and
GUC_LOG_BUFFER_STATE_FULL distinguishes a full buffer from an empty one
when start_ptr == end_ptr.
Because wrap_offset is ignored, guc_capture_buf_cnt_to_end() reads stale
bytes in [wrap_offset, size) when wrap_offset < size, breaking header
parsing. When GUC_LOG_BUFFER_STATE_FULL is set with start_ptr == end_ptr,
guc_capture_buf_cnt() returns 0 and silently discards the entire buffer,
and updating start_ptr without clearing GUC_LOG_BUFFER_STATE_FULL leaves
the header still marked full.
[ ... ]
> @@ -2024,9 +2087,6 @@ xe_guc_capture_get_matching_and_lock(struct xe_exec_queue *q)
> if (!xe_device_uc_enabled(xe))
> return NULL;
>
> - if (IS_SRIOV_VF(xe))
> - return NULL;
> -
> ss = &xe->devcoredump.snapshot;
> if (ss->matched_node && ss->matched_node->source == XE_ENGINE_CAPTURE_SOURCE_GUC)
> return ss->matched_node;
> @@ -2079,9 +2139,6 @@ xe_engine_snapshot_capture_for_queue(struct xe_exec_queue *q)
> enum xe_hw_engine_id id;
> u32 adj_logical_mask = q->logical_mask;
>
> - if (IS_SRIOV_VF(xe))
> - return;
> -
> for_each_hw_engine(hwe, q->gt, id) {
> if (hwe->class != q->hwe->class ||
> !(BIT(hwe->logical_instance) & adj_logical_mask)) {
[Severity: High]
Does removing these IS_SRIOV_VF() guards without updating
xe_hw_engine_snapshot_capture() drop VF captures and leak preallocated
nodes?
xe_hw_engine_snapshot_capture() still returns early on VFs before
attaching the matched GuC capture node:
drivers/gpu/drm/xe/xe_hw_engine.c:xe_hw_engine_snapshot_capture() {
...
/* no more VF accessible data below this point */
if (IS_SRIOV_VF(gt_to_xe(hwe->gt)))
return snapshot;
if (q) {
/* If got guc capture, set source to GuC */
node = xe_guc_capture_get_matching_and_lock(q);
...
}
When GuC delivers a VF capture before TDR runs,
guc_exec_queue_timedout_job() calls xe_guc_capture_get_matching_and_lock(),
setting n->locked = 1 and skipping the early
xe_engine_snapshot_capture_for_queue() call. Later, devcoredump_snapshot()
calls xe_hw_engine_snapshot_capture(), which returns early leaving
coredump->snapshot.matched_node NULL.
As a result, xe_engine_snapshot_print() omits the captured registers from
the devcoredump, and xe_guc_capture_put_matched_nodes() never unlocks or
returns n to cachelist, permanently leaking one node per hang until the
pool is exhausted. Moving the VF check after the if (q) block (or relying
on the existing VF guard in xe_engine_manual_capture()) would fix both.
> @@ -2175,6 +2232,9 @@ int xe_guc_capture_init(struct xe_guc *guc)
> INIT_LIST_HEAD(&guc->capture->outlist);
> INIT_LIST_HEAD(&guc->capture->cachelist);
>
> + if (IS_SRIOV_VF(guc_to_xe(guc)))
> + guc_capture_create_prealloc_nodes(guc);
> +
> return 0;
> }
[Severity: Medium]
Should VF node preallocation be gated on VF debug state capture support?
guc_init_vf() calls xe_guc_capture_init() before xe_guc_ads_init() checks
whether the PF enabled VF debug state capture, so this unconditionally
allocates PREALLOC_NODES_MAX_COUNT (1,536) nodes via 6,144 drmm_kzalloc()
calls per GT (~5 MiB per GT) on every VF even when capture is disabled.
Deferring this until after xe_guc_ads_init() and checking
xe_guc_debug_capture_support(&guc->ads) would avoid that overhead.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=11
^ permalink raw reply [flat|nested] 26+ messages in thread
* ✗ CI.checkpatch: warning for Enable GuC log and debug error state capture for VF
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (10 preceding siblings ...)
2026-12-04 14:47 ` [RFC 11/11] drm/xe/guc: Process VF GuC error state captures Satyanarayana K V P
@ 2026-12-04 14:56 ` Patchwork
2026-12-04 14:58 ` ✓ CI.KUnit: success " Patchwork
2026-12-04 15:34 ` ✗ Xe.CI.BAT: failure " Patchwork
13 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2026-12-04 14:56 UTC (permalink / raw)
To: Satyanarayana K V P; +Cc: intel-xe
== Series Details ==
Series: Enable GuC log and debug error state capture for VF
URL : https://patchwork.freedesktop.org/series/180547/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
3009867cd31863246e4afc138520a7a8bd37bb11
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit f31a53ac78f8bdca81e70b3ce86994eeff03000c
Author: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Date: Fri Dec 4 20:17:24 2026 +0530
drm/xe/guc: Process VF GuC error state captures
Process the debug error state capture snapshot received from GuC for a VF.
Initialize the capture preallocated nodes for VFs and allow coredump
matching and engine snapshot collection to consume captures reported
for VF queues.
Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
+ /mt/dim checkpatch a6654a9826252d6fb3e62c97eda441704d6591c1 drm-intel
c8ba5bf54a5b drm/xe/pf: Allow VF access to GuC timestamp registers
7175ac448bf3 drm/xe/vf: Enable VF debug logging only on supported GUC versions
cbc0010d4f3f drm/xe/guc: Add KLV definitions for GuC log and debug state capture
5265a1f785cf drm/xe/pf: Enable VF debug logging only on supported GUC versions
a43c412a424f drm/xe/pf: Enable VF Guc log and debug state capture
3c0e3422d9d6 drm/xe/vf: Query and allocate VF GuC log and debug capture buffers
58ecf538be48 drm/xe/vf: Register VF GuC log and debug state capture buffers
b96ae6aa19b5 drm/xe/vf: Initialize GuC logging buffers during GuC setup
5c9410ad01e5 drm/xe/guc: Register VF-accessible registers for error capture
-:40: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#40: FILE: drivers/gpu/drm/xe/xe_guc_capture.c:139:
+#define COMMON_BASE_ENGINE_INSTANCE_PF_ONLY \
+ { RING_HWSTAM(0), REG_32BIT, 0, 0, 0, "HWSTAM"}, \
+ { GFX_MODE(0), REG_32BIT, 0, 0, 0, "GFX_MODE"}
BUT SEE:
do {} while (0) advice is over-stated in a few situations:
The more obvious case is macros, like MODULE_PARM_DESC, invoked at
file-scope, where C disallows code (it must be in functions). See
$exceptions if you have one to add by name.
More troublesome is declarative macros used at top of new scope,
like DECLARE_PER_CPU. These might just compile with a do-while-0
wrapper, but would be incorrect. Most of these are handled by
detecting struct,union,etc declaration primitives in $exceptions.
Theres also macros called inside an if (block), which "return" an
expression. These cannot do-while, and need a ({}) wrapper.
Enjoy this qualification while we work to improve our heuristics.
total: 1 errors, 0 warnings, 0 checks, 146 lines checked
aa46afba42e7 drm/xe/guc: Handle GuC debug state capture notifications for VF
f31a53ac78f8 drm/xe/guc: Process VF GuC error state captures
^ permalink raw reply [flat|nested] 26+ messages in thread* ✓ CI.KUnit: success for Enable GuC log and debug error state capture for VF
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (11 preceding siblings ...)
2026-12-04 14:56 ` ✗ CI.checkpatch: warning for Enable GuC log and debug error state capture for VF Patchwork
@ 2026-12-04 14:58 ` Patchwork
2026-12-04 15:34 ` ✗ Xe.CI.BAT: failure " Patchwork
13 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2026-12-04 14:58 UTC (permalink / raw)
To: Satyanarayana K V P; +Cc: intel-xe
== Series Details ==
Series: Enable GuC log and debug error state capture for VF
URL : https://patchwork.freedesktop.org/series/180547/
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
[14:56:35] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:56:40] 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
[14:57:01] Starting KUnit Kernel (1/1)...
[14:57:01] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:57:01] ================= gpu_buddy (15 subtests) ==================
[14:57:01] [PASSED] gpu_test_buddy_alloc_limit
[14:57:01] [PASSED] gpu_test_buddy_alloc_optimistic
[14:57:01] [PASSED] gpu_test_buddy_alloc_pessimistic
[14:57:01] [PASSED] gpu_test_buddy_alloc_pathological
[14:57:01] [PASSED] gpu_test_buddy_alloc_contiguous
[14:57:01] [PASSED] gpu_test_buddy_alloc_clear
[14:57:01] [PASSED] gpu_test_buddy_alloc_range
[14:57:01] [PASSED] gpu_test_buddy_alloc_range_bias
[14:57:01] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[14:57:02] [PASSED] gpu_test_buddy_fragmentation_performance
[14:57:03] [PASSED] gpu_test_buddy_dirty_tracker_performance
[14:57:03] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[14:57:03] [PASSED] gpu_test_buddy_offset_aligned_allocation
[14:57:03] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[14:57:03] [PASSED] gpu_test_buddy_addr_to_block
[14:57:03] ==================== [PASSED] gpu_buddy ====================
[14:57:03] ============================================================
[14:57:03] Testing complete. Ran 15 tests: passed: 15
[14:57:03] Elapsed time: 27.874s total, 5.196s configuring, 20.611s building, 1.991s 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
[14:57:03] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:57:05] 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
[14:57:44] Starting KUnit Kernel (1/1)...
[14:57:44] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:57:44] ================ xe_ggtt_iov (10 subtests) =================
[14:57:44] [PASSED] init_shared_pf
[14:57:44] [PASSED] init_partial_overlap
[14:57:44] [PASSED] alloc_usable_pool_low
[14:57:44] [PASSED] alloc_shareable_pool_high
[14:57:44] [PASSED] alloc_partial_overlap
[14:57:44] [PASSED] alloc_partial_overlap_usable_full
[14:57:44] [PASSED] alloc_partial_overlap_shareable_full
[14:57:44] [PASSED] alloc_shareable_pool_unavailable
[14:57:44] [PASSED] alloc_shareable_pool_oversized
[14:57:44] [PASSED] alloc_shareable_aligned_addr
[14:57:44] =================== [PASSED] xe_ggtt_iov ===================
[14:57:44] =================== xe_ggtt (3 subtests) ===================
[14:57:44] [PASSED] init_native
[14:57:44] [PASSED] alloc_usable_pool_native
[14:57:44] [PASSED] alloc_usable_pool_oversized
[14:57:44] ===================== [PASSED] xe_ggtt =====================
[14:57:44] ================== guc_buf (11 subtests) ===================
[14:57:44] [PASSED] test_smallest
[14:57:44] [PASSED] test_largest
[14:57:44] [PASSED] test_granular
[14:57:44] [PASSED] test_unique
[14:57:44] [PASSED] test_overlap
[14:57:44] [PASSED] test_reusable
[14:57:44] [PASSED] test_too_big
[14:57:44] [PASSED] test_flush
[14:57:44] [PASSED] test_lookup
[14:57:44] [PASSED] test_data
[14:57:44] [PASSED] test_class
[14:57:44] ===================== [PASSED] guc_buf =====================
[14:57:44] =================== guc_dbm (7 subtests) ===================
[14:57:44] [PASSED] test_empty
[14:57:44] [PASSED] test_default
[14:57:44] ======================== test_size ========================
[14:57:44] [PASSED] 4
[14:57:44] [PASSED] 8
[14:57:44] [PASSED] 32
[14:57:44] [PASSED] 256
[14:57:44] ==================== [PASSED] test_size ====================
[14:57:44] ======================= test_reuse ========================
[14:57:44] [PASSED] 4
[14:57:44] [PASSED] 8
[14:57:44] [PASSED] 32
[14:57:44] [PASSED] 256
[14:57:44] =================== [PASSED] test_reuse ====================
[14:57:44] =================== test_range_overlap ====================
[14:57:44] [PASSED] 4
[14:57:44] [PASSED] 8
[14:57:44] [PASSED] 32
[14:57:44] [PASSED] 256
[14:57:44] =============== [PASSED] test_range_overlap ================
[14:57:44] =================== test_range_compact ====================
[14:57:44] [PASSED] 4
[14:57:44] [PASSED] 8
[14:57:44] [PASSED] 32
[14:57:44] [PASSED] 256
[14:57:44] =============== [PASSED] test_range_compact ================
[14:57:44] ==================== test_range_spare =====================
[14:57:44] [PASSED] 4
[14:57:44] [PASSED] 8
[14:57:44] [PASSED] 32
[14:57:44] [PASSED] 256
[14:57:44] ================ [PASSED] test_range_spare =================
[14:57:44] ===================== [PASSED] guc_dbm =====================
[14:57:44] ================== guc_idm (22 subtests) ===================
[14:57:44] [PASSED] bad_init
[14:57:44] [PASSED] no_init
[14:57:44] [PASSED] init_fini
[14:57:44] [PASSED] check_init_small
[14:57:44] [PASSED] check_init_shared
[14:57:44] [PASSED] check_used
[14:57:44] [PASSED] check_quota
[14:57:44] [PASSED] check_all
[14:57:44] [PASSED] check_limits
[14:57:44] [PASSED] check_overlap
[14:57:44] [PASSED] check_overlap_alloc
[14:57:44] [PASSED] check_overlap_release
[14:57:44] [PASSED] check_overlap_partial_init
[14:57:44] [PASSED] check_overlap_partial_shared_range_blocking
[14:57:44] [PASSED] check_used_usable
[14:57:44] [PASSED] check_used_shareable
[14:57:44] [PASSED] check_used_mixed
[14:57:44] [PASSED] check_release_usable_range
[14:57:44] [PASSED] check_release_shareable_range
[14:57:44] [PASSED] check_split_boundaries
[14:57:44] [PASSED] check_shareable_spare
[14:57:44] [PASSED] check_shareable_spare_fragmented_tail
[14:57:44] ===================== [PASSED] guc_idm =====================
[14:57:44] ============== guc_klv_helpers (13 subtests) ===============
[14:57:44] [PASSED] test_count
[14:57:44] [PASSED] test_encode_u32
[14:57:44] [PASSED] test_encode_u64
[14:57:44] [PASSED] test_encode_string
[14:57:44] [PASSED] test_encode_object_raw
[14:57:44] [PASSED] test_encode_object_klv
[14:57:44] [PASSED] test_encode_object_nested
[14:57:44] [PASSED] test_encode_object_basic
[14:57:44] ===================== test_decode_u16 =====================
[14:57:44] [PASSED] empty
[14:57:44] [PASSED] valid
[14:57:44] [PASSED] max
[14:57:44] [PASSED] big
[14:57:44] [PASSED] long
[14:57:44] ================= [PASSED] test_decode_u16 =================
[14:57:44] ===================== test_decode_u32 =====================
[14:57:44] [PASSED] empty
[14:57:44] [PASSED] valid
[14:57:44] [PASSED] max
[14:57:44] [PASSED] long
[14:57:44] ================= [PASSED] test_decode_u32 =================
[14:57:44] ===================== test_decode_u64 =====================
[14:57:44] [PASSED] empty
[14:57:44] [PASSED] short
[14:57:44] [PASSED] valid
[14:57:44] [PASSED] max
[14:57:44] [PASSED] long
[14:57:44] ================= [PASSED] test_decode_u64 =================
[14:57:44] ===================== test_decode_str =====================
[14:57:44] [PASSED] empty
[14:57:44] [PASSED] one
[14:57:44] [PASSED] one_trash
[14:57:44] [PASSED] two
[14:57:44] [PASSED] two_trash
[14:57:44] [PASSED] three
[14:57:44] [PASSED] dword
[14:57:44] [PASSED] four
[14:57:44] [PASSED] five
[14:57:44] [PASSED] six
[14:57:44] [PASSED] seven
[14:57:44] [PASSED] qword
[14:57:44] ================= [PASSED] test_decode_str =================
[14:57:44] [PASSED] test_print
[14:57:44] ================= [PASSED] guc_klv_helpers =================
[14:57:44] =================== xe_log (6 subtests) ====================
[14:57:44] [PASSED] demo_cper
[14:57:44] [PASSED] demo_dmesg
[14:57:44] [PASSED] test_cper_null_xe
[14:57:44] ======================= test_dmesg ========================
[14:57:44] [PASSED] test_fatal
[14:57:44] [PASSED] test_fatal_tile
[14:57:44] [PASSED] test_fatal_gt
[14:57:44] [PASSED] test_fatal_comp
[14:57:44] [PASSED] test_fatal_comp_tile
[14:57:44] [PASSED] test_fatal_comp_gt
[14:57:44] [PASSED] test_fatal_all
[14:57:44] [PASSED] test_recoverable
[14:57:44] [PASSED] test_recoverable_tile
[14:57:44] [PASSED] test_recoverable_gt
[14:57:44] [PASSED] test_recoverable_comp
[14:57:44] [PASSED] test_recoverable_comp_tile
[14:57:44] [PASSED] test_recoverable_comp_gt
[14:57:44] [PASSED] test_recoverable_all
[14:57:44] [PASSED] test_info
[14:57:44] [PASSED] test_info_tile
[14:57:44] [PASSED] test_info_gt
[14:57:44] [PASSED] test_info_err
[14:57:44] [PASSED] test_info_comp
[14:57:44] [PASSED] test_info_comp_tile
[14:57:44] [PASSED] test_info_comp_gt
[14:57:44] [PASSED] test_info_all
[14:57:44] [PASSED] test_hw_fatal
[14:57:44] [PASSED] test_hw_recoverable
[14:57:44] [PASSED] test_hw_corrected
[14:57:44] [PASSED] test_hw_informational
[14:57:44] =================== [PASSED] test_dmesg ====================
[14:57:44] ====================== test_sw_cper =======================
[14:57:44] [PASSED] sw-fatal-errno
[14:57:44] [PASSED] sw-recoverable-errno
[14:57:44] [PASSED] sw-corrected
[14:57:44] [PASSED] sw-informational
[14:57:44] [PASSED] sw-with-error-class
[14:57:44] ================== [PASSED] test_sw_cper ===================
[14:57:44] ====================== test_invalid =======================
[14:57:44] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[14:57:44] ================== [SKIPPED] test_invalid ==================
[14:57:44] ===================== [PASSED] xe_log ======================
[14:57:44] ================== no_relay (3 subtests) ===================
[14:57:44] [PASSED] xe_drops_guc2pf_if_not_ready
[14:57:44] [PASSED] xe_drops_guc2vf_if_not_ready
[14:57:44] [PASSED] xe_rejects_send_if_not_ready
[14:57:44] ==================== [PASSED] no_relay =====================
[14:57:44] ================== pf_relay (14 subtests) ==================
[14:57:44] [PASSED] pf_rejects_guc2pf_too_short
[14:57:44] [PASSED] pf_rejects_guc2pf_too_long
[14:57:44] [PASSED] pf_rejects_guc2pf_no_payload
[14:57:44] [PASSED] pf_fails_no_payload
[14:57:44] [PASSED] pf_fails_bad_origin
[14:57:44] [PASSED] pf_fails_bad_type
[14:57:44] [PASSED] pf_txn_reports_error
[14:57:44] [PASSED] pf_txn_sends_pf2guc
[14:57:44] [PASSED] pf_sends_pf2guc
[14:57:44] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[14:57:44] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[14:57:44] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[14:57:44] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[14:57:44] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[14:57:44] ==================== [PASSED] pf_relay =====================
[14:57:44] ================== vf_relay (3 subtests) ===================
[14:57:44] [PASSED] vf_rejects_guc2vf_too_short
[14:57:44] [PASSED] vf_rejects_guc2vf_too_long
[14:57:44] [PASSED] vf_rejects_guc2vf_no_payload
[14:57:44] ==================== [PASSED] vf_relay =====================
[14:57:44] ================ pf_gt_config (9 subtests) =================
[14:57:44] [PASSED] fair_contexts_1vf
[14:57:44] [PASSED] fair_doorbells_1vf
[14:57:44] [PASSED] fair_ggtt_1vf
[14:57:44] ====================== fair_vram_1vf ======================
[14:57:44] [PASSED] 3.50 GiB
[14:57:44] [PASSED] 11.5 GiB
[14:57:44] [PASSED] 15.5 GiB
[14:57:44] [PASSED] 31.5 GiB
[14:57:44] [PASSED] 63.5 GiB
[14:57:44] [PASSED] 1.91 GiB
[14:57:44] ================== [PASSED] fair_vram_1vf ==================
[14:57:44] ================ fair_vram_1vf_admin_only =================
[14:57:44] [PASSED] 3.50 GiB
[14:57:44] [PASSED] 11.5 GiB
[14:57:44] [PASSED] 15.5 GiB
[14:57:44] [PASSED] 31.5 GiB
[14:57:44] [PASSED] 63.5 GiB
[14:57:44] [PASSED] 1.91 GiB
[14:57:44] ============ [PASSED] fair_vram_1vf_admin_only =============
[14:57:44] ====================== fair_contexts ======================
[14:57:44] [PASSED] 1 VF
[14:57:44] [PASSED] 2 VFs
[14:57:44] [PASSED] 3 VFs
[14:57:44] [PASSED] 4 VFs
[14:57:44] [PASSED] 5 VFs
[14:57:44] [PASSED] 6 VFs
[14:57:44] [PASSED] 7 VFs
[14:57:44] [PASSED] 8 VFs
[14:57:44] [PASSED] 9 VFs
[14:57:44] [PASSED] 10 VFs
[14:57:44] [PASSED] 11 VFs
[14:57:44] [PASSED] 12 VFs
[14:57:44] [PASSED] 13 VFs
[14:57:44] [PASSED] 14 VFs
[14:57:44] [PASSED] 15 VFs
[14:57:44] [PASSED] 16 VFs
[14:57:44] [PASSED] 17 VFs
[14:57:44] [PASSED] 18 VFs
[14:57:44] [PASSED] 19 VFs
[14:57:44] [PASSED] 20 VFs
[14:57:44] [PASSED] 21 VFs
[14:57:44] [PASSED] 22 VFs
[14:57:44] [PASSED] 23 VFs
[14:57:44] [PASSED] 24 VFs
[14:57:44] [PASSED] 25 VFs
[14:57:44] [PASSED] 26 VFs
[14:57:44] [PASSED] 27 VFs
[14:57:44] [PASSED] 28 VFs
[14:57:44] [PASSED] 29 VFs
[14:57:44] [PASSED] 30 VFs
[14:57:44] [PASSED] 31 VFs
[14:57:44] [PASSED] 32 VFs
[14:57:44] [PASSED] 33 VFs
[14:57:44] [PASSED] 34 VFs
[14:57:44] [PASSED] 35 VFs
[14:57:44] [PASSED] 36 VFs
[14:57:44] [PASSED] 37 VFs
[14:57:44] [PASSED] 38 VFs
[14:57:44] [PASSED] 39 VFs
[14:57:44] [PASSED] 40 VFs
[14:57:44] [PASSED] 41 VFs
[14:57:44] [PASSED] 42 VFs
[14:57:44] [PASSED] 43 VFs
[14:57:44] [PASSED] 44 VFs
[14:57:44] [PASSED] 45 VFs
[14:57:44] [PASSED] 46 VFs
[14:57:44] [PASSED] 47 VFs
[14:57:44] [PASSED] 48 VFs
[14:57:44] [PASSED] 49 VFs
[14:57:44] [PASSED] 50 VFs
[14:57:44] [PASSED] 51 VFs
[14:57:44] [PASSED] 52 VFs
[14:57:44] [PASSED] 53 VFs
[14:57:44] [PASSED] 54 VFs
[14:57:44] [PASSED] 55 VFs
[14:57:44] [PASSED] 56 VFs
[14:57:44] [PASSED] 57 VFs
[14:57:44] [PASSED] 58 VFs
[14:57:44] [PASSED] 59 VFs
[14:57:44] [PASSED] 60 VFs
[14:57:44] [PASSED] 61 VFs
[14:57:44] [PASSED] 62 VFs
[14:57:44] [PASSED] 63 VFs
[14:57:44] ================== [PASSED] fair_contexts ==================
[14:57:44] ===================== fair_doorbells ======================
[14:57:44] [PASSED] 1 VF
[14:57:44] [PASSED] 2 VFs
[14:57:44] [PASSED] 3 VFs
[14:57:44] [PASSED] 4 VFs
[14:57:44] [PASSED] 5 VFs
[14:57:44] [PASSED] 6 VFs
[14:57:44] [PASSED] 7 VFs
[14:57:44] [PASSED] 8 VFs
[14:57:44] [PASSED] 9 VFs
[14:57:44] [PASSED] 10 VFs
[14:57:44] [PASSED] 11 VFs
[14:57:44] [PASSED] 12 VFs
[14:57:44] [PASSED] 13 VFs
[14:57:44] [PASSED] 14 VFs
[14:57:44] [PASSED] 15 VFs
[14:57:44] [PASSED] 16 VFs
[14:57:44] [PASSED] 17 VFs
[14:57:44] [PASSED] 18 VFs
[14:57:44] [PASSED] 19 VFs
[14:57:44] [PASSED] 20 VFs
[14:57:44] [PASSED] 21 VFs
[14:57:44] [PASSED] 22 VFs
[14:57:44] [PASSED] 23 VFs
[14:57:44] [PASSED] 24 VFs
[14:57:44] [PASSED] 25 VFs
[14:57:44] [PASSED] 26 VFs
[14:57:44] [PASSED] 27 VFs
[14:57:44] [PASSED] 28 VFs
[14:57:44] [PASSED] 29 VFs
[14:57:44] [PASSED] 30 VFs
[14:57:44] [PASSED] 31 VFs
[14:57:44] [PASSED] 32 VFs
[14:57:44] [PASSED] 33 VFs
[14:57:44] [PASSED] 34 VFs
[14:57:44] [PASSED] 35 VFs
[14:57:44] [PASSED] 36 VFs
[14:57:44] [PASSED] 37 VFs
[14:57:44] [PASSED] 38 VFs
[14:57:44] [PASSED] 39 VFs
[14:57:44] [PASSED] 40 VFs
[14:57:44] [PASSED] 41 VFs
[14:57:44] [PASSED] 42 VFs
[14:57:44] [PASSED] 43 VFs
[14:57:44] [PASSED] 44 VFs
[14:57:44] [PASSED] 45 VFs
[14:57:44] [PASSED] 46 VFs
[14:57:44] [PASSED] 47 VFs
[14:57:44] [PASSED] 48 VFs
[14:57:44] [PASSED] 49 VFs
[14:57:44] [PASSED] 50 VFs
[14:57:44] [PASSED] 51 VFs
[14:57:44] [PASSED] 52 VFs
[14:57:44] [PASSED] 53 VFs
[14:57:44] [PASSED] 54 VFs
[14:57:44] [PASSED] 55 VFs
[14:57:44] [PASSED] 56 VFs
[14:57:44] [PASSED] 57 VFs
[14:57:44] [PASSED] 58 VFs
[14:57:44] [PASSED] 59 VFs
[14:57:44] [PASSED] 60 VFs
[14:57:44] [PASSED] 61 VFs
[14:57:44] [PASSED] 62 VFs
[14:57:44] [PASSED] 63 VFs
[14:57:44] ================= [PASSED] fair_doorbells ==================
[14:57:44] ======================== fair_ggtt ========================
[14:57:44] [PASSED] 1 VF
[14:57:44] [PASSED] 2 VFs
[14:57:44] [PASSED] 3 VFs
[14:57:44] [PASSED] 4 VFs
[14:57:44] [PASSED] 5 VFs
[14:57:44] [PASSED] 6 VFs
[14:57:44] [PASSED] 7 VFs
[14:57:44] [PASSED] 8 VFs
[14:57:44] [PASSED] 9 VFs
[14:57:44] [PASSED] 10 VFs
[14:57:44] [PASSED] 11 VFs
[14:57:44] [PASSED] 12 VFs
[14:57:44] [PASSED] 13 VFs
[14:57:44] [PASSED] 14 VFs
[14:57:44] [PASSED] 15 VFs
[14:57:44] [PASSED] 16 VFs
[14:57:44] [PASSED] 17 VFs
[14:57:44] [PASSED] 18 VFs
[14:57:44] [PASSED] 19 VFs
[14:57:44] [PASSED] 20 VFs
[14:57:44] [PASSED] 21 VFs
[14:57:44] [PASSED] 22 VFs
[14:57:44] [PASSED] 23 VFs
[14:57:44] [PASSED] 24 VFs
[14:57:44] [PASSED] 25 VFs
[14:57:44] [PASSED] 26 VFs
[14:57:44] [PASSED] 27 VFs
[14:57:44] [PASSED] 28 VFs
[14:57:44] [PASSED] 29 VFs
[14:57:44] [PASSED] 30 VFs
[14:57:44] [PASSED] 31 VFs
[14:57:44] [PASSED] 32 VFs
[14:57:44] [PASSED] 33 VFs
[14:57:44] [PASSED] 34 VFs
[14:57:44] [PASSED] 35 VFs
[14:57:44] [PASSED] 36 VFs
[14:57:44] [PASSED] 37 VFs
[14:57:44] [PASSED] 38 VFs
[14:57:44] [PASSED] 39 VFs
[14:57:44] [PASSED] 40 VFs
[14:57:44] [PASSED] 41 VFs
[14:57:44] [PASSED] 42 VFs
[14:57:44] [PASSED] 43 VFs
[14:57:44] [PASSED] 44 VFs
[14:57:44] [PASSED] 45 VFs
[14:57:44] [PASSED] 46 VFs
[14:57:44] [PASSED] 47 VFs
[14:57:44] [PASSED] 48 VFs
[14:57:44] [PASSED] 49 VFs
[14:57:44] [PASSED] 50 VFs
[14:57:44] [PASSED] 51 VFs
[14:57:44] [PASSED] 52 VFs
[14:57:44] [PASSED] 53 VFs
[14:57:44] [PASSED] 54 VFs
[14:57:44] [PASSED] 55 VFs
[14:57:44] [PASSED] 56 VFs
[14:57:44] [PASSED] 57 VFs
[14:57:44] [PASSED] 58 VFs
[14:57:44] [PASSED] 59 VFs
[14:57:44] [PASSED] 60 VFs
[14:57:44] [PASSED] 61 VFs
[14:57:44] [PASSED] 62 VFs
[14:57:44] [PASSED] 63 VFs
[14:57:44] ==================== [PASSED] fair_ggtt ====================
[14:57:44] ======================== fair_vram ========================
[14:57:44] [PASSED] 1 VF
[14:57:44] [PASSED] 2 VFs
[14:57:44] [PASSED] 3 VFs
[14:57:44] [PASSED] 4 VFs
[14:57:44] [PASSED] 5 VFs
[14:57:44] [PASSED] 6 VFs
[14:57:44] [PASSED] 7 VFs
[14:57:44] [PASSED] 8 VFs
[14:57:44] [PASSED] 9 VFs
[14:57:44] [PASSED] 10 VFs
[14:57:44] [PASSED] 11 VFs
[14:57:44] [PASSED] 12 VFs
[14:57:44] [PASSED] 13 VFs
[14:57:44] [PASSED] 14 VFs
[14:57:44] [PASSED] 15 VFs
[14:57:44] [PASSED] 16 VFs
[14:57:44] [PASSED] 17 VFs
[14:57:44] [PASSED] 18 VFs
[14:57:44] [PASSED] 19 VFs
[14:57:44] [PASSED] 20 VFs
[14:57:44] [PASSED] 21 VFs
[14:57:44] [PASSED] 22 VFs
[14:57:44] [PASSED] 23 VFs
[14:57:44] [PASSED] 24 VFs
[14:57:44] [PASSED] 25 VFs
[14:57:44] [PASSED] 26 VFs
[14:57:44] [PASSED] 27 VFs
[14:57:44] [PASSED] 28 VFs
[14:57:44] [PASSED] 29 VFs
[14:57:44] [PASSED] 30 VFs
[14:57:44] [PASSED] 31 VFs
[14:57:44] [PASSED] 32 VFs
[14:57:44] [PASSED] 33 VFs
[14:57:44] [PASSED] 34 VFs
[14:57:44] [PASSED] 35 VFs
[14:57:44] [PASSED] 36 VFs
[14:57:44] [PASSED] 37 VFs
[14:57:44] [PASSED] 38 VFs
[14:57:44] [PASSED] 39 VFs
[14:57:44] [PASSED] 40 VFs
[14:57:44] [PASSED] 41 VFs
[14:57:44] [PASSED] 42 VFs
[14:57:44] [PASSED] 43 VFs
[14:57:44] [PASSED] 44 VFs
[14:57:44] [PASSED] 45 VFs
[14:57:44] [PASSED] 46 VFs
[14:57:44] [PASSED] 47 VFs
[14:57:44] [PASSED] 48 VFs
[14:57:44] [PASSED] 49 VFs
[14:57:44] [PASSED] 50 VFs
[14:57:44] [PASSED] 51 VFs
[14:57:44] [PASSED] 52 VFs
[14:57:44] [PASSED] 53 VFs
[14:57:44] [PASSED] 54 VFs
[14:57:44] [PASSED] 55 VFs
[14:57:44] [PASSED] 56 VFs
[14:57:44] [PASSED] 57 VFs
[14:57:44] [PASSED] 58 VFs
[14:57:44] [PASSED] 59 VFs
[14:57:44] [PASSED] 60 VFs
[14:57:44] [PASSED] 61 VFs
[14:57:44] [PASSED] 62 VFs
[14:57:44] [PASSED] 63 VFs
[14:57:44] ==================== [PASSED] fair_vram ====================
[14:57:44] ================== [PASSED] pf_gt_config ===================
[14:57:44] ===================== lmtt (1 subtest) =====================
[14:57:44] ======================== test_ops =========================
[14:57:44] [PASSED] 2-level
[14:57:44] [PASSED] multi-level
[14:57:44] ==================== [PASSED] test_ops =====================
[14:57:44] ====================== [PASSED] lmtt =======================
[14:57:44] ================= sriov_packet (1 subtest) =================
[14:57:44] [PASSED] test_descriptor_init
[14:57:44] ================== [PASSED] sriov_packet ===================
[14:57:44] ================= pf_service (11 subtests) =================
[14:57:44] [PASSED] pf_negotiate_any
[14:57:44] [PASSED] pf_negotiate_base_match
[14:57:44] [PASSED] pf_negotiate_base_newer
[14:57:44] [PASSED] pf_negotiate_base_next
[14:57:44] [SKIPPED] pf_negotiate_base_older (no older minor)
[14:57:44] [PASSED] pf_negotiate_base_prev
[14:57:44] [PASSED] pf_negotiate_latest_match
[14:57:44] [PASSED] pf_negotiate_latest_newer
[14:57:44] [PASSED] pf_negotiate_latest_next
[14:57:44] [SKIPPED] pf_negotiate_latest_older (no older minor)
[14:57:44] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[14:57:44] =================== [PASSED] pf_service ====================
[14:57:44] ================= xe_guc_g2g (2 subtests) ==================
[14:57:44] ============== xe_live_guc_g2g_kunit_default ==============
[14:57:44] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[14:57:44] ============== xe_live_guc_g2g_kunit_allmem ===============
[14:57:44] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[14:57:44] =================== [SKIPPED] xe_guc_g2g ===================
[14:57:44] =================== xe_mocs (2 subtests) ===================
[14:57:44] ================ xe_live_mocs_kernel_kunit ================
[14:57:44] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[14:57:44] ================ xe_live_mocs_reset_kunit =================
[14:57:44] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[14:57:44] ==================== [SKIPPED] xe_mocs =====================
[14:57:44] ================= xe_migrate (3 subtests) ==================
[14:57:44] ================= xe_migrate_sanity_kunit =================
[14:57:44] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[14:57:44] ================== xe_validate_ccs_kunit ==================
[14:57:44] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[14:57:44] ============= xe_migrate_access_memory_kunit ==============
[14:57:44] ========= [SKIPPED] xe_migrate_access_memory_kunit =========
[14:57:44] =================== [SKIPPED] xe_migrate ===================
[14:57:44] ================== xe_dma_buf (1 subtest) ==================
[14:57:44] ==================== xe_dma_buf_kunit =====================
[14:57:44] ================ [SKIPPED] xe_dma_buf_kunit ================
[14:57:44] =================== [SKIPPED] xe_dma_buf ===================
[14:57:44] ================= xe_bo_shrink (1 subtest) =================
[14:57:44] =================== xe_bo_shrink_kunit ====================
[14:57:44] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[14:57:44] ================== [SKIPPED] xe_bo_shrink ==================
[14:57:44] ==================== xe_bo (2 subtests) ====================
[14:57:44] ================== xe_ccs_migrate_kunit ===================
[14:57:44] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[14:57:44] ==================== xe_bo_evict_kunit ====================
[14:57:44] =============== [SKIPPED] xe_bo_evict_kunit ================
[14:57:44] ===================== [SKIPPED] xe_bo ======================
[14:57:44] =================== xe_any (9 subtests) ====================
[14:57:44] [PASSED] test_to_xe
[14:57:44] [PASSED] test_to_dev
[14:57:44] [PASSED] test_to_pdev
[14:57:44] [PASSED] test_to_drm
[14:57:44] [PASSED] test_if_pdev
[14:57:44] [PASSED] test_if_xe
[14:57:44] [PASSED] test_if_tile
[14:57:44] [PASSED] test_if_gt
[14:57:44] [PASSED] test_to_id
[14:57:44] ===================== [PASSED] xe_any ======================
[14:57:44] ==================== args (13 subtests) ====================
[14:57:44] [PASSED] count_args_test
[14:57:44] [PASSED] call_args_example
[14:57:44] [PASSED] call_args_test
[14:57:44] [PASSED] drop_first_arg_example
[14:57:44] [PASSED] drop_first_arg_test
[14:57:44] [PASSED] first_arg_example
[14:57:44] [PASSED] first_arg_test
[14:57:44] [PASSED] last_arg_example
[14:57:44] [PASSED] last_arg_test
[14:57:44] [PASSED] pick_arg_example
[14:57:44] [PASSED] if_args_example
[14:57:44] [PASSED] if_args_test
[14:57:44] [PASSED] sep_comma_example
[14:57:44] ====================== [PASSED] args =======================
[14:57:44] =================== xe_pci (3 subtests) ====================
[14:57:44] ==================== check_graphics_ip ====================
[14:57:44] [PASSED] 12.00 Xe_LP
[14:57:44] [PASSED] 12.10 Xe_LP+
[14:57:44] [PASSED] 12.55 Xe_HPG
[14:57:44] [PASSED] 12.60 Xe_HPC
[14:57:44] [PASSED] 12.70 Xe_LPG
[14:57:44] [PASSED] 12.71 Xe_LPG
[14:57:44] [PASSED] 12.74 Xe_LPG+
[14:57:44] [PASSED] 20.01 Xe2_HPG
[14:57:44] [PASSED] 20.02 Xe2_HPG
[14:57:44] [PASSED] 20.04 Xe2_LPG
[14:57:44] [PASSED] 30.00 Xe3_LPG
[14:57:44] [PASSED] 30.01 Xe3_LPG
[14:57:44] [PASSED] 30.03 Xe3_LPG
[14:57:44] [PASSED] 30.04 Xe3_LPG
[14:57:44] [PASSED] 30.05 Xe3_LPG
[14:57:44] [PASSED] 35.10 Xe3p_LPG
[14:57:44] [PASSED] 35.11 Xe3p_XPC
[14:57:44] ================ [PASSED] check_graphics_ip ================
[14:57:44] ===================== check_media_ip ======================
[14:57:44] [PASSED] 12.00 Xe_M
[14:57:44] [PASSED] 12.55 Xe_HPM
[14:57:44] [PASSED] 13.00 Xe_LPM+
[14:57:44] [PASSED] 13.01 Xe2_HPM
[14:57:44] [PASSED] 20.00 Xe2_LPM
[14:57:44] [PASSED] 30.00 Xe3_LPM
[14:57:44] [PASSED] 30.02 Xe3_LPM
[14:57:44] [PASSED] 35.00 Xe3p_LPM
[14:57:44] [PASSED] 35.03 Xe3p_HPM
[14:57:44] ================= [PASSED] check_media_ip ==================
[14:57:44] =================== check_platform_desc ===================
[14:57:44] [PASSED] 0x9A60 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A68 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A70 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A40 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A49 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A59 (TIGERLAKE)
[14:57:44] [PASSED] 0x9A78 (TIGERLAKE)
[14:57:44] [PASSED] 0x9AC0 (TIGERLAKE)
[14:57:44] [PASSED] 0x9AC9 (TIGERLAKE)
[14:57:44] [PASSED] 0x9AD9 (TIGERLAKE)
[14:57:44] [PASSED] 0x9AF8 (TIGERLAKE)
[14:57:44] [PASSED] 0x4C80 (ROCKETLAKE)
[14:57:44] [PASSED] 0x4C8A (ROCKETLAKE)
[14:57:44] [PASSED] 0x4C8B (ROCKETLAKE)
[14:57:44] [PASSED] 0x4C8C (ROCKETLAKE)
[14:57:44] [PASSED] 0x4C90 (ROCKETLAKE)
[14:57:44] [PASSED] 0x4C9A (ROCKETLAKE)
[14:57:44] [PASSED] 0x4680 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4682 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4688 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x468A (ALDERLAKE_S)
[14:57:44] [PASSED] 0x468B (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4690 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4692 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4693 (ALDERLAKE_S)
[14:57:44] [PASSED] 0x46A0 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46A1 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46A2 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46A3 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46A6 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46A8 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46AA (ALDERLAKE_P)
[14:57:44] [PASSED] 0x462A (ALDERLAKE_P)
[14:57:44] [PASSED] 0x4626 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x4628 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46B0 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46B1 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46B2 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46B3 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46C0 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46C1 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46C2 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46C3 (ALDERLAKE_P)
[14:57:44] [PASSED] 0x46D0 (ALDERLAKE_N)
[14:57:44] [PASSED] 0x46D1 (ALDERLAKE_N)
[14:57:44] [PASSED] 0x46D2 (ALDERLAKE_N)
[14:57:44] [PASSED] 0x46D3 (ALDERLAKE_N)
[14:57:44] [PASSED] 0x46D4 (ALDERLAKE_N)
[14:57:44] [PASSED] 0xA721 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7A1 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7A9 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7AC (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7AD (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA720 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7A0 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7A8 (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7AA (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA7AB (ALDERLAKE_P)
[14:57:44] [PASSED] 0xA780 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA781 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA782 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA783 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA788 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA789 (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA78A (ALDERLAKE_S)
[14:57:44] [PASSED] 0xA78B (ALDERLAKE_S)
[14:57:44] [PASSED] 0x4905 (DG1)
[14:57:44] [PASSED] 0x4906 (DG1)
[14:57:44] [PASSED] 0x4907 (DG1)
[14:57:44] [PASSED] 0x4908 (DG1)
[14:57:44] [PASSED] 0x4909 (DG1)
[14:57:44] [PASSED] 0x56C0 (DG2)
[14:57:44] [PASSED] 0x56C2 (DG2)
[14:57:44] [PASSED] 0x56C1 (DG2)
[14:57:44] [PASSED] 0x7D51 (METEORLAKE)
[14:57:44] [PASSED] 0x7DD1 (METEORLAKE)
[14:57:44] [PASSED] 0x7D41 (METEORLAKE)
[14:57:44] [PASSED] 0x7D67 (METEORLAKE)
[14:57:44] [PASSED] 0xB640 (METEORLAKE)
[14:57:44] [PASSED] 0x56A0 (DG2)
[14:57:44] [PASSED] 0x56A1 (DG2)
[14:57:44] [PASSED] 0x56A2 (DG2)
[14:57:44] [PASSED] 0x56BE (DG2)
[14:57:44] [PASSED] 0x56BF (DG2)
[14:57:44] [PASSED] 0x5690 (DG2)
[14:57:44] [PASSED] 0x5691 (DG2)
[14:57:44] [PASSED] 0x5692 (DG2)
[14:57:44] [PASSED] 0x56A5 (DG2)
[14:57:44] [PASSED] 0x56A6 (DG2)
[14:57:44] [PASSED] 0x56B0 (DG2)
[14:57:44] [PASSED] 0x56B1 (DG2)
[14:57:44] [PASSED] 0x56BA (DG2)
[14:57:44] [PASSED] 0x56BB (DG2)
[14:57:44] [PASSED] 0x56BC (DG2)
[14:57:44] [PASSED] 0x56BD (DG2)
[14:57:44] [PASSED] 0x5693 (DG2)
[14:57:44] [PASSED] 0x5694 (DG2)
[14:57:44] [PASSED] 0x5695 (DG2)
[14:57:44] [PASSED] 0x56A3 (DG2)
[14:57:44] [PASSED] 0x56A4 (DG2)
[14:57:44] [PASSED] 0x56B2 (DG2)
[14:57:44] [PASSED] 0x56B3 (DG2)
[14:57:44] [PASSED] 0x5696 (DG2)
[14:57:44] [PASSED] 0x5697 (DG2)
[14:57:44] [PASSED] 0xB69 (PVC)
[14:57:44] [PASSED] 0xB6E (PVC)
[14:57:44] [PASSED] 0xBD4 (PVC)
[14:57:44] [PASSED] 0xBD5 (PVC)
[14:57:44] [PASSED] 0xBD6 (PVC)
[14:57:44] [PASSED] 0xBD7 (PVC)
[14:57:44] [PASSED] 0xBD8 (PVC)
[14:57:44] [PASSED] 0xBD9 (PVC)
[14:57:44] [PASSED] 0xBDA (PVC)
[14:57:44] [PASSED] 0xBDB (PVC)
[14:57:44] [PASSED] 0xBE0 (PVC)
[14:57:44] [PASSED] 0xBE1 (PVC)
[14:57:44] [PASSED] 0xBE5 (PVC)
[14:57:44] [PASSED] 0x7D40 (METEORLAKE)
[14:57:44] [PASSED] 0x7D45 (METEORLAKE)
[14:57:44] [PASSED] 0x7D55 (METEORLAKE)
[14:57:44] [PASSED] 0x7D60 (METEORLAKE)
[14:57:44] [PASSED] 0x7DD5 (METEORLAKE)
[14:57:44] [PASSED] 0x6420 (LUNARLAKE)
[14:57:44] [PASSED] 0x64A0 (LUNARLAKE)
[14:57:44] [PASSED] 0x64B0 (LUNARLAKE)
[14:57:44] [PASSED] 0xE202 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE209 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE20B (BATTLEMAGE)
[14:57:44] [PASSED] 0xE20C (BATTLEMAGE)
[14:57:44] [PASSED] 0xE20D (BATTLEMAGE)
[14:57:44] [PASSED] 0xE210 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE211 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE212 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE216 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE220 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE221 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE222 (BATTLEMAGE)
[14:57:44] [PASSED] 0xE223 (BATTLEMAGE)
[14:57:44] [PASSED] 0xB080 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB081 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB082 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB083 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB084 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB085 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB086 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB087 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB08F (PANTHERLAKE)
[14:57:44] [PASSED] 0xB090 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB0A0 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB0A1 (PANTHERLAKE)
[14:57:44] [PASSED] 0xB0B0 (PANTHERLAKE)
[14:57:44] [PASSED] 0xFD80 (PANTHERLAKE)
[14:57:44] [PASSED] 0xFD81 (PANTHERLAKE)
[14:57:44] [PASSED] 0xD740 (NOVALAKE_S)
[14:57:44] [PASSED] 0xD741 (NOVALAKE_S)
[14:57:44] [PASSED] 0xD742 (NOVALAKE_S)
[14:57:44] [PASSED] 0xD743 (NOVALAKE_S)
[14:57:44] [PASSED] 0xD745 (NOVALAKE_S)
[14:57:44] [PASSED] 0xD74A (NOVALAKE_S)
[14:57:44] [PASSED] 0xD74B (NOVALAKE_S)
[14:57:44] [PASSED] 0x674C (CRESCENTISLAND)
[14:57:44] [PASSED] 0x674D (CRESCENTISLAND)
[14:57:44] [PASSED] 0x674E (CRESCENTISLAND)
[14:57:44] [PASSED] 0x674F (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6750 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6751 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6752 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6753 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6754 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6755 (CRESCENTISLAND)
[14:57:44] [PASSED] 0x6756 (CRESCENTISLAND)
[14:57:44] [PASSED] 0xD750 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD751 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD752 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD753 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD754 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD755 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD756 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD757 (NOVALAKE_P)
[14:57:44] [PASSED] 0xD75F (NOVALAKE_P)
[14:57:44] =============== [PASSED] check_platform_desc ===============
[14:57:44] ===================== [PASSED] xe_pci ======================
[14:57:44] ============= xe_rtp_tables_test (5 subtests) ==============
[14:57:44] ================== xe_rtp_table_gt_test ===================
[14:57:44] [PASSED] gt_was/14011060649
[14:57:44] [PASSED] gt_was/14011059788
[14:57:44] [PASSED] gt_was/14015795083
[14:57:44] [PASSED] gt_was/16021867713
[14:57:44] [PASSED] gt_was/14019449301
[14:57:44] [PASSED] gt_was/16028005424
[14:57:44] [PASSED] gt_was/14026578760
[14:57:44] [PASSED] gt_was/1409420604
[14:57:44] [PASSED] gt_was/1408615072
[14:57:44] [PASSED] gt_was/22010523718
[14:57:44] [PASSED] gt_was/14011006942
[14:57:44] [PASSED] gt_was/14014830051
[14:57:44] [PASSED] gt_was/18018781329
[14:57:44] [PASSED] gt_was/1509235366
[14:57:44] [PASSED] gt_was/18018781329
[14:57:44] [PASSED] gt_was/16016694945
[14:57:44] [PASSED] gt_was/14018575942
[14:57:44] [PASSED] gt_was/22016670082
[14:57:44] [PASSED] gt_was/22016670082
[14:57:44] [PASSED] gt_was/14017421178
[14:57:44] [PASSED] gt_was/16025250150
[14:57:44] [PASSED] gt_was/14021871409
[14:57:44] [PASSED] gt_was/16021865536
[14:57:44] [PASSED] gt_was/14021486841
[14:57:44] [PASSED] gt_was/14025160223
[14:57:44] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[14:57:44] [PASSED] gt_was/14025635424
[14:57:44] [PASSED] gt_was/16028005424
[14:57:44] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:57:44] ================== xe_rtp_table_gt_test ===================
[14:57:44] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[14:57:44] [PASSED] gt_tunings/Tuning: 32B Access Enable
[14:57:44] [PASSED] gt_tunings/Tuning: L3 cache
[14:57:44] [PASSED] gt_tunings/Tuning: L3 cache - media
[14:57:44] [PASSED] gt_tunings/Tuning: Compression Overfetch
[14:57:44] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[14:57:44] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[14:57:44] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[14:57:44] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[14:57:44] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[14:57:44] [PASSED] gt_tunings/Tuning: Stateless compression control
[14:57:44] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[14:57:44] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[14:57:44] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[14:57:44] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[14:57:44] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[14:57:44] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:57:44] ================== xe_rtp_table_oob_test ==================
[14:57:44] [PASSED] oob_was/1607983814
[14:57:44] [PASSED] oob_was/16010904313
[14:57:44] [PASSED] oob_was/18022495364
[14:57:44] [PASSED] oob_was/22012773006
[14:57:44] [PASSED] oob_was/14014475959
[14:57:44] [PASSED] oob_was/22011391025
[14:57:44] [PASSED] oob_was/22012727170
[14:57:44] [PASSED] oob_was/22012727685
[14:57:44] [PASSED] oob_was/22016596838
[14:57:44] [PASSED] oob_was/18020744125
[14:57:44] [PASSED] oob_was/1409600907
[14:57:44] [PASSED] oob_was/22014953428
[14:57:44] [PASSED] oob_was/16017236439
[14:57:44] [PASSED] oob_was/14019821291
[14:57:44] [PASSED] oob_was/14015076503
[14:57:44] [PASSED] oob_was/22016122933
[14:57:44] [PASSED] oob_was/14018913170
[14:57:44] [PASSED] oob_was/14018094691
[14:57:44] [PASSED] oob_was/18024947630
[14:57:44] [PASSED] oob_was/16022287689
[14:57:44] [PASSED] oob_was/13011645652
[14:57:44] [PASSED] oob_was/14022293748
[14:57:44] [PASSED] oob_was/22019794406
[14:57:44] [PASSED] oob_was/22019338487
[14:57:44] [PASSED] oob_was/16023588340
[14:57:44] [PASSED] oob_was/14019789679
[14:57:44] [PASSED] oob_was/14022866841
[14:57:44] [PASSED] oob_was/16021333562
[14:57:44] [PASSED] oob_was/14016712196
[14:57:44] [PASSED] oob_was/14015568240
[14:57:44] [PASSED] oob_was/18013179988
[14:57:44] [PASSED] oob_was/1508761755
[14:57:44] [PASSED] oob_was/16023105232
[14:57:44] [PASSED] oob_was/16026508708
[14:57:44] [PASSED] oob_was/14020001231
[14:57:44] [PASSED] oob_was/16023683509
[14:57:44] [PASSED] oob_was/14025515070
[14:57:44] [PASSED] oob_was/15015404425_disable
[14:57:44] [PASSED] oob_was/16026007364
[14:57:44] [PASSED] oob_was/14020316580
[14:57:44] [PASSED] oob_was/14025883347
[14:57:44] [PASSED] oob_was/16029380221
[14:57:44] [PASSED] oob_was/22022079272
[14:57:44] [PASSED] oob_was/16029897822
[14:57:44] [PASSED] oob_was/14026539277
[14:57:44] [PASSED] oob_was/14028564128
[14:57:44] [PASSED] oob_was/14027054324
[14:57:44] [PASSED] oob_was/14025941587
[14:57:44] [PASSED] oob_was/16030224309
[14:57:44] [PASSED] oob_was/14028709524
[14:57:44] [PASSED] oob_was/14028250015
[14:57:44] [PASSED] oob_was/16031259911
[14:57:44] [PASSED] oob_was/14028597154
[14:57:44] ============== [PASSED] xe_rtp_table_oob_test ==============
[14:57:44] ================ xe_rtp_table_dev_oob_test ================
[14:57:44] [PASSED] device_oob_was/22010954014
[14:57:44] [PASSED] device_oob_was/15015404425
[14:57:44] [PASSED] device_oob_was/22019338487_display
[14:57:44] [PASSED] device_oob_was/14022085890
[14:57:44] [PASSED] device_oob_was/14026633728
[14:57:44] [PASSED] device_oob_was/14026746987
[14:57:44] [PASSED] device_oob_was/14026779378
[14:57:44] [PASSED] device_oob_was/14028586678
[14:57:44] [PASSED] device_oob_was/14028434957
[14:57:44] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[14:57:44] ========== xe_rtp_table_missing_upper_bound_test ==========
[14:57:44] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[14:57:44] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[14:57:44] [PASSED] register_whitelist/1806527549
[14:57:44] [PASSED] register_whitelist/allow_read_ctx_timestamp
[14:57:44] [PASSED] register_whitelist/allow_read_queue_timestamp
[14:57:44] [PASSED] register_whitelist/16014440446
[14:57:44] [PASSED] register_whitelist/16017236439
[14:57:44] [PASSED] register_whitelist/16020183090
[14:57:44] [PASSED] register_whitelist/14024997852
[14:57:44] [PASSED] register_whitelist/14024997852
[14:57:44] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[14:57:44] =============== [PASSED] xe_rtp_tables_test ================
[14:57:44] =================== xe_rtp (3 subtests) ====================
[14:57:44] =================== xe_rtp_rules_tests ====================
[14:57:44] [PASSED] no
[14:57:44] [PASSED] yes
[14:57:44] [PASSED] no-and-no
[14:57:44] [PASSED] no-and-yes
[14:57:44] [PASSED] yes-and-no
[14:57:44] [PASSED] yes-and-yes
[14:57:44] [PASSED] no-or-no
[14:57:44] [PASSED] no-or-yes
[14:57:44] [PASSED] yes-or-no
[14:57:44] [PASSED] yes-or-yes
[14:57:44] [PASSED] no-yes-or-yes-no
[14:57:44] [PASSED] no-yes-or-yes-yes
[14:57:44] [PASSED] yes-yes-or-no-yes
[14:57:44] [PASSED] yes-yes-or-yes-yes
[14:57:44] [PASSED] no-no-or-yes-or-no
[14:57:44] [PASSED] or
[14:57:44] [PASSED] or-yes
[14:57:44] [PASSED] or-no
[14:57:44] [PASSED] yes-or
[14:57:44] [PASSED] no-or
[14:57:44] [PASSED] no-or-or-yes
[14:57:44] [PASSED] yes-or-or-no
[14:57:44] [PASSED] no-or-or-no
[14:57:44] [PASSED] missing-context-engine-class
[14:57:44] [PASSED] missing-context-engine-class-or-yes
[14:57:44] [PASSED] missing-context-engine-class-or-or-yes
[14:57:44] =============== [PASSED] xe_rtp_rules_tests ================
[14:57:44] =============== xe_rtp_process_to_sr_tests ================
[14:57:44] [PASSED] coalesce-same-reg
[14:57:44] [PASSED] coalesce-same-reg-literal-and-func
[14:57:44] [PASSED] no-match-no-add
[14:57:44] [PASSED] two-regs-two-entries
[14:57:44] [PASSED] clr-one-set-other
[14:57:44] [PASSED] set-field
[14:57:44] [PASSED] conflict-duplicate
[14:57:44] [PASSED] conflict-not-disjoint
[14:57:44] [PASSED] conflict-not-disjoint-literal-and-func
[14:57:44] [PASSED] conflict-reg-type
[14:57:44] [PASSED] bad-mcr-reg-forced-to-regular
[14:57:44] [PASSED] bad-regular-reg-forced-to-mcr
[14:57:44] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[14:57:44] ================== xe_rtp_process_tests ===================
[14:57:44] [PASSED] active1
[14:57:44] [PASSED] active2
[14:57:44] [PASSED] active-inactive
[14:57:44] [PASSED] inactive-active
[14:57:44] [PASSED] inactive-active-inactive
[14:57:44] [PASSED] inactive-inactive-inactive
[14:57:44] ============== [PASSED] xe_rtp_process_tests ===============
[14:57:44] ===================== [PASSED] xe_rtp ======================
[14:57:44] ==================== xe_wa (1 subtest) =====================
[14:57:44] ======================== xe_wa_gt =========================
[14:57:44] [PASSED] TIGERLAKE B0
[14:57:44] [PASSED] DG1 A0
[14:57:44] [PASSED] DG1 B0
[14:57:44] [PASSED] ALDERLAKE_S A0
[14:57:44] [PASSED] ALDERLAKE_S B0
[14:57:44] [PASSED] ALDERLAKE_S C0
[14:57:44] [PASSED] ALDERLAKE_S D0
[14:57:44] [PASSED] ALDERLAKE_P A0
[14:57:44] [PASSED] ALDERLAKE_P B0
[14:57:44] [PASSED] ALDERLAKE_P C0
[14:57:44] [PASSED] ALDERLAKE_S RPLS D0
[14:57:44] [PASSED] ALDERLAKE_P RPLU E0
[14:57:44] [PASSED] DG2 G10 C0
[14:57:44] [PASSED] DG2 G11 B1
[14:57:44] [PASSED] DG2 G12 A1
[14:57:44] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:57:44] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:57:44] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[14:57:44] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[14:57:44] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[14:57:44] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[14:57:44] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[14:57:44] ==================== [PASSED] xe_wa_gt =====================
[14:57:44] ====================== [PASSED] xe_wa ======================
[14:57:44] ============================================================
[14:57:44] Testing complete. Ran 869 tests: passed: 840, skipped: 29
[14:57:44] Elapsed time: 41.561s total, 2.523s configuring, 38.271s building, 0.736s 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
[14:57:44] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:57:47] 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
[14:58:12] Starting KUnit Kernel (1/1)...
[14:58:12] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:58:12] ============ drm_test_pick_cmdline (2 subtests) ============
[14:58:12] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[14:58:12] =============== drm_test_pick_cmdline_named ===============
[14:58:12] [PASSED] NTSC
[14:58:12] [PASSED] NTSC-J
[14:58:12] [PASSED] PAL
[14:58:12] [PASSED] PAL-M
[14:58:12] =========== [PASSED] drm_test_pick_cmdline_named ===========
[14:58:12] ============== [PASSED] drm_test_pick_cmdline ==============
[14:58:12] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[14:58:12] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[14:58:12] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[14:58:12] =========== drm_validate_clone_mode (2 subtests) ===========
[14:58:12] ============== drm_test_check_in_clone_mode ===============
[14:58:12] [PASSED] in_clone_mode
[14:58:12] [PASSED] not_in_clone_mode
[14:58:12] ========== [PASSED] drm_test_check_in_clone_mode ===========
[14:58:12] =============== drm_test_check_valid_clones ===============
[14:58:12] [PASSED] not_in_clone_mode
[14:58:12] [PASSED] valid_clone
[14:58:12] [PASSED] invalid_clone
[14:58:12] =========== [PASSED] drm_test_check_valid_clones ===========
[14:58:12] ============= [PASSED] drm_validate_clone_mode =============
[14:58:12] ============= drm_validate_modeset (1 subtest) =============
[14:58:12] [PASSED] drm_test_check_connector_changed_modeset
[14:58:12] ============== [PASSED] drm_validate_modeset ===============
[14:58:12] ====== drm_test_bridge_get_current_state (1 subtest) =======
[14:58:12] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[14:58:12] ======== [PASSED] drm_test_bridge_get_current_state ========
[14:58:12] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[14:58:12] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[14:58:12] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[14:58:12] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[14:58:12] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[14:58:12] ============== drm_bridge_alloc (2 subtests) ===============
[14:58:12] [PASSED] drm_test_drm_bridge_alloc_basic
[14:58:12] [PASSED] drm_test_drm_bridge_alloc_get_put
[14:58:12] ================ [PASSED] drm_bridge_alloc =================
[14:58:12] ============= drm_bridge_bus_fmt (5 subtests) ==============
[14:58:12] [PASSED] drm_test_bridge_rgb_yuv_rgb
[14:58:12] [PASSED] drm_test_bridge_must_convert_to_yuv444
[14:58:12] [PASSED] drm_test_bridge_hdmi_auto_rgb
[14:58:12] [PASSED] drm_test_bridge_auto_first
[14:58:12] [PASSED] drm_test_bridge_rgb_yuv_no_path
[14:58:12] =============== [PASSED] drm_bridge_bus_fmt ================
[14:58:12] ============= drm_cmdline_parser (40 subtests) =============
[14:58:12] [PASSED] drm_test_cmdline_force_d_only
[14:58:12] [PASSED] drm_test_cmdline_force_D_only_dvi
[14:58:12] [PASSED] drm_test_cmdline_force_D_only_hdmi
[14:58:12] [PASSED] drm_test_cmdline_force_D_only_not_digital
[14:58:12] [PASSED] drm_test_cmdline_force_e_only
[14:58:12] [PASSED] drm_test_cmdline_res
[14:58:12] [PASSED] drm_test_cmdline_res_vesa
[14:58:12] [PASSED] drm_test_cmdline_res_vesa_rblank
[14:58:12] [PASSED] drm_test_cmdline_res_rblank
[14:58:12] [PASSED] drm_test_cmdline_res_bpp
[14:58:12] [PASSED] drm_test_cmdline_res_refresh
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[14:58:12] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[14:58:12] [PASSED] drm_test_cmdline_res_margins_force_on
[14:58:12] [PASSED] drm_test_cmdline_res_vesa_margins
[14:58:12] [PASSED] drm_test_cmdline_name
[14:58:12] [PASSED] drm_test_cmdline_name_bpp
[14:58:12] [PASSED] drm_test_cmdline_name_option
[14:58:12] [PASSED] drm_test_cmdline_name_bpp_option
[14:58:12] [PASSED] drm_test_cmdline_rotate_0
[14:58:12] [PASSED] drm_test_cmdline_rotate_90
[14:58:12] [PASSED] drm_test_cmdline_rotate_180
[14:58:12] [PASSED] drm_test_cmdline_rotate_270
[14:58:12] [PASSED] drm_test_cmdline_hmirror
[14:58:12] [PASSED] drm_test_cmdline_vmirror
[14:58:12] [PASSED] drm_test_cmdline_margin_options
[14:58:12] [PASSED] drm_test_cmdline_multiple_options
[14:58:12] [PASSED] drm_test_cmdline_bpp_extra_and_option
[14:58:12] [PASSED] drm_test_cmdline_extra_and_option
[14:58:12] [PASSED] drm_test_cmdline_freestanding_options
[14:58:12] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[14:58:12] [PASSED] drm_test_cmdline_panel_orientation
[14:58:12] ================ drm_test_cmdline_invalid =================
[14:58:12] [PASSED] margin_only
[14:58:12] [PASSED] interlace_only
[14:58:12] [PASSED] res_missing_x
[14:58:12] [PASSED] res_missing_y
[14:58:12] [PASSED] res_bad_y
[14:58:12] [PASSED] res_missing_y_bpp
[14:58:12] [PASSED] res_bad_bpp
[14:58:12] [PASSED] res_bad_refresh
[14:58:12] [PASSED] res_bpp_refresh_force_on_off
[14:58:12] [PASSED] res_invalid_mode
[14:58:12] [PASSED] res_bpp_wrong_place_mode
[14:58:12] [PASSED] name_bpp_refresh
[14:58:12] [PASSED] name_refresh
[14:58:12] [PASSED] name_refresh_wrong_mode
[14:58:12] [PASSED] name_refresh_invalid_mode
[14:58:12] [PASSED] rotate_multiple
[14:58:12] [PASSED] rotate_invalid_val
[14:58:12] [PASSED] rotate_truncated
[14:58:12] [PASSED] invalid_option
[14:58:12] [PASSED] invalid_tv_option
[14:58:12] [PASSED] truncated_tv_option
[14:58:12] ============ [PASSED] drm_test_cmdline_invalid =============
[14:58:12] =============== drm_test_cmdline_tv_options ===============
[14:58:12] [PASSED] NTSC
[14:58:12] [PASSED] NTSC_443
[14:58:12] [PASSED] NTSC_J
[14:58:12] [PASSED] PAL
[14:58:12] [PASSED] PAL_M
[14:58:12] [PASSED] PAL_N
[14:58:12] [PASSED] SECAM
[14:58:12] [PASSED] MONO_525
[14:58:12] [PASSED] MONO_625
[14:58:12] =========== [PASSED] drm_test_cmdline_tv_options ===========
[14:58:12] =============== [PASSED] drm_cmdline_parser ================
[14:58:12] ========== drmm_connector_hdmi_init (20 subtests) ==========
[14:58:12] [PASSED] drm_test_connector_hdmi_init_valid
[14:58:12] [PASSED] drm_test_connector_hdmi_init_bpc_8
[14:58:12] [PASSED] drm_test_connector_hdmi_init_bpc_10
[14:58:12] [PASSED] drm_test_connector_hdmi_init_bpc_12
[14:58:12] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[14:58:12] [PASSED] drm_test_connector_hdmi_init_bpc_null
[14:58:12] [PASSED] drm_test_connector_hdmi_init_formats_empty
[14:58:12] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[14:58:12] === drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[14:58:12] [PASSED] supported_formats=0x9 yuv420_allowed=1
[14:58:12] [PASSED] supported_formats=0x9 yuv420_allowed=0
[14:58:12] [PASSED] supported_formats=0x5 yuv420_allowed=1
[14:58:12] [PASSED] supported_formats=0x5 yuv420_allowed=0
[14:58:12] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[14:58:12] [PASSED] drm_test_connector_hdmi_init_null_ddc
[14:58:12] [PASSED] drm_test_connector_hdmi_init_null_product
[14:58:12] [PASSED] drm_test_connector_hdmi_init_null_vendor
[14:58:12] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[14:58:12] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[14:58:12] [PASSED] drm_test_connector_hdmi_init_product_valid
[14:58:12] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[14:58:12] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[14:58:12] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[14:58:12] ========= drm_test_connector_hdmi_init_type_valid =========
[14:58:12] [PASSED] HDMI-A
[14:58:12] [PASSED] HDMI-B
[14:58:12] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[14:58:12] ======== drm_test_connector_hdmi_init_type_invalid ========
[14:58:12] [PASSED] Unknown
[14:58:12] [PASSED] VGA
[14:58:12] [PASSED] DVI-I
[14:58:12] [PASSED] DVI-D
[14:58:12] [PASSED] DVI-A
[14:58:12] [PASSED] Composite
[14:58:12] [PASSED] SVIDEO
[14:58:12] [PASSED] LVDS
[14:58:12] [PASSED] Component
[14:58:12] [PASSED] DIN
[14:58:12] [PASSED] DP
[14:58:12] [PASSED] TV
[14:58:12] [PASSED] eDP
[14:58:12] [PASSED] Virtual
[14:58:12] [PASSED] DSI
[14:58:12] [PASSED] DPI
[14:58:12] [PASSED] Writeback
[14:58:12] [PASSED] SPI
[14:58:12] [PASSED] USB
[14:58:12] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[14:58:12] ============ [PASSED] drmm_connector_hdmi_init =============
[14:58:12] ============= drmm_connector_init (3 subtests) =============
[14:58:12] [PASSED] drm_test_drmm_connector_init
[14:58:12] [PASSED] drm_test_drmm_connector_init_null_ddc
[14:58:12] ========= drm_test_drmm_connector_init_type_valid =========
[14:58:12] [PASSED] Unknown
[14:58:12] [PASSED] VGA
[14:58:12] [PASSED] DVI-I
[14:58:12] [PASSED] DVI-D
[14:58:12] [PASSED] DVI-A
[14:58:12] [PASSED] Composite
[14:58:12] [PASSED] SVIDEO
[14:58:12] [PASSED] LVDS
[14:58:12] [PASSED] Component
[14:58:12] [PASSED] DIN
[14:58:12] [PASSED] DP
[14:58:12] [PASSED] HDMI-A
[14:58:12] [PASSED] HDMI-B
[14:58:12] [PASSED] TV
[14:58:12] [PASSED] eDP
[14:58:12] [PASSED] Virtual
[14:58:12] [PASSED] DSI
[14:58:12] [PASSED] DPI
[14:58:12] [PASSED] Writeback
[14:58:12] [PASSED] SPI
[14:58:12] [PASSED] USB
[14:58:12] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[14:58:12] =============== [PASSED] drmm_connector_init ===============
[14:58:12] ========= drm_connector_dynamic_init (6 subtests) ==========
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_init
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_init_properties
[14:58:12] ===== drm_test_drm_connector_dynamic_init_type_valid ======
[14:58:12] [PASSED] Unknown
[14:58:12] [PASSED] VGA
[14:58:12] [PASSED] DVI-I
[14:58:12] [PASSED] DVI-D
[14:58:12] [PASSED] DVI-A
[14:58:12] [PASSED] Composite
[14:58:12] [PASSED] SVIDEO
[14:58:12] [PASSED] LVDS
[14:58:12] [PASSED] Component
[14:58:12] [PASSED] DIN
[14:58:12] [PASSED] DP
[14:58:12] [PASSED] HDMI-A
[14:58:12] [PASSED] HDMI-B
[14:58:12] [PASSED] TV
[14:58:12] [PASSED] eDP
[14:58:12] [PASSED] Virtual
[14:58:12] [PASSED] DSI
[14:58:12] [PASSED] DPI
[14:58:12] [PASSED] Writeback
[14:58:12] [PASSED] SPI
[14:58:12] [PASSED] USB
[14:58:12] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[14:58:12] ======== drm_test_drm_connector_dynamic_init_name =========
[14:58:12] [PASSED] Unknown
[14:58:12] [PASSED] VGA
[14:58:12] [PASSED] DVI-I
[14:58:12] [PASSED] DVI-D
[14:58:12] [PASSED] DVI-A
[14:58:12] [PASSED] Composite
[14:58:12] [PASSED] SVIDEO
[14:58:12] [PASSED] LVDS
[14:58:12] [PASSED] Component
[14:58:12] [PASSED] DIN
[14:58:12] [PASSED] DP
[14:58:12] [PASSED] HDMI-A
[14:58:12] [PASSED] HDMI-B
[14:58:12] [PASSED] TV
[14:58:12] [PASSED] eDP
[14:58:12] [PASSED] Virtual
[14:58:12] [PASSED] DSI
[14:58:12] [PASSED] DPI
[14:58:12] [PASSED] Writeback
[14:58:12] [PASSED] SPI
[14:58:12] [PASSED] USB
[14:58:12] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[14:58:12] =========== [PASSED] drm_connector_dynamic_init ============
[14:58:12] ==== drm_connector_dynamic_register_early (4 subtests) =====
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[14:58:12] ====== [PASSED] drm_connector_dynamic_register_early =======
[14:58:12] ======= drm_connector_dynamic_register (7 subtests) ========
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[14:58:12] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[14:58:12] ========= [PASSED] drm_connector_dynamic_register ==========
[14:58:12] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[14:58:12] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[14:58:12] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[14:58:12] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[14:58:12] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[14:58:12] ========== drm_test_get_tv_mode_from_name_valid ===========
[14:58:12] [PASSED] NTSC
[14:58:12] [PASSED] NTSC-443
[14:58:12] [PASSED] NTSC-J
[14:58:12] [PASSED] PAL
[14:58:12] [PASSED] PAL-M
[14:58:12] [PASSED] PAL-N
[14:58:12] [PASSED] SECAM
[14:58:12] [PASSED] Mono
[14:58:12] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[14:58:12] [PASSED] drm_test_get_tv_mode_from_name_truncated
[14:58:12] ============ [PASSED] drm_get_tv_mode_from_name ============
[14:58:12] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[14:58:12] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[14:58:12] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[14:58:12] [PASSED] VIC 96
[14:58:12] [PASSED] VIC 97
[14:58:12] [PASSED] VIC 101
[14:58:12] [PASSED] VIC 102
[14:58:12] [PASSED] VIC 106
[14:58:12] [PASSED] VIC 107
[14:58:12] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[14:58:12] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[14:58:12] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[14:58:12] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[14:58:12] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[14:58:12] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[14:58:12] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[14:58:12] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[14:58:12] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[14:58:12] [PASSED] Automatic
[14:58:12] [PASSED] Full
[14:58:12] [PASSED] Limited 16:235
[14:58:12] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[14:58:12] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[14:58:12] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[14:58:12] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[14:58:12] === drm_test_drm_hdmi_connector_get_output_format_name ====
[14:58:12] [PASSED] RGB
[14:58:12] [PASSED] YUV 4:2:0
[14:58:12] [PASSED] YUV 4:2:2
[14:58:12] [PASSED] YUV 4:4:4
[14:58:12] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[14:58:12] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[14:58:12] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[14:58:12] ============= drm_damage_helper (21 subtests) ==============
[14:58:12] [PASSED] drm_test_damage_iter_no_damage
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_src_moved
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_not_visible
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[14:58:12] [PASSED] drm_test_damage_iter_no_damage_no_fb
[14:58:12] [PASSED] drm_test_damage_iter_simple_damage
[14:58:12] [PASSED] drm_test_damage_iter_single_damage
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_outside_src
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_src_moved
[14:58:12] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[14:58:12] [PASSED] drm_test_damage_iter_damage
[14:58:12] [PASSED] drm_test_damage_iter_damage_one_intersect
[14:58:12] [PASSED] drm_test_damage_iter_damage_one_outside
[14:58:12] [PASSED] drm_test_damage_iter_damage_src_moved
[14:58:12] [PASSED] drm_test_damage_iter_damage_not_visible
[14:58:12] ================ [PASSED] drm_damage_helper ================
[14:58:12] ============== drm_dp_mst_helper (3 subtests) ==============
[14:58:12] ============== drm_test_dp_mst_calc_pbn_mode ==============
[14:58:12] [PASSED] Clock 154000 BPP 30 DSC disabled
[14:58:12] [PASSED] Clock 234000 BPP 30 DSC disabled
[14:58:12] [PASSED] Clock 297000 BPP 24 DSC disabled
[14:58:12] [PASSED] Clock 332880 BPP 24 DSC enabled
[14:58:12] [PASSED] Clock 324540 BPP 24 DSC enabled
[14:58:12] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[14:58:12] ============== drm_test_dp_mst_calc_pbn_div ===============
[14:58:12] [PASSED] Link rate 2000000 lane count 4
[14:58:12] [PASSED] Link rate 2000000 lane count 2
[14:58:12] [PASSED] Link rate 2000000 lane count 1
[14:58:12] [PASSED] Link rate 1350000 lane count 4
[14:58:12] [PASSED] Link rate 1350000 lane count 2
[14:58:12] [PASSED] Link rate 1350000 lane count 1
[14:58:12] [PASSED] Link rate 1000000 lane count 4
[14:58:12] [PASSED] Link rate 1000000 lane count 2
[14:58:12] [PASSED] Link rate 1000000 lane count 1
[14:58:12] [PASSED] Link rate 810000 lane count 4
[14:58:12] [PASSED] Link rate 810000 lane count 2
[14:58:12] [PASSED] Link rate 810000 lane count 1
[14:58:12] [PASSED] Link rate 540000 lane count 4
[14:58:12] [PASSED] Link rate 540000 lane count 2
[14:58:12] [PASSED] Link rate 540000 lane count 1
[14:58:12] [PASSED] Link rate 270000 lane count 4
[14:58:12] [PASSED] Link rate 270000 lane count 2
[14:58:12] [PASSED] Link rate 270000 lane count 1
[14:58:12] [PASSED] Link rate 162000 lane count 4
[14:58:12] [PASSED] Link rate 162000 lane count 2
[14:58:12] [PASSED] Link rate 162000 lane count 1
[14:58:12] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[14:58:12] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[14:58:12] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[14:58:12] [PASSED] DP_POWER_UP_PHY with port number
[14:58:12] [PASSED] DP_POWER_DOWN_PHY with port number
[14:58:12] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[14:58:12] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[14:58:12] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[14:58:12] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[14:58:12] [PASSED] DP_QUERY_PAYLOAD with port number
[14:58:12] [PASSED] DP_QUERY_PAYLOAD with VCPI
[14:58:12] [PASSED] DP_REMOTE_DPCD_READ with port number
[14:58:12] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[14:58:12] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[14:58:12] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[14:58:12] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[14:58:12] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[14:58:12] [PASSED] DP_REMOTE_I2C_READ with port number
[14:58:12] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[14:58:12] [PASSED] DP_REMOTE_I2C_READ with transactions array
[14:58:12] [PASSED] DP_REMOTE_I2C_WRITE with port number
[14:58:12] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[14:58:12] [PASSED] DP_REMOTE_I2C_WRITE with data array
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[14:58:12] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[14:58:12] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[14:58:12] ================ [PASSED] drm_dp_mst_helper ================
[14:58:12] ================== drm_exec (7 subtests) ===================
[14:58:12] [PASSED] sanitycheck
[14:58:12] [PASSED] test_lock
[14:58:12] [PASSED] test_lock_unlock
[14:58:12] [PASSED] test_duplicates
[14:58:12] [PASSED] test_prepare
[14:58:12] [PASSED] test_prepare_array
[14:58:12] [PASSED] test_multiple_loops
[14:58:12] ==================== [PASSED] drm_exec =====================
[14:58:12] =========== drm_format_helper_test (17 subtests) ===========
[14:58:12] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[14:58:12] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[14:58:12] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[14:58:12] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[14:58:12] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[14:58:12] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[14:58:12] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[14:58:12] ============= drm_test_fb_xrgb8888_to_bgr888 ==============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[14:58:12] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[14:58:12] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[14:58:12] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[14:58:12] ============== drm_test_fb_xrgb8888_to_mono ===============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[14:58:12] ==================== drm_test_fb_swab =====================
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ================ [PASSED] drm_test_fb_swab =================
[14:58:12] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[14:58:12] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[14:58:12] [PASSED] single_pixel_source_buffer
[14:58:12] [PASSED] single_pixel_clip_rectangle
[14:58:12] [PASSED] well_known_colors
[14:58:12] [PASSED] destination_pitch
[14:58:12] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[14:58:12] ================= drm_test_fb_clip_offset =================
[14:58:12] [PASSED] pass through
[14:58:12] [PASSED] horizontal offset
[14:58:12] [PASSED] vertical offset
[14:58:12] [PASSED] horizontal and vertical offset
[14:58:12] [PASSED] horizontal offset (custom pitch)
[14:58:12] [PASSED] vertical offset (custom pitch)
[14:58:12] [PASSED] horizontal and vertical offset (custom pitch)
[14:58:12] ============= [PASSED] drm_test_fb_clip_offset =============
[14:58:12] =================== drm_test_fb_memcpy ====================
[14:58:12] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[14:58:12] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[14:58:12] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[14:58:12] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[14:58:12] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[14:58:12] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[14:58:12] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[14:58:12] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[14:58:12] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[14:58:12] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[14:58:12] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[14:58:12] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[14:58:12] =============== [PASSED] drm_test_fb_memcpy ================
[14:58:12] ============= [PASSED] drm_format_helper_test ==============
[14:58:12] ================= drm_format (18 subtests) =================
[14:58:12] [PASSED] drm_test_format_block_width_invalid
[14:58:12] [PASSED] drm_test_format_block_width_one_plane
[14:58:12] [PASSED] drm_test_format_block_width_two_plane
[14:58:12] [PASSED] drm_test_format_block_width_three_plane
[14:58:12] [PASSED] drm_test_format_block_width_tiled
[14:58:12] [PASSED] drm_test_format_block_height_invalid
[14:58:12] [PASSED] drm_test_format_block_height_one_plane
[14:58:12] [PASSED] drm_test_format_block_height_two_plane
[14:58:12] [PASSED] drm_test_format_block_height_three_plane
[14:58:12] [PASSED] drm_test_format_block_height_tiled
[14:58:12] [PASSED] drm_test_format_min_pitch_invalid
[14:58:12] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[14:58:12] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[14:58:12] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[14:58:12] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[14:58:12] [PASSED] drm_test_format_min_pitch_two_plane
[14:58:12] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[14:58:12] [PASSED] drm_test_format_min_pitch_tiled
[14:58:12] =================== [PASSED] drm_format ====================
[14:58:12] ============== drm_framebuffer (10 subtests) ===============
[14:58:12] ========== drm_test_framebuffer_check_src_coords ==========
[14:58:12] [PASSED] Success: source fits into fb
[14:58:12] [PASSED] Fail: overflowing fb with x-axis coordinate
[14:58:12] [PASSED] Fail: overflowing fb with y-axis coordinate
[14:58:12] [PASSED] Fail: overflowing fb with source width
[14:58:12] [PASSED] Fail: overflowing fb with source height
[14:58:12] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[14:58:12] [PASSED] drm_test_framebuffer_cleanup
[14:58:12] =============== drm_test_framebuffer_create ===============
[14:58:12] [PASSED] ABGR8888 normal sizes
[14:58:12] [PASSED] ABGR8888 max sizes
[14:58:12] [PASSED] ABGR8888 pitch greater than min required
[14:58:12] [PASSED] ABGR8888 pitch less than min required
[14:58:12] [PASSED] ABGR8888 Invalid width
[14:58:12] [PASSED] ABGR8888 Invalid buffer handle
[14:58:12] [PASSED] No pixel format
[14:58:12] [PASSED] ABGR8888 Width 0
[14:58:12] [PASSED] ABGR8888 Height 0
[14:58:12] [PASSED] ABGR8888 Out of bound height * pitch combination
[14:58:12] [PASSED] ABGR8888 Large buffer offset
[14:58:12] [PASSED] ABGR8888 Buffer offset for inexistent plane
[14:58:12] [PASSED] ABGR8888 Invalid flag
[14:58:12] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[14:58:12] [PASSED] ABGR8888 Valid buffer modifier
[14:58:12] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[14:58:12] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] NV12 Normal sizes
[14:58:12] [PASSED] NV12 Max sizes
[14:58:12] [PASSED] NV12 Invalid pitch
[14:58:12] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[14:58:12] [PASSED] NV12 different modifier per-plane
[14:58:12] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[14:58:12] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] NV12 Modifier for inexistent plane
[14:58:12] [PASSED] NV12 Handle for inexistent plane
[14:58:12] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[14:58:12] [PASSED] YVU420 Normal sizes
[14:58:12] [PASSED] YVU420 Max sizes
[14:58:12] [PASSED] YVU420 Invalid pitch
[14:58:12] [PASSED] YVU420 Different pitches
[14:58:12] [PASSED] YVU420 Different buffer offsets/pitches
[14:58:12] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[14:58:12] [PASSED] YVU420 Valid modifier
[14:58:12] [PASSED] YVU420 Different modifiers per plane
[14:58:12] [PASSED] YVU420 Modifier for inexistent plane
[14:58:12] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[14:58:12] [PASSED] X0L2 Normal sizes
[14:58:12] [PASSED] X0L2 Max sizes
[14:58:12] [PASSED] X0L2 Invalid pitch
[14:58:12] [PASSED] X0L2 Pitch greater than minimum required
[14:58:12] [PASSED] X0L2 Handle for inexistent plane
[14:58:12] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[14:58:12] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[14:58:12] [PASSED] X0L2 Valid modifier
[14:58:12] [PASSED] X0L2 Modifier for inexistent plane
[14:58:12] =========== [PASSED] drm_test_framebuffer_create ===========
[14:58:12] [PASSED] drm_test_framebuffer_free
[14:58:12] [PASSED] drm_test_framebuffer_init
[14:58:12] [PASSED] drm_test_framebuffer_init_bad_format
[14:58:12] [PASSED] drm_test_framebuffer_init_dev_mismatch
[14:58:12] [PASSED] drm_test_framebuffer_lookup
[14:58:12] [PASSED] drm_test_framebuffer_lookup_inexistent
[14:58:12] [PASSED] drm_test_framebuffer_modifiers_not_supported
[14:58:12] ================= [PASSED] drm_framebuffer =================
[14:58:12] ================ drm_gem_shmem (8 subtests) ================
[14:58:12] [PASSED] drm_gem_shmem_test_obj_create
[14:58:12] [PASSED] drm_gem_shmem_test_obj_create_private
[14:58:12] [PASSED] drm_gem_shmem_test_pin_pages
[14:58:12] [PASSED] drm_gem_shmem_test_vmap
[14:58:12] [PASSED] drm_gem_shmem_test_get_sg_table
[14:58:12] [PASSED] drm_gem_shmem_test_get_pages_sgt
[14:58:12] [PASSED] drm_gem_shmem_test_madvise
[14:58:12] [PASSED] drm_gem_shmem_test_purge
[14:58:12] ================== [PASSED] drm_gem_shmem ==================
[14:58:12] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[14:58:12] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 =======
[14:58:12] [PASSED] Automatic
[14:58:12] [PASSED] Full
[14:58:12] [PASSED] Limited 16:235
[14:58:12] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[14:58:12] [PASSED] drm_test_check_disable_connector
[14:58:12] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[14:58:12] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[14:58:12] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[14:58:12] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[14:58:12] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[14:58:12] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[14:58:12] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[14:58:12] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[14:58:12] [PASSED] drm_test_check_output_bpc_dvi
[14:58:12] [PASSED] drm_test_check_output_bpc_format_vic_1
[14:58:12] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[14:58:12] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[14:58:12] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[14:58:12] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[14:58:12] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[14:58:12] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[14:58:12] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[14:58:12] ============ drm_test_check_hdmi_color_format =============
[14:58:12] [PASSED] AUTO -> RGB
[14:58:12] [PASSED] YCBCR422 -> YUV422
[14:58:12] [PASSED] YCBCR420 -> YUV420
[14:58:12] [PASSED] YCBCR444 -> YUV444
[14:58:12] [PASSED] RGB -> RGB
[14:58:12] ======== [PASSED] drm_test_check_hdmi_color_format =========
[14:58:12] ======== drm_test_check_hdmi_color_format_420_only ========
[14:58:12] [PASSED] RGB should fail
[14:58:12] [PASSED] YUV444 should fail
[14:58:12] [PASSED] YUV422 should fail
[14:58:12] [PASSED] YUV420 should work
[14:58:12] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[14:58:12] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[14:58:12] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[14:58:12] [PASSED] drm_test_check_broadcast_rgb_value
[14:58:12] [PASSED] drm_test_check_bpc_8_value
[14:58:12] [PASSED] drm_test_check_bpc_10_value
[14:58:12] [PASSED] drm_test_check_bpc_12_value
[14:58:12] [PASSED] drm_test_check_format_value
[14:58:12] [PASSED] drm_test_check_tmds_char_value
[14:58:12] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[14:58:12] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[14:58:12] [PASSED] drm_test_check_mode_valid
[14:58:12] [PASSED] drm_test_check_mode_valid_reject
[14:58:12] [PASSED] drm_test_check_mode_valid_reject_rate
[14:58:12] [PASSED] drm_test_check_mode_valid_reject_max_clock
[14:58:12] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[14:58:12] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[14:58:12] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[14:58:12] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[14:58:12] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[14:58:12] [PASSED] drm_test_check_infoframes
[14:58:12] [PASSED] drm_test_check_reject_avi_infoframe
[14:58:12] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[14:58:12] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[14:58:12] [PASSED] drm_test_check_reject_audio_infoframe
[14:58:12] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[14:58:12] ================= drm_managed (2 subtests) =================
[14:58:12] [PASSED] drm_test_managed_release_action
[14:58:12] [PASSED] drm_test_managed_run_action
[14:58:12] =================== [PASSED] drm_managed ===================
[14:58:12] =================== drm_mm (6 subtests) ====================
[14:58:12] [PASSED] drm_test_mm_init
[14:58:12] [PASSED] drm_test_mm_debug
[14:58:12] [PASSED] drm_test_mm_align32
[14:58:12] [PASSED] drm_test_mm_align64
[14:58:12] [PASSED] drm_test_mm_lowest
[14:58:12] [PASSED] drm_test_mm_highest
[14:58:12] ===================== [PASSED] drm_mm ======================
[14:58:12] ============= drm_modes_analog_tv (5 subtests) =============
[14:58:12] [PASSED] drm_test_modes_analog_tv_mono_576i
[14:58:12] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[14:58:12] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[14:58:12] [PASSED] drm_test_modes_analog_tv_pal_576i
[14:58:12] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[14:58:12] =============== [PASSED] drm_modes_analog_tv ===============
[14:58:12] ============== drm_panic_helper (3 subtests) ===============
[14:58:12] ============= drm_test_panic_screen_user_map ==============
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] ========= [PASSED] drm_test_panic_screen_user_map ==========
[14:58:12] ============= drm_test_panic_screen_user_page =============
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] ========= [PASSED] drm_test_panic_screen_user_page =========
[14:58:12] ========== drm_test_panic_screen_user_set_pixel ===========
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen user, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 494 x 494 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1920 x 1080 XR24 little-endian (0x34325258)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG16 little-endian (0x36314752)
[14:58:12] [PASSED] Panic screen kmsg, mode: 1024 x 768 RG24 little-endian (0x34324752)
[14:58:12] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[14:58:12] ================ [PASSED] drm_panic_helper =================
[14:58:12] ============== drm_plane_helper (2 subtests) ===============
[14:58:12] =============== drm_test_check_plane_state ================
[14:58:12] [PASSED] clipping_simple
[14:58:12] [PASSED] clipping_rotate_reflect
[14:58:12] [PASSED] positioning_simple
[14:58:12] [PASSED] upscaling
[14:58:12] [PASSED] downscaling
[14:58:12] [PASSED] rounding1
[14:58:12] [PASSED] rounding2
[14:58:12] [PASSED] rounding3
[14:58:12] [PASSED] rounding4
[14:58:12] =========== [PASSED] drm_test_check_plane_state ============
[14:58:12] =========== drm_test_check_invalid_plane_state ============
[14:58:12] [PASSED] positioning_invalid
[14:58:12] [PASSED] upscaling_invalid
[14:58:12] [PASSED] downscaling_invalid
[14:58:12] ======= [PASSED] drm_test_check_invalid_plane_state ========
[14:58:12] ================ [PASSED] drm_plane_helper =================
[14:58:12] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[14:58:12] ====== drm_test_connector_helper_tv_get_modes_check =======
[14:58:12] [PASSED] None
[14:58:12] [PASSED] PAL
[14:58:12] [PASSED] NTSC
[14:58:12] [PASSED] Both, NTSC Default
[14:58:12] [PASSED] Both, PAL Default
[14:58:12] [PASSED] Both, NTSC Default, with PAL on command-line
[14:58:12] [PASSED] Both, PAL Default, with NTSC on command-line
[14:58:12] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[14:58:12] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[14:58:12] ================== drm_rect (9 subtests) ===================
[14:58:12] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[14:58:12] [PASSED] drm_test_rect_clip_scaled_not_clipped
[14:58:12] [PASSED] drm_test_rect_clip_scaled_clipped
[14:58:12] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[14:58:12] ================= drm_test_rect_intersect =================
[14:58:12] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[14:58:12] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[14:58:12] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[14:58:12] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[14:58:12] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[14:58:12] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[14:58:12] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[14:58:12] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[14:58:12] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[14:58:12] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[14:58:12] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[14:58:12] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[14:58:12] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[14:58:12] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[14:58:12] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[14:58:12] ============= [PASSED] drm_test_rect_intersect =============
[14:58:12] ================ drm_test_rect_calc_hscale ================
[14:58:12] [PASSED] normal use
[14:58:12] [PASSED] out of max range
[14:58:12] [PASSED] out of min range
[14:58:12] [PASSED] zero dst
[14:58:12] [PASSED] negative src
[14:58:12] [PASSED] negative dst
[14:58:12] ============ [PASSED] drm_test_rect_calc_hscale ============
[14:58:12] ================ drm_test_rect_calc_vscale ================
[14:58:12] [PASSED] normal use
[14:58:12] [PASSED] out of max range
[14:58:12] [PASSED] out of min range
[14:58:12] [PASSED] zero dst
[14:58:12] [PASSED] negative src
[14:58:12] [PASSED] negative dst
[14:58:12] ============ [PASSED] drm_test_rect_calc_vscale ============
[14:58:12] ================== drm_test_rect_rotate ===================
[14:58:12] [PASSED] reflect-x
[14:58:12] [PASSED] reflect-y
[14:58:12] [PASSED] rotate-0
[14:58:12] [PASSED] rotate-90
[14:58:12] [PASSED] rotate-180
[14:58:12] [PASSED] rotate-270
[14:58:12] ============== [PASSED] drm_test_rect_rotate ===============
[14:58:12] ================ drm_test_rect_rotate_inv =================
[14:58:12] [PASSED] reflect-x
[14:58:12] [PASSED] reflect-y
[14:58:12] [PASSED] rotate-0
[14:58:12] [PASSED] rotate-90
[14:58:12] [PASSED] rotate-180
[14:58:12] [PASSED] rotate-270
[14:58:12] ============ [PASSED] drm_test_rect_rotate_inv =============
[14:58:12] ==================== [PASSED] drm_rect =====================
[14:58:12] ============ drm_sysfb_modeset_test (1 subtest) ============
[14:58:12] ============ drm_test_sysfb_build_fourcc_list =============
[14:58:12] [PASSED] no native formats
[14:58:12] [PASSED] XRGB8888 as native format
[14:58:12] [PASSED] remove duplicates
[14:58:12] [PASSED] convert alpha formats
[14:58:13] [PASSED] random formats
[14:58:13] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[14:58:13] ============= [PASSED] drm_sysfb_modeset_test ==============
[14:58:13] ================== drm_fixp (2 subtests) ===================
[14:58:13] [PASSED] drm_test_int2fixp
[14:58:13] [PASSED] drm_test_sm2fixp
[14:58:13] ==================== [PASSED] drm_fixp =====================
[14:58:13] ============================================================
[14:58:13] Testing complete. Ran 667 tests: passed: 667
[14:58:13] Elapsed time: 28.062s total, 2.500s configuring, 25.196s building, 0.345s 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
[14:58:13] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:58:15] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:58:25] Starting KUnit Kernel (1/1)...
[14:58:25] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:58:25] ================= ttm_device (5 subtests) ==================
[14:58:25] [PASSED] ttm_device_init_basic
[14:58:25] [PASSED] ttm_device_init_multiple
[14:58:25] [PASSED] ttm_device_fini_basic
[14:58:25] [PASSED] ttm_device_init_no_vma_man
[14:58:25] ================== ttm_device_init_pools ==================
[14:58:25] [PASSED] No DMA allocations, no DMA32 required
[14:58:25] [PASSED] DMA allocations, DMA32 required
[14:58:25] [PASSED] No DMA allocations, DMA32 required
[14:58:25] [PASSED] DMA allocations, no DMA32 required
[14:58:25] ============== [PASSED] ttm_device_init_pools ==============
[14:58:25] =================== [PASSED] ttm_device ====================
[14:58:25] ================== ttm_pool (8 subtests) ===================
[14:58:25] ================== ttm_pool_alloc_basic ===================
[14:58:25] [PASSED] One page
[14:58:25] [PASSED] More than one page
[14:58:25] [PASSED] Above the allocation limit
[14:58:26] [PASSED] One page, with coherent DMA mappings enabled
[14:58:26] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:58:26] ============== [PASSED] ttm_pool_alloc_basic ===============
[14:58:26] ============== ttm_pool_alloc_basic_dma_addr ==============
[14:58:26] [PASSED] One page
[14:58:26] [PASSED] More than one page
[14:58:26] [PASSED] Above the allocation limit
[14:58:26] [PASSED] One page, with coherent DMA mappings enabled
[14:58:26] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:58:26] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[14:58:26] [PASSED] ttm_pool_alloc_order_caching_match
[14:58:26] [PASSED] ttm_pool_alloc_caching_mismatch
[14:58:26] [PASSED] ttm_pool_alloc_order_mismatch
[14:58:26] [PASSED] ttm_pool_free_dma_alloc
[14:58:26] [PASSED] ttm_pool_free_no_dma_alloc
[14:58:26] [PASSED] ttm_pool_fini_basic
[14:58:26] ==================== [PASSED] ttm_pool =====================
[14:58:26] ================ ttm_resource (8 subtests) =================
[14:58:26] ================= ttm_resource_init_basic =================
[14:58:26] [PASSED] Init resource in TTM_PL_SYSTEM
[14:58:26] [PASSED] Init resource in TTM_PL_VRAM
[14:58:26] [PASSED] Init resource in a private placement
[14:58:26] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[14:58:26] ============= [PASSED] ttm_resource_init_basic =============
[14:58:26] [PASSED] ttm_resource_init_pinned
[14:58:26] [PASSED] ttm_resource_fini_basic
[14:58:26] [PASSED] ttm_resource_manager_init_basic
[14:58:26] [PASSED] ttm_resource_manager_usage_basic
[14:58:26] [PASSED] ttm_resource_manager_set_used_basic
[14:58:26] [PASSED] ttm_sys_man_alloc_basic
[14:58:26] [PASSED] ttm_sys_man_free_basic
[14:58:26] ================== [PASSED] ttm_resource ===================
[14:58:26] =================== ttm_tt (15 subtests) ===================
[14:58:26] ==================== ttm_tt_init_basic ====================
[14:58:26] [PASSED] Page-aligned size
[14:58:26] [PASSED] Extra pages requested
[14:58:26] ================ [PASSED] ttm_tt_init_basic ================
[14:58:26] [PASSED] ttm_tt_init_misaligned
[14:58:26] [PASSED] ttm_tt_fini_basic
[14:58:26] [PASSED] ttm_tt_fini_sg
[14:58:26] [PASSED] ttm_tt_fini_shmem
[14:58:26] [PASSED] ttm_tt_create_basic
[14:58:26] [PASSED] ttm_tt_create_invalid_bo_type
[14:58:26] [PASSED] ttm_tt_create_ttm_exists
[14:58:26] [PASSED] ttm_tt_create_failed
[14:58:26] [PASSED] ttm_tt_destroy_basic
[14:58:26] [PASSED] ttm_tt_populate_null_ttm
[14:58:26] [PASSED] ttm_tt_populate_populated_ttm
[14:58:26] [PASSED] ttm_tt_unpopulate_basic
[14:58:26] [PASSED] ttm_tt_unpopulate_empty_ttm
[14:58:26] [PASSED] ttm_tt_swapin_basic
[14:58:26] ===================== [PASSED] ttm_tt ======================
[14:58:26] =================== ttm_bo (14 subtests) ===================
[14:58:26] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[14:58:26] [PASSED] Cannot be interrupted and sleeps
[14:58:26] [PASSED] Cannot be interrupted, locks straight away
[14:58:26] [PASSED] Can be interrupted, sleeps
[14:58:26] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[14:58:26] [PASSED] ttm_bo_reserve_locked_no_sleep
[14:58:26] [PASSED] ttm_bo_reserve_no_wait_ticket
[14:58:26] [PASSED] ttm_bo_reserve_double_resv
[14:58:26] [PASSED] ttm_bo_reserve_interrupted
[14:58:26] [PASSED] ttm_bo_reserve_deadlock
[14:58:26] [PASSED] ttm_bo_unreserve_basic
[14:58:26] [PASSED] ttm_bo_unreserve_pinned
[14:58:26] [PASSED] ttm_bo_unreserve_bulk
[14:58:26] [PASSED] ttm_bo_fini_basic
[14:58:26] [PASSED] ttm_bo_fini_shared_resv
[14:58:26] [PASSED] ttm_bo_pin_basic
[14:58:26] [PASSED] ttm_bo_pin_unpin_resource
[14:58:26] [PASSED] ttm_bo_multiple_pin_one_unpin
[14:58:26] ===================== [PASSED] ttm_bo ======================
[14:58:26] ============== ttm_bo_validate (22 subtests) ===============
[14:58:26] ============== ttm_bo_init_reserved_sys_man ===============
[14:58:26] [PASSED] Buffer object for userspace
[14:58:26] [PASSED] Kernel buffer object
[14:58:26] [PASSED] Shared buffer object
[14:58:26] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[14:58:26] ============== ttm_bo_init_reserved_mock_man ==============
[14:58:26] [PASSED] Buffer object for userspace
[14:58:26] [PASSED] Kernel buffer object
[14:58:26] [PASSED] Shared buffer object
[14:58:26] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[14:58:26] [PASSED] ttm_bo_init_reserved_resv
[14:58:26] ================== ttm_bo_validate_basic ==================
[14:58:26] [PASSED] Buffer object for userspace
[14:58:26] [PASSED] Kernel buffer object
[14:58:26] [PASSED] Shared buffer object
[14:58:26] ============== [PASSED] ttm_bo_validate_basic ==============
[14:58:26] [PASSED] ttm_bo_validate_invalid_placement
[14:58:26] ============= ttm_bo_validate_same_placement ==============
[14:58:26] [PASSED] System manager
[14:58:26] [PASSED] VRAM manager
[14:58:26] ========= [PASSED] ttm_bo_validate_same_placement ==========
[14:58:26] [PASSED] ttm_bo_validate_failed_alloc
[14:58:26] [PASSED] ttm_bo_validate_pinned
[14:58:26] [PASSED] ttm_bo_validate_busy_placement
[14:58:26] ================ ttm_bo_validate_multihop =================
[14:58:26] [PASSED] Buffer object for userspace
[14:58:26] [PASSED] Kernel buffer object
[14:58:26] [PASSED] Shared buffer object
[14:58:26] ============ [PASSED] ttm_bo_validate_multihop =============
[14:58:26] ========== ttm_bo_validate_no_placement_signaled ==========
[14:58:26] [PASSED] Buffer object in system domain, no page vector
[14:58:26] [PASSED] Buffer object in system domain with an existing page vector
[14:58:26] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[14:58:26] ======== ttm_bo_validate_no_placement_not_signaled ========
[14:58:26] [PASSED] Buffer object for userspace
[14:58:26] [PASSED] Kernel buffer object
[14:58:26] [PASSED] Shared buffer object
[14:58:26] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[14:58:26] [PASSED] ttm_bo_validate_move_fence_signaled
[14:58:26] ========= ttm_bo_validate_move_fence_not_signaled =========
[14:58:26] [PASSED] Waits for GPU
[14:58:26] [PASSED] Tries to lock straight away
[14:58:26] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[14:58:26] [PASSED] ttm_bo_validate_swapout
[14:58:26] [PASSED] ttm_bo_validate_happy_evict
[14:58:26] [PASSED] ttm_bo_validate_all_pinned_evict
[14:58:26] [PASSED] ttm_bo_validate_allowed_only_evict
[14:58:26] [PASSED] ttm_bo_validate_deleted_evict
[14:58:26] [PASSED] ttm_bo_validate_busy_domain_evict
[14:58:26] [PASSED] ttm_bo_validate_evict_gutting
[14:58:26] [PASSED] ttm_bo_validate_recursive_evict
[14:58:26] ================= [PASSED] ttm_bo_validate =================
[14:58:26] ============================================================
[14:58:26] Testing complete. Ran 102 tests: passed: 102
[14:58:26] Elapsed time: 12.976s total, 2.535s configuring, 10.226s building, 0.181s running
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[14:58:26] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:58:28] 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
[14:58:37] Starting KUnit Kernel (1/1)...
[14:58:37] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:58:37] =============== dma-buf-fence (12 subtests) ================
[14:58:37] [PASSED] test_sanitycheck
[14:58:37] [PASSED] test_signaling
[14:58:37] [PASSED] test_add_callback
[14:58:37] [PASSED] test_late_add_callback
[14:58:37] [PASSED] test_rm_callback
[14:58:37] [PASSED] test_late_rm_callback
[14:58:37] [PASSED] test_status
[14:58:37] [PASSED] test_error
[14:58:37] [PASSED] test_wait
[14:58:37] [PASSED] test_wait_timeout
[14:58:37] [PASSED] test_stub
[14:58:37] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[14:58:37] ================== [PASSED] dma-buf-fence ==================
[14:58:37] ============ dma-buf-fence-chain (11 subtests) =============
[14:58:37] [PASSED] test_sanitycheck
[14:58:37] [PASSED] test_find_seqno
[14:58:37] [PASSED] test_find_signaled
[14:58:37] [PASSED] test_find_out_of_order
[14:58:42] [PASSED] test_find_gap
[14:58:42] [PASSED] test_find_race
[14:58:42] [PASSED] test_signal_forward
[14:58:42] [PASSED] test_signal_backward
[14:58:43] [PASSED] test_wait_forward
[14:58:43] [PASSED] test_wait_backward
[14:58:43] [PASSED] test_wait_random
[14:58:43] =============== [PASSED] dma-buf-fence-chain ===============
[14:58:43] ============ dma-buf-fence-unwrap (11 subtests) ============
[14:58:43] [PASSED] test_sanitycheck
[14:58:43] [PASSED] test_unwrap_array
[14:58:43] [PASSED] test_unwrap_chain
[14:58:43] [PASSED] test_unwrap_chain_array
[14:58:43] [PASSED] test_unwrap_merge
[14:58:43] [PASSED] test_unwrap_merge_duplicate
[14:58:43] [PASSED] test_unwrap_merge_seqno
[14:58:43] [PASSED] test_unwrap_merge_order
[14:58:43] [PASSED] test_unwrap_merge_complex
[14:58:43] [PASSED] test_unwrap_merge_complex_seqno
[14:58:43] [PASSED] test_dedup_empty
[14:58:43] ============== [PASSED] dma-buf-fence-unwrap ===============
[14:58:43] ================ dma-buf-resv (5 subtests) =================
[14:58:43] [PASSED] test_sanitycheck
[14:58:43] ===================== test_signaling ======================
[14:58:43] [PASSED] kernel
[14:58:43] [PASSED] write
[14:58:43] [PASSED] read
[14:58:43] [PASSED] bookkeep
[14:58:43] ================= [PASSED] test_signaling ==================
[14:58:43] ====================== test_for_each ======================
[14:58:43] [PASSED] kernel
[14:58:43] [PASSED] write
[14:58:43] [PASSED] read
[14:58:43] [PASSED] bookkeep
[14:58:43] ================== [PASSED] test_for_each ==================
[14:58:43] ================= test_for_each_unlocked ==================
[14:58:43] [PASSED] kernel
[14:58:43] [PASSED] write
[14:58:43] [PASSED] read
[14:58:43] [PASSED] bookkeep
[14:58:43] ============= [PASSED] test_for_each_unlocked ==============
[14:58:43] ===================== test_get_fences =====================
[14:58:43] [PASSED] kernel
[14:58:43] [PASSED] write
[14:58:43] [PASSED] read
[14:58:43] [PASSED] bookkeep
[14:58:43] ================= [PASSED] test_get_fences =================
[14:58:43] ================== [PASSED] dma-buf-resv ===================
[14:58:43] ============================================================
[14:58:43] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[14:58:43] Elapsed time: 16.758s total, 2.564s configuring, 8.922s building, 5.256s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 26+ messages in thread* ✗ Xe.CI.BAT: failure for Enable GuC log and debug error state capture for VF
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
` (12 preceding siblings ...)
2026-12-04 14:58 ` ✓ CI.KUnit: success " Patchwork
@ 2026-12-04 15:34 ` Patchwork
13 siblings, 0 replies; 26+ messages in thread
From: Patchwork @ 2026-12-04 15:34 UTC (permalink / raw)
To: Satyanarayana K V P; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]
== Series Details ==
Series: Enable GuC log and debug error state capture for VF
URL : https://patchwork.freedesktop.org/series/180547/
State : failure
== Summary ==
CI Bug Log - changes from xe-6296-6c52f47aacb26f5876a49f010c8d5a97b7a9a321_BAT -> xe-pw-180547v1_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with xe-pw-180547v1_BAT absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in xe-pw-180547v1_BAT, please notify your bug team (I915-ci-infra@lists.freedesktop.org) to allow them
to document this new failure mode, which will reduce false positives in CI.
Participating hosts (13 -> 13)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in xe-pw-180547v1_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@xe_exec_fault_mode@invalid-va:
- bat-bmg-2: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-6296-6c52f47aacb26f5876a49f010c8d5a97b7a9a321/bat-bmg-2/igt@xe_exec_fault_mode@invalid-va.html
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-180547v1/bat-bmg-2/igt@xe_exec_fault_mode@invalid-va.html
Build changes
-------------
* IGT: IGT_9226 -> IGT_9227
* Linux: xe-6296-6c52f47aacb26f5876a49f010c8d5a97b7a9a321 -> xe-pw-180547v1
IGT_9226: 9226
IGT_9227: 9227
xe-6296-6c52f47aacb26f5876a49f010c8d5a97b7a9a321: 6c52f47aacb26f5876a49f010c8d5a97b7a9a321
xe-pw-180547v1: 180547v1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-180547v1/index.html
[-- Attachment #2: Type: text/html, Size: 2367 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread