All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/7] Introduce xe_wedge
@ 2026-10-14  5:51 Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging Raag Jadav
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

In the history of xe technical debt, this series takes one more step and
consolidates all wedging implementation into a dedicated xe_wedge component.

While at it, this fixes a few pre-existing issues related to wedge handling.
Detailed description in commit message.

v1: https://patchwork.freedesktop.org/series/172727/

v2: Split fixes into separate patches (Rodrigo, Michal)
    Also move struct xe_wedge and wedged_mode debt to xe_wedge (Lukasz, Michal)
    Naming and aesthetic adjustments (Lukasz, Michal)

v3: Respect the component namespace (Rodrigo)
    Avoid chaining header includes (Rodrigo)
    Squash debugfs changes with xe_wedge patch (Lukasz)

v4: Introduce for_each_initialized_gt() (Michal)
    Include xe_sriov.h (Rodrigo)

v5: Flush GT wedge worker to avoid races (Sashiko)
    Drop IRQ safe wedging for its flawed design

v6: Move wedge worker initialization to xe_gt_init_early() (Rodrigo)
    Don't flush GT wedge worker to avoid deadlock (Sashiko)
    Include IRQ safe wedging with redesign

Raag Jadav (7):
  drm/xe/gt: Use GT ordered workqueue for wedging
  drm/xe: Drop xe_device_set_wedged_method()
  drm/xe: Move xe_device_wedged_fini() registration to
    xe_device_probe_early()
  drm/xe: Make xe_device_declare_wedged() IRQ safe
  drm/xe/pci_error: Flush GT wedge worker before bus reset
  drm/xe: Introduce xe_wedge
  drm/xe/ras: Move xe_ras_process_errors() to xe_ras

 Documentation/gpu/xe/xe_device.rst          |   2 +-
 drivers/gpu/drm/xe/Makefile                 |   1 +
 drivers/gpu/drm/xe/tests/xe_kunit_helpers.c |   3 +-
 drivers/gpu/drm/xe/xe_amc.c                 |   4 +-
 drivers/gpu/drm/xe/xe_bo.c                  |   3 +-
 drivers/gpu/drm/xe/xe_debugfs.c             |  66 +----
 drivers/gpu/drm/xe/xe_device.c              | 190 +-------------
 drivers/gpu/drm/xe/xe_device.h              |  14 +-
 drivers/gpu/drm/xe/xe_device_types.h        |  28 +-
 drivers/gpu/drm/xe/xe_gsc.c                 |   4 +-
 drivers/gpu/drm/xe/xe_gt.c                  |  26 +-
 drivers/gpu/drm/xe/xe_gt.h                  |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c         |   3 +-
 drivers/gpu/drm/xe/xe_gt_types.h            |   9 +
 drivers/gpu/drm/xe/xe_guc.c                 |   4 +-
 drivers/gpu/drm/xe/xe_guc.h                 |   2 +-
 drivers/gpu/drm/xe/xe_guc_ct.c              |   7 +-
 drivers/gpu/drm/xe/xe_guc_pc.c              |  11 +-
 drivers/gpu/drm/xe/xe_guc_rc.c              |   5 +-
 drivers/gpu/drm/xe/xe_guc_submit.c          |  14 +-
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c       |   3 +-
 drivers/gpu/drm/xe/xe_mert.c                |   5 +-
 drivers/gpu/drm/xe/xe_pci_error.c           |  13 +-
 drivers/gpu/drm/xe/xe_ras.c                 |  11 +-
 drivers/gpu/drm/xe/xe_sriov_pf.c            |   3 +-
 drivers/gpu/drm/xe/xe_survivability_mode.c  |   4 +-
 drivers/gpu/drm/xe/xe_uc.c                  |   6 +-
 drivers/gpu/drm/xe/xe_uc.h                  |   2 +-
 drivers/gpu/drm/xe/xe_wedge.c               | 273 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_wedge.h               |  20 ++
 drivers/gpu/drm/xe/xe_wedge_types.h         |  44 ++++
 31 files changed, 451 insertions(+), 331 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_wedge.c
 create mode 100644 drivers/gpu/drm/xe/xe_wedge.h
 create mode 100644 drivers/gpu/drm/xe/xe_wedge_types.h

-- 
2.43.0


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

* [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  6:14   ` sashiko-bot
  2026-10-14  5:51 ` [PATCH v6 2/7] drm/xe: Drop xe_device_set_wedged_method() Raag Jadav
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

Currently, xe_gt_declare_wedged() stops GuC CT and initiates exec queue
teardown synchronously. This can result in tdr timeout in cases where
the device is declared wedged while jobs are still in-flight.

Introduce a worker for GT specific wedge handling and queue the teardown
on GT ordered workqueue, so we don't disrupt the scheduler while jobs
are still in-flight.

While at it, introduce for_each_initialized_gt() macro and use it for
wedging GT. This helps avoid races in case the device is declared wedged
in probe sequence before GT is initialized.

Fixes: c9474b726b93 ("drm/xe: Wedge the entire device")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
---
v2: Split fixes into separate patches (Rodrigo, Michal)
v4: Introduce for_each_initialized_gt() (Michal)
v5: Flush GT wedge worker to avoid races (Sashiko)
v6: Move wedge worker initialization to xe_gt_init_early() (Rodrigo)
    Don't flush GT wedge worker to avoid deadlock (Sashiko)
---
 drivers/gpu/drm/xe/xe_device.c   |  2 +-
 drivers/gpu/drm/xe/xe_device.h   |  4 ++++
 drivers/gpu/drm/xe/xe_gt.c       | 17 +++++++++++++++--
 drivers/gpu/drm/xe/xe_gt_types.h |  9 +++++++++
 4 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 8392c9fad3c4..22ae10958d7f 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1432,7 +1432,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
 			    WEDGED_URL, XE_BUG_URL);
 	}
 
-	for_each_gt(gt, xe, id)
+	for_each_initialized_gt(gt, xe, id)
 		xe_gt_declare_wedged(gt);
 
 	if (xe_device_wedged(xe)) {
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 83d6dafab53c..80bda9b548d5 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -139,6 +139,10 @@ static inline bool xe_device_uc_enabled(struct xe_device *xe)
 	for_each_gt((gt__), (tile__)->xe, (id__)) \
 		for_each_if((gt__)->tile == (tile__))
 
+#define for_each_initialized_gt(gt__, xe__, id__) \
+	for_each_gt((gt__), (xe__), (id__)) \
+		for_each_if(READ_ONCE((gt__)->initialized))
+
 static inline struct xe_force_wake *gt_to_fw(struct xe_gt *gt)
 {
 	return &gt->pm.fw;
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index 775c826b68b4..d8bf538ceaff 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -175,6 +175,7 @@ static void xe_gt_enable_comp_1wcoh(struct xe_gt *gt)
 }
 
 static void gt_reset_worker(struct work_struct *w);
+static void gt_wedge_worker(struct work_struct *w);
 
 static int emit_job_sync(struct xe_exec_queue *q, struct xe_bb *bb,
 			 long timeout_jiffies, bool force_reset)
@@ -546,6 +547,7 @@ int xe_gt_init_early(struct xe_gt *gt)
 	xe_gt_mcr_init_early(gt);
 	xe_pat_init(gt);
 
+	INIT_WORK(&gt->wedge.worker, gt_wedge_worker);
 	return 0;
 }
 
@@ -706,6 +708,8 @@ static void xe_gt_fini(void *arg)
 	struct xe_gt *gt = arg;
 	int i;
 
+	disable_work_sync(&gt->wedge.worker);
+
 	if (disable_work_sync(&gt->reset.worker))
 		/*
 		 * If gt_reset_worker was halted from executing, take care of
@@ -769,6 +773,8 @@ int xe_gt_init(struct xe_gt *gt)
 			return err;
 	}
 
+	/* Must be last */
+	WRITE_ONCE(gt->initialized, true);
 	return 0;
 }
 
@@ -1189,6 +1195,14 @@ struct xe_hw_engine *xe_gt_any_hw_engine(struct xe_gt *gt)
 	return NULL;
 }
 
+static void gt_wedge_worker(struct work_struct *w)
+{
+	struct xe_gt *gt = container_of(w, typeof(*gt), wedge.worker);
+
+	xe_uc_declare_wedged(&gt->uc);
+	xe_tlb_inval_reset(&gt->tlb_inval);
+}
+
 /**
  * xe_gt_declare_wedged() - Declare GT wedged
  * @gt: the GT object
@@ -1200,6 +1214,5 @@ void xe_gt_declare_wedged(struct xe_gt *gt)
 {
 	xe_gt_assert(gt, gt_to_xe(gt)->wedged.mode);
 
-	xe_uc_declare_wedged(&gt->uc);
-	xe_tlb_inval_reset(&gt->tlb_inval);
+	queue_work(gt->ordered_wq, &gt->wedge.worker);
 }
diff --git a/drivers/gpu/drm/xe/xe_gt_types.h b/drivers/gpu/drm/xe/xe_gt_types.h
index 628911346455..c00a7c171f80 100644
--- a/drivers/gpu/drm/xe/xe_gt_types.h
+++ b/drivers/gpu/drm/xe/xe_gt_types.h
@@ -233,6 +233,12 @@ struct xe_gt {
 		struct work_struct worker;
 	} reset;
 
+	/** @wedge: state for GT wedge */
+	struct {
+		/** @wedge.worker: worker for GT wedge to be done async */
+		struct work_struct worker;
+	} wedge;
+
 	/** @tlb_inval: TLB invalidation state */
 	struct xe_tlb_inval tlb_inval;
 
@@ -419,6 +425,9 @@ struct xe_gt {
 
 	/** @eu_stall: EU stall counters subsystem per gt info */
 	struct xe_eu_stall_gt *eu_stall;
+
+	/** @initialized: GT is initialized */
+	bool initialized;
 };
 
 #endif
-- 
2.43.0


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

* [PATCH v6 2/7] drm/xe: Drop xe_device_set_wedged_method()
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 3/7] drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early() Raag Jadav
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

Commit 60439ac3f235 ("drm/xe: Add a helper function to set recovery
method") introduced xe_device_set_wedged_method() helper to allow setting
preferred recovery method before wedging the device, but also introduced
a flaw where the previously set method can be overwritten by concurrent
racing wedge call. This can result in unintended recovery method to be
sent to userspace and possibly failed recovery.

Drop xe_device_set_wedged_method() entirely and pass the recovery method
as part of xe_device_declare_wedged() argument, which places the preferred
recovery method on stack and avoids this issue.

Fixes: 60439ac3f235 ("drm/xe: Add a helper function to set recovery method")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v2: Split fixes into separate patches (Rodrigo, Michal)
---
 drivers/gpu/drm/xe/xe_amc.c                |  3 ++-
 drivers/gpu/drm/xe/xe_device.c             | 27 ++++------------------
 drivers/gpu/drm/xe/xe_device.h             |  3 +--
 drivers/gpu/drm/xe/xe_gsc.c                |  3 ++-
 drivers/gpu/drm/xe/xe_gt.c                 |  3 ++-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c        |  2 +-
 drivers/gpu/drm/xe/xe_guc_submit.c         |  5 ++--
 drivers/gpu/drm/xe/xe_mert.c               |  6 +++--
 drivers/gpu/drm/xe/xe_pci_error.c          |  3 ++-
 drivers/gpu/drm/xe/xe_ras.c                |  3 +--
 drivers/gpu/drm/xe/xe_survivability_mode.c |  3 +--
 11 files changed, 24 insertions(+), 37 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_amc.c b/drivers/gpu/drm/xe/xe_amc.c
index 8ecadee6eea3..b7390a4ee3ce 100644
--- a/drivers/gpu/drm/xe/xe_amc.c
+++ b/drivers/gpu/drm/xe/xe_amc.c
@@ -160,7 +160,8 @@ static void xe_amc_work(struct work_struct *work)
 	case AMC_ALERT_OOB_RESET:
 	case AMC_ALERT_CATERR:
 		dev_warn(amc->i2c->drm_dev, "AMC Alert: %s\n", amc_alert[alert_reason]);
-		xe_device_declare_wedged(i2c_client_to_xe_device(client));
+		xe_device_declare_wedged(i2c_client_to_xe_device(client),
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	default:
 		dev_warn(amc->i2c->drm_dev, "unknown AMC alert: %d\n", alert_reason);
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 22ae10958d7f..cd2decc24f78 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1378,29 +1378,16 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
  *   firmware and restore device to normal operation.
  */
 
-/**
- * xe_device_set_wedged_method - Set wedged recovery method
- * @xe: xe device instance
- * @method: recovery method to set
- *
- * Set wedged recovery method to be sent in drm wedged uevent.
- */
-void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method)
-{
-	xe->wedged.method = method;
-}
-
 #define WEDGED_URL	"https://docs.kernel.org/gpu/drm-uapi.html#device-wedging"
 #define XE_BUG_URL	"https://gitlab.freedesktop.org/drm/xe/kernel/issues/new"
 
 /**
  * xe_device_declare_wedged - Declare device wedged
  * @xe: xe device instance
+ * @method: method(s) to be used for recovery
  *
  * This is a final state that can only be cleared with the recovery method
- * specified in the drm wedged uevent. The method can be set using
- * xe_device_set_wedged_method before declaring the device as wedged. If no method
- * is set, reprobe (unbind/re-bind) will be sent by default.
+ * specified in the drm wedged uevent.
  *
  * In this state every IOCTL will be blocked so the GT cannot be used.
  * In general it will be called upon any critical error such as gt reset
@@ -1411,7 +1398,7 @@ void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method)
  * snapshot capture. In this mode, GT reset won't be attempted so the state of
  * the issue is preserved for further debugging.
  */
-void xe_device_declare_wedged(struct xe_device *xe)
+void xe_device_declare_wedged(struct xe_device *xe, unsigned long method)
 {
 	struct xe_gt *gt;
 	u8 id;
@@ -1442,14 +1429,10 @@ void xe_device_declare_wedged(struct xe_device *xe)
 		 * it available to the user for debugging.
 		 */
 		if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
-			xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_NONE);
-		/* If no wedge recovery method is set, use default */
-		else if (!xe->wedged.method)
-			xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_REBIND |
-						    DRM_WEDGE_RECOVERY_BUS_RESET);
+			method = DRM_WEDGE_RECOVERY_NONE;
 
 		/* Notify userspace of wedged device */
-		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
+		drm_dev_wedged_event(&xe->drm, method, NULL);
 	}
 }
 
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 80bda9b548d5..9f35370c0851 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -264,8 +264,7 @@ static inline bool xe_debug_page_size_mode_is_mixed(struct xe_device *xe)
 }
 #endif
 
-void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
-void xe_device_declare_wedged(struct xe_device *xe);
+void xe_device_declare_wedged(struct xe_device *xe, unsigned long method);
 int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
 const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode);
 
diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
index 524ac56bdcc7..2bbe0f20ff8d 100644
--- a/drivers/gpu/drm/xe/xe_gsc.c
+++ b/drivers/gpu/drm/xe/xe_gsc.c
@@ -340,7 +340,8 @@ static int gsc_er_complete(struct xe_gt *gt)
 		 * declare the device as wedged.
 		 */
 		xe_gt_err(gt, "GSC ER timed out!\n");
-		xe_device_declare_wedged(gt_to_xe(gt));
+		xe_device_declare_wedged(gt_to_xe(gt),
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		return -EIO;
 	}
 
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index d8bf538ceaff..497b2f59c104 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -992,7 +992,8 @@ static void gt_reset_worker(struct work_struct *w)
 
 err_fail:
 	xe_log_err_fatal(gt, GT, err, "reset failed\n");
-	xe_device_declare_wedged(gt_to_xe(gt));
+	xe_device_declare_wedged(gt_to_xe(gt),
+				 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 err_pm_put:
 	xe_pm_runtime_put(gt_to_xe(gt));
 }
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 37899fcf5b22..28ec83bb8100 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -1462,7 +1462,7 @@ static void vf_post_migration_recovery(struct xe_gt *gt)
 fail:
 	vf_post_migration_abort(gt);
 	xe_gt_sriov_err(gt, "migration recovery failed (%pe)\n", ERR_PTR(err));
-	xe_device_declare_wedged(xe);
+	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 	return;
 
 queue:
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 7ce73489c35f..e2a0b989cfc8 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -1453,7 +1453,7 @@ static bool guc_submit_hint_wedged(struct xe_guc *guc)
 	if (xe_device_wedged(xe))
 		return true;
 
-	xe_device_declare_wedged(xe);
+	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 
 	return true;
 }
@@ -1780,7 +1780,8 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
 	}
 
 	if (wedge_device)
-		xe_device_declare_wedged(gt_to_xe(q->gt));
+		xe_device_declare_wedged(gt_to_xe(q->gt),
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 
 	/*
 	 * We want the job added back to the pending list so it gets freed; this
diff --git a/drivers/gpu/drm/xe/xe_mert.c b/drivers/gpu/drm/xe/xe_mert.c
index 32700c19a1df..934be933d57f 100644
--- a/drivers/gpu/drm/xe/xe_mert.c
+++ b/drivers/gpu/drm/xe/xe_mert.c
@@ -74,7 +74,8 @@ static void mert_handle_cat_error(struct xe_device *xe)
 		break;
 	case CATERR_UNMAPPED_GGTT:
 		xe_sriov_err(xe, "MERT: CAT_ERR: Access to an unmapped GGTT!\n");
-		xe_device_declare_wedged(xe);
+		xe_device_declare_wedged(xe,
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	case CATERR_LMTT_FAULT:
 		xe_sriov_dbg_ratelimited(xe, "MERT: CAT_ERR: VF%u LMTT fault!\n", vfid);
@@ -82,7 +83,8 @@ static void mert_handle_cat_error(struct xe_device *xe)
 		break;
 	default:
 		xe_sriov_err(xe, "MERT: Unexpected CAT_ERR code=%#x!\n", code);
-		xe_device_declare_wedged(xe);
+		xe_device_declare_wedged(xe,
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	}
 }
diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
index 79ce0c671549..fdecd3e0b9a9 100644
--- a/drivers/gpu/drm/xe/xe_pci_error.c
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
@@ -86,7 +86,8 @@ static pci_ers_result_t xe_pci_error_mmio_enabled(struct pci_dev *pdev)
 
 	/* User wants to debug the error, prevent reset */
 	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
-		xe_device_declare_wedged(xe);
+		xe_device_declare_wedged(xe,
+					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		return PCI_ERS_RESULT_DISCONNECT;
 	}
 
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index 7a85735c57d5..fe16a4106060 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -321,8 +321,7 @@ static u8 handle_core_compute_errors(struct xe_ras_error_array *arr)
 
 static void punit_error_handler(struct xe_device *xe)
 {
-	xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_COLD_RESET);
-	xe_device_declare_wedged(xe);
+	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_COLD_RESET);
 }
 
 static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_array *arr)
diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c b/drivers/gpu/drm/xe/xe_survivability_mode.c
index 45d44ebe288b..ca031576fecb 100644
--- a/drivers/gpu/drm/xe/xe_survivability_mode.c
+++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
@@ -446,8 +446,7 @@ void xe_survivability_mode_runtime_enable(struct xe_device *xe)
 	survivability->type = XE_SURVIVABILITY_TYPE_RUNTIME;
 	xe_log_err(xe, SURVIVABILITY, 0, "Runtime Mode enabled!\n");
 
-	xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_VENDOR);
-	xe_device_declare_wedged(xe);
+	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_VENDOR);
 
 	xe_log_err(xe, SURVIVABILITY, 0, "Firmware flash required!\n");
 	xe_info(xe, "Please refer to the userspace documentation for more details how to flash the firmware on %s!\n",
-- 
2.43.0


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

* [PATCH v6 3/7] drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early()
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 2/7] drm/xe: Drop xe_device_set_wedged_method() Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe Raag Jadav
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

The device can be declared wedged while processing boot-time hardware
errors, which can result in PM reference leak if driver probe fails
before xe_device_wedged_fini() is registered.

Early register the required cleanup action and fix this.

Fixes: a7df563b45b0 ("drm/xe/xe_hw_error: Handle CSC Firmware reported Hardware errors")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v2: Split fixes into separate patches (Rodrigo, Michal)
---
 drivers/gpu/drm/xe/xe_device.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index cd2decc24f78..d05d2791b9a0 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -697,6 +697,8 @@ static int xe_device_vram_alloc(struct xe_device *xe)
 	return 0;
 }
 
+static void xe_device_wedged_fini(struct drm_device *drm, void *arg);
+
 /**
  * xe_device_probe_early: Device early probe
  * @xe: xe device instance
@@ -765,6 +767,10 @@ int xe_device_probe_early(struct xe_device *xe)
 	if (err)
 		return err;
 
+	err = drmm_add_action_or_reset(&xe->drm, xe_device_wedged_fini, xe);
+	if (err)
+		return err;
+
 	return 0;
 }
 ALLOW_ERROR_INJECTION(xe_device_probe_early, ERRNO); /* See xe_pci_probe() */
@@ -1095,10 +1101,6 @@ int xe_device_probe(struct xe_device *xe)
 
 	detect_preproduction_hw(xe);
 
-	err = drmm_add_action_or_reset(&xe->drm, xe_device_wedged_fini, xe);
-	if (err)
-		goto err_unregister_display;
-
 	/*
 	 * Process and log any errors detected by hardware. Possible results can
 	 * include declaring the device as wedged, which must be done only after
-- 
2.43.0


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

* [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (2 preceding siblings ...)
  2026-10-14  5:51 ` [PATCH v6 3/7] drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early() Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  6:13   ` sashiko-bot
  2026-10-14  5:51 ` [PATCH v6 5/7] drm/xe/pci_error: Flush GT wedge worker before bus reset Raag Jadav
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

Currently, xe_device_declare_wedged() implementation wedges the GTs and
sends wedged uevent to userspace. This is problematic for usecases which
require declaring the device as wedged in IRQ context, as it allocates
memory for event buffer and acquires mutexes deep into it's call path.

Fix this by deferring wedge handling into its dedicated worker, so that
xe_device_declare_wedged() can be called in IRQ context.

First user of this requirement is introduced in commit def675cf3f10
("drm/xe/mert: Improve handling of MERT CAT errors"), which declares the
device as wedged on catastrophic errors received in form of an IRQ.

Fixes: def675cf3f10 ("drm/xe/mert: Improve handling of MERT CAT errors")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v2: Split fixes into separate patches (Rodrigo, Michal)
v5: Drop IRQ safe wedging for its flawed design
v6: Include IRQ safe wedging with redesign
---
 drivers/gpu/drm/xe/xe_device.c       | 33 ++++++++++++++++++++--------
 drivers/gpu/drm/xe/xe_device_types.h |  2 ++
 2 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index d05d2791b9a0..b7461edad5ad 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -697,8 +697,16 @@ static int xe_device_vram_alloc(struct xe_device *xe)
 	return 0;
 }
 
+static void wedged_work(struct work_struct *work);
 static void xe_device_wedged_fini(struct drm_device *drm, void *arg);
 
+static int xe_device_wedged_init(struct xe_device *xe)
+{
+	INIT_WORK(&xe->wedged.work, wedged_work);
+
+	return drmm_add_action_or_reset(&xe->drm, xe_device_wedged_fini, xe);
+}
+
 /**
  * xe_device_probe_early: Device early probe
  * @xe: xe device instance
@@ -767,7 +775,7 @@ int xe_device_probe_early(struct xe_device *xe)
 	if (err)
 		return err;
 
-	err = drmm_add_action_or_reset(&xe->drm, xe_device_wedged_fini, xe);
+	err = xe_device_wedged_init(xe);
 	if (err)
 		return err;
 
@@ -1380,6 +1388,14 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
  *   firmware and restore device to normal operation.
  */
 
+static void wedged_work(struct work_struct *work)
+{
+	struct xe_device *xe = container_of(work, struct xe_device, wedged.work);
+
+	/* Notify userspace of wedged device */
+	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
+}
+
 #define WEDGED_URL	"https://docs.kernel.org/gpu/drm-uapi.html#device-wedging"
 #define XE_BUG_URL	"https://gitlab.freedesktop.org/drm/xe/kernel/issues/new"
 
@@ -1412,29 +1428,28 @@ void xe_device_declare_wedged(struct xe_device *xe, unsigned long method)
 
 	if (!atomic_xchg(&xe->wedged.flag, 1)) {
 		xe->needs_flr_on_fini = true;
-		xe_pm_runtime_get_noresume(xe);
+		pm_runtime_get_noresume(xe->drm.dev);
 
 		xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
 		xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
 			    "For recovery procedure, refer to %s\n"
 			    "Please file a _new_ bug report at %s\n",
 			    WEDGED_URL, XE_BUG_URL);
-	}
 
-	for_each_initialized_gt(gt, xe, id)
-		xe_gt_declare_wedged(gt);
+		for_each_initialized_gt(gt, xe, id)
+			xe_gt_declare_wedged(gt);
 
-	if (xe_device_wedged(xe)) {
 		/*
 		 * XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging
 		 * hangs, so wedge the device with 'none' recovery method and have
 		 * it available to the user for debugging.
 		 */
 		if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
-			method = DRM_WEDGE_RECOVERY_NONE;
+			xe->wedged.method = DRM_WEDGE_RECOVERY_NONE;
+		else
+			xe->wedged.method = method;
 
-		/* Notify userspace of wedged device */
-		drm_dev_wedged_event(&xe->drm, method, NULL);
+		schedule_work(&xe->wedged.work);
 	}
 }
 
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 4e0e1bc040c1..ec5c1f0b8f00 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -547,6 +547,8 @@ struct xe_device {
 		unsigned long method;
 		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
 		bool inconsistent_reset;
+		/** @wedged.work: Worker for wedge handling */
+		struct work_struct work;
 	} wedged;
 
 	/** @devres_group: devres group */
-- 
2.43.0


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

* [PATCH v6 5/7] drm/xe/pci_error: Flush GT wedge worker before bus reset
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (3 preceding siblings ...)
  2026-10-14  5:51 ` [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  5:51 ` [PATCH v6 6/7] drm/xe: Introduce xe_wedge Raag Jadav
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

With GT wedging now done async, make sure the wedge worker is flushed to
avoid side-effects during PCI bus reset.

Fixes: 13b9555ffb03 ("drm/xe/xe_pci_error: Implement PCI error recovery callbacks")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
 drivers/gpu/drm/xe/xe_pci_error.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
index fdecd3e0b9a9..1dc8291f37ae 100644
--- a/drivers/gpu/drm/xe/xe_pci_error.c
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
@@ -30,8 +30,10 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 
 	xe_device_set_in_reset(xe);
 
-	for_each_gt(gt, xe, id)
+	for_each_gt(gt, xe, id) {
 		xe_gt_declare_wedged(gt);
+		flush_work(&gt->wedge.worker);
+	}
 
 	pci_disable_device(pdev);
 }
-- 
2.43.0


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

* [PATCH v6 6/7] drm/xe: Introduce xe_wedge
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (4 preceding siblings ...)
  2026-10-14  5:51 ` [PATCH v6 5/7] drm/xe/pci_error: Flush GT wedge worker before bus reset Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  6:05   ` sashiko-bot
  2026-10-14  5:51 ` [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras Raag Jadav
                   ` (3 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

Consolidate wedging implementation into a dedicated xe_wedge component
for better maintainability. While at it, rename all wedge helpers
to match with component name.

No functional impact.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v2: Also move struct xe_wedge and wedged_mode debt to xe_wedge (Lukasz, Michal)
    Naming and aesthetic adjustments (Lukasz, Michal)
v3: Respect the component namespace (Rodrigo)
    Avoid chaining header includes (Rodrigo)
    Squash debugfs changes with xe_wedge patch (Lukasz)
v4: Include xe_sriov.h (Rodrigo)
---
 Documentation/gpu/xe/xe_device.rst          |   2 +-
 drivers/gpu/drm/xe/Makefile                 |   1 +
 drivers/gpu/drm/xe/tests/xe_kunit_helpers.c |   3 +-
 drivers/gpu/drm/xe/xe_amc.c                 |   5 +-
 drivers/gpu/drm/xe/xe_bo.c                  |   3 +-
 drivers/gpu/drm/xe/xe_debugfs.c             |  66 +----
 drivers/gpu/drm/xe/xe_device.c              | 179 +------------
 drivers/gpu/drm/xe/xe_device.h              |   9 -
 drivers/gpu/drm/xe/xe_device_types.h        |  30 +--
 drivers/gpu/drm/xe/xe_gsc.c                 |   5 +-
 drivers/gpu/drm/xe/xe_gt.c                  |  12 +-
 drivers/gpu/drm/xe/xe_gt.h                  |   2 +-
 drivers/gpu/drm/xe/xe_gt_sriov_vf.c         |   3 +-
 drivers/gpu/drm/xe/xe_guc.c                 |   4 +-
 drivers/gpu/drm/xe/xe_guc.h                 |   2 +-
 drivers/gpu/drm/xe/xe_guc_ct.c              |   7 +-
 drivers/gpu/drm/xe/xe_guc_pc.c              |  11 +-
 drivers/gpu/drm/xe/xe_guc_rc.c              |   5 +-
 drivers/gpu/drm/xe/xe_guc_submit.c          |  15 +-
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c       |   3 +-
 drivers/gpu/drm/xe/xe_mert.c                |   7 +-
 drivers/gpu/drm/xe/xe_pci_error.c           |  10 +-
 drivers/gpu/drm/xe/xe_ras.c                 |   3 +-
 drivers/gpu/drm/xe/xe_sriov_pf.c            |   3 +-
 drivers/gpu/drm/xe/xe_survivability_mode.c  |   3 +-
 drivers/gpu/drm/xe/xe_uc.c                  |   6 +-
 drivers/gpu/drm/xe/xe_uc.h                  |   2 +-
 drivers/gpu/drm/xe/xe_wedge.c               | 273 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_wedge.h               |  20 ++
 drivers/gpu/drm/xe/xe_wedge_types.h         |  44 ++++
 30 files changed, 412 insertions(+), 326 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_wedge.c
 create mode 100644 drivers/gpu/drm/xe/xe_wedge.h
 create mode 100644 drivers/gpu/drm/xe/xe_wedge_types.h

diff --git a/Documentation/gpu/xe/xe_device.rst b/Documentation/gpu/xe/xe_device.rst
index d3a022362ade..8baed81580c9 100644
--- a/Documentation/gpu/xe/xe_device.rst
+++ b/Documentation/gpu/xe/xe_device.rst
@@ -6,7 +6,7 @@
 Xe Device Wedging
 ==================
 
-.. kernel-doc:: drivers/gpu/drm/xe/xe_device.c
+.. kernel-doc:: drivers/gpu/drm/xe/xe_wedge.c
    :doc: Xe Device Wedging
 
 ====================
diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 011f7ef54086..bc203940f114 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -154,6 +154,7 @@ xe-y += xe_bb.o \
 	xe_vsec.o \
 	xe_wa.o \
 	xe_wait_user_fence.o \
+	xe_wedge.o \
 	xe_wopcm.o
 
 xe-$(CONFIG_I2C)	+= xe_i2c.o \
diff --git a/drivers/gpu/drm/xe/tests/xe_kunit_helpers.c b/drivers/gpu/drm/xe/tests/xe_kunit_helpers.c
index 27740b40c8ae..57ea88cce92d 100644
--- a/drivers/gpu/drm/xe/tests/xe_kunit_helpers.c
+++ b/drivers/gpu/drm/xe/tests/xe_kunit_helpers.c
@@ -15,6 +15,7 @@
 #include "xe_device.h"
 #include "xe_device_types.h"
 #include "xe_pm.h"
+#include "xe_wedge.h"
 
 /**
  * xe_kunit_helper_alloc_xe_device - Allocate a &xe_device for a KUnit test.
@@ -123,7 +124,7 @@ int xe_kunit_helper_xe_device_live_test_init(struct kunit *test)
 	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, xe);
 	kunit_info(test, "running on %s device\n", xe->info.platform_name);
 
-	KUNIT_ASSERT_FALSE(test, xe_device_wedged(xe));
+	KUNIT_ASSERT_FALSE(test, xe_wedged(xe));
 	xe_pm_runtime_get(xe);
 	KUNIT_ASSERT_EQ(test, 0, kunit_add_action_or_reset(test, put_xe_pm_runtime, xe));
 
diff --git a/drivers/gpu/drm/xe/xe_amc.c b/drivers/gpu/drm/xe/xe_amc.c
index b7390a4ee3ce..3b91c0d489f5 100644
--- a/drivers/gpu/drm/xe/xe_amc.c
+++ b/drivers/gpu/drm/xe/xe_amc.c
@@ -18,6 +18,7 @@
 #include "xe_device.h"
 #include "xe_i2c.h"
 #include "xe_mmio.h"
+#include "xe_wedge.h"
 
 /**
  * DOC: Add-In Management Controller (AMC)
@@ -160,8 +161,8 @@ static void xe_amc_work(struct work_struct *work)
 	case AMC_ALERT_OOB_RESET:
 	case AMC_ALERT_CATERR:
 		dev_warn(amc->i2c->drm_dev, "AMC Alert: %s\n", amc_alert[alert_reason]);
-		xe_device_declare_wedged(i2c_client_to_xe_device(client),
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(i2c_client_to_xe_device(client),
+				 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	default:
 		dev_warn(amc->i2c->drm_dev, "unknown AMC alert: %d\n", alert_reason);
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 12e523c61c1f..10a3f156a9d3 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -41,6 +41,7 @@
 #include "xe_ttm_stolen_mgr.h"
 #include "xe_vm.h"
 #include "xe_vram_types.h"
+#include "xe_wedge.h"
 
 const char *const xe_mem_type_to_name[TTM_NUM_MEM_TYPES]  = {
 	[XE_PL_SYSTEM] = "system",
@@ -2203,7 +2204,7 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 	int err = 0;
 	int idx;
 
-	if (xe_device_wedged(xe) || !drm_dev_enter(&xe->drm, &idx))
+	if (xe_wedged(xe) || !drm_dev_enter(&xe->drm, &idx))
 		return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
 
 	ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);
diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 926020c7526e..e59d4964d811 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -18,13 +18,12 @@
 #include "xe_force_wake.h"
 #include "xe_gt.h"
 #include "xe_gt_debugfs.h"
-#include "xe_gt_printk.h"
-#include "xe_guc_ads.h"
 #include "xe_hw_engine.h"
 #include "xe_mmio.h"
 #include "xe_pagefault.h"
 #include "xe_pcode.h"
 #include "xe_pm.h"
+#include "xe_printk.h"
 #include "xe_psmi.h"
 #include "xe_pxp_debugfs.h"
 #include "xe_sriov.h"
@@ -36,6 +35,7 @@
 #include "xe_ttm_vram_mgr.h"
 #include "xe_vsec.h"
 #include "xe_wa.h"
+#include "xe_wedge.h"
 
 #ifdef CONFIG_DRM_XE_DEBUG
 #include "xe_bo_evict.h"
@@ -424,58 +424,6 @@ static ssize_t wedged_mode_show(struct file *f, char __user *ubuf,
 	return simple_read_from_buffer(ubuf, size, pos, buf, len);
 }
 
-static int __wedged_mode_set_reset_policy(struct xe_gt *gt, enum xe_wedged_mode mode)
-{
-	bool enable_engine_reset;
-	int ret;
-
-	enable_engine_reset = (mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET);
-	ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads,
-						       enable_engine_reset);
-	if (ret)
-		xe_gt_err(gt, "Failed to update GuC ADS scheduler policy (%pe)\n", ERR_PTR(ret));
-
-	return ret;
-}
-
-static int wedged_mode_set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
-{
-	struct xe_gt *gt;
-	int ret;
-	u8 id;
-
-	guard(xe_pm_runtime)(xe);
-	for_each_gt(gt, xe, id) {
-		ret = __wedged_mode_set_reset_policy(gt, mode);
-		if (ret) {
-			if (id > 0) {
-				xe->wedged.inconsistent_reset = true;
-				drm_err(&xe->drm, "Inconsistent reset policy state between GTs\n");
-			}
-			return ret;
-		}
-	}
-
-	xe->wedged.inconsistent_reset = false;
-
-	return 0;
-}
-
-static bool wedged_mode_needs_policy_update(struct xe_device *xe, enum xe_wedged_mode mode)
-{
-	if (xe->wedged.inconsistent_reset)
-		return true;
-
-	if (xe->wedged.mode == mode)
-		return false;
-
-	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET ||
-	    mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
-		return true;
-
-	return false;
-}
-
 static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
 			       size_t size, loff_t *pos)
 {
@@ -487,18 +435,10 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
 	if (ret)
 		return ret;
 
-	ret = xe_device_validate_wedged_mode(xe, wedged_mode);
+	ret = xe_wedge_set_mode(xe, wedged_mode);
 	if (ret)
 		return ret;
 
-	if (wedged_mode_needs_policy_update(xe, wedged_mode)) {
-		ret = wedged_mode_set_reset_policy(xe, wedged_mode);
-		if (ret)
-			return ret;
-	}
-
-	xe->wedged.mode = wedged_mode;
-
 	return size;
 }
 
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index b7461edad5ad..e0466390219c 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -81,6 +81,7 @@
 #include "xe_vsec.h"
 #include "xe_wait_user_fence.h"
 #include "xe_wa.h"
+#include "xe_wedge.h"
 
 #include <generated/xe_device_wa_oob.h>
 #include <generated/xe_wa_oob.h>
@@ -238,7 +239,7 @@ static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
 	long ret;
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return -ECANCELED;
 
 	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
@@ -256,7 +257,7 @@ static long xe_drm_compat_ioctl(struct file *file, unsigned int cmd, unsigned lo
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
 	long ret;
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return -ECANCELED;
 
 	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
@@ -697,16 +698,6 @@ static int xe_device_vram_alloc(struct xe_device *xe)
 	return 0;
 }
 
-static void wedged_work(struct work_struct *work);
-static void xe_device_wedged_fini(struct drm_device *drm, void *arg);
-
-static int xe_device_wedged_init(struct xe_device *xe)
-{
-	INIT_WORK(&xe->wedged.work, wedged_work);
-
-	return drmm_add_action_or_reset(&xe->drm, xe_device_wedged_fini, xe);
-}
-
 /**
  * xe_device_probe_early: Device early probe
  * @xe: xe device instance
@@ -766,16 +757,11 @@ int xe_device_probe_early(struct xe_device *xe)
 	 */
 	assert_lmem_ready(xe);
 
-	xe->wedged.mode = xe_device_validate_wedged_mode(xe, xe_modparam.wedged_mode) ?
-			  XE_DEFAULT_WEDGED_MODE : xe_modparam.wedged_mode;
-	drm_dbg(&xe->drm, "wedged_mode: setting mode (%u) %s\n",
-		xe->wedged.mode, xe_wedged_mode_to_string(xe->wedged.mode));
-
 	err = xe_device_vram_alloc(xe);
 	if (err)
 		return err;
 
-	err = xe_device_wedged_init(xe);
+	err = xe_wedge_init(xe);
 	if (err)
 		return err;
 
@@ -865,14 +851,6 @@ static void detect_preproduction_hw(struct xe_device *xe)
 	}
 }
 
-static void xe_device_wedged_fini(struct drm_device *drm, void *arg)
-{
-	struct xe_device *xe = arg;
-
-	if (atomic_read(&xe->wedged.flag))
-		xe_pm_runtime_put(xe);
-}
-
 #ifdef CONFIG_DRM_XE_DEBUG_PAGE_SIZE
 static int xe_debug_page_size_alloc_ctrl_init(struct xe_device *xe)
 {
@@ -1112,7 +1090,7 @@ int xe_device_probe(struct xe_device *xe)
 	/*
 	 * Process and log any errors detected by hardware. Possible results can
 	 * include declaring the device as wedged, which must be done only after
-	 * xe_device_wedged_fini() is registered.
+	 * xe_wedge_fini() is registered.
 	 */
 	xe_ras_process_errors(xe);
 
@@ -1351,153 +1329,6 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
 	return address & GENMASK_ULL(xe->info.va_bits - 1, 0);
 }
 
-/**
- * DOC: Xe Device Wedging
- *
- * Xe driver uses drm device wedged uevent as documented in Documentation/gpu/drm-uapi.rst.
- * When device is in wedged state, every IOCTL will be blocked and GT cannot
- * be used. The conditions under which the driver declares the device wedged
- * depend on the wedged mode configuration (see &enum xe_wedged_mode). The
- * default recovery method for a wedged state is rebind/bus-reset.
- *
- * Another recovery method is vendor-specific. Below are the cases that send
- * ``WEDGED=vendor-specific`` recovery method in drm device wedged uevent.
- *
- * Case: Firmware Flash
- * --------------------
- *
- * Identification Hint
- * +++++++++++++++++++
- *
- * ``WEDGED=vendor-specific`` drm device wedged uevent with
- * :ref:`Runtime Survivability mode <xe-survivability-mode>` is used to notify
- * admin/userspace consumer about the need for a firmware flash.
- *
- * Recovery Procedure
- * ++++++++++++++++++
- *
- * Once ``WEDGED=vendor-specific`` drm device wedged uevent is received, follow
- * the below steps
- *
- * - Check Runtime Survivability mode sysfs.
- *   If enabled, firmware flash is required to recover the device.
- *
- *   /sys/bus/pci/devices/<device>/survivability_mode
- *
- * - Admin/userspace consumer can use firmware flashing tools like fwupd to flash
- *   firmware and restore device to normal operation.
- */
-
-static void wedged_work(struct work_struct *work)
-{
-	struct xe_device *xe = container_of(work, struct xe_device, wedged.work);
-
-	/* Notify userspace of wedged device */
-	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
-}
-
-#define WEDGED_URL	"https://docs.kernel.org/gpu/drm-uapi.html#device-wedging"
-#define XE_BUG_URL	"https://gitlab.freedesktop.org/drm/xe/kernel/issues/new"
-
-/**
- * xe_device_declare_wedged - Declare device wedged
- * @xe: xe device instance
- * @method: method(s) to be used for recovery
- *
- * This is a final state that can only be cleared with the recovery method
- * specified in the drm wedged uevent.
- *
- * In this state every IOCTL will be blocked so the GT cannot be used.
- * In general it will be called upon any critical error such as gt reset
- * failure or guc loading failure. Userspace will be notified of this state
- * through device wedged uevent.
- * If xe.wedged module parameter is set to 2, this function will be called
- * on every single execution timeout (a.k.a. GPU hang) right after devcoredump
- * snapshot capture. In this mode, GT reset won't be attempted so the state of
- * the issue is preserved for further debugging.
- */
-void xe_device_declare_wedged(struct xe_device *xe, unsigned long method)
-{
-	struct xe_gt *gt;
-	u8 id;
-
-	if (xe->wedged.mode == XE_WEDGED_MODE_NEVER) {
-		drm_dbg(&xe->drm, "Wedged mode is forcibly disabled\n");
-		return;
-	}
-
-	if (!atomic_xchg(&xe->wedged.flag, 1)) {
-		xe->needs_flr_on_fini = true;
-		pm_runtime_get_noresume(xe->drm.dev);
-
-		xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
-		xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
-			    "For recovery procedure, refer to %s\n"
-			    "Please file a _new_ bug report at %s\n",
-			    WEDGED_URL, XE_BUG_URL);
-
-		for_each_initialized_gt(gt, xe, id)
-			xe_gt_declare_wedged(gt);
-
-		/*
-		 * XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging
-		 * hangs, so wedge the device with 'none' recovery method and have
-		 * it available to the user for debugging.
-		 */
-		if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
-			xe->wedged.method = DRM_WEDGE_RECOVERY_NONE;
-		else
-			xe->wedged.method = method;
-
-		schedule_work(&xe->wedged.work);
-	}
-}
-
-/**
- * xe_device_validate_wedged_mode - Check if given mode is supported
- * @xe: the &xe_device
- * @mode: requested mode to validate
- *
- * Check whether the provided wedged mode is supported.
- *
- * Return: 0 if mode is supported, error code otherwise.
- */
-int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
-{
-	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
-		drm_dbg(&xe->drm, "wedged_mode: invalid value (%u)\n", mode);
-		return -EINVAL;
-	} else if (mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET && (IS_SRIOV_VF(xe) ||
-		   (IS_SRIOV_PF(xe) && !IS_ENABLED(CONFIG_DRM_XE_DEBUG)))) {
-		drm_dbg(&xe->drm, "wedged_mode: (%u) %s mode is not supported for %s\n",
-			mode, xe_wedged_mode_to_string(mode),
-			xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
-		return -EPERM;
-	}
-
-	return 0;
-}
-
-/**
- * xe_wedged_mode_to_string - Convert enum value to string.
- * @mode: the &xe_wedged_mode to convert
- *
- * Returns: wedged mode as a user friendly string.
- */
-const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode)
-{
-	switch (mode) {
-	case XE_WEDGED_MODE_NEVER:
-		return "never";
-	case XE_WEDGED_MODE_UPON_CRITICAL_ERROR:
-		return "upon-critical-error";
-	case XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET:
-		return "upon-any-hang-no-reset";
-	default:
-		return "<invalid>";
-	}
-}
-
 /**
  * xe_device_asid_to_vm() - Find VM from ASID
  * @xe: the &xe_device
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 9f35370c0851..6df60edcb8f8 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -211,11 +211,6 @@ bool xe_device_is_l2_flush_optimized(struct xe_device *xe);
 void xe_device_td_flush(struct xe_device *xe);
 void xe_device_l2_flush(struct xe_device *xe, bool force);
 
-static inline bool xe_device_wedged(struct xe_device *xe)
-{
-	return atomic_read(&xe->wedged.flag);
-}
-
 #ifdef CONFIG_DRM_XE_DEBUG_PAGE_SIZE
 static inline bool xe_debug_page_size_supported(struct xe_device *xe)
 {
@@ -264,10 +259,6 @@ static inline bool xe_debug_page_size_mode_is_mixed(struct xe_device *xe)
 }
 #endif
 
-void xe_device_declare_wedged(struct xe_device *xe, unsigned long method);
-int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
-const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode);
-
 struct xe_file *xe_file_get(struct xe_file *xef);
 void xe_file_put(struct xe_file *xef);
 
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index ec5c1f0b8f00..25b38258b629 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -30,6 +30,7 @@
 #include "xe_sysctrl_types.h"
 #include "xe_tile_types.h"
 #include "xe_validation.h"
+#include "xe_wedge_types.h"
 
 #if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
 #define TEST_VM_OPS_ERROR
@@ -47,22 +48,6 @@ struct xe_pxp;
 struct xe_ttm_stolen_mgr;
 struct xe_vram_region;
 
-/**
- * enum xe_wedged_mode - possible wedged modes
- * @XE_WEDGED_MODE_NEVER: Device will never be declared wedged.
- * @XE_WEDGED_MODE_UPON_CRITICAL_ERROR: Device will be declared wedged only
- *	when critical error occurs like GT reset failure or firmware failure.
- *	This is the default mode.
- * @XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET: Device will be declared wedged on
- *	any hang. In this mode, engine resets are disabled to avoid automatic
- *	recovery attempts. This mode is primarily intended for debugging hangs.
- */
-enum xe_wedged_mode {
-	XE_WEDGED_MODE_NEVER = 0,
-	XE_WEDGED_MODE_UPON_CRITICAL_ERROR = 1,
-	XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET = 2,
-};
-
 #ifdef CONFIG_DRM_XE_DEBUG_PAGE_SIZE
 /**
  * enum xe_page_size_alloc_ctrl_mode - User BO page-size allocation control modes
@@ -538,18 +523,7 @@ struct xe_device {
 	atomic_t in_reset;
 
 	/** @wedged: Struct to control Wedged States and mode */
-	struct {
-		/** @wedged.flag: Xe device faced a critical error and is now blocked. */
-		atomic_t flag;
-		/** @wedged.mode: Mode controlled by kernel parameter and debugfs */
-		enum xe_wedged_mode mode;
-		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
-		unsigned long method;
-		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
-		bool inconsistent_reset;
-		/** @wedged.work: Worker for wedge handling */
-		struct work_struct work;
-	} wedged;
+	struct xe_wedge wedged;
 
 	/** @devres_group: devres group */
 	void *devres_group;
diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
index 2bbe0f20ff8d..db669a953886 100644
--- a/drivers/gpu/drm/xe/xe_gsc.c
+++ b/drivers/gpu/drm/xe/xe_gsc.c
@@ -31,6 +31,7 @@
 #include "xe_sched_job.h"
 #include "xe_uc_fw.h"
 #include "xe_wa.h"
+#include "xe_wedge.h"
 #include "instructions/xe_gsc_commands.h"
 #include "regs/xe_gsc_regs.h"
 #include "regs/xe_gt_regs.h"
@@ -340,8 +341,8 @@ static int gsc_er_complete(struct xe_gt *gt)
 		 * declare the device as wedged.
 		 */
 		xe_gt_err(gt, "GSC ER timed out!\n");
-		xe_device_declare_wedged(gt_to_xe(gt),
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(gt_to_xe(gt),
+				 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		return -EIO;
 	}
 
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index 497b2f59c104..a00439ee4cb3 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -68,6 +68,7 @@
 #include "xe_uc_fw.h"
 #include "xe_vm.h"
 #include "xe_wa.h"
+#include "xe_wedge.h"
 #include "xe_wopcm.h"
 
 #define GRDOM_RESET_TIMEOUT_MS	5
@@ -933,7 +934,7 @@ static void gt_reset_worker(struct work_struct *w)
 	unsigned int fw_ref;
 	int err;
 
-	if (xe_device_wedged(gt_to_xe(gt)))
+	if (xe_wedged(gt_to_xe(gt)))
 		goto err_pm_put;
 
 	if (xe_device_is_in_reset(gt_to_xe(gt)))
@@ -992,8 +993,7 @@ static void gt_reset_worker(struct work_struct *w)
 
 err_fail:
 	xe_log_err_fatal(gt, GT, err, "reset failed\n");
-	xe_device_declare_wedged(gt_to_xe(gt),
-				 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+	xe_wedge_declare(gt_to_xe(gt), DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 err_pm_put:
 	xe_pm_runtime_put(gt_to_xe(gt));
 }
@@ -1200,18 +1200,18 @@ static void gt_wedge_worker(struct work_struct *w)
 {
 	struct xe_gt *gt = container_of(w, typeof(*gt), wedge.worker);
 
-	xe_uc_declare_wedged(&gt->uc);
+	xe_uc_wedge_declare(&gt->uc);
 	xe_tlb_inval_reset(&gt->tlb_inval);
 }
 
 /**
- * xe_gt_declare_wedged() - Declare GT wedged
+ * xe_gt_wedge_declare() - Declare GT wedged
  * @gt: the GT object
  *
  * Wedge the GT which stops all submission, saves desired debug state, and
  * cleans up anything which could timeout.
  */
-void xe_gt_declare_wedged(struct xe_gt *gt)
+void xe_gt_wedge_declare(struct xe_gt *gt)
 {
 	xe_gt_assert(gt, gt_to_xe(gt)->wedged.mode);
 
diff --git a/drivers/gpu/drm/xe/xe_gt.h b/drivers/gpu/drm/xe/xe_gt.h
index 92d934d50244..7b6952fe804c 100644
--- a/drivers/gpu/drm/xe/xe_gt.h
+++ b/drivers/gpu/drm/xe/xe_gt.h
@@ -40,7 +40,7 @@ struct xe_gt *xe_gt_alloc(struct xe_tile *tile);
 int xe_gt_init_early(struct xe_gt *gt);
 int xe_gt_init(struct xe_gt *gt);
 void xe_gt_mmio_init(struct xe_gt *gt);
-void xe_gt_declare_wedged(struct xe_gt *gt);
+void xe_gt_wedge_declare(struct xe_gt *gt);
 int xe_gt_record_default_lrcs(struct xe_gt *gt);
 
 /**
diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
index 28ec83bb8100..2a5f2064ad3e 100644
--- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
+++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c
@@ -37,6 +37,7 @@
 #include "xe_tile_sriov_vf.h"
 #include "xe_tlb_inval.h"
 #include "xe_uc_fw.h"
+#include "xe_wedge.h"
 #include "xe_wopcm.h"
 
 #define make_u64_from_u32(hi, lo) ((u64)((u64)(u32)(hi) << 32 | (u32)(lo)))
@@ -1462,7 +1463,7 @@ static void vf_post_migration_recovery(struct xe_gt *gt)
 fail:
 	vf_post_migration_abort(gt);
 	xe_gt_sriov_err(gt, "migration recovery failed (%pe)\n", ERR_PTR(err));
-	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+	xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 	return;
 
 queue:
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index 3ab4cb9e4964..7d239a0829fb 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -1829,13 +1829,13 @@ int xe_guc_print_info(struct xe_guc *guc, struct drm_printer *p)
 }
 
 /**
- * xe_guc_declare_wedged() - Declare GuC wedged
+ * xe_guc_wedge_declare() - Declare GuC wedged
  * @guc: the GuC object
  *
  * Wedge the GuC which stops all submission, saves desired debug state, and
  * cleans up anything which could timeout.
  */
-void xe_guc_declare_wedged(struct xe_guc *guc)
+void xe_guc_wedge_declare(struct xe_guc *guc)
 {
 	xe_gt_assert(guc_to_gt(guc), guc_to_xe(guc)->wedged.mode);
 
diff --git a/drivers/gpu/drm/xe/xe_guc.h b/drivers/gpu/drm/xe/xe_guc.h
index c4eca40d69cf..75c4b9acb065 100644
--- a/drivers/gpu/drm/xe/xe_guc.h
+++ b/drivers/gpu/drm/xe/xe_guc.h
@@ -62,7 +62,7 @@ void xe_guc_reset_wait(struct xe_guc *guc);
 void xe_guc_stop_prepare(struct xe_guc *guc);
 void xe_guc_stop(struct xe_guc *guc);
 int xe_guc_start(struct xe_guc *guc);
-void xe_guc_declare_wedged(struct xe_guc *guc);
+void xe_guc_wedge_declare(struct xe_guc *guc);
 bool xe_guc_using_main_gamctrl_queues(struct xe_guc *guc);
 bool xe_guc_has_paging_engine(struct xe_guc *guc);
 
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index da5ce97484b8..7ab51c97f42a 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -36,6 +36,7 @@
 #include "xe_sleep.h"
 #include "xe_sriov_vf.h"
 #include "xe_trace_guc.h"
+#include "xe_wedge.h"
 
 static void receive_g2h(struct xe_guc_ct *ct);
 static void g2h_worker_func(struct work_struct *w);
@@ -1064,7 +1065,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 	xe_gt_assert(gt, g2h_len || !num_g2h);
 	lockdep_assert_held(&ct->lock);
 
-	if (xe_device_wedged(ct_to_xe(ct))) {
+	if (xe_wedged(ct_to_xe(ct))) {
 		ret = -ENOTRECOVERABLE;
 		goto out;
 	}
@@ -1489,7 +1490,7 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
 	if (g2h_fence.fail) {
 		if (g2h_fence.cancel) {
 			xe_gt_dbg(gt, "H2G request %#x canceled!\n", action[0]);
-			ret = xe_device_wedged(ct_to_xe(ct)) ? -ENOTRECOVERABLE : -ECANCELED;
+			ret = xe_wedged(ct_to_xe(ct)) ? -ENOTRECOVERABLE : -ECANCELED;
 			goto unlock;
 		}
 		xe_gt_err(gt, "H2G request %#x failed: error %#x hint %#x\n",
@@ -1828,7 +1829,7 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)
 	xe_gt_assert(gt, xe_guc_ct_initialized(ct));
 	lockdep_assert_held(&ct->fast_lock);
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return -ENOTRECOVERABLE;
 
 	if (ct->state == XE_GUC_CT_STATE_DISABLED)
diff --git a/drivers/gpu/drm/xe/xe_guc_pc.c b/drivers/gpu/drm/xe/xe_guc_pc.c
index e0105222a2c7..9558d7196a51 100644
--- a/drivers/gpu/drm/xe/xe_guc_pc.c
+++ b/drivers/gpu/drm/xe/xe_guc_pc.c
@@ -36,6 +36,7 @@
 #include "xe_pm.h"
 #include "xe_sriov.h"
 #include "xe_wa.h"
+#include "xe_wedge.h"
 
 #define MCHBAR_MIRROR_BASE_SNB	0x140000
 
@@ -188,7 +189,7 @@ static int pc_action_reset(struct xe_guc_pc *pc)
 	int ret;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC reset failed: %pe\n",
 			  ERR_PTR(ret));
 
@@ -212,7 +213,7 @@ static int pc_action_query_task_state(struct xe_guc_pc *pc)
 
 	/* Blocking here to ensure the results are ready before reading them */
 	ret = xe_guc_ct_send_block(ct, action, ARRAY_SIZE(action));
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC query task state failed: %pe\n",
 			  ERR_PTR(ret));
 
@@ -235,7 +236,7 @@ static int pc_action_set_param(struct xe_guc_pc *pc, u8 id, u32 value)
 		return -EAGAIN;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC set param[%u]=%u failed: %pe\n",
 			  id, value, ERR_PTR(ret));
 
@@ -257,7 +258,7 @@ static int pc_action_unset_param(struct xe_guc_pc *pc, u8 id)
 		return -EAGAIN;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC unset param failed: %pe",
 			  ERR_PTR(ret));
 
@@ -1357,7 +1358,7 @@ static void xe_guc_pc_fini_hw(void *arg)
 	struct xe_guc_pc *pc = arg;
 	struct xe_device *xe = pc_to_xe(pc);
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return;
 
 	xe_guc_pc_stop(pc);
diff --git a/drivers/gpu/drm/xe/xe_guc_rc.c b/drivers/gpu/drm/xe/xe_guc_rc.c
index 99fa127b261f..fa3062ab134a 100644
--- a/drivers/gpu/drm/xe/xe_guc_rc.c
+++ b/drivers/gpu/drm/xe/xe_guc_rc.c
@@ -16,6 +16,7 @@
 #include "xe_guc_pc.h"
 #include "xe_guc_rc.h"
 #include "xe_pm.h"
+#include "xe_wedge.h"
 
 /**
  * DOC: GuC RC (Render C-states)
@@ -40,7 +41,7 @@ static int guc_action_setup_gucrc(struct xe_guc *guc, u32 control)
 	int ret;
 
 	ret = xe_guc_ct_send(&guc->ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(guc_to_xe(guc)) && ret == -ECANCELED))
+	if (ret && !(xe_wedged(guc_to_xe(guc)) && ret == -ECANCELED))
 		xe_gt_err(guc_to_gt(guc),
 			  "GuC RC setup %s(%u) failed (%pe)\n",
 			   control == GUCRC_HOST_CONTROL ? "HOST_CONTROL" :
@@ -73,7 +74,7 @@ static void xe_guc_rc_fini_hw(void *arg)
 	struct xe_device *xe = guc_to_xe(guc);
 	struct xe_gt *gt = guc_to_gt(guc);
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return;
 
 	CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FW_GT);
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index e2a0b989cfc8..d03fe282c3c8 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -50,6 +50,7 @@
 #include "xe_trace.h"
 #include "xe_uc_fw.h"
 #include "xe_vm.h"
+#include "xe_wedge.h"
 
 #define XE_GUC_EXEC_QUEUE_CGP_CONTEXT_ERROR_LEN		6
 
@@ -1450,10 +1451,10 @@ static bool guc_submit_hint_wedged(struct xe_guc *guc)
 	if (xe->wedged.mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
 		return false;
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return true;
 
-	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+	xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 
 	return true;
 }
@@ -1660,7 +1661,7 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
 	if (!exec_queue_killed(q))
 		wedged = guc_submit_hint_wedged(exec_queue_to_guc(q));
 	else
-		wedged = xe_device_wedged(xe);
+		wedged = xe_wedged(xe);
 
 	/*
 	 * Only tag as GPU hang if this is the original timeout, not a
@@ -1780,8 +1781,8 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
 	}
 
 	if (wedge_device)
-		xe_device_declare_wedged(gt_to_xe(q->gt),
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(gt_to_xe(q->gt),
+				 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 
 	/*
 	 * We want the job added back to the pending list so it gets freed; this
@@ -2544,7 +2545,7 @@ static int guc_exec_queue_wait_suspend_done(struct xe_exec_queue *q, bool blocki
 						       WAIT_COND, HZ * 5);
 	}
 
-	if (!blocking && vf_recovery(guc) && !xe_device_wedged(xe))
+	if (!blocking && vf_recovery(guc) && !xe_wedged(xe))
 		return -EAGAIN;
 
 	if (!ret)
@@ -2804,7 +2805,7 @@ int xe_guc_submit_reset_prepare(struct xe_guc *guc)
 
 void xe_guc_submit_reset_wait(struct xe_guc *guc)
 {
-	wait_event(guc->ct.wq, xe_device_wedged(guc_to_xe(guc)) ||
+	wait_event(guc->ct.wq, xe_wedged(guc_to_xe(guc)) ||
 		   !xe_guc_read_stopped(guc));
 }
 
diff --git a/drivers/gpu/drm/xe/xe_guc_tlb_inval.c b/drivers/gpu/drm/xe/xe_guc_tlb_inval.c
index 111fef781b2a..dd38d95c6014 100644
--- a/drivers/gpu/drm/xe/xe_guc_tlb_inval.c
+++ b/drivers/gpu/drm/xe/xe_guc_tlb_inval.c
@@ -19,6 +19,7 @@
 #include "xe_sa.h"
 #include "xe_tlb_inval.h"
 #include "xe_vm.h"
+#include "xe_wedge.h"
 
 #include "regs/xe_guc_regs.h"
 
@@ -77,7 +78,7 @@ static int send_tlb_inval_ggtt(struct xe_tlb_inval *tlb_inval, u32 seqno)
 		};
 
 		return send_tlb_inval(guc, action, ARRAY_SIZE(action));
-	} else if (xe_device_uc_enabled(xe) && !xe_device_wedged(xe)) {
+	} else if (xe_device_uc_enabled(xe) && !xe_wedged(xe)) {
 		struct xe_mmio *mmio = &gt->mmio;
 
 		if (IS_SRIOV_VF(xe))
diff --git a/drivers/gpu/drm/xe/xe_mert.c b/drivers/gpu/drm/xe/xe_mert.c
index 934be933d57f..a2eae6088c1a 100644
--- a/drivers/gpu/drm/xe/xe_mert.c
+++ b/drivers/gpu/drm/xe/xe_mert.c
@@ -11,6 +11,7 @@
 #include "xe_mmio.h"
 #include "xe_sriov_printk.h"
 #include "xe_tile.h"
+#include "xe_wedge.h"
 
 /**
  * xe_mert_init_early() - Initialize MERT data
@@ -74,8 +75,7 @@ static void mert_handle_cat_error(struct xe_device *xe)
 		break;
 	case CATERR_UNMAPPED_GGTT:
 		xe_sriov_err(xe, "MERT: CAT_ERR: Access to an unmapped GGTT!\n");
-		xe_device_declare_wedged(xe,
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	case CATERR_LMTT_FAULT:
 		xe_sriov_dbg_ratelimited(xe, "MERT: CAT_ERR: VF%u LMTT fault!\n", vfid);
@@ -83,8 +83,7 @@ static void mert_handle_cat_error(struct xe_device *xe)
 		break;
 	default:
 		xe_sriov_err(xe, "MERT: Unexpected CAT_ERR code=%#x!\n", code);
-		xe_device_declare_wedged(xe,
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		break;
 	}
 }
diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
index 1dc8291f37ae..873a1e8ddcdc 100644
--- a/drivers/gpu/drm/xe/xe_pci_error.c
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
@@ -13,6 +13,7 @@
 #include "xe_printk.h"
 #include "xe_ras.h"
 #include "xe_survivability_mode.h"
+#include "xe_wedge.h"
 
 static void prepare_device_for_reset(struct pci_dev *pdev)
 {
@@ -22,7 +23,7 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 
 	/*
 	 * Wedge the device to prevent userspace access but do not send the uevent.
-	 * xe_device_wedged_fini() releases runtime pm if wedged flag is set, so acquire a runtime
+	 * xe_wedge_fini() releases runtime pm if wedged flag is set, so acquire a runtime
 	 * pm reference to avoid underflow.
 	 */
 	if (!atomic_xchg(&xe->wedged.flag, 1))
@@ -31,7 +32,7 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 	xe_device_set_in_reset(xe);
 
 	for_each_gt(gt, xe, id) {
-		xe_gt_declare_wedged(gt);
+		xe_gt_wedge_declare(gt);
 		flush_work(&gt->wedge.worker);
 	}
 
@@ -63,7 +64,7 @@ static pci_ers_result_t xe_pci_error_detected(struct pci_dev *pdev, pci_channel_
 		return PCI_ERS_RESULT_DISCONNECT;
 
 	/* If the device is already wedged or in survivability mode, do not attempt recovery */
-	if (xe_survivability_mode_is_boot_enabled(xe) || xe_device_wedged(xe))
+	if (xe_survivability_mode_is_boot_enabled(xe) || xe_wedged(xe))
 		return PCI_ERS_RESULT_DISCONNECT;
 
 	switch (state) {
@@ -88,8 +89,7 @@ static pci_ers_result_t xe_pci_error_mmio_enabled(struct pci_dev *pdev)
 
 	/* User wants to debug the error, prevent reset */
 	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
-		xe_device_declare_wedged(xe,
-					 DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
+		xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET);
 		return PCI_ERS_RESULT_DISCONNECT;
 	}
 
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index fe16a4106060..922e5e793b13 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -16,6 +16,7 @@
 #include "xe_sysctrl_event_types.h"
 #include "xe_sysctrl_mailbox.h"
 #include "xe_sysctrl_mailbox_types.h"
+#include "xe_wedge.h"
 
 #define CORE_COMPUTE_UNCORR_TYPE	GENMASK(26, 25)
 /*
@@ -321,7 +322,7 @@ static u8 handle_core_compute_errors(struct xe_ras_error_array *arr)
 
 static void punit_error_handler(struct xe_device *xe)
 {
-	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_COLD_RESET);
+	xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_COLD_RESET);
 }
 
 static u8 handle_soc_internal_errors(struct xe_device *xe, struct xe_ras_error_array *arr)
diff --git a/drivers/gpu/drm/xe/xe_sriov_pf.c b/drivers/gpu/drm/xe/xe_sriov_pf.c
index 33bd754d138f..ce0db26203ec 100644
--- a/drivers/gpu/drm/xe/xe_sriov_pf.c
+++ b/drivers/gpu/drm/xe/xe_sriov_pf.c
@@ -19,6 +19,7 @@
 #include "xe_sriov_pf_service.h"
 #include "xe_sriov_pf_sysfs.h"
 #include "xe_sriov_printk.h"
+#include "xe_wedge.h"
 
 static unsigned int wanted_max_vfs(struct xe_device *xe)
 {
@@ -157,7 +158,7 @@ int xe_sriov_pf_wait_ready(struct xe_device *xe)
 	unsigned int id;
 	int err;
 
-	if (xe_device_wedged(xe))
+	if (xe_wedged(xe))
 		return -ECANCELED;
 
 	for_each_gt(gt, xe, id) {
diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c b/drivers/gpu/drm/xe/xe_survivability_mode.c
index ca031576fecb..d73cdad0b3a9 100644
--- a/drivers/gpu/drm/xe/xe_survivability_mode.c
+++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
@@ -20,6 +20,7 @@
 #include "xe_pcode_api.h"
 #include "xe_printk.h"
 #include "xe_vsec.h"
+#include "xe_wedge.h"
 
 /**
  * DOC: Survivability Mode
@@ -446,7 +447,7 @@ void xe_survivability_mode_runtime_enable(struct xe_device *xe)
 	survivability->type = XE_SURVIVABILITY_TYPE_RUNTIME;
 	xe_log_err(xe, SURVIVABILITY, 0, "Runtime Mode enabled!\n");
 
-	xe_device_declare_wedged(xe, DRM_WEDGE_RECOVERY_VENDOR);
+	xe_wedge_declare(xe, DRM_WEDGE_RECOVERY_VENDOR);
 
 	xe_log_err(xe, SURVIVABILITY, 0, "Firmware flash required!\n");
 	xe_info(xe, "Please refer to the userspace documentation for more details how to flash the firmware on %s!\n",
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index 65f59f06177f..686c28856014 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -326,15 +326,15 @@ void xe_uc_runtime_resume(struct xe_uc *uc)
 }
 
 /**
- * xe_uc_declare_wedged() - Declare UC wedged
+ * xe_uc_wedge_declare() - Declare UC wedged
  * @uc: the UC object
  *
  * Wedge the UC which stops all submission, saves desired debug state, and
  * cleans up anything which could timeout.
  */
-void xe_uc_declare_wedged(struct xe_uc *uc)
+void xe_uc_wedge_declare(struct xe_uc *uc)
 {
 	xe_gt_assert(uc_to_gt(uc), uc_to_xe(uc)->wedged.mode);
 
-	xe_guc_declare_wedged(&uc->guc);
+	xe_guc_wedge_declare(&uc->guc);
 }
diff --git a/drivers/gpu/drm/xe/xe_uc.h b/drivers/gpu/drm/xe/xe_uc.h
index 255a54a8f876..23bc0ce1c42f 100644
--- a/drivers/gpu/drm/xe/xe_uc.h
+++ b/drivers/gpu/drm/xe/xe_uc.h
@@ -21,6 +21,6 @@ int xe_uc_start(struct xe_uc *uc);
 void xe_uc_suspend_prepare(struct xe_uc *uc);
 int xe_uc_suspend(struct xe_uc *uc);
 int xe_uc_sanitize_reset(struct xe_uc *uc);
-void xe_uc_declare_wedged(struct xe_uc *uc);
+void xe_uc_wedge_declare(struct xe_uc *uc);
 
 #endif
diff --git a/drivers/gpu/drm/xe/xe_wedge.c b/drivers/gpu/drm/xe/xe_wedge.c
new file mode 100644
index 000000000000..f64324607731
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_wedge.c
@@ -0,0 +1,273 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2026 Intel Corporation
+ */
+
+#include <drm/drm_drv.h>
+#include <drm/drm_managed.h>
+
+#include "xe_defaults.h"
+#include "xe_device.h"
+#include "xe_gt.h"
+#include "xe_gt_printk.h"
+#include "xe_guc_ads.h"
+#include "xe_log.h"
+#include "xe_module.h"
+#include "xe_pm.h"
+#include "xe_printk.h"
+#include "xe_sriov.h"
+#include "xe_wedge.h"
+
+/**
+ * DOC: Xe Device Wedging
+ *
+ * Xe driver uses drm device wedged uevent as documented in Documentation/gpu/drm-uapi.rst.
+ * When device is in wedged state, every IOCTL will be blocked and GT cannot
+ * be used. The conditions under which the driver declares the device wedged
+ * depend on the wedge mode configuration (see &enum xe_wedged_mode). The
+ * default recovery method for a wedged state is rebind/bus-reset.
+ *
+ * Another recovery method is vendor-specific. Below are the cases that send
+ * ``WEDGED=vendor-specific`` recovery method in drm device wedged uevent.
+ *
+ * Case: Firmware Flash
+ * --------------------
+ *
+ * Identification Hint
+ * +++++++++++++++++++
+ *
+ * ``WEDGED=vendor-specific`` drm device wedged uevent with
+ * :ref:`Runtime Survivability mode <xe-survivability-mode>` is used to notify
+ * admin/userspace consumer about the need for a firmware flash.
+ *
+ * Recovery Procedure
+ * ++++++++++++++++++
+ *
+ * Once ``WEDGED=vendor-specific`` drm device wedged uevent is received, follow
+ * the below steps
+ *
+ * - Check Runtime Survivability mode sysfs.
+ *   If enabled, firmware flash is required to recover the device.
+ *
+ *   /sys/bus/pci/devices/<device>/survivability_mode
+ *
+ * - Admin/userspace consumer can use firmware flashing tools like fwupd to flash
+ *   firmware and restore device to normal operation.
+ */
+
+/**
+ * xe_wedged() - Check for wedged device
+ * @xe: xe device instance
+ *
+ * Returns: %true if device is wedged, %false otherwise.
+ */
+bool xe_wedged(struct xe_device *xe)
+{
+	return atomic_read(&xe->wedged.flag);
+}
+
+static void wedge_work(struct work_struct *work)
+{
+	struct xe_device *xe = container_of(work, struct xe_device, wedged.work);
+
+	/* Notify userspace of wedged device */
+	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
+}
+
+#define WEDGED_URL	"https://docs.kernel.org/gpu/drm-uapi.html#device-wedging"
+#define XE_BUG_URL	"https://gitlab.freedesktop.org/drm/xe/kernel/issues/new"
+
+/**
+ * xe_wedge_declare() - Declare device wedged
+ * @xe: xe device instance
+ * @method: method(s) to be used for recovery
+ *
+ * This is the final state that can only be cleared with the recovery method
+ * specified in the drm wedged uevent.
+ *
+ * In this state every IOCTL will be blocked so the GT cannot be used.
+ * In general it will be called upon any critical error such as gt reset
+ * failure or guc loading failure. Userspace will be notified of this state
+ * through device wedged uevent.
+ *
+ * If xe.wedged module parameter is set to 2, this function will be called
+ * on every single execution timeout (a.k.a. GPU hang) right after devcoredump
+ * snapshot capture. In this mode, GT reset won't be attempted so the state of
+ * the issue is preserved for further debugging.
+ *
+ * Since the wedge handling is done as part of worker thread, this is safe for
+ * atomic callers.
+ */
+void xe_wedge_declare(struct xe_device *xe, unsigned long method)
+{
+	struct xe_gt *gt;
+	u8 id;
+
+	if (xe->wedged.mode == XE_WEDGED_MODE_NEVER) {
+		xe_dbg(xe, "Wedged mode is forcibly disabled\n");
+		return;
+	}
+
+	if (atomic_xchg(&xe->wedged.flag, 1))
+		return;
+
+	xe->needs_flr_on_fini = true;
+	pm_runtime_get_noresume(xe->drm.dev);
+
+	xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
+	xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
+			"For recovery procedure, refer to %s\n"
+			"Please file a _new_ bug report at %s\n",
+			WEDGED_URL, XE_BUG_URL);
+
+	for_each_initialized_gt(gt, xe, id)
+		xe_gt_wedge_declare(gt);
+
+	/*
+	 * XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging
+	 * hangs, so wedge the device with 'none' recovery method and have
+	 * it available to the user for debugging.
+	 */
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
+		xe->wedged.method = DRM_WEDGE_RECOVERY_NONE;
+	else
+		xe->wedged.method = method;
+
+	schedule_work(&xe->wedged.work);
+}
+
+static const char *wedge_mode_to_string(enum xe_wedged_mode mode)
+{
+	switch (mode) {
+	case XE_WEDGED_MODE_NEVER:
+		return "never";
+	case XE_WEDGED_MODE_UPON_CRITICAL_ERROR:
+		return "upon-critical-error";
+	case XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET:
+		return "upon-any-hang-no-reset";
+	default:
+		return "<invalid>";
+	}
+}
+
+static int wedge_validate_mode(struct xe_device *xe, unsigned int mode)
+{
+	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
+		xe_dbg(xe, "wedged_mode: invalid value (%u)\n", mode);
+		return -EINVAL;
+	} else if (mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET && (IS_SRIOV_VF(xe) ||
+		   (IS_SRIOV_PF(xe) && !IS_ENABLED(CONFIG_DRM_XE_DEBUG)))) {
+		xe_dbg(xe, "wedged_mode: (%u) %s mode is not supported for %s\n",
+		       mode, wedge_mode_to_string(mode),
+		       xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
+		return -EPERM;
+	}
+
+	return 0;
+}
+
+static bool wedge_mode_needs_policy_update(struct xe_device *xe, enum xe_wedged_mode mode)
+{
+	if (xe->wedged.inconsistent_reset)
+		return true;
+
+	if (xe->wedged.mode == mode)
+		return false;
+
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET ||
+	    mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
+		return true;
+
+	return false;
+}
+
+static int __wedge_mode_set_reset_policy(struct xe_gt *gt, enum xe_wedged_mode mode)
+{
+	bool enable_engine_reset;
+	int ret;
+
+	enable_engine_reset = (mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET);
+	ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads,
+						       enable_engine_reset);
+	if (ret)
+		xe_gt_err(gt, "Failed to update GuC ADS scheduler policy (%pe)\n", ERR_PTR(ret));
+
+	return ret;
+}
+
+static int wedge_mode_set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
+{
+	struct xe_gt *gt;
+	int ret;
+	u8 id;
+
+	guard(xe_pm_runtime)(xe);
+	for_each_gt(gt, xe, id) {
+		ret = __wedge_mode_set_reset_policy(gt, mode);
+		if (ret) {
+			if (id > 0) {
+				xe->wedged.inconsistent_reset = true;
+				xe_err(xe, "Inconsistent reset policy state between GTs\n");
+			}
+			return ret;
+		}
+	}
+
+	xe->wedged.inconsistent_reset = false;
+
+	return 0;
+}
+
+/**
+ * xe_wedge_set_mode() - Set wedge mode
+ * @xe: xe device instance
+ * @mode: wedge mode to be set
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_wedge_set_mode(struct xe_device *xe, enum xe_wedged_mode mode)
+{
+	int ret;
+
+	ret = wedge_validate_mode(xe, mode);
+	if (ret)
+		return ret;
+
+	if (wedge_mode_needs_policy_update(xe, mode)) {
+		ret = wedge_mode_set_reset_policy(xe, mode);
+		if (ret)
+			return ret;
+	}
+
+	xe->wedged.mode = mode;
+
+	return ret;
+}
+
+static void xe_wedge_fini(struct drm_device *drm, void *arg)
+{
+	struct xe_device *xe = arg;
+
+	disable_work_sync(&xe->wedged.work);
+
+	if (atomic_read(&xe->wedged.flag))
+		xe_pm_runtime_put(xe);
+}
+
+/**
+ * xe_wedge_init() - Initialize wedge
+ * @xe: xe device instance
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_wedge_init(struct xe_device *xe)
+{
+	INIT_WORK(&xe->wedged.work, wedge_work);
+
+	xe->wedged.mode = wedge_validate_mode(xe, xe_modparam.wedged_mode) ?
+			  XE_DEFAULT_WEDGED_MODE : xe_modparam.wedged_mode;
+	xe_dbg(xe, "wedged_mode: setting mode (%u) %s\n",
+	       xe->wedged.mode, wedge_mode_to_string(xe->wedged.mode));
+
+	return drmm_add_action_or_reset(&xe->drm, xe_wedge_fini, xe);
+}
diff --git a/drivers/gpu/drm/xe/xe_wedge.h b/drivers/gpu/drm/xe/xe_wedge.h
new file mode 100644
index 000000000000..c8495f96f883
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_wedge.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2026 Intel Corporation
+ */
+
+#ifndef _XE_WEDGE_H_
+#define _XE_WEDGE_H_
+
+#include <linux/types.h>
+
+#include "xe_wedge_types.h"
+
+struct xe_device;
+
+bool xe_wedged(struct xe_device *xe);
+void xe_wedge_declare(struct xe_device *xe, unsigned long method);
+int xe_wedge_init(struct xe_device *xe);
+int xe_wedge_set_mode(struct xe_device *xe, enum xe_wedged_mode mode);
+
+#endif
diff --git a/drivers/gpu/drm/xe/xe_wedge_types.h b/drivers/gpu/drm/xe/xe_wedge_types.h
new file mode 100644
index 000000000000..c50995feb68c
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_wedge_types.h
@@ -0,0 +1,44 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2026 Intel Corporation
+ */
+
+#ifndef _XE_WEDGE_TYPES_H_
+#define _XE_WEDGE_TYPES_H_
+
+#include <linux/types.h>
+#include <linux/workqueue_types.h>
+
+/**
+ * enum xe_wedged_mode - Possible wedge modes
+ * @XE_WEDGED_MODE_NEVER: Device will never be declared wedged.
+ * @XE_WEDGED_MODE_UPON_CRITICAL_ERROR: Device will be declared wedged only
+ *	when critical error occurs like GT reset failure or firmware failure.
+ *	This is the default mode.
+ * @XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET: Device will be declared wedged on
+ *	any hang. In this mode, engine resets are disabled to avoid automatic
+ *	recovery attempts. This mode is primarily intended for debugging hangs.
+ */
+enum xe_wedged_mode {
+	XE_WEDGED_MODE_NEVER = 0,
+	XE_WEDGED_MODE_UPON_CRITICAL_ERROR = 1,
+	XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET = 2,
+};
+
+/**
+ * struct xe_wedge - Struct to control Wedged States and mode
+ */
+struct xe_wedge {
+	/** @flag: Xe device faced a critical error and is now blocked. */
+	atomic_t flag;
+	/** @mode: Mode controlled by kernel parameter and debugfs */
+	enum xe_wedged_mode mode;
+	/** @method: Recovery method to be sent in the drm device wedged uevent */
+	unsigned long method;
+	/** @inconsistent_reset: Inconsistent reset policy state between GTs */
+	bool inconsistent_reset;
+	/** @work: Worker for wedge handling */
+	struct work_struct work;
+};
+
+#endif
-- 
2.43.0


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

* [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (5 preceding siblings ...)
  2026-10-14  5:51 ` [PATCH v6 6/7] drm/xe: Introduce xe_wedge Raag Jadav
@ 2026-10-14  5:51 ` Raag Jadav
  2026-10-14  6:14   ` sashiko-bot
  2026-10-14  5:59 ` ✗ CI.checkpatch: warning for Introduce xe_wedge (rev5) Patchwork
                   ` (2 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Raag Jadav @ 2026-10-14  5:51 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, lukasz.laguna, matthew.d.roper,
	matthew.brost, mallesh.koujalagi, rodrigo.vivi, Raag Jadav

With xe_wedge_fini() now moved to xe_wedge and registered as part of
xe_device_probe_early(), it is safe to move xe_ras_process_errors() back
to xe_ras where it belongs. This essentially reverts commit 20bc4883c7c0
("drm/xe/ras: Fix boot-time ras error processing"), which was added to
prevent PM reference leak in case of early wedging in probe sequence.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 drivers/gpu/drm/xe/xe_device.c | 7 -------
 drivers/gpu/drm/xe/xe_ras.c    | 7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index e0466390219c..a6bcb82b115f 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1087,13 +1087,6 @@ int xe_device_probe(struct xe_device *xe)
 
 	detect_preproduction_hw(xe);
 
-	/*
-	 * Process and log any errors detected by hardware. Possible results can
-	 * include declaring the device as wedged, which must be done only after
-	 * xe_wedge_fini() is registered.
-	 */
-	xe_ras_process_errors(xe);
-
 	err = devm_add_action_or_reset(xe->drm.dev, xe_device_sanitize, xe);
 	if (err)
 		goto err_unregister_display;
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index 922e5e793b13..8e399ffec985 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -932,6 +932,13 @@ void xe_ras_init(struct xe_device *xe)
 	if (IS_ENABLED(CONFIG_PCIEAER))
 		ras_usp_aer_init(xe);
 
+	/*
+	 * During probe, process and log any errors detected by firmware while the driver was not
+	 * loaded. Critical errors such as Punit and CSC are reported through Pcode init failure,
+	 * causing the driver to enter survivability mode.
+	 */
+	xe_ras_process_errors(xe);
+
 	ret = devm_device_add_group(xe->drm.dev, &gpu_health_group);
 	if (ret)
 		xe_err(xe, "Failed to create GPU health sysfs, err=%d\n", ret);
-- 
2.43.0


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

* ✗ CI.checkpatch: warning for Introduce xe_wedge (rev5)
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (6 preceding siblings ...)
  2026-10-14  5:51 ` [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras Raag Jadav
@ 2026-10-14  5:59 ` Patchwork
  2026-10-14  6:02 ` ✓ CI.KUnit: success " Patchwork
  2026-10-14 11:33 ` ✓ Xe.CI.BAT: " Patchwork
  9 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-10-14  5:59 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

== Series Details ==

Series: Introduce xe_wedge (rev5)
URL   : https://patchwork.freedesktop.org/series/173011/
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
6bef5ce5c74dc76b4ee69ab2832c0d1fd63c91c7
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit c9a83105e836014f8e55d3ef40e3daab76a17cad
Author: Raag Jadav <raag.jadav@intel.com>
Date:   Wed Oct 14 11:21:24 2026 +0530

    drm/xe/ras: Move xe_ras_process_errors() to xe_ras
    
    With xe_wedge_fini() now moved to xe_wedge and registered as part of
    xe_device_probe_early(), it is safe to move xe_ras_process_errors() back
    to xe_ras where it belongs. This essentially reverts commit 20bc4883c7c0
    ("drm/xe/ras: Fix boot-time ras error processing"), which was added to
    prevent PM reference leak in case of early wedging in probe sequence.
    
    Signed-off-by: Raag Jadav <raag.jadav@intel.com>
    Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
+ /mt/dim checkpatch 9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6 drm-intel
e515b9f8716c drm/xe/gt: Use GT ordered workqueue for wedging
-:43: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#43: FILE: drivers/gpu/drm/xe/xe_device.h:142:
+#define for_each_initialized_gt(gt__, xe__, id__) \
+	for_each_gt((gt__), (xe__), (id__)) \
+		for_each_if(READ_ONCE((gt__)->initialized))

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.

-:43: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'gt__' - possible side-effects?
#43: FILE: drivers/gpu/drm/xe/xe_device.h:142:
+#define for_each_initialized_gt(gt__, xe__, id__) \
+	for_each_gt((gt__), (xe__), (id__)) \
+		for_each_if(READ_ONCE((gt__)->initialized))

total: 1 errors, 0 warnings, 1 checks, 90 lines checked
ca2c9a67a31d drm/xe: Drop xe_device_set_wedged_method()
45b8c3aa44bc drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early()
29b80cb4533b drm/xe: Make xe_device_declare_wedged() IRQ safe
095f6e692d00 drm/xe/pci_error: Flush GT wedge worker before bus reset
8e1e918bb10d drm/xe: Introduce xe_wedge
-:1070: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#1070: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 1209 lines checked
c9a83105e836 drm/xe/ras: Move xe_ras_process_errors() to xe_ras



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

* ✓ CI.KUnit: success for Introduce xe_wedge (rev5)
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (7 preceding siblings ...)
  2026-10-14  5:59 ` ✗ CI.checkpatch: warning for Introduce xe_wedge (rev5) Patchwork
@ 2026-10-14  6:02 ` Patchwork
  2026-10-14 11:33 ` ✓ Xe.CI.BAT: " Patchwork
  9 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-10-14  6:02 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

== Series Details ==

Series: Introduce xe_wedge (rev5)
URL   : https://patchwork.freedesktop.org/series/173011/
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
[05:59:58] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:00:03] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[06:00:24] Starting KUnit Kernel (1/1)...
[06:00:24] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:00:24] ================= gpu_buddy (14 subtests) ==================
[06:00:24] [PASSED] gpu_test_buddy_alloc_limit
[06:00:24] [PASSED] gpu_test_buddy_alloc_optimistic
[06:00:24] [PASSED] gpu_test_buddy_alloc_pessimistic
[06:00:24] [PASSED] gpu_test_buddy_alloc_pathological
[06:00:24] [PASSED] gpu_test_buddy_alloc_contiguous
[06:00:24] [PASSED] gpu_test_buddy_alloc_clear
[06:00:24] [PASSED] gpu_test_buddy_alloc_range
[06:00:24] [PASSED] gpu_test_buddy_alloc_range_bias
[06:00:25] [PASSED] gpu_test_buddy_fragmentation_performance
[06:00:26] [PASSED] gpu_test_buddy_dirty_tracker_performance
[06:00:26] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[06:00:26] [PASSED] gpu_test_buddy_offset_aligned_allocation
[06:00:26] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[06:00:26] [PASSED] gpu_test_buddy_addr_to_block
[06:00:26] ==================== [PASSED] gpu_buddy ====================
[06:00:26] ============================================================
[06:00:26] Testing complete. Ran 14 tests: passed: 14
[06:00:26] Elapsed time: 27.434s total, 4.440s configuring, 21.077s building, 1.866s 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
[06:00:26] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:00: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
[06:01:02] Starting KUnit Kernel (1/1)...
[06:01:02] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:01:03] ================== guc_buf (11 subtests) ===================
[06:01:03] [PASSED] test_smallest
[06:01:03] [PASSED] test_largest
[06:01:03] [PASSED] test_granular
[06:01:03] [PASSED] test_unique
[06:01:03] [PASSED] test_overlap
[06:01:03] [PASSED] test_reusable
[06:01:03] [PASSED] test_too_big
[06:01:03] [PASSED] test_flush
[06:01:03] [PASSED] test_lookup
[06:01:03] [PASSED] test_data
[06:01:03] [PASSED] test_class
[06:01:03] ===================== [PASSED] guc_buf =====================
[06:01:03] =================== guc_dbm (7 subtests) ===================
[06:01:03] [PASSED] test_empty
[06:01:03] [PASSED] test_default
[06:01:03] ======================== test_size  ========================
[06:01:03] [PASSED] 4
[06:01:03] [PASSED] 8
[06:01:03] [PASSED] 32
[06:01:03] [PASSED] 256
[06:01:03] ==================== [PASSED] test_size ====================
[06:01:03] ======================= test_reuse  ========================
[06:01:03] [PASSED] 4
[06:01:03] [PASSED] 8
[06:01:03] [PASSED] 32
[06:01:03] [PASSED] 256
[06:01:03] =================== [PASSED] test_reuse ====================
[06:01:03] =================== test_range_overlap  ====================
[06:01:03] [PASSED] 4
[06:01:03] [PASSED] 8
[06:01:03] [PASSED] 32
[06:01:03] [PASSED] 256
[06:01:03] =============== [PASSED] test_range_overlap ================
[06:01:03] =================== test_range_compact  ====================
[06:01:03] [PASSED] 4
[06:01:03] [PASSED] 8
[06:01:03] [PASSED] 32
[06:01:03] [PASSED] 256
[06:01:03] =============== [PASSED] test_range_compact ================
[06:01:03] ==================== test_range_spare  =====================
[06:01:03] [PASSED] 4
[06:01:03] [PASSED] 8
[06:01:03] [PASSED] 32
[06:01:03] [PASSED] 256
[06:01:03] ================ [PASSED] test_range_spare =================
[06:01:03] ===================== [PASSED] guc_dbm =====================
[06:01:03] =================== guc_idm (6 subtests) ===================
[06:01:03] [PASSED] bad_init
[06:01:03] [PASSED] no_init
[06:01:03] [PASSED] init_fini
[06:01:03] [PASSED] check_used
[06:01:03] [PASSED] check_quota
[06:01:03] [PASSED] check_all
[06:01:03] ===================== [PASSED] guc_idm =====================
[06:01:03] ============== guc_klv_helpers (13 subtests) ===============
[06:01:03] [PASSED] test_count
[06:01:03] [PASSED] test_encode_u32
[06:01:03] [PASSED] test_encode_u64
[06:01:03] [PASSED] test_encode_string
[06:01:03] [PASSED] test_encode_object_raw
[06:01:03] [PASSED] test_encode_object_klv
[06:01:03] [PASSED] test_encode_object_nested
[06:01:03] [PASSED] test_encode_object_basic
[06:01:03] ===================== test_decode_u16  =====================
[06:01:03] [PASSED] empty
[06:01:03] [PASSED] valid
[06:01:03] [PASSED] max
[06:01:03] [PASSED] big
[06:01:03] [PASSED] long
[06:01:03] ================= [PASSED] test_decode_u16 =================
[06:01:03] ===================== test_decode_u32  =====================
[06:01:03] [PASSED] empty
[06:01:03] [PASSED] valid
[06:01:03] [PASSED] max
[06:01:03] [PASSED] long
[06:01:03] ================= [PASSED] test_decode_u32 =================
[06:01:03] ===================== test_decode_u64  =====================
[06:01:03] [PASSED] empty
[06:01:03] [PASSED] short
[06:01:03] [PASSED] valid
[06:01:03] [PASSED] max
[06:01:03] [PASSED] long
[06:01:03] ================= [PASSED] test_decode_u64 =================
[06:01:03] ===================== test_decode_str  =====================
[06:01:03] [PASSED] empty
[06:01:03] [PASSED] one
[06:01:03] [PASSED] one_trash
[06:01:03] [PASSED] two
[06:01:03] [PASSED] two_trash
[06:01:03] [PASSED] three
[06:01:03] [PASSED] dword
[06:01:03] [PASSED] four
[06:01:03] [PASSED] five
[06:01:03] [PASSED] six
[06:01:03] [PASSED] seven
[06:01:03] [PASSED] qword
[06:01:03] ================= [PASSED] test_decode_str =================
[06:01:03] [PASSED] test_print
[06:01:03] ================= [PASSED] guc_klv_helpers =================
[06:01:03] =================== xe_log (4 subtests) ====================
[06:01:03] [PASSED] demo_cper
[06:01:03] [PASSED] demo_dmesg
[06:01:03] ======================= test_dmesg  ========================
[06:01:03] [PASSED] test_fatal
[06:01:03] [PASSED] test_fatal_tile
[06:01:03] [PASSED] test_fatal_gt
[06:01:03] [PASSED] test_fatal_comp
[06:01:03] [PASSED] test_fatal_comp_tile
[06:01:03] [PASSED] test_fatal_comp_gt
[06:01:03] [PASSED] test_fatal_all
[06:01:03] [PASSED] test_recoverable
[06:01:03] [PASSED] test_recoverable_tile
[06:01:03] [PASSED] test_recoverable_gt
[06:01:03] [PASSED] test_recoverable_comp
[06:01:03] [PASSED] test_recoverable_comp_tile
[06:01:03] [PASSED] test_recoverable_comp_gt
[06:01:03] [PASSED] test_recoverable_all
[06:01:03] [PASSED] test_info
[06:01:03] [PASSED] test_info_tile
[06:01:03] [PASSED] test_info_gt
[06:01:03] [PASSED] test_info_err
[06:01:03] [PASSED] test_info_comp
[06:01:03] [PASSED] test_info_comp_tile
[06:01:03] [PASSED] test_info_comp_gt
[06:01:03] [PASSED] test_info_all
[06:01:03] [PASSED] test_hw_fatal
[06:01:03] [PASSED] test_hw_recoverable
[06:01:03] [PASSED] test_hw_corrected
[06:01:03] [PASSED] test_hw_informational
[06:01:03] =================== [PASSED] test_dmesg ====================
[06:01:03] ====================== test_invalid  =======================
[06:01:03] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[06:01:03] ================== [SKIPPED] test_invalid ==================
[06:01:03] ===================== [PASSED] xe_log ======================
[06:01:03] ================== no_relay (3 subtests) ===================
[06:01:03] [PASSED] xe_drops_guc2pf_if_not_ready
[06:01:03] [PASSED] xe_drops_guc2vf_if_not_ready
[06:01:03] [PASSED] xe_rejects_send_if_not_ready
[06:01:03] ==================== [PASSED] no_relay =====================
[06:01:03] ================== pf_relay (14 subtests) ==================
[06:01:03] [PASSED] pf_rejects_guc2pf_too_short
[06:01:03] [PASSED] pf_rejects_guc2pf_too_long
[06:01:03] [PASSED] pf_rejects_guc2pf_no_payload
[06:01:03] [PASSED] pf_fails_no_payload
[06:01:03] [PASSED] pf_fails_bad_origin
[06:01:03] [PASSED] pf_fails_bad_type
[06:01:03] [PASSED] pf_txn_reports_error
[06:01:03] [PASSED] pf_txn_sends_pf2guc
[06:01:03] [PASSED] pf_sends_pf2guc
[06:01:03] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:01:03] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:01:03] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:01:03] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:01:03] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[06:01:03] ==================== [PASSED] pf_relay =====================
[06:01:03] ================== vf_relay (3 subtests) ===================
[06:01:03] [PASSED] vf_rejects_guc2vf_too_short
[06:01:03] [PASSED] vf_rejects_guc2vf_too_long
[06:01:03] [PASSED] vf_rejects_guc2vf_no_payload
[06:01:03] ==================== [PASSED] vf_relay =====================
[06:01:03] ================ pf_gt_config (9 subtests) =================
[06:01:03] [PASSED] fair_contexts_1vf
[06:01:03] [PASSED] fair_doorbells_1vf
[06:01:03] [PASSED] fair_ggtt_1vf
[06:01:03] ====================== fair_vram_1vf  ======================
[06:01:03] [PASSED] 3.50 GiB
[06:01:03] [PASSED] 11.5 GiB
[06:01:03] [PASSED] 15.5 GiB
[06:01:03] [PASSED] 31.5 GiB
[06:01:03] [PASSED] 63.5 GiB
[06:01:03] [PASSED] 1.91 GiB
[06:01:03] ================== [PASSED] fair_vram_1vf ==================
[06:01:03] ================ fair_vram_1vf_admin_only  =================
[06:01:03] [PASSED] 3.50 GiB
[06:01:03] [PASSED] 11.5 GiB
[06:01:03] [PASSED] 15.5 GiB
[06:01:03] [PASSED] 31.5 GiB
[06:01:03] [PASSED] 63.5 GiB
[06:01:03] [PASSED] 1.91 GiB
[06:01:03] ============ [PASSED] fair_vram_1vf_admin_only =============
[06:01:03] ====================== fair_contexts  ======================
[06:01:03] [PASSED] 1 VF
[06:01:03] [PASSED] 2 VFs
[06:01:03] [PASSED] 3 VFs
[06:01:03] [PASSED] 4 VFs
[06:01:03] [PASSED] 5 VFs
[06:01:03] [PASSED] 6 VFs
[06:01:03] [PASSED] 7 VFs
[06:01:03] [PASSED] 8 VFs
[06:01:03] [PASSED] 9 VFs
[06:01:03] [PASSED] 10 VFs
[06:01:03] [PASSED] 11 VFs
[06:01:03] [PASSED] 12 VFs
[06:01:03] [PASSED] 13 VFs
[06:01:03] [PASSED] 14 VFs
[06:01:03] [PASSED] 15 VFs
[06:01:03] [PASSED] 16 VFs
[06:01:03] [PASSED] 17 VFs
[06:01:03] [PASSED] 18 VFs
[06:01:03] [PASSED] 19 VFs
[06:01:03] [PASSED] 20 VFs
[06:01:03] [PASSED] 21 VFs
[06:01:03] [PASSED] 22 VFs
[06:01:03] [PASSED] 23 VFs
[06:01:03] [PASSED] 24 VFs
[06:01:03] [PASSED] 25 VFs
[06:01:03] [PASSED] 26 VFs
[06:01:03] [PASSED] 27 VFs
[06:01:03] [PASSED] 28 VFs
[06:01:03] [PASSED] 29 VFs
[06:01:03] [PASSED] 30 VFs
[06:01:03] [PASSED] 31 VFs
[06:01:03] [PASSED] 32 VFs
[06:01:03] [PASSED] 33 VFs
[06:01:03] [PASSED] 34 VFs
[06:01:03] [PASSED] 35 VFs
[06:01:03] [PASSED] 36 VFs
[06:01:03] [PASSED] 37 VFs
[06:01:03] [PASSED] 38 VFs
[06:01:03] [PASSED] 39 VFs
[06:01:03] [PASSED] 40 VFs
[06:01:03] [PASSED] 41 VFs
[06:01:03] [PASSED] 42 VFs
[06:01:03] [PASSED] 43 VFs
[06:01:03] [PASSED] 44 VFs
[06:01:03] [PASSED] 45 VFs
[06:01:03] [PASSED] 46 VFs
[06:01:03] [PASSED] 47 VFs
[06:01:03] [PASSED] 48 VFs
[06:01:03] [PASSED] 49 VFs
[06:01:03] [PASSED] 50 VFs
[06:01:03] [PASSED] 51 VFs
[06:01:03] [PASSED] 52 VFs
[06:01:03] [PASSED] 53 VFs
[06:01:03] [PASSED] 54 VFs
[06:01:03] [PASSED] 55 VFs
[06:01:03] [PASSED] 56 VFs
[06:01:03] [PASSED] 57 VFs
[06:01:03] [PASSED] 58 VFs
[06:01:03] [PASSED] 59 VFs
[06:01:03] [PASSED] 60 VFs
[06:01:03] [PASSED] 61 VFs
[06:01:03] [PASSED] 62 VFs
[06:01:03] [PASSED] 63 VFs
[06:01:03] ================== [PASSED] fair_contexts ==================
[06:01:03] ===================== fair_doorbells  ======================
[06:01:03] [PASSED] 1 VF
[06:01:03] [PASSED] 2 VFs
[06:01:03] [PASSED] 3 VFs
[06:01:03] [PASSED] 4 VFs
[06:01:03] [PASSED] 5 VFs
[06:01:03] [PASSED] 6 VFs
[06:01:03] [PASSED] 7 VFs
[06:01:03] [PASSED] 8 VFs
[06:01:03] [PASSED] 9 VFs
[06:01:03] [PASSED] 10 VFs
[06:01:03] [PASSED] 11 VFs
[06:01:03] [PASSED] 12 VFs
[06:01:03] [PASSED] 13 VFs
[06:01:03] [PASSED] 14 VFs
[06:01:03] [PASSED] 15 VFs
[06:01:03] [PASSED] 16 VFs
[06:01:03] [PASSED] 17 VFs
[06:01:03] [PASSED] 18 VFs
[06:01:03] [PASSED] 19 VFs
[06:01:03] [PASSED] 20 VFs
[06:01:03] [PASSED] 21 VFs
[06:01:03] [PASSED] 22 VFs
[06:01:03] [PASSED] 23 VFs
[06:01:03] [PASSED] 24 VFs
[06:01:03] [PASSED] 25 VFs
[06:01:03] [PASSED] 26 VFs
[06:01:03] [PASSED] 27 VFs
[06:01:03] [PASSED] 28 VFs
[06:01:03] [PASSED] 29 VFs
[06:01:03] [PASSED] 30 VFs
[06:01:03] [PASSED] 31 VFs
[06:01:03] [PASSED] 32 VFs
[06:01:03] [PASSED] 33 VFs
[06:01:03] [PASSED] 34 VFs
[06:01:03] [PASSED] 35 VFs
[06:01:03] [PASSED] 36 VFs
[06:01:03] [PASSED] 37 VFs
[06:01:03] [PASSED] 38 VFs
[06:01:03] [PASSED] 39 VFs
[06:01:03] [PASSED] 40 VFs
[06:01:03] [PASSED] 41 VFs
[06:01:03] [PASSED] 42 VFs
[06:01:03] [PASSED] 43 VFs
[06:01:03] [PASSED] 44 VFs
[06:01:03] [PASSED] 45 VFs
[06:01:03] [PASSED] 46 VFs
[06:01:03] [PASSED] 47 VFs
[06:01:03] [PASSED] 48 VFs
[06:01:03] [PASSED] 49 VFs
[06:01:03] [PASSED] 50 VFs
[06:01:03] [PASSED] 51 VFs
[06:01:03] [PASSED] 52 VFs
[06:01:03] [PASSED] 53 VFs
[06:01:03] [PASSED] 54 VFs
[06:01:03] [PASSED] 55 VFs
[06:01:03] [PASSED] 56 VFs
[06:01:03] [PASSED] 57 VFs
[06:01:03] [PASSED] 58 VFs
[06:01:03] [PASSED] 59 VFs
[06:01:03] [PASSED] 60 VFs
[06:01:03] [PASSED] 61 VFs
[06:01:03] [PASSED] 62 VFs
[06:01:03] [PASSED] 63 VFs
[06:01:03] ================= [PASSED] fair_doorbells ==================
[06:01:03] ======================== fair_ggtt  ========================
[06:01:03] [PASSED] 1 VF
[06:01:03] [PASSED] 2 VFs
[06:01:03] [PASSED] 3 VFs
[06:01:03] [PASSED] 4 VFs
[06:01:03] [PASSED] 5 VFs
[06:01:03] [PASSED] 6 VFs
[06:01:03] [PASSED] 7 VFs
[06:01:03] [PASSED] 8 VFs
[06:01:03] [PASSED] 9 VFs
[06:01:03] [PASSED] 10 VFs
[06:01:03] [PASSED] 11 VFs
[06:01:03] [PASSED] 12 VFs
[06:01:03] [PASSED] 13 VFs
[06:01:03] [PASSED] 14 VFs
[06:01:03] [PASSED] 15 VFs
[06:01:03] [PASSED] 16 VFs
[06:01:03] [PASSED] 17 VFs
[06:01:03] [PASSED] 18 VFs
[06:01:03] [PASSED] 19 VFs
[06:01:03] [PASSED] 20 VFs
[06:01:03] [PASSED] 21 VFs
[06:01:03] [PASSED] 22 VFs
[06:01:03] [PASSED] 23 VFs
[06:01:03] [PASSED] 24 VFs
[06:01:03] [PASSED] 25 VFs
[06:01:03] [PASSED] 26 VFs
[06:01:03] [PASSED] 27 VFs
[06:01:03] [PASSED] 28 VFs
[06:01:03] [PASSED] 29 VFs
[06:01:03] [PASSED] 30 VFs
[06:01:03] [PASSED] 31 VFs
[06:01:03] [PASSED] 32 VFs
[06:01:03] [PASSED] 33 VFs
[06:01:03] [PASSED] 34 VFs
[06:01:03] [PASSED] 35 VFs
[06:01:03] [PASSED] 36 VFs
[06:01:03] [PASSED] 37 VFs
[06:01:03] [PASSED] 38 VFs
[06:01:03] [PASSED] 39 VFs
[06:01:03] [PASSED] 40 VFs
[06:01:03] [PASSED] 41 VFs
[06:01:03] [PASSED] 42 VFs
[06:01:03] [PASSED] 43 VFs
[06:01:03] [PASSED] 44 VFs
[06:01:03] [PASSED] 45 VFs
[06:01:03] [PASSED] 46 VFs
[06:01:03] [PASSED] 47 VFs
[06:01:03] [PASSED] 48 VFs
[06:01:03] [PASSED] 49 VFs
[06:01:03] [PASSED] 50 VFs
[06:01:03] [PASSED] 51 VFs
[06:01:03] [PASSED] 52 VFs
[06:01:03] [PASSED] 53 VFs
[06:01:03] [PASSED] 54 VFs
[06:01:03] [PASSED] 55 VFs
[06:01:03] [PASSED] 56 VFs
[06:01:03] [PASSED] 57 VFs
[06:01:03] [PASSED] 58 VFs
[06:01:03] [PASSED] 59 VFs
[06:01:03] [PASSED] 60 VFs
[06:01:03] [PASSED] 61 VFs
[06:01:03] [PASSED] 62 VFs
[06:01:03] [PASSED] 63 VFs
[06:01:03] ==================== [PASSED] fair_ggtt ====================
[06:01:03] ======================== fair_vram  ========================
[06:01:03] [PASSED] 1 VF
[06:01:03] [PASSED] 2 VFs
[06:01:03] [PASSED] 3 VFs
[06:01:03] [PASSED] 4 VFs
[06:01:03] [PASSED] 5 VFs
[06:01:03] [PASSED] 6 VFs
[06:01:03] [PASSED] 7 VFs
[06:01:03] [PASSED] 8 VFs
[06:01:03] [PASSED] 9 VFs
[06:01:03] [PASSED] 10 VFs
[06:01:03] [PASSED] 11 VFs
[06:01:03] [PASSED] 12 VFs
[06:01:03] [PASSED] 13 VFs
[06:01:03] [PASSED] 14 VFs
[06:01:03] [PASSED] 15 VFs
[06:01:03] [PASSED] 16 VFs
[06:01:03] [PASSED] 17 VFs
[06:01:03] [PASSED] 18 VFs
[06:01:03] [PASSED] 19 VFs
[06:01:03] [PASSED] 20 VFs
[06:01:03] [PASSED] 21 VFs
[06:01:03] [PASSED] 22 VFs
[06:01:03] [PASSED] 23 VFs
[06:01:03] [PASSED] 24 VFs
[06:01:03] [PASSED] 25 VFs
[06:01:03] [PASSED] 26 VFs
[06:01:03] [PASSED] 27 VFs
[06:01:03] [PASSED] 28 VFs
[06:01:03] [PASSED] 29 VFs
[06:01:03] [PASSED] 30 VFs
[06:01:03] [PASSED] 31 VFs
[06:01:03] [PASSED] 32 VFs
[06:01:03] [PASSED] 33 VFs
[06:01:03] [PASSED] 34 VFs
[06:01:03] [PASSED] 35 VFs
[06:01:03] [PASSED] 36 VFs
[06:01:03] [PASSED] 37 VFs
[06:01:03] [PASSED] 38 VFs
[06:01:03] [PASSED] 39 VFs
[06:01:03] [PASSED] 40 VFs
[06:01:03] [PASSED] 41 VFs
[06:01:03] [PASSED] 42 VFs
[06:01:03] [PASSED] 43 VFs
[06:01:03] [PASSED] 44 VFs
[06:01:03] [PASSED] 45 VFs
[06:01:03] [PASSED] 46 VFs
[06:01:03] [PASSED] 47 VFs
[06:01:03] [PASSED] 48 VFs
[06:01:03] [PASSED] 49 VFs
[06:01:03] [PASSED] 50 VFs
[06:01:03] [PASSED] 51 VFs
[06:01:03] [PASSED] 52 VFs
[06:01:03] [PASSED] 53 VFs
[06:01:03] [PASSED] 54 VFs
[06:01:03] [PASSED] 55 VFs
[06:01:03] [PASSED] 56 VFs
[06:01:03] [PASSED] 57 VFs
[06:01:03] [PASSED] 58 VFs
[06:01:03] [PASSED] 59 VFs
[06:01:03] [PASSED] 60 VFs
[06:01:03] [PASSED] 61 VFs
[06:01:03] [PASSED] 62 VFs
[06:01:03] [PASSED] 63 VFs
[06:01:03] ==================== [PASSED] fair_vram ====================
[06:01:03] ================== [PASSED] pf_gt_config ===================
[06:01:03] ===================== lmtt (1 subtest) =====================
[06:01:03] ======================== test_ops  =========================
[06:01:03] [PASSED] 2-level
[06:01:03] [PASSED] multi-level
[06:01:03] ==================== [PASSED] test_ops =====================
[06:01:03] ====================== [PASSED] lmtt =======================
[06:01:03] ================= sriov_packet (1 subtest) =================
[06:01:03] [PASSED] test_descriptor_init
[06:01:03] ================== [PASSED] sriov_packet ===================
[06:01:03] ================= pf_service (11 subtests) =================
[06:01:03] [PASSED] pf_negotiate_any
[06:01:03] [PASSED] pf_negotiate_base_match
[06:01:03] [PASSED] pf_negotiate_base_newer
[06:01:03] [PASSED] pf_negotiate_base_next
[06:01:03] [SKIPPED] pf_negotiate_base_older (no older minor)
[06:01:03] [PASSED] pf_negotiate_base_prev
[06:01:03] [PASSED] pf_negotiate_latest_match
[06:01:03] [PASSED] pf_negotiate_latest_newer
[06:01:03] [PASSED] pf_negotiate_latest_next
[06:01:03] [SKIPPED] pf_negotiate_latest_older (no older minor)
[06:01:03] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[06:01:03] =================== [PASSED] pf_service ====================
[06:01:03] ================= xe_guc_g2g (2 subtests) ==================
[06:01:03] ============== xe_live_guc_g2g_kunit_default  ==============
[06:01:03] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[06:01:03] ============== xe_live_guc_g2g_kunit_allmem  ===============
[06:01:03] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[06:01:03] =================== [SKIPPED] xe_guc_g2g ===================
[06:01:03] =================== xe_mocs (2 subtests) ===================
[06:01:03] ================ xe_live_mocs_kernel_kunit  ================
[06:01:03] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[06:01:03] ================ xe_live_mocs_reset_kunit  =================
[06:01:03] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[06:01:03] ==================== [SKIPPED] xe_mocs =====================
[06:01:03] ================= xe_migrate (2 subtests) ==================
[06:01:03] ================= xe_migrate_sanity_kunit  =================
[06:01:03] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[06:01:03] ================== xe_validate_ccs_kunit  ==================
[06:01:03] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[06:01:03] =================== [SKIPPED] xe_migrate ===================
[06:01:03] ================== xe_dma_buf (1 subtest) ==================
[06:01:03] ==================== xe_dma_buf_kunit  =====================
[06:01:03] ================ [SKIPPED] xe_dma_buf_kunit ================
[06:01:03] =================== [SKIPPED] xe_dma_buf ===================
[06:01:03] ================= xe_bo_shrink (1 subtest) =================
[06:01:03] =================== xe_bo_shrink_kunit  ====================
[06:01:03] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[06:01:03] ================== [SKIPPED] xe_bo_shrink ==================
[06:01:03] ==================== xe_bo (2 subtests) ====================
[06:01:03] ================== xe_ccs_migrate_kunit  ===================
[06:01:03] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[06:01:03] ==================== xe_bo_evict_kunit  ====================
[06:01:03] =============== [SKIPPED] xe_bo_evict_kunit ================
[06:01:03] ===================== [SKIPPED] xe_bo ======================
[06:01:03] =================== xe_any (9 subtests) ====================
[06:01:03] [PASSED] test_to_xe
[06:01:03] [PASSED] test_to_dev
[06:01:03] [PASSED] test_to_pdev
[06:01:03] [PASSED] test_to_drm
[06:01:03] [PASSED] test_if_pdev
[06:01:03] [PASSED] test_if_xe
[06:01:03] [PASSED] test_if_tile
[06:01:03] [PASSED] test_if_gt
[06:01:03] [PASSED] test_to_id
[06:01:03] ===================== [PASSED] xe_any ======================
[06:01:03] ==================== args (13 subtests) ====================
[06:01:03] [PASSED] count_args_test
[06:01:03] [PASSED] call_args_example
[06:01:03] [PASSED] call_args_test
[06:01:03] [PASSED] drop_first_arg_example
[06:01:03] [PASSED] drop_first_arg_test
[06:01:03] [PASSED] first_arg_example
[06:01:03] [PASSED] first_arg_test
[06:01:03] [PASSED] last_arg_example
[06:01:03] [PASSED] last_arg_test
[06:01:03] [PASSED] pick_arg_example
[06:01:03] [PASSED] if_args_example
[06:01:03] [PASSED] if_args_test
[06:01:03] [PASSED] sep_comma_example
[06:01:03] ====================== [PASSED] args =======================
[06:01:03] =================== xe_pci (3 subtests) ====================
[06:01:03] ==================== check_graphics_ip  ====================
[06:01:03] [PASSED] 12.00 Xe_LP
[06:01:03] [PASSED] 12.10 Xe_LP+
[06:01:03] [PASSED] 12.55 Xe_HPG
[06:01:03] [PASSED] 12.60 Xe_HPC
[06:01:03] [PASSED] 12.70 Xe_LPG
[06:01:03] [PASSED] 12.71 Xe_LPG
[06:01:03] [PASSED] 12.74 Xe_LPG+
[06:01:03] [PASSED] 20.01 Xe2_HPG
[06:01:03] [PASSED] 20.02 Xe2_HPG
[06:01:03] [PASSED] 20.04 Xe2_LPG
[06:01:03] [PASSED] 30.00 Xe3_LPG
[06:01:03] [PASSED] 30.01 Xe3_LPG
[06:01:03] [PASSED] 30.03 Xe3_LPG
[06:01:03] [PASSED] 30.04 Xe3_LPG
[06:01:03] [PASSED] 30.05 Xe3_LPG
[06:01:03] [PASSED] 35.10 Xe3p_LPG
[06:01:03] [PASSED] 35.11 Xe3p_XPC
[06:01:03] ================ [PASSED] check_graphics_ip ================
[06:01:03] ===================== check_media_ip  ======================
[06:01:03] [PASSED] 12.00 Xe_M
[06:01:03] [PASSED] 12.55 Xe_HPM
[06:01:03] [PASSED] 13.00 Xe_LPM+
[06:01:03] [PASSED] 13.01 Xe2_HPM
[06:01:03] [PASSED] 20.00 Xe2_LPM
[06:01:03] [PASSED] 30.00 Xe3_LPM
[06:01:03] [PASSED] 30.02 Xe3_LPM
[06:01:03] [PASSED] 35.00 Xe3p_LPM
[06:01:03] [PASSED] 35.03 Xe3p_HPM
[06:01:03] ================= [PASSED] check_media_ip ==================
[06:01:03] =================== check_platform_desc  ===================
[06:01:03] [PASSED] 0x9A60 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A68 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A70 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A40 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A49 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A59 (TIGERLAKE)
[06:01:03] [PASSED] 0x9A78 (TIGERLAKE)
[06:01:03] [PASSED] 0x9AC0 (TIGERLAKE)
[06:01:03] [PASSED] 0x9AC9 (TIGERLAKE)
[06:01:03] [PASSED] 0x9AD9 (TIGERLAKE)
[06:01:03] [PASSED] 0x9AF8 (TIGERLAKE)
[06:01:03] [PASSED] 0x4C80 (ROCKETLAKE)
[06:01:03] [PASSED] 0x4C8A (ROCKETLAKE)
[06:01:03] [PASSED] 0x4C8B (ROCKETLAKE)
[06:01:03] [PASSED] 0x4C8C (ROCKETLAKE)
[06:01:03] [PASSED] 0x4C90 (ROCKETLAKE)
[06:01:03] [PASSED] 0x4C9A (ROCKETLAKE)
[06:01:03] [PASSED] 0x4680 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4682 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4688 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x468A (ALDERLAKE_S)
[06:01:03] [PASSED] 0x468B (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4690 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4692 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4693 (ALDERLAKE_S)
[06:01:03] [PASSED] 0x46A0 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46A1 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46A2 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46A3 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46A6 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46A8 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46AA (ALDERLAKE_P)
[06:01:03] [PASSED] 0x462A (ALDERLAKE_P)
[06:01:03] [PASSED] 0x4626 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x4628 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46B0 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46B1 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46B2 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46B3 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46C0 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46C1 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46C2 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46C3 (ALDERLAKE_P)
[06:01:03] [PASSED] 0x46D0 (ALDERLAKE_N)
[06:01:03] [PASSED] 0x46D1 (ALDERLAKE_N)
[06:01:03] [PASSED] 0x46D2 (ALDERLAKE_N)
[06:01:03] [PASSED] 0x46D3 (ALDERLAKE_N)
[06:01:03] [PASSED] 0x46D4 (ALDERLAKE_N)
[06:01:03] [PASSED] 0xA721 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7A1 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7A9 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7AC (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7AD (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA720 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7A0 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7A8 (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7AA (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA7AB (ALDERLAKE_P)
[06:01:03] [PASSED] 0xA780 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA781 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA782 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA783 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA788 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA789 (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA78A (ALDERLAKE_S)
[06:01:03] [PASSED] 0xA78B (ALDERLAKE_S)
[06:01:03] [PASSED] 0x4905 (DG1)
[06:01:03] [PASSED] 0x4906 (DG1)
[06:01:03] [PASSED] 0x4907 (DG1)
[06:01:03] [PASSED] 0x4908 (DG1)
[06:01:03] [PASSED] 0x4909 (DG1)
[06:01:03] [PASSED] 0x56C0 (DG2)
[06:01:03] [PASSED] 0x56C2 (DG2)
[06:01:03] [PASSED] 0x56C1 (DG2)
[06:01:03] [PASSED] 0x7D51 (METEORLAKE)
[06:01:03] [PASSED] 0x7DD1 (METEORLAKE)
[06:01:03] [PASSED] 0x7D41 (METEORLAKE)
[06:01:03] [PASSED] 0x7D67 (METEORLAKE)
[06:01:03] [PASSED] 0xB640 (METEORLAKE)
[06:01:03] [PASSED] 0x56A0 (DG2)
[06:01:03] [PASSED] 0x56A1 (DG2)
[06:01:03] [PASSED] 0x56A2 (DG2)
[06:01:03] [PASSED] 0x56BE (DG2)
[06:01:03] [PASSED] 0x56BF (DG2)
[06:01:03] [PASSED] 0x5690 (DG2)
[06:01:03] [PASSED] 0x5691 (DG2)
[06:01:03] [PASSED] 0x5692 (DG2)
[06:01:03] [PASSED] 0x56A5 (DG2)
[06:01:03] [PASSED] 0x56A6 (DG2)
[06:01:03] [PASSED] 0x56B0 (DG2)
[06:01:03] [PASSED] 0x56B1 (DG2)
[06:01:03] [PASSED] 0x56BA (DG2)
[06:01:03] [PASSED] 0x56BB (DG2)
[06:01:03] [PASSED] 0x56BC (DG2)
[06:01:03] [PASSED] 0x56BD (DG2)
[06:01:03] [PASSED] 0x5693 (DG2)
[06:01:03] [PASSED] 0x5694 (DG2)
[06:01:03] [PASSED] 0x5695 (DG2)
[06:01:03] [PASSED] 0x56A3 (DG2)
[06:01:03] [PASSED] 0x56A4 (DG2)
[06:01:03] [PASSED] 0x56B2 (DG2)
[06:01:03] [PASSED] 0x56B3 (DG2)
[06:01:03] [PASSED] 0x5696 (DG2)
[06:01:03] [PASSED] 0x5697 (DG2)
[06:01:03] [PASSED] 0xB69 (PVC)
[06:01:03] [PASSED] 0xB6E (PVC)
[06:01:03] [PASSED] 0xBD4 (PVC)
[06:01:03] [PASSED] 0xBD5 (PVC)
[06:01:03] [PASSED] 0xBD6 (PVC)
[06:01:03] [PASSED] 0xBD7 (PVC)
[06:01:03] [PASSED] 0xBD8 (PVC)
[06:01:03] [PASSED] 0xBD9 (PVC)
[06:01:03] [PASSED] 0xBDA (PVC)
[06:01:03] [PASSED] 0xBDB (PVC)
[06:01:03] [PASSED] 0xBE0 (PVC)
[06:01:03] [PASSED] 0xBE1 (PVC)
[06:01:03] [PASSED] 0xBE5 (PVC)
[06:01:03] [PASSED] 0x7D40 (METEORLAKE)
[06:01:03] [PASSED] 0x7D45 (METEORLAKE)
[06:01:03] [PASSED] 0x7D55 (METEORLAKE)
[06:01:03] [PASSED] 0x7D60 (METEORLAKE)
[06:01:03] [PASSED] 0x7DD5 (METEORLAKE)
[06:01:03] [PASSED] 0x6420 (LUNARLAKE)
[06:01:03] [PASSED] 0x64A0 (LUNARLAKE)
[06:01:03] [PASSED] 0x64B0 (LUNARLAKE)
[06:01:03] [PASSED] 0xE202 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE209 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE20B (BATTLEMAGE)
[06:01:03] [PASSED] 0xE20C (BATTLEMAGE)
[06:01:03] [PASSED] 0xE20D (BATTLEMAGE)
[06:01:03] [PASSED] 0xE210 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE211 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE212 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE216 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE220 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE221 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE222 (BATTLEMAGE)
[06:01:03] [PASSED] 0xE223 (BATTLEMAGE)
[06:01:03] [PASSED] 0xB080 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB081 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB082 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB083 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB084 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB085 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB086 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB087 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB08F (PANTHERLAKE)
[06:01:03] [PASSED] 0xB090 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB0A0 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB0A1 (PANTHERLAKE)
[06:01:03] [PASSED] 0xB0B0 (PANTHERLAKE)
[06:01:03] [PASSED] 0xFD80 (PANTHERLAKE)
[06:01:03] [PASSED] 0xFD81 (PANTHERLAKE)
[06:01:03] [PASSED] 0xD740 (NOVALAKE_S)
[06:01:03] [PASSED] 0xD741 (NOVALAKE_S)
[06:01:03] [PASSED] 0xD742 (NOVALAKE_S)
[06:01:03] [PASSED] 0xD743 (NOVALAKE_S)
[06:01:03] [PASSED] 0xD745 (NOVALAKE_S)
[06:01:03] [PASSED] 0xD74A (NOVALAKE_S)
[06:01:03] [PASSED] 0xD74B (NOVALAKE_S)
[06:01:03] [PASSED] 0x674C (CRESCENTISLAND)
[06:01:03] [PASSED] 0x674D (CRESCENTISLAND)
[06:01:03] [PASSED] 0x674E (CRESCENTISLAND)
[06:01:03] [PASSED] 0x674F (CRESCENTISLAND)
[06:01:03] [PASSED] 0x6750 (CRESCENTISLAND)
[06:01:03] [PASSED] 0x6751 (CRESCENTISLAND)
[06:01:03] [PASSED] 0xD750 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD751 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD752 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD753 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD754 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD755 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD756 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD757 (NOVALAKE_P)
[06:01:03] [PASSED] 0xD75F (NOVALAKE_P)
[06:01:03] =============== [PASSED] check_platform_desc ===============
[06:01:03] ===================== [PASSED] xe_pci ======================
[06:01:03] ============= xe_rtp_tables_test (5 subtests) ==============
[06:01:03] ================== xe_rtp_table_gt_test  ===================
[06:01:03] [PASSED] gt_was/14011060649
[06:01:03] [PASSED] gt_was/14011059788
[06:01:03] [PASSED] gt_was/14015795083
[06:01:03] [PASSED] gt_was/16021867713
[06:01:03] [PASSED] gt_was/14019449301
[06:01:03] [PASSED] gt_was/16028005424
[06:01:03] [PASSED] gt_was/14026578760
[06:01:03] [PASSED] gt_was/1409420604
[06:01:03] [PASSED] gt_was/1408615072
[06:01:03] [PASSED] gt_was/22010523718
[06:01:03] [PASSED] gt_was/14011006942
[06:01:03] [PASSED] gt_was/14014830051
[06:01:03] [PASSED] gt_was/18018781329
[06:01:03] [PASSED] gt_was/1509235366
[06:01:03] [PASSED] gt_was/18018781329
[06:01:03] [PASSED] gt_was/16016694945
[06:01:03] [PASSED] gt_was/14018575942
[06:01:03] [PASSED] gt_was/22016670082
[06:01:03] [PASSED] gt_was/22016670082
[06:01:03] [PASSED] gt_was/14017421178
[06:01:03] [PASSED] gt_was/16025250150
[06:01:03] [PASSED] gt_was/14021871409
[06:01:03] [PASSED] gt_was/16021865536
[06:01:03] [PASSED] gt_was/14021486841
[06:01:03] [PASSED] gt_was/14025160223
[06:01:03] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[06:01:03] [PASSED] gt_was/14025635424
[06:01:03] [PASSED] gt_was/16028005424
[06:01:03] ============== [PASSED] xe_rtp_table_gt_test ===============
[06:01:03] ================== xe_rtp_table_gt_test  ===================
[06:01:03] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[06:01:03] [PASSED] gt_tunings/Tuning: 32B Access Enable
[06:01:03] [PASSED] gt_tunings/Tuning: L3 cache
[06:01:03] [PASSED] gt_tunings/Tuning: L3 cache - media
[06:01:03] [PASSED] gt_tunings/Tuning: Compression Overfetch
[06:01:03] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[06:01:03] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[06:01:03] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[06:01:03] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[06:01:03] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[06:01:03] [PASSED] gt_tunings/Tuning: Stateless compression control
[06:01:03] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[06:01:03] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[06:01:03] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[06:01:03] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[06:01:03] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[06:01:03] ============== [PASSED] xe_rtp_table_gt_test ===============
[06:01:03] ================== xe_rtp_table_oob_test  ==================
[06:01:03] [PASSED] oob_was/1607983814
[06:01:03] [PASSED] oob_was/16010904313
[06:01:03] [PASSED] oob_was/18022495364
[06:01:03] [PASSED] oob_was/22012773006
[06:01:03] [PASSED] oob_was/14014475959
[06:01:03] [PASSED] oob_was/22011391025
[06:01:03] [PASSED] oob_was/22012727170
[06:01:03] [PASSED] oob_was/22012727685
[06:01:03] [PASSED] oob_was/22016596838
[06:01:03] [PASSED] oob_was/18020744125
[06:01:03] [PASSED] oob_was/1409600907
[06:01:03] [PASSED] oob_was/22014953428
[06:01:03] [PASSED] oob_was/16017236439
[06:01:03] [PASSED] oob_was/14019821291
[06:01:03] [PASSED] oob_was/14015076503
[06:01:03] [PASSED] oob_was/22016122933
[06:01:03] [PASSED] oob_was/14018913170
[06:01:03] [PASSED] oob_was/14018094691
[06:01:03] [PASSED] oob_was/18024947630
[06:01:03] [PASSED] oob_was/16022287689
[06:01:03] [PASSED] oob_was/13011645652
[06:01:03] [PASSED] oob_was/14022293748
[06:01:03] [PASSED] oob_was/22019794406
[06:01:03] [PASSED] oob_was/22019338487
[06:01:03] [PASSED] oob_was/16023588340
[06:01:03] [PASSED] oob_was/14019789679
[06:01:03] [PASSED] oob_was/14022866841
[06:01:03] [PASSED] oob_was/16021333562
[06:01:03] [PASSED] oob_was/14016712196
[06:01:03] [PASSED] oob_was/14015568240
[06:01:03] [PASSED] oob_was/18013179988
[06:01:03] [PASSED] oob_was/1508761755
[06:01:03] [PASSED] oob_was/16023105232
[06:01:03] [PASSED] oob_was/16026508708
[06:01:03] [PASSED] oob_was/14020001231
[06:01:03] [PASSED] oob_was/16023683509
[06:01:03] [PASSED] oob_was/14025515070
[06:01:03] [PASSED] oob_was/15015404425_disable
[06:01:03] [PASSED] oob_was/16026007364
[06:01:03] [PASSED] oob_was/14020316580
[06:01:03] [PASSED] oob_was/14025883347
[06:01:03] [PASSED] oob_was/16029380221
[06:01:03] [PASSED] oob_was/22022079272
[06:01:03] [PASSED] oob_was/16029897822
[06:01:03] [PASSED] oob_was/14027054324
[06:01:03] [PASSED] oob_was/14025941587
[06:01:03] [PASSED] oob_was/16030224309
[06:01:03] ============== [PASSED] xe_rtp_table_oob_test ==============
[06:01:03] ================ xe_rtp_table_dev_oob_test  ================
[06:01:03] [PASSED] device_oob_was/22010954014
[06:01:03] [PASSED] device_oob_was/15015404425
[06:01:03] [PASSED] device_oob_was/22019338487_display
[06:01:03] [PASSED] device_oob_was/14022085890
[06:01:03] [PASSED] device_oob_was/14026539277
[06:01:03] [PASSED] device_oob_was/14026633728
[06:01:03] [PASSED] device_oob_was/14026746987
[06:01:03] [PASSED] device_oob_was/14026779378
[06:01:03] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[06:01:03] ========== xe_rtp_table_missing_upper_bound_test  ==========
[06:01:03] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[06:01:03] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[06:01:03] [PASSED] register_whitelist/1806527549
[06:01:03] [PASSED] register_whitelist/allow_read_ctx_timestamp
[06:01:03] [PASSED] register_whitelist/allow_read_queue_timestamp
[06:01:03] [PASSED] register_whitelist/16014440446
[06:01:03] [PASSED] register_whitelist/16017236439
[06:01:03] [PASSED] register_whitelist/16020183090
[06:01:03] [PASSED] register_whitelist/14024997852
[06:01:03] [PASSED] register_whitelist/14024997852
[06:01:03] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[06:01:03] =============== [PASSED] xe_rtp_tables_test ================
[06:01:03] =================== xe_rtp (3 subtests) ====================
[06:01:03] =================== xe_rtp_rules_tests  ====================
[06:01:03] [PASSED] no
[06:01:03] [PASSED] yes
[06:01:03] [PASSED] no-and-no
[06:01:03] [PASSED] no-and-yes
[06:01:03] [PASSED] yes-and-no
[06:01:03] [PASSED] yes-and-yes
[06:01:03] [PASSED] no-or-no
[06:01:03] [PASSED] no-or-yes
[06:01:03] [PASSED] yes-or-no
[06:01:03] [PASSED] yes-or-yes
[06:01:03] [PASSED] no-yes-or-yes-no
[06:01:03] [PASSED] no-yes-or-yes-yes
[06:01:03] [PASSED] yes-yes-or-no-yes
[06:01:03] [PASSED] yes-yes-or-yes-yes
[06:01:03] [PASSED] no-no-or-yes-or-no
[06:01:03] [PASSED] or
[06:01:03] [PASSED] or-yes
[06:01:03] [PASSED] or-no
[06:01:03] [PASSED] yes-or
[06:01:03] [PASSED] no-or
[06:01:03] [PASSED] no-or-or-yes
[06:01:03] [PASSED] yes-or-or-no
[06:01:03] [PASSED] no-or-or-no
[06:01:03] [PASSED] missing-context-engine-class
[06:01:03] [PASSED] missing-context-engine-class-or-yes
[06:01:03] [PASSED] missing-context-engine-class-or-or-yes
[06:01:03] =============== [PASSED] xe_rtp_rules_tests ================
[06:01:03] =============== xe_rtp_process_to_sr_tests  ================
[06:01:03] [PASSED] coalesce-same-reg
[06:01:03] [PASSED] coalesce-same-reg-literal-and-func
[06:01:03] [PASSED] no-match-no-add
[06:01:03] [PASSED] two-regs-two-entries
[06:01:03] [PASSED] clr-one-set-other
[06:01:03] [PASSED] set-field
[06:01:03] [PASSED] conflict-duplicate
[06:01:03] [PASSED] conflict-not-disjoint
[06:01:03] [PASSED] conflict-not-disjoint-literal-and-func
[06:01:03] [PASSED] conflict-reg-type
[06:01:03] [PASSED] bad-mcr-reg-forced-to-regular
[06:01:03] [PASSED] bad-regular-reg-forced-to-mcr
[06:01:03] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[06:01:03] ================== xe_rtp_process_tests  ===================
[06:01:03] [PASSED] active1
[06:01:03] [PASSED] active2
[06:01:03] [PASSED] active-inactive
[06:01:03] [PASSED] inactive-active
[06:01:03] [PASSED] inactive-active-inactive
[06:01:03] [PASSED] inactive-inactive-inactive
[06:01:03] ============== [PASSED] xe_rtp_process_tests ===============
[06:01:03] ===================== [PASSED] xe_rtp ======================
[06:01:03] ==================== xe_wa (1 subtest) =====================
[06:01:03] ======================== xe_wa_gt  =========================
[06:01:03] [PASSED] TIGERLAKE B0
[06:01:03] [PASSED] DG1 A0
[06:01:03] [PASSED] DG1 B0
[06:01:03] [PASSED] ALDERLAKE_S A0
[06:01:03] [PASSED] ALDERLAKE_S B0
[06:01:03] [PASSED] ALDERLAKE_S C0
[06:01:03] [PASSED] ALDERLAKE_S D0
[06:01:03] [PASSED] ALDERLAKE_P A0
[06:01:03] [PASSED] ALDERLAKE_P B0
[06:01:03] [PASSED] ALDERLAKE_P C0
[06:01:03] [PASSED] ALDERLAKE_S RPLS D0
[06:01:03] [PASSED] ALDERLAKE_P RPLU E0
[06:01:03] [PASSED] DG2 G10 C0
[06:01:03] [PASSED] DG2 G11 B1
[06:01:03] [PASSED] DG2 G12 A1
[06:01:03] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[06:01:03] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[06:01:03] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[06:01:03] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[06:01:03] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[06:01:03] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[06:01:03] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[06:01:03] ==================== [PASSED] xe_wa_gt =====================
[06:01:03] ====================== [PASSED] xe_wa ======================
[06:01:03] ============================================================
[06:01:03] Testing complete. Ran 821 tests: passed: 793, skipped: 28
[06:01:03] Elapsed time: 37.283s total, 1.877s configuring, 34.688s building, 0.709s 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
[06:01:03] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:01: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
[06:01:31] Starting KUnit Kernel (1/1)...
[06:01:31] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:01:31] ============ drm_test_pick_cmdline (2 subtests) ============
[06:01:31] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[06:01:31] =============== drm_test_pick_cmdline_named  ===============
[06:01:31] [PASSED] NTSC
[06:01:31] [PASSED] NTSC-J
[06:01:31] [PASSED] PAL
[06:01:31] [PASSED] PAL-M
[06:01:31] =========== [PASSED] drm_test_pick_cmdline_named ===========
[06:01:31] ============== [PASSED] drm_test_pick_cmdline ==============
[06:01:31] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[06:01:31] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[06:01:31] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[06:01:31] =========== drm_validate_clone_mode (2 subtests) ===========
[06:01:31] ============== drm_test_check_in_clone_mode  ===============
[06:01:31] [PASSED] in_clone_mode
[06:01:31] [PASSED] not_in_clone_mode
[06:01:31] ========== [PASSED] drm_test_check_in_clone_mode ===========
[06:01:31] =============== drm_test_check_valid_clones  ===============
[06:01:31] [PASSED] not_in_clone_mode
[06:01:31] [PASSED] valid_clone
[06:01:31] [PASSED] invalid_clone
[06:01:31] =========== [PASSED] drm_test_check_valid_clones ===========
[06:01:31] ============= [PASSED] drm_validate_clone_mode =============
[06:01:31] ============= drm_validate_modeset (1 subtest) =============
[06:01:31] [PASSED] drm_test_check_connector_changed_modeset
[06:01:31] ============== [PASSED] drm_validate_modeset ===============
[06:01:31] ====== drm_test_bridge_get_current_state (1 subtest) =======
[06:01:31] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[06:01:31] ======== [PASSED] drm_test_bridge_get_current_state ========
[06:01:31] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[06:01:31] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[06:01:31] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[06:01:31] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[06:01:31] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[06:01:31] ============== drm_bridge_alloc (2 subtests) ===============
[06:01:31] [PASSED] drm_test_drm_bridge_alloc_basic
[06:01:31] [PASSED] drm_test_drm_bridge_alloc_get_put
[06:01:31] ================ [PASSED] drm_bridge_alloc =================
[06:01:31] ============= drm_bridge_bus_fmt (5 subtests) ==============
[06:01:31] [PASSED] drm_test_bridge_rgb_yuv_rgb
[06:01:31] [PASSED] drm_test_bridge_must_convert_to_yuv444
[06:01:31] [PASSED] drm_test_bridge_hdmi_auto_rgb
[06:01:31] [PASSED] drm_test_bridge_auto_first
[06:01:31] [PASSED] drm_test_bridge_rgb_yuv_no_path
[06:01:31] =============== [PASSED] drm_bridge_bus_fmt ================
[06:01:31] ============= drm_cmdline_parser (40 subtests) =============
[06:01:31] [PASSED] drm_test_cmdline_force_d_only
[06:01:31] [PASSED] drm_test_cmdline_force_D_only_dvi
[06:01:31] [PASSED] drm_test_cmdline_force_D_only_hdmi
[06:01:31] [PASSED] drm_test_cmdline_force_D_only_not_digital
[06:01:31] [PASSED] drm_test_cmdline_force_e_only
[06:01:31] [PASSED] drm_test_cmdline_res
[06:01:31] [PASSED] drm_test_cmdline_res_vesa
[06:01:31] [PASSED] drm_test_cmdline_res_vesa_rblank
[06:01:31] [PASSED] drm_test_cmdline_res_rblank
[06:01:31] [PASSED] drm_test_cmdline_res_bpp
[06:01:31] [PASSED] drm_test_cmdline_res_refresh
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[06:01:31] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[06:01:31] [PASSED] drm_test_cmdline_res_margins_force_on
[06:01:31] [PASSED] drm_test_cmdline_res_vesa_margins
[06:01:31] [PASSED] drm_test_cmdline_name
[06:01:31] [PASSED] drm_test_cmdline_name_bpp
[06:01:31] [PASSED] drm_test_cmdline_name_option
[06:01:31] [PASSED] drm_test_cmdline_name_bpp_option
[06:01:31] [PASSED] drm_test_cmdline_rotate_0
[06:01:31] [PASSED] drm_test_cmdline_rotate_90
[06:01:31] [PASSED] drm_test_cmdline_rotate_180
[06:01:31] [PASSED] drm_test_cmdline_rotate_270
[06:01:31] [PASSED] drm_test_cmdline_hmirror
[06:01:31] [PASSED] drm_test_cmdline_vmirror
[06:01:31] [PASSED] drm_test_cmdline_margin_options
[06:01:31] [PASSED] drm_test_cmdline_multiple_options
[06:01:31] [PASSED] drm_test_cmdline_bpp_extra_and_option
[06:01:31] [PASSED] drm_test_cmdline_extra_and_option
[06:01:31] [PASSED] drm_test_cmdline_freestanding_options
[06:01:31] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[06:01:31] [PASSED] drm_test_cmdline_panel_orientation
[06:01:31] ================ drm_test_cmdline_invalid  =================
[06:01:31] [PASSED] margin_only
[06:01:31] [PASSED] interlace_only
[06:01:31] [PASSED] res_missing_x
[06:01:31] [PASSED] res_missing_y
[06:01:31] [PASSED] res_bad_y
[06:01:31] [PASSED] res_missing_y_bpp
[06:01:31] [PASSED] res_bad_bpp
[06:01:31] [PASSED] res_bad_refresh
[06:01:31] [PASSED] res_bpp_refresh_force_on_off
[06:01:31] [PASSED] res_invalid_mode
[06:01:31] [PASSED] res_bpp_wrong_place_mode
[06:01:31] [PASSED] name_bpp_refresh
[06:01:31] [PASSED] name_refresh
[06:01:31] [PASSED] name_refresh_wrong_mode
[06:01:31] [PASSED] name_refresh_invalid_mode
[06:01:31] [PASSED] rotate_multiple
[06:01:31] [PASSED] rotate_invalid_val
[06:01:31] [PASSED] rotate_truncated
[06:01:31] [PASSED] invalid_option
[06:01:31] [PASSED] invalid_tv_option
[06:01:31] [PASSED] truncated_tv_option
[06:01:31] ============ [PASSED] drm_test_cmdline_invalid =============
[06:01:31] =============== drm_test_cmdline_tv_options  ===============
[06:01:31] [PASSED] NTSC
[06:01:31] [PASSED] NTSC_443
[06:01:31] [PASSED] NTSC_J
[06:01:31] [PASSED] PAL
[06:01:31] [PASSED] PAL_M
[06:01:31] [PASSED] PAL_N
[06:01:31] [PASSED] SECAM
[06:01:31] [PASSED] MONO_525
[06:01:31] [PASSED] MONO_625
[06:01:31] =========== [PASSED] drm_test_cmdline_tv_options ===========
[06:01:31] =============== [PASSED] drm_cmdline_parser ================
[06:01:31] ========== drmm_connector_hdmi_init (20 subtests) ==========
[06:01:31] [PASSED] drm_test_connector_hdmi_init_valid
[06:01:31] [PASSED] drm_test_connector_hdmi_init_bpc_8
[06:01:31] [PASSED] drm_test_connector_hdmi_init_bpc_10
[06:01:31] [PASSED] drm_test_connector_hdmi_init_bpc_12
[06:01:31] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[06:01:31] [PASSED] drm_test_connector_hdmi_init_bpc_null
[06:01:31] [PASSED] drm_test_connector_hdmi_init_formats_empty
[06:01:31] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[06:01:31] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[06:01:31] [PASSED] supported_formats=0x9 yuv420_allowed=1
[06:01:31] [PASSED] supported_formats=0x9 yuv420_allowed=0
[06:01:31] [PASSED] supported_formats=0x5 yuv420_allowed=1
[06:01:31] [PASSED] supported_formats=0x5 yuv420_allowed=0
[06:01:31] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[06:01:31] [PASSED] drm_test_connector_hdmi_init_null_ddc
[06:01:31] [PASSED] drm_test_connector_hdmi_init_null_product
[06:01:31] [PASSED] drm_test_connector_hdmi_init_null_vendor
[06:01:31] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[06:01:31] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[06:01:31] [PASSED] drm_test_connector_hdmi_init_product_valid
[06:01:31] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[06:01:31] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[06:01:31] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[06:01:31] ========= drm_test_connector_hdmi_init_type_valid  =========
[06:01:31] [PASSED] HDMI-A
[06:01:31] [PASSED] HDMI-B
[06:01:31] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[06:01:31] ======== drm_test_connector_hdmi_init_type_invalid  ========
[06:01:31] [PASSED] Unknown
[06:01:31] [PASSED] VGA
[06:01:31] [PASSED] DVI-I
[06:01:31] [PASSED] DVI-D
[06:01:31] [PASSED] DVI-A
[06:01:31] [PASSED] Composite
[06:01:31] [PASSED] SVIDEO
[06:01:31] [PASSED] LVDS
[06:01:31] [PASSED] Component
[06:01:31] [PASSED] DIN
[06:01:31] [PASSED] DP
[06:01:31] [PASSED] TV
[06:01:31] [PASSED] eDP
[06:01:31] [PASSED] Virtual
[06:01:31] [PASSED] DSI
[06:01:31] [PASSED] DPI
[06:01:31] [PASSED] Writeback
[06:01:31] [PASSED] SPI
[06:01:31] [PASSED] USB
[06:01:31] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[06:01:31] ============ [PASSED] drmm_connector_hdmi_init =============
[06:01:31] ============= drmm_connector_init (3 subtests) =============
[06:01:31] [PASSED] drm_test_drmm_connector_init
[06:01:31] [PASSED] drm_test_drmm_connector_init_null_ddc
[06:01:31] ========= drm_test_drmm_connector_init_type_valid  =========
[06:01:31] [PASSED] Unknown
[06:01:31] [PASSED] VGA
[06:01:31] [PASSED] DVI-I
[06:01:31] [PASSED] DVI-D
[06:01:31] [PASSED] DVI-A
[06:01:31] [PASSED] Composite
[06:01:31] [PASSED] SVIDEO
[06:01:31] [PASSED] LVDS
[06:01:31] [PASSED] Component
[06:01:31] [PASSED] DIN
[06:01:31] [PASSED] DP
[06:01:31] [PASSED] HDMI-A
[06:01:31] [PASSED] HDMI-B
[06:01:31] [PASSED] TV
[06:01:31] [PASSED] eDP
[06:01:31] [PASSED] Virtual
[06:01:31] [PASSED] DSI
[06:01:31] [PASSED] DPI
[06:01:31] [PASSED] Writeback
[06:01:31] [PASSED] SPI
[06:01:31] [PASSED] USB
[06:01:31] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[06:01:31] =============== [PASSED] drmm_connector_init ===============
[06:01:31] ========= drm_connector_dynamic_init (6 subtests) ==========
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_init
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_init_properties
[06:01:31] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[06:01:31] [PASSED] Unknown
[06:01:31] [PASSED] VGA
[06:01:31] [PASSED] DVI-I
[06:01:31] [PASSED] DVI-D
[06:01:31] [PASSED] DVI-A
[06:01:31] [PASSED] Composite
[06:01:31] [PASSED] SVIDEO
[06:01:31] [PASSED] LVDS
[06:01:31] [PASSED] Component
[06:01:31] [PASSED] DIN
[06:01:31] [PASSED] DP
[06:01:31] [PASSED] HDMI-A
[06:01:31] [PASSED] HDMI-B
[06:01:31] [PASSED] TV
[06:01:31] [PASSED] eDP
[06:01:31] [PASSED] Virtual
[06:01:31] [PASSED] DSI
[06:01:31] [PASSED] DPI
[06:01:31] [PASSED] Writeback
[06:01:31] [PASSED] SPI
[06:01:31] [PASSED] USB
[06:01:31] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[06:01:31] ======== drm_test_drm_connector_dynamic_init_name  =========
[06:01:31] [PASSED] Unknown
[06:01:31] [PASSED] VGA
[06:01:31] [PASSED] DVI-I
[06:01:31] [PASSED] DVI-D
[06:01:31] [PASSED] DVI-A
[06:01:31] [PASSED] Composite
[06:01:31] [PASSED] SVIDEO
[06:01:31] [PASSED] LVDS
[06:01:31] [PASSED] Component
[06:01:31] [PASSED] DIN
[06:01:31] [PASSED] DP
[06:01:31] [PASSED] HDMI-A
[06:01:31] [PASSED] HDMI-B
[06:01:31] [PASSED] TV
[06:01:31] [PASSED] eDP
[06:01:31] [PASSED] Virtual
[06:01:31] [PASSED] DSI
[06:01:31] [PASSED] DPI
[06:01:31] [PASSED] Writeback
[06:01:31] [PASSED] SPI
[06:01:31] [PASSED] USB
[06:01:31] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[06:01:31] =========== [PASSED] drm_connector_dynamic_init ============
[06:01:31] ==== drm_connector_dynamic_register_early (4 subtests) =====
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[06:01:31] ====== [PASSED] drm_connector_dynamic_register_early =======
[06:01:31] ======= drm_connector_dynamic_register (7 subtests) ========
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[06:01:31] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[06:01:31] ========= [PASSED] drm_connector_dynamic_register ==========
[06:01:31] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[06:01:31] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[06:01:31] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[06:01:31] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[06:01:31] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[06:01:31] ========== drm_test_get_tv_mode_from_name_valid  ===========
[06:01:31] [PASSED] NTSC
[06:01:31] [PASSED] NTSC-443
[06:01:31] [PASSED] NTSC-J
[06:01:31] [PASSED] PAL
[06:01:31] [PASSED] PAL-M
[06:01:31] [PASSED] PAL-N
[06:01:31] [PASSED] SECAM
[06:01:31] [PASSED] Mono
[06:01:31] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[06:01:31] [PASSED] drm_test_get_tv_mode_from_name_truncated
[06:01:31] ============ [PASSED] drm_get_tv_mode_from_name ============
[06:01:31] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[06:01:31] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[06:01:31] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[06:01:31] [PASSED] VIC 96
[06:01:31] [PASSED] VIC 97
[06:01:31] [PASSED] VIC 101
[06:01:31] [PASSED] VIC 102
[06:01:31] [PASSED] VIC 106
[06:01:31] [PASSED] VIC 107
[06:01:31] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[06:01:31] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[06:01:31] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[06:01:31] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[06:01:31] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[06:01:31] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[06:01:31] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[06:01:31] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[06:01:31] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[06:01:31] [PASSED] Automatic
[06:01:31] [PASSED] Full
[06:01:31] [PASSED] Limited 16:235
[06:01:31] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[06:01:31] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[06:01:31] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[06:01:31] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[06:01:31] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[06:01:31] [PASSED] RGB
[06:01:31] [PASSED] YUV 4:2:0
[06:01:31] [PASSED] YUV 4:2:2
[06:01:31] [PASSED] YUV 4:4:4
[06:01:31] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[06:01:31] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[06:01:31] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[06:01:31] ============= drm_damage_helper (21 subtests) ==============
[06:01:31] [PASSED] drm_test_damage_iter_no_damage
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_src_moved
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_not_visible
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[06:01:31] [PASSED] drm_test_damage_iter_no_damage_no_fb
[06:01:31] [PASSED] drm_test_damage_iter_simple_damage
[06:01:31] [PASSED] drm_test_damage_iter_single_damage
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_outside_src
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_src_moved
[06:01:31] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[06:01:31] [PASSED] drm_test_damage_iter_damage
[06:01:31] [PASSED] drm_test_damage_iter_damage_one_intersect
[06:01:31] [PASSED] drm_test_damage_iter_damage_one_outside
[06:01:31] [PASSED] drm_test_damage_iter_damage_src_moved
[06:01:31] [PASSED] drm_test_damage_iter_damage_not_visible
[06:01:31] ================ [PASSED] drm_damage_helper ================
[06:01:31] ============== drm_dp_mst_helper (3 subtests) ==============
[06:01:31] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[06:01:31] [PASSED] Clock 154000 BPP 30 DSC disabled
[06:01:31] [PASSED] Clock 234000 BPP 30 DSC disabled
[06:01:31] [PASSED] Clock 297000 BPP 24 DSC disabled
[06:01:31] [PASSED] Clock 332880 BPP 24 DSC enabled
[06:01:31] [PASSED] Clock 324540 BPP 24 DSC enabled
[06:01:31] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[06:01:31] ============== drm_test_dp_mst_calc_pbn_div  ===============
[06:01:31] [PASSED] Link rate 2000000 lane count 4
[06:01:31] [PASSED] Link rate 2000000 lane count 2
[06:01:31] [PASSED] Link rate 2000000 lane count 1
[06:01:31] [PASSED] Link rate 1350000 lane count 4
[06:01:31] [PASSED] Link rate 1350000 lane count 2
[06:01:31] [PASSED] Link rate 1350000 lane count 1
[06:01:31] [PASSED] Link rate 1000000 lane count 4
[06:01:31] [PASSED] Link rate 1000000 lane count 2
[06:01:31] [PASSED] Link rate 1000000 lane count 1
[06:01:31] [PASSED] Link rate 810000 lane count 4
[06:01:31] [PASSED] Link rate 810000 lane count 2
[06:01:31] [PASSED] Link rate 810000 lane count 1
[06:01:31] [PASSED] Link rate 540000 lane count 4
[06:01:31] [PASSED] Link rate 540000 lane count 2
[06:01:31] [PASSED] Link rate 540000 lane count 1
[06:01:31] [PASSED] Link rate 270000 lane count 4
[06:01:31] [PASSED] Link rate 270000 lane count 2
[06:01:31] [PASSED] Link rate 270000 lane count 1
[06:01:31] [PASSED] Link rate 162000 lane count 4
[06:01:31] [PASSED] Link rate 162000 lane count 2
[06:01:31] [PASSED] Link rate 162000 lane count 1
[06:01:31] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[06:01:31] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[06:01:31] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[06:01:31] [PASSED] DP_POWER_UP_PHY with port number
[06:01:31] [PASSED] DP_POWER_DOWN_PHY with port number
[06:01:31] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[06:01:31] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[06:01:31] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[06:01:31] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[06:01:31] [PASSED] DP_QUERY_PAYLOAD with port number
[06:01:31] [PASSED] DP_QUERY_PAYLOAD with VCPI
[06:01:31] [PASSED] DP_REMOTE_DPCD_READ with port number
[06:01:31] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[06:01:31] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[06:01:31] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[06:01:31] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[06:01:31] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[06:01:31] [PASSED] DP_REMOTE_I2C_READ with port number
[06:01:31] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[06:01:31] [PASSED] DP_REMOTE_I2C_READ with transactions array
[06:01:31] [PASSED] DP_REMOTE_I2C_WRITE with port number
[06:01:31] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[06:01:31] [PASSED] DP_REMOTE_I2C_WRITE with data array
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[06:01:31] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[06:01:31] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[06:01:31] ================ [PASSED] drm_dp_mst_helper ================
[06:01:31] ================== drm_exec (7 subtests) ===================
[06:01:31] [PASSED] sanitycheck
[06:01:31] [PASSED] test_lock
[06:01:31] [PASSED] test_lock_unlock
[06:01:31] [PASSED] test_duplicates
[06:01:31] [PASSED] test_prepare
[06:01:31] [PASSED] test_prepare_array
[06:01:31] [PASSED] test_multiple_loops
[06:01:31] ==================== [PASSED] drm_exec =====================
[06:01:31] =========== drm_format_helper_test (17 subtests) ===========
[06:01:31] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[06:01:31] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[06:01:31] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[06:01:31] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[06:01:31] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[06:01:31] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[06:01:31] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[06:01:31] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[06:01:31] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[06:01:31] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[06:01:31] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[06:01:31] ============== drm_test_fb_xrgb8888_to_mono  ===============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[06:01:31] ==================== drm_test_fb_swab  =====================
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ================ [PASSED] drm_test_fb_swab =================
[06:01:31] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[06:01:31] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[06:01:31] [PASSED] single_pixel_source_buffer
[06:01:31] [PASSED] single_pixel_clip_rectangle
[06:01:31] [PASSED] well_known_colors
[06:01:31] [PASSED] destination_pitch
[06:01:31] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[06:01:31] ================= drm_test_fb_clip_offset  =================
[06:01:31] [PASSED] pass through
[06:01:31] [PASSED] horizontal offset
[06:01:31] [PASSED] vertical offset
[06:01:31] [PASSED] horizontal and vertical offset
[06:01:31] [PASSED] horizontal offset (custom pitch)
[06:01:31] [PASSED] vertical offset (custom pitch)
[06:01:31] [PASSED] horizontal and vertical offset (custom pitch)
[06:01:31] ============= [PASSED] drm_test_fb_clip_offset =============
[06:01:31] =================== drm_test_fb_memcpy  ====================
[06:01:31] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[06:01:31] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[06:01:31] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[06:01:31] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[06:01:31] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[06:01:31] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[06:01:31] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[06:01:31] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[06:01:31] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[06:01:31] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[06:01:31] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[06:01:31] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[06:01:31] =============== [PASSED] drm_test_fb_memcpy ================
[06:01:31] ============= [PASSED] drm_format_helper_test ==============
[06:01:31] ================= drm_format (18 subtests) =================
[06:01:31] [PASSED] drm_test_format_block_width_invalid
[06:01:31] [PASSED] drm_test_format_block_width_one_plane
[06:01:31] [PASSED] drm_test_format_block_width_two_plane
[06:01:31] [PASSED] drm_test_format_block_width_three_plane
[06:01:31] [PASSED] drm_test_format_block_width_tiled
[06:01:31] [PASSED] drm_test_format_block_height_invalid
[06:01:31] [PASSED] drm_test_format_block_height_one_plane
[06:01:31] [PASSED] drm_test_format_block_height_two_plane
[06:01:31] [PASSED] drm_test_format_block_height_three_plane
[06:01:31] [PASSED] drm_test_format_block_height_tiled
[06:01:31] [PASSED] drm_test_format_min_pitch_invalid
[06:01:31] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[06:01:31] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[06:01:31] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[06:01:31] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[06:01:31] [PASSED] drm_test_format_min_pitch_two_plane
[06:01:31] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[06:01:31] [PASSED] drm_test_format_min_pitch_tiled
[06:01:31] =================== [PASSED] drm_format ====================
[06:01:31] ============== drm_framebuffer (10 subtests) ===============
[06:01:31] ========== drm_test_framebuffer_check_src_coords  ==========
[06:01:31] [PASSED] Success: source fits into fb
[06:01:31] [PASSED] Fail: overflowing fb with x-axis coordinate
[06:01:31] [PASSED] Fail: overflowing fb with y-axis coordinate
[06:01:31] [PASSED] Fail: overflowing fb with source width
[06:01:31] [PASSED] Fail: overflowing fb with source height
[06:01:31] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[06:01:31] [PASSED] drm_test_framebuffer_cleanup
[06:01:31] =============== drm_test_framebuffer_create  ===============
[06:01:31] [PASSED] ABGR8888 normal sizes
[06:01:31] [PASSED] ABGR8888 max sizes
[06:01:31] [PASSED] ABGR8888 pitch greater than min required
[06:01:31] [PASSED] ABGR8888 pitch less than min required
[06:01:31] [PASSED] ABGR8888 Invalid width
[06:01:31] [PASSED] ABGR8888 Invalid buffer handle
[06:01:31] [PASSED] No pixel format
[06:01:31] [PASSED] ABGR8888 Width 0
[06:01:31] [PASSED] ABGR8888 Height 0
[06:01:31] [PASSED] ABGR8888 Out of bound height * pitch combination
[06:01:31] [PASSED] ABGR8888 Large buffer offset
[06:01:31] [PASSED] ABGR8888 Buffer offset for inexistent plane
[06:01:31] [PASSED] ABGR8888 Invalid flag
[06:01:31] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[06:01:31] [PASSED] ABGR8888 Valid buffer modifier
[06:01:31] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[06:01:31] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] NV12 Normal sizes
[06:01:31] [PASSED] NV12 Max sizes
[06:01:31] [PASSED] NV12 Invalid pitch
[06:01:31] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[06:01:31] [PASSED] NV12 different  modifier per-plane
[06:01:31] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[06:01:31] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] NV12 Modifier for inexistent plane
[06:01:31] [PASSED] NV12 Handle for inexistent plane
[06:01:31] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[06:01:31] [PASSED] YVU420 Normal sizes
[06:01:31] [PASSED] YVU420 Max sizes
[06:01:31] [PASSED] YVU420 Invalid pitch
[06:01:31] [PASSED] YVU420 Different pitches
[06:01:31] [PASSED] YVU420 Different buffer offsets/pitches
[06:01:31] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[06:01:31] [PASSED] YVU420 Valid modifier
[06:01:31] [PASSED] YVU420 Different modifiers per plane
[06:01:31] [PASSED] YVU420 Modifier for inexistent plane
[06:01:31] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[06:01:31] [PASSED] X0L2 Normal sizes
[06:01:31] [PASSED] X0L2 Max sizes
[06:01:31] [PASSED] X0L2 Invalid pitch
[06:01:31] [PASSED] X0L2 Pitch greater than minimum required
[06:01:31] [PASSED] X0L2 Handle for inexistent plane
[06:01:31] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[06:01:31] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[06:01:31] [PASSED] X0L2 Valid modifier
[06:01:31] [PASSED] X0L2 Modifier for inexistent plane
[06:01:31] =========== [PASSED] drm_test_framebuffer_create ===========
[06:01:31] [PASSED] drm_test_framebuffer_free
[06:01:31] [PASSED] drm_test_framebuffer_init
[06:01:31] [PASSED] drm_test_framebuffer_init_bad_format
[06:01:31] [PASSED] drm_test_framebuffer_init_dev_mismatch
[06:01:31] [PASSED] drm_test_framebuffer_lookup
[06:01:31] [PASSED] drm_test_framebuffer_lookup_inexistent
[06:01:31] [PASSED] drm_test_framebuffer_modifiers_not_supported
[06:01:31] ================= [PASSED] drm_framebuffer =================
[06:01:31] ================ drm_gem_shmem (8 subtests) ================
[06:01:31] [PASSED] drm_gem_shmem_test_obj_create
[06:01:31] [PASSED] drm_gem_shmem_test_obj_create_private
[06:01:31] [PASSED] drm_gem_shmem_test_pin_pages
[06:01:31] [PASSED] drm_gem_shmem_test_vmap
[06:01:31] [PASSED] drm_gem_shmem_test_get_sg_table
[06:01:31] [PASSED] drm_gem_shmem_test_get_pages_sgt
[06:01:31] [PASSED] drm_gem_shmem_test_madvise
[06:01:31] [PASSED] drm_gem_shmem_test_purge
[06:01:31] ================== [PASSED] drm_gem_shmem ==================
[06:01:31] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[06:01:31] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[06:01:31] [PASSED] Automatic
[06:01:31] [PASSED] Full
[06:01:31] [PASSED] Limited 16:235
[06:01:31] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[06:01:31] [PASSED] drm_test_check_disable_connector
[06:01:31] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[06:01:31] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[06:01:31] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[06:01:31] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[06:01:31] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[06:01:31] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[06:01:31] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[06:01:31] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[06:01:31] [PASSED] drm_test_check_output_bpc_dvi
[06:01:31] [PASSED] drm_test_check_output_bpc_format_vic_1
[06:01:31] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[06:01:31] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[06:01:31] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[06:01:31] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[06:01:31] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[06:01:31] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[06:01:31] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[06:01:31] ============ drm_test_check_hdmi_color_format  =============
[06:01:31] [PASSED] AUTO -> RGB
[06:01:31] [PASSED] YCBCR422 -> YUV422
[06:01:31] [PASSED] YCBCR420 -> YUV420
[06:01:31] [PASSED] YCBCR444 -> YUV444
[06:01:31] [PASSED] RGB -> RGB
[06:01:31] ======== [PASSED] drm_test_check_hdmi_color_format =========
[06:01:31] ======== drm_test_check_hdmi_color_format_420_only  ========
[06:01:31] [PASSED] RGB should fail
[06:01:31] [PASSED] YUV444 should fail
[06:01:31] [PASSED] YUV422 should fail
[06:01:31] [PASSED] YUV420 should work
[06:01:31] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[06:01:31] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[06:01:31] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[06:01:31] [PASSED] drm_test_check_broadcast_rgb_value
[06:01:31] [PASSED] drm_test_check_bpc_8_value
[06:01:31] [PASSED] drm_test_check_bpc_10_value
[06:01:31] [PASSED] drm_test_check_bpc_12_value
[06:01:31] [PASSED] drm_test_check_format_value
[06:01:31] [PASSED] drm_test_check_tmds_char_value
[06:01:31] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[06:01:31] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[06:01:31] [PASSED] drm_test_check_mode_valid
[06:01:31] [PASSED] drm_test_check_mode_valid_reject
[06:01:31] [PASSED] drm_test_check_mode_valid_reject_rate
[06:01:31] [PASSED] drm_test_check_mode_valid_reject_max_clock
[06:01:31] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[06:01:31] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[06:01:31] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[06:01:31] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[06:01:31] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[06:01:31] [PASSED] drm_test_check_infoframes
[06:01:31] [PASSED] drm_test_check_reject_avi_infoframe
[06:01:31] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[06:01:31] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[06:01:31] [PASSED] drm_test_check_reject_audio_infoframe
[06:01:31] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[06:01:31] ================= drm_managed (2 subtests) =================
[06:01:31] [PASSED] drm_test_managed_release_action
[06:01:31] [PASSED] drm_test_managed_run_action
[06:01:31] =================== [PASSED] drm_managed ===================
[06:01:31] =================== drm_mm (6 subtests) ====================
[06:01:31] [PASSED] drm_test_mm_init
[06:01:31] [PASSED] drm_test_mm_debug
[06:01:31] [PASSED] drm_test_mm_align32
[06:01:31] [PASSED] drm_test_mm_align64
[06:01:31] [PASSED] drm_test_mm_lowest
[06:01:31] [PASSED] drm_test_mm_highest
[06:01:31] ===================== [PASSED] drm_mm ======================
[06:01:31] ============= drm_modes_analog_tv (5 subtests) =============
[06:01:31] [PASSED] drm_test_modes_analog_tv_mono_576i
[06:01:31] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[06:01:31] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[06:01:31] [PASSED] drm_test_modes_analog_tv_pal_576i
[06:01:31] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[06:01:31] =============== [PASSED] drm_modes_analog_tv ===============
[06:01:31] ============== drm_panic_helper (3 subtests) ===============
[06:01:31] ============= drm_test_panic_screen_user_map  ==============
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] ========= [PASSED] drm_test_panic_screen_user_map ==========
[06:01:31] ============= drm_test_panic_screen_user_page  =============
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] ========= [PASSED] drm_test_panic_screen_user_page =========
[06:01:31] ========== drm_test_panic_screen_user_set_pixel  ===========
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[06:01:31] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[06:01:31] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[06:01:31] ================ [PASSED] drm_panic_helper =================
[06:01:31] ============== drm_plane_helper (2 subtests) ===============
[06:01:31] =============== drm_test_check_plane_state  ================
[06:01:31] [PASSED] clipping_simple
[06:01:31] [PASSED] clipping_rotate_reflect
[06:01:31] [PASSED] positioning_simple
[06:01:31] [PASSED] upscaling
[06:01:31] [PASSED] downscaling
[06:01:31] [PASSED] rounding1
[06:01:31] [PASSED] rounding2
[06:01:31] [PASSED] rounding3
[06:01:31] [PASSED] rounding4
[06:01:31] =========== [PASSED] drm_test_check_plane_state ============
[06:01:31] =========== drm_test_check_invalid_plane_state  ============
[06:01:31] [PASSED] positioning_invalid
[06:01:31] [PASSED] upscaling_invalid
[06:01:31] [PASSED] downscaling_invalid
[06:01:31] ======= [PASSED] drm_test_check_invalid_plane_state ========
[06:01:31] ================ [PASSED] drm_plane_helper =================
[06:01:31] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[06:01:31] ====== drm_test_connector_helper_tv_get_modes_check  =======
[06:01:31] [PASSED] None
[06:01:31] [PASSED] PAL
[06:01:31] [PASSED] NTSC
[06:01:31] [PASSED] Both, NTSC Default
[06:01:31] [PASSED] Both, PAL Default
[06:01:31] [PASSED] Both, NTSC Default, with PAL on command-line
[06:01:31] [PASSED] Both, PAL Default, with NTSC on command-line
[06:01:31] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[06:01:31] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[06:01:31] ================== drm_rect (9 subtests) ===================
[06:01:31] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[06:01:31] [PASSED] drm_test_rect_clip_scaled_not_clipped
[06:01:31] [PASSED] drm_test_rect_clip_scaled_clipped
[06:01:31] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[06:01:31] ================= drm_test_rect_intersect  =================
[06:01:31] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[06:01:31] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[06:01:31] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[06:01:31] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[06:01:31] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[06:01:31] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[06:01:31] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[06:01:31] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[06:01:31] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[06:01:31] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[06:01:31] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[06:01:31] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[06:01:31] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[06:01:31] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[06:01:31] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[06:01:31] ============= [PASSED] drm_test_rect_intersect =============
[06:01:31] ================ drm_test_rect_calc_hscale  ================
[06:01:31] [PASSED] normal use
[06:01:31] [PASSED] out of max range
[06:01:31] [PASSED] out of min range
[06:01:31] [PASSED] zero dst
[06:01:31] [PASSED] negative src
[06:01:31] [PASSED] negative dst
[06:01:31] ============ [PASSED] drm_test_rect_calc_hscale ============
[06:01:31] ================ drm_test_rect_calc_vscale  ================
[06:01:31] [PASSED] normal use
[06:01:31] [PASSED] out of max range
[06:01:31] [PASSED] out of min range
[06:01:31] [PASSED] zero dst
[06:01:31] [PASSED] negative src
[06:01:31] [PASSED] negative dst
[06:01:31] ============ [PASSED] drm_test_rect_calc_vscale ============
[06:01:31] ================== drm_test_rect_rotate  ===================
[06:01:31] [PASSED] reflect-x
[06:01:31] [PASSED] reflect-y
[06:01:31] [PASSED] rotate-0
[06:01:31] [PASSED] rotate-90
[06:01:31] [PASSED] rotate-180
[06:01:31] [PASSED] rotate-270
[06:01:31] ============== [PASSED] drm_test_rect_rotate ===============
[06:01:31] ================ drm_test_rect_rotate_inv  =================
[06:01:31] [PASSED] reflect-x
[06:01:31] [PASSED] reflect-y
[06:01:31] [PASSED] rotate-0
[06:01:31] [PASSED] rotate-90
[06:01:31] [PASSED] rotate-180
[06:01:31] [PASSED] rotate-270
[06:01:31] ============ [PASSED] drm_test_rect_rotate_inv =============
[06:01:31] ==================== [PASSED] drm_rect =====================
[06:01:31] ============ drm_sysfb_modeset_test (1 subtest) ============
[06:01:31] ============ drm_test_sysfb_build_fourcc_list  =============
[06:01:31] [PASSED] no native formats
[06:01:31] [PASSED] XRGB8888 as native format
[06:01:31] [PASSED] remove duplicates
[06:01:31] [PASSED] convert alpha formats
[06:01:31] [PASSED] random formats
[06:01:31] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[06:01:31] ============= [PASSED] drm_sysfb_modeset_test ==============
[06:01:31] ================== drm_fixp (2 subtests) ===================
[06:01:31] [PASSED] drm_test_int2fixp
[06:01:31] [PASSED] drm_test_sm2fixp
[06:01:31] ==================== [PASSED] drm_fixp =====================
[06:01:31] ============================================================
[06:01:31] Testing complete. Ran 667 tests: passed: 667
[06:01:31] Elapsed time: 27.831s total, 1.846s configuring, 25.567s building, 0.412s 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
[06:01:31] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:01:33] 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
[06:01:43] Starting KUnit Kernel (1/1)...
[06:01:43] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:01:43] ================= ttm_device (5 subtests) ==================
[06:01:43] [PASSED] ttm_device_init_basic
[06:01:43] [PASSED] ttm_device_init_multiple
[06:01:43] [PASSED] ttm_device_fini_basic
[06:01:43] [PASSED] ttm_device_init_no_vma_man
[06:01:43] ================== ttm_device_init_pools  ==================
[06:01:43] [PASSED] No DMA allocations, no DMA32 required
[06:01:43] [PASSED] DMA allocations, DMA32 required
[06:01:43] [PASSED] No DMA allocations, DMA32 required
[06:01:43] [PASSED] DMA allocations, no DMA32 required
[06:01:43] ============== [PASSED] ttm_device_init_pools ==============
[06:01:43] =================== [PASSED] ttm_device ====================
[06:01:43] ================== ttm_pool (8 subtests) ===================
[06:01:43] ================== ttm_pool_alloc_basic  ===================
[06:01:43] [PASSED] One page
[06:01:43] [PASSED] More than one page
[06:01:43] [PASSED] Above the allocation limit
[06:01:43] [PASSED] One page, with coherent DMA mappings enabled
[06:01:43] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[06:01:43] ============== [PASSED] ttm_pool_alloc_basic ===============
[06:01:43] ============== ttm_pool_alloc_basic_dma_addr  ==============
[06:01:43] [PASSED] One page
[06:01:43] [PASSED] More than one page
[06:01:43] [PASSED] Above the allocation limit
[06:01:43] [PASSED] One page, with coherent DMA mappings enabled
[06:01:43] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[06:01:43] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[06:01:43] [PASSED] ttm_pool_alloc_order_caching_match
[06:01:43] [PASSED] ttm_pool_alloc_caching_mismatch
[06:01:43] [PASSED] ttm_pool_alloc_order_mismatch
[06:01:43] [PASSED] ttm_pool_free_dma_alloc
[06:01:43] [PASSED] ttm_pool_free_no_dma_alloc
[06:01:43] [PASSED] ttm_pool_fini_basic
[06:01:43] ==================== [PASSED] ttm_pool =====================
[06:01:43] ================ ttm_resource (8 subtests) =================
[06:01:43] ================= ttm_resource_init_basic  =================
[06:01:43] [PASSED] Init resource in TTM_PL_SYSTEM
[06:01:43] [PASSED] Init resource in TTM_PL_VRAM
[06:01:43] [PASSED] Init resource in a private placement
[06:01:43] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[06:01:43] ============= [PASSED] ttm_resource_init_basic =============
[06:01:43] [PASSED] ttm_resource_init_pinned
[06:01:43] [PASSED] ttm_resource_fini_basic
[06:01:43] [PASSED] ttm_resource_manager_init_basic
[06:01:43] [PASSED] ttm_resource_manager_usage_basic
[06:01:43] [PASSED] ttm_resource_manager_set_used_basic
[06:01:43] [PASSED] ttm_sys_man_alloc_basic
[06:01:43] [PASSED] ttm_sys_man_free_basic
[06:01:43] ================== [PASSED] ttm_resource ===================
[06:01:43] =================== ttm_tt (15 subtests) ===================
[06:01:43] ==================== ttm_tt_init_basic  ====================
[06:01:43] [PASSED] Page-aligned size
[06:01:43] [PASSED] Extra pages requested
[06:01:43] ================ [PASSED] ttm_tt_init_basic ================
[06:01:43] [PASSED] ttm_tt_init_misaligned
[06:01:43] [PASSED] ttm_tt_fini_basic
[06:01:43] [PASSED] ttm_tt_fini_sg
[06:01:43] [PASSED] ttm_tt_fini_shmem
[06:01:43] [PASSED] ttm_tt_create_basic
[06:01:43] [PASSED] ttm_tt_create_invalid_bo_type
[06:01:43] [PASSED] ttm_tt_create_ttm_exists
[06:01:43] [PASSED] ttm_tt_create_failed
[06:01:43] [PASSED] ttm_tt_destroy_basic
[06:01:43] [PASSED] ttm_tt_populate_null_ttm
[06:01:43] [PASSED] ttm_tt_populate_populated_ttm
[06:01:43] [PASSED] ttm_tt_unpopulate_basic
[06:01:43] [PASSED] ttm_tt_unpopulate_empty_ttm
[06:01:43] [PASSED] ttm_tt_swapin_basic
[06:01:43] ===================== [PASSED] ttm_tt ======================
[06:01:43] =================== ttm_bo (14 subtests) ===================
[06:01:43] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[06:01:43] [PASSED] Cannot be interrupted and sleeps
[06:01:43] [PASSED] Cannot be interrupted, locks straight away
[06:01:43] [PASSED] Can be interrupted, sleeps
[06:01:43] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[06:01:43] [PASSED] ttm_bo_reserve_locked_no_sleep
[06:01:43] [PASSED] ttm_bo_reserve_no_wait_ticket
[06:01:43] [PASSED] ttm_bo_reserve_double_resv
[06:01:43] [PASSED] ttm_bo_reserve_interrupted
[06:01:43] [PASSED] ttm_bo_reserve_deadlock
[06:01:43] [PASSED] ttm_bo_unreserve_basic
[06:01:43] [PASSED] ttm_bo_unreserve_pinned
[06:01:43] [PASSED] ttm_bo_unreserve_bulk
[06:01:43] [PASSED] ttm_bo_fini_basic
[06:01:43] [PASSED] ttm_bo_fini_shared_resv
[06:01:43] [PASSED] ttm_bo_pin_basic
[06:01:43] [PASSED] ttm_bo_pin_unpin_resource
[06:01:43] [PASSED] ttm_bo_multiple_pin_one_unpin
[06:01:43] ===================== [PASSED] ttm_bo ======================
[06:01:43] ============== ttm_bo_validate (22 subtests) ===============
[06:01:43] ============== ttm_bo_init_reserved_sys_man  ===============
[06:01:43] [PASSED] Buffer object for userspace
[06:01:43] [PASSED] Kernel buffer object
[06:01:43] [PASSED] Shared buffer object
[06:01:43] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[06:01:43] ============== ttm_bo_init_reserved_mock_man  ==============
[06:01:43] [PASSED] Buffer object for userspace
[06:01:43] [PASSED] Kernel buffer object
[06:01:43] [PASSED] Shared buffer object
[06:01:43] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[06:01:43] [PASSED] ttm_bo_init_reserved_resv
[06:01:43] ================== ttm_bo_validate_basic  ==================
[06:01:43] [PASSED] Buffer object for userspace
[06:01:43] [PASSED] Kernel buffer object
[06:01:43] [PASSED] Shared buffer object
[06:01:43] ============== [PASSED] ttm_bo_validate_basic ==============
[06:01:43] [PASSED] ttm_bo_validate_invalid_placement
[06:01:43] ============= ttm_bo_validate_same_placement  ==============
[06:01:43] [PASSED] System manager
[06:01:43] [PASSED] VRAM manager
[06:01:43] ========= [PASSED] ttm_bo_validate_same_placement ==========
[06:01:43] [PASSED] ttm_bo_validate_failed_alloc
[06:01:43] [PASSED] ttm_bo_validate_pinned
[06:01:43] [PASSED] ttm_bo_validate_busy_placement
[06:01:43] ================ ttm_bo_validate_multihop  =================
[06:01:43] [PASSED] Buffer object for userspace
[06:01:43] [PASSED] Kernel buffer object
[06:01:43] [PASSED] Shared buffer object
[06:01:43] ============ [PASSED] ttm_bo_validate_multihop =============
[06:01:43] ========== ttm_bo_validate_no_placement_signaled  ==========
[06:01:43] [PASSED] Buffer object in system domain, no page vector
[06:01:43] [PASSED] Buffer object in system domain with an existing page vector
[06:01:43] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[06:01:43] ======== ttm_bo_validate_no_placement_not_signaled  ========
[06:01:43] [PASSED] Buffer object for userspace
[06:01:43] [PASSED] Kernel buffer object
[06:01:43] [PASSED] Shared buffer object
[06:01:43] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[06:01:43] [PASSED] ttm_bo_validate_move_fence_signaled
[06:01:43] ========= ttm_bo_validate_move_fence_not_signaled  =========
[06:01:43] [PASSED] Waits for GPU
[06:01:43] [PASSED] Tries to lock straight away
[06:01:43] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[06:01:43] [PASSED] ttm_bo_validate_swapout
[06:01:43] [PASSED] ttm_bo_validate_happy_evict
[06:01:43] [PASSED] ttm_bo_validate_all_pinned_evict
[06:01:43] [PASSED] ttm_bo_validate_allowed_only_evict
[06:01:43] [PASSED] ttm_bo_validate_deleted_evict
[06:01:43] [PASSED] ttm_bo_validate_busy_domain_evict
[06:01:43] [PASSED] ttm_bo_validate_evict_gutting
[06:01:43] [PASSED] ttm_bo_validate_recrusive_evict
[06:01:43] ================= [PASSED] ttm_bo_validate =================
[06:01:43] ============================================================
[06:01:43] Testing complete. Ran 102 tests: passed: 102
[06:01:43] Elapsed time: 12.181s total, 1.909s configuring, 10.058s building, 0.178s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[06:01:43] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[06:01:45] 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
[06:01:54] Starting KUnit Kernel (1/1)...
[06:01:54] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[06:01:54] =============== dma-buf-fence (12 subtests) ================
[06:01:54] [PASSED] test_sanitycheck
[06:01:54] [PASSED] test_signaling
[06:01:54] [PASSED] test_add_callback
[06:01:54] [PASSED] test_late_add_callback
[06:01:54] [PASSED] test_rm_callback
[06:01:54] [PASSED] test_late_rm_callback
[06:01:54] [PASSED] test_status
[06:01:54] [PASSED] test_error
[06:01:54] [PASSED] test_wait
[06:01:54] [PASSED] test_wait_timeout
[06:01:54] [PASSED] test_stub
[06:01:54] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[06:01:54] ================== [PASSED] dma-buf-fence ==================
[06:01:54] ============ dma-buf-fence-chain (11 subtests) =============
[06:01:54] [PASSED] test_sanitycheck
[06:01:54] [PASSED] test_find_seqno
[06:01:54] [PASSED] test_find_signaled
[06:01:54] [PASSED] test_find_out_of_order
[06:01:59] [PASSED] test_find_gap
[06:01:59] [PASSED] test_find_race
[06:01:59] [PASSED] test_signal_forward
[06:01:59] [PASSED] test_signal_backward
[06:01:59] [PASSED] test_wait_forward
[06:01:59] [PASSED] test_wait_backward
[06:01:59] [PASSED] test_wait_random
[06:01:59] =============== [PASSED] dma-buf-fence-chain ===============
[06:01:59] ============ dma-buf-fence-unwrap (10 subtests) ============
[06:01:59] [PASSED] test_sanitycheck
[06:01:59] [PASSED] test_unwrap_array
[06:01:59] [PASSED] test_unwrap_chain
[06:01:59] [PASSED] test_unwrap_chain_array
[06:01:59] [PASSED] test_unwrap_merge
[06:01:59] [PASSED] test_unwrap_merge_duplicate
[06:01:59] [PASSED] test_unwrap_merge_seqno
[06:01:59] [PASSED] test_unwrap_merge_order
[06:01:59] [PASSED] test_unwrap_merge_complex
[06:01:59] [PASSED] test_unwrap_merge_complex_seqno
[06:01:59] ============== [PASSED] dma-buf-fence-unwrap ===============
[06:01:59] ================ dma-buf-resv (5 subtests) =================
[06:01:59] [PASSED] test_sanitycheck
[06:01:59] ===================== test_signaling  ======================
[06:01:59] [PASSED] kernel
[06:01:59] [PASSED] write
[06:01:59] [PASSED] read
[06:01:59] [PASSED] bookkeep
[06:01:59] ================= [PASSED] test_signaling ==================
[06:01:59] ====================== test_for_each  ======================
[06:01:59] [PASSED] kernel
[06:01:59] [PASSED] write
[06:01:59] [PASSED] read
[06:01:59] [PASSED] bookkeep
[06:01:59] ================== [PASSED] test_for_each ==================
[06:01:59] ================= test_for_each_unlocked  ==================
[06:01:59] [PASSED] kernel
[06:01:59] [PASSED] write
[06:01:59] [PASSED] read
[06:01:59] [PASSED] bookkeep
[06:01:59] ============= [PASSED] test_for_each_unlocked ==============
[06:01:59] ===================== test_get_fences  =====================
[06:01:59] [PASSED] kernel
[06:01:59] [PASSED] write
[06:01:59] [PASSED] read
[06:01:59] [PASSED] bookkeep
[06:01:59] ================= [PASSED] test_get_fences =================
[06:01:59] ================== [PASSED] dma-buf-resv ===================
[06:01:59] ============================================================
[06:01:59] Testing complete. Ran 50 tests: passed: 49, skipped: 1
[06:01:59] Elapsed time: 15.760s total, 1.812s configuring, 8.676s building, 5.257s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel



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

* Re: [PATCH v6 6/7] drm/xe: Introduce xe_wedge
  2026-10-14  5:51 ` [PATCH v6 6/7] drm/xe: Introduce xe_wedge Raag Jadav
@ 2026-10-14  6:05   ` sashiko-bot
  0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-10-14  6:05 UTC (permalink / raw)
  To: Raag Jadav, intel-xe

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] drm/xe: data race and inconsistent GT state in xe_wedge_set_mode()
- [Low] perf: xe_wedged() out-of-lining adds function call overhead in hot paths
--

commit 6fd8783d76a985325bbdd99f638c5f6528cd1918
Author: Raag Jadav <raag.jadav@intel.com>

drm/xe: Introduce xe_wedge

This commit consolidates the wedging implementation into a dedicated xe_wedge
component for better maintainability. It moves the wedged state tracking and
related helpers out of xe_device and renames them to match the new component
namespace.

> diff --git a/drivers/gpu/drm/xe/xe_wedge.c b/drivers/gpu/drm/xe/xe_wedge.c
> new file mode 100644
> --- /dev/null
> +++ b/drivers/gpu/drm/xe/xe_wedge.c

[ ... ]

> +/**
> + * xe_wedged() - Check for wedged device
> + * @xe: xe device instance
> + *
> + * Returns: %true if device is wedged, %false otherwise.
> + */
> +bool xe_wedged(struct xe_device *xe)
> +{
> +	return atomic_read(&xe->wedged.flag);
> +}

[Severity: Low]
Does moving this trivial atomic read out-of-line introduce unnecessary
overhead?

Hot paths like xe_bo_cpu_fault() and g2h_read() check xe_wedged() on every
invocation. Previously, xe_device_wedged() was a static inline function in
a header, allowing the compiler to optimize it. Moving it to xe_wedge.c
forces a function call for a single memory read. Should this be moved back
to a header file as a static inline?

[ ... ]

> +static int wedge_mode_set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
> +{
> +	struct xe_gt *gt;
> +	int ret;
> +	u8 id;
> +
> +	guard(xe_pm_runtime)(xe);
> +	for_each_gt(gt, xe, id) {
> +		ret = __wedge_mode_set_reset_policy(gt, mode);
> +		if (ret) {
> +			if (id > 0) {
> +				xe->wedged.inconsistent_reset = true;
> +				xe_err(xe, "Inconsistent reset policy state between GTs\n");
> +			}
> +			return ret;
> +		}
> +	}
> +
> +	xe->wedged.inconsistent_reset = false;
> +
> +	return 0;
> +}

[Severity: Medium]
Is there a risk of concurrent writers leaving the GTs in an inconsistent
state here?

Multiple user-space threads could simultaneously write conflicting modes to
/sys/kernel/debug/dri/*/wedged_mode, as the fops->write handler for debugfs
does not serialize concurrent invocations. If their updates to
__wedge_mode_set_reset_policy() interleave, it could leave hardware in a
mixed state (e.g., one GT configured for engine resets and another not)
while still erroneously clearing the xe->wedged.inconsistent_reset flag.

[ ... ]

> +int xe_wedge_set_mode(struct xe_device *xe, enum xe_wedged_mode mode)
> +{
> +	int ret;
> +
> +	ret = wedge_validate_mode(xe, mode);
> +	if (ret)
> +		return ret;
> +
> +	if (wedge_mode_needs_policy_update(xe, mode)) {
> +		ret = wedge_mode_set_reset_policy(xe, mode);
> +		if (ret)
> +			return ret;
> +	}
> +
> +	xe->wedged.mode = mode;

[Severity: Medium]
Could this assignment cause a data race?

Without a lock protecting xe->wedged.mode, concurrent writes could result
in the stored mode no longer matching the actual hardware state set on the
GTs. Should these updates be synchronized to protect both the variable and
the GT policy updates?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014055215.330408-1-raag.jadav@intel.com?part=6

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

* Re: [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe
  2026-10-14  5:51 ` [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe Raag Jadav
@ 2026-10-14  6:13   ` sashiko-bot
  0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-10-14  6:13 UTC (permalink / raw)
  To: Raag Jadav, intel-xe

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] pm: MMIO access on suspended device during async wedge
--

commit bce18d1215504bf5f21999a5ea9ee776aca1fe38
Author: Raag Jadav <raag.jadav@intel.com>

drm/xe: Make xe_device_declare_wedged() IRQ safe

This commit defers wedge handling to a dedicated worker, allowing
xe_device_declare_wedged() to be safely called from IRQ contexts such as
handling MERT CAT errors.

> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -1405,29 +1421,28 @@ void xe_device_declare_wedged(struct xe_device *xe, unsigned long method)
>  
>  	if (!atomic_xchg(&xe->wedged.flag, 1)) {
>  		xe->needs_flr_on_fini = true;
> -		xe_pm_runtime_get_noresume(xe);
> +		pm_runtime_get_noresume(xe->drm.dev);

[Severity: High]
Does this allow MMIO access on a suspended device when a wedge is triggered
from an IRQ context?

If a hardware error (like a MERT CAT error) triggers an IRQ while the
device is in the RPM_SUSPENDED state, pm_runtime_get_noresume() will
increment the usage counter but will not wake the device up.

The GT wedge worker is then scheduled:

>  		xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
>  		xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
>  			    "For recovery procedure, refer to %s\n"
>  			    "Please file a _new_ bug report at %s\n",
>  			    WEDGED_URL, XE_BUG_URL);
> -	}
>  
> -	for_each_initialized_gt(gt, xe, id)
> -		xe_gt_declare_wedged(gt);
> +		for_each_initialized_gt(gt, xe, id)
> +			xe_gt_declare_wedged(gt);

And runs asynchronously without ensuring the device is resumed:

gt_wedge_worker()
  xe_uc_declare_wedged()
    xe_guc_declare_wedged()
      xe_guc_submit_wedge()
        xe_guc_softreset()
          xe_guc_mmio_send()

Since the device might still be suspended, this sequence can result in
xe_guc_mmio_send() performing MMIO accesses on powered-down hardware,
causing invalid register reads (e.g., returning 0xffffffff), hardware
timeouts, or PCIe bus errors.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014055215.330408-1-raag.jadav@intel.com?part=4

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

* Re: [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras
  2026-10-14  5:51 ` [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras Raag Jadav
@ 2026-10-14  6:14   ` sashiko-bot
  0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-10-14  6:14 UTC (permalink / raw)
  To: Raag Jadav, intel-xe

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] drm/xe: early wedging causes probe failure and breaks survivability mode
- [Medium] drm/xe/ras: fault injection bypassed on devices without sysctrl
--

commit f19cf587dc3dbb4d3eeb0716be575b1dc0369223
Author: Raag Jadav <raag.jadav@intel.com>

drm/xe/ras: Move xe_ras_process_errors() to xe_ras
    
This patch moves xe_ras_process_errors() from xe_device_probe() to
xe_ras_init(), reverting a previous commit that delayed ras error processing.

> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 922e5e793b135..8e399ffec9856 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -932,6 +932,13 @@ void xe_ras_init(struct xe_device *xe)
>  	if (IS_ENABLED(CONFIG_PCIEAER))
>  		ras_usp_aer_init(xe);
>  
> +	/*
> +	 * During probe, process and log any errors detected by firmware while the driver was not
> +	 * loaded. Critical errors such as Punit and CSC are reported through Pcode init failure,
> +	 * causing the driver to enter survivability mode.
> +	 */
> +	xe_ras_process_errors(xe);
> +

[Severity: High]
Does moving xe_ras_process_errors() here cause probe failure on boot-time
errors?

xe_ras_init() is called before xe_gt_init() during probe. If
xe_ras_process_errors() detects a hardware error and wedges the device,
subsequent calls in xe_device_probe() such as xe_gt_init() will fail.

For example, when xe_gt_init() calls into GuC CT:

drivers/gpu/drm/xe/xe_guc_ct.c:__guc_ct_send_locked() {
	if (xe_wedged(ct_to_xe(ct))) {
		ret = -ENOTRECOVERABLE;
		goto out;
	}
	...
}

This failure propagates up, causing the driver probe sequence to abort
entirely instead of binding the device in a wedged state. This prevents
access to the sysfs files required for userspace firmware recovery (Runtime
Survivability Mode) and drops the WEDGED uevent.

[Severity: Medium]
Will this bypass the fault injection check on devices without a system
controller?

Earlier in xe_ras_init(), there is an early return:

drivers/gpu/drm/xe/xe_ras.c:xe_ras_init() {
	...
	if (!xe->info.has_sysctrl)
		return;
	...
}

Because of this early return, xe_ras_process_errors() will never be called
on platforms where has_sysctrl is false.

However, xe_ras_process_errors() checks for cold-reset fault injection
before checking for has_sysctrl:

drivers/gpu/drm/xe/xe_ras.c:xe_ras_process_errors() {
	if (xe_fault_wedge_cold_reset()) {
		xe_err(xe, "[RAS]: cold-reset wedge injected\n");
		punit_error_handler(xe);
		return XE_RAS_RECOVERY_ACTION_DISCONNECT;
	}

	if (!xe->info.has_sysctrl)
		return XE_RAS_RECOVERY_ACTION_RESET;
	...
}

Placing xe_ras_process_errors() after the has_sysctrl check in xe_ras_init()
appears to silently break cold-reset fault injection during probe on these
platforms.

>  	ret = devm_device_add_group(xe->drm.dev, &gpu_health_group);
>  	if (ret)
>  		xe_err(xe, "Failed to create GPU health sysfs, err=%d\n", ret);

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014055215.330408-1-raag.jadav@intel.com?part=7

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

* Re: [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging
  2026-10-14  5:51 ` [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging Raag Jadav
@ 2026-10-14  6:14   ` sashiko-bot
  0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-10-14  6:14 UTC (permalink / raw)
  To: Raag Jadav, intel-xe

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] drm/xe: Infinite TDR loop when device wedged during GT init
--

commit 6009cd9a52688d1928f2b5ef571d3108edd7243e
Author: Raag Jadav <raag.jadav@intel.com>

drm/xe/gt: Use GT ordered workqueue for wedging

This commit introduces a worker for GT specific wedge handling and queues the
teardown on the GT ordered workqueue. This prevents scheduler disruptions
while jobs are still in-flight. It also introduces the
for_each_initialized_gt() macro and uses it when declaring the device
wedged.

> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index e1979bbcf7bc6..014bc5b0216dd 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -1425,7 +1425,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
>  			    WEDGED_URL, XE_BUG_URL);
>  	}
>  
> -	for_each_gt(gt, xe, id)
> +	for_each_initialized_gt(gt, xe, id)
>  		xe_gt_declare_wedged(gt);

[Severity: High]
Does this create a race condition if the device is wedged concurrently with
xe_gt_init()?

If xe_device_declare_wedged() runs while a GT is initializing, the GT is
skipped here because gt->initialized is false.

> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> index 775c826b68b42..d8bf538ceafff 100644
> --- a/drivers/gpu/drm/xe/xe_gt.c
> +++ b/drivers/gpu/drm/xe/xe_gt.c
[ ... ]
> @@ -769,6 +773,8 @@ int xe_gt_init(struct xe_gt *gt)
>  			return err;
>  	}
>  
> +	/* Must be last */
> +	WRITE_ONCE(gt->initialized, true);
>  	return 0;
>  }

Then xe_gt_init() sets gt->initialized to true without checking if a global
wedge event occurred during initialization.

This allows the GT to become active even though its GuC was never wedged
(since xe_guc_submit_wedge() was skipped during xe_device_declare_wedged()).

If jobs submitted to this GT (like migration jobs) hang, the TDR in
guc_exec_queue_timedout_job() runs. Since the TDR detects the global wedge
via xe_wedged(), it skips the hardware reset but returns NO_HANG while
immediately re-queueing the TDR work:

drivers/gpu/drm/xe/xe_guc_submit.c:guc_exec_queue_timedout_job() {
    ...
    xe_guc_exec_queue_trigger_cleanup(q);

    if (wedge_device)
        xe_device_declare_wedged(gt_to_xe(q->gt));

    /*
     * We want the job added back to the pending list so it gets freed; this
     * is what DRM_GPU_SCHED_STAT_NO_HANG does.
     */
    return DRM_GPU_SCHED_STAT_NO_HANG;
}

Can this lead to an infinite TDR spinloop (100% CPU deadlock) since the job
is never completed nor is the hardware reset?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261014055215.330408-1-raag.jadav@intel.com?part=1

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

* ✓ Xe.CI.BAT: success for Introduce xe_wedge (rev5)
  2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
                   ` (8 preceding siblings ...)
  2026-10-14  6:02 ` ✓ CI.KUnit: success " Patchwork
@ 2026-10-14 11:33 ` Patchwork
  9 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-10-14 11:33 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]

== Series Details ==

Series: Introduce xe_wedge (rev5)
URL   : https://patchwork.freedesktop.org/series/173011/
State : success

== Summary ==

CI Bug Log - changes from xe-5943-9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6_BAT -> xe-pw-173011v5_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (15 -> 15)
------------------------------

  No changes in participating hosts

Known issues
------------

  Here are the changes found in xe-pw-173011v5_BAT that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@core_hotunplug@unbind-rebind:
    - bat-bmg-2:          [PASS][1] -> [ABORT][2] ([Intel XE#9463])
   [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5943-9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6/bat-bmg-2/igt@core_hotunplug@unbind-rebind.html
   [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-173011v5/bat-bmg-2/igt@core_hotunplug@unbind-rebind.html

  
  [Intel XE#9463]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/9463


Build changes
-------------

  * IGT: IGT_9144 -> IGT_9145
  * Linux: xe-5943-9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6 -> xe-pw-173011v5

  IGT_9144: aada5ae74aa135d2b448e25ec417f4f0dee9439c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  IGT_9145: 05c13a14f7f8bcda7bff83b8aa033c3c47a4b1fb @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  xe-5943-9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6: 9c288c4ff8029788ae0bd13bb1f875bf3d9dc4f6
  xe-pw-173011v5: 173011v5

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-173011v5/index.html

[-- Attachment #2: Type: text/html, Size: 2216 bytes --]

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

end of thread, other threads:[~2026-10-14 11:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14  5:51 [PATCH v6 0/7] Introduce xe_wedge Raag Jadav
2026-10-14  5:51 ` [PATCH v6 1/7] drm/xe/gt: Use GT ordered workqueue for wedging Raag Jadav
2026-10-14  6:14   ` sashiko-bot
2026-10-14  5:51 ` [PATCH v6 2/7] drm/xe: Drop xe_device_set_wedged_method() Raag Jadav
2026-10-14  5:51 ` [PATCH v6 3/7] drm/xe: Move xe_device_wedged_fini() registration to xe_device_probe_early() Raag Jadav
2026-10-14  5:51 ` [PATCH v6 4/7] drm/xe: Make xe_device_declare_wedged() IRQ safe Raag Jadav
2026-10-14  6:13   ` sashiko-bot
2026-10-14  5:51 ` [PATCH v6 5/7] drm/xe/pci_error: Flush GT wedge worker before bus reset Raag Jadav
2026-10-14  5:51 ` [PATCH v6 6/7] drm/xe: Introduce xe_wedge Raag Jadav
2026-10-14  6:05   ` sashiko-bot
2026-10-14  5:51 ` [PATCH v6 7/7] drm/xe/ras: Move xe_ras_process_errors() to xe_ras Raag Jadav
2026-10-14  6:14   ` sashiko-bot
2026-10-14  5:59 ` ✗ CI.checkpatch: warning for Introduce xe_wedge (rev5) Patchwork
2026-10-14  6:02 ` ✓ CI.KUnit: success " Patchwork
2026-10-14 11:33 ` ✓ Xe.CI.BAT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.