Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v9 00/10] Introduce Xe PCIe FLR
@ 2026-07-01  8:29 Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 01/10] drm/xe/uc_fw: Allow re-initializing firmware Raag Jadav
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

Here's my humble attempt at introducing PCIe Function Level Reset (FLR)
support in xe driver. This is ofcourse a half baked implementation and
only limited to re-initializing GT. This needs to be extended for a lot
of components which are expected to be added as a follow up.

Detailed description in commit message and documentation.

PS: All xe_exec_basic tests and clpeak run smoothly after FLR. Give it
a spin and let me know if any regressions.

Trigger it with:

$ echo 1 > /sys/bus/pci/devices/<BDF>/reset

v2: Re-initialize migrate context (Matthew Brost)
    Add kernel doc (Matthew Brost)
    Spell out Function Level Reset (Jani)

v3: Cancel in-flight jobs before FLR

v4: Teardown exec queues instead of mangling scheduler pending list (Matthew Brost)

v5: Re-initialize kernel queues through submission backend (Matthew Brost)
    Prevent PM ref leak for wedged device (Matthew Brost)

v6: Skip uC firmware selection during re-initialization (Daniele)
    Add IS_DGFX() and EXEC_QUEUE_FLAG_KERNEL asserts (Daniele)
    s/flr_done/reinit (Daniele)
    Repurpose system suspend/resume helpers for FLR (Daniele)
    Add PCIe FLR documentation (Daniele)

v7: Refine PCIe FLR documentation (Daniele)
    Introduce xe_pci_reset_skip() helper (Lukasz)

v8: Set fw state to XE_UC_FIRMWARE_INIT_FAIL on failure (Daniele)
    Introduce xe_sched_reinit() (Daniele)
    Maintain timeout per scheduler instance (Daniele)
    s/reinit/reinit_kernel (Daniele)

v9: Move drm_sched_is_stopped() assert to xe_sched_reinit() (Daniele)
    Add negative asserts for GSC and PXP (Daniele)
    Provide xe_lrc_ctx_init() as regular function (Daniele)
    Redesign wedged state management to prevent races
    Add 'Xe' prefix to document title (Rodrigo)

Raag Jadav (10):
  drm/xe/uc_fw: Allow re-initializing firmware
  drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel()
  drm/xe/gt: Introduce FLR helpers
  drm/xe/bo_evict: Introduce xe_bo_restore_map()
  drm/xe/exec_queue: Introduce xe_exec_queue_reinit()
  drm/xe/migrate: Introduce xe_migrate_reinit()
  drm/xe/pm: Introduce xe_device_suspend/resume()
  drm/xe: Improve wedged state management
  drm/xe/pci: Introduce PCIe FLR
  drm/xe/doc: Wire up PCI Error Handling

 Documentation/gpu/xe/index.rst              |   1 +
 Documentation/gpu/xe/xe_pci_error.rst       |   8 +
 drivers/gpu/drm/xe/Makefile                 |   1 +
 drivers/gpu/drm/xe/xe_bo_evict.c            |  51 +++-
 drivers/gpu/drm/xe/xe_bo_evict.h            |   2 +
 drivers/gpu/drm/xe/xe_device.c              | 252 +++++++++++++++++---
 drivers/gpu/drm/xe/xe_device.h              |  10 +-
 drivers/gpu/drm/xe/xe_device_types.h        |  11 +-
 drivers/gpu/drm/xe/xe_exec_queue.c          |  47 +++-
 drivers/gpu/drm/xe/xe_exec_queue.h          |   1 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |   2 +
 drivers/gpu/drm/xe/xe_execlist.c            |   6 +
 drivers/gpu/drm/xe/xe_gpu_scheduler.c       |  17 ++
 drivers/gpu/drm/xe/xe_gpu_scheduler.h       |   1 +
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h |   5 +
 drivers/gpu/drm/xe/xe_gsc.c                 |  14 ++
 drivers/gpu/drm/xe/xe_gsc.h                 |   1 +
 drivers/gpu/drm/xe/xe_gt.c                  |  33 +++
 drivers/gpu/drm/xe/xe_gt.h                  |   2 +
 drivers/gpu/drm/xe/xe_guc.c                 |  29 +++
 drivers/gpu/drm/xe/xe_guc.h                 |   2 +
 drivers/gpu/drm/xe/xe_guc_submit.c          |   9 +
 drivers/gpu/drm/xe/xe_huc.c                 |  14 ++
 drivers/gpu/drm/xe/xe_huc.h                 |   1 +
 drivers/gpu/drm/xe/xe_lrc.c                 |  15 +-
 drivers/gpu/drm/xe/xe_lrc.h                 |   2 +
 drivers/gpu/drm/xe/xe_migrate.c             |  12 +
 drivers/gpu/drm/xe/xe_migrate.h             |   1 +
 drivers/gpu/drm/xe/xe_pci.c                 |   1 +
 drivers/gpu/drm/xe/xe_pci.h                 |   2 +
 drivers/gpu/drm/xe/xe_pci_error.c           | 129 ++++++++++
 drivers/gpu/drm/xe/xe_pm.c                  | 103 +-------
 drivers/gpu/drm/xe/xe_uc.c                  |  72 ++++++
 drivers/gpu/drm/xe/xe_uc.h                  |   2 +
 drivers/gpu/drm/xe/xe_uc_fw.c               |  67 ++++++
 drivers/gpu/drm/xe/xe_uc_fw.h               |   1 +
 drivers/gpu/drm/xe/xe_uc_types.h            |  14 ++
 37 files changed, 798 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/gpu/xe/xe_pci_error.rst
 create mode 100644 drivers/gpu/drm/xe/xe_pci_error.c

-- 
2.43.0


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

* [PATCH v9 01/10] drm/xe/uc_fw: Allow re-initializing firmware
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 02/10] drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel() Raag Jadav
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

In preparation of usecases which require re-initializing firmware without
reloading the driver, introduce xe_uc_fw_reinit(). The uC firmware bo
already exists but since it's contents are on VRAM, they are lost on PCIe
FLR. Copy the firmware back to it's bo and mark it as loadable as part of
re-initialization.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
v2: Add kernel doc (Matthew Brost)
v6: Skip uC firmware selection during re-initialization (Daniele)
v8: Set fw state to XE_UC_FIRMWARE_INIT_FAIL on failure (Daniele)
---
 drivers/gpu/drm/xe/xe_uc_fw.c | 67 +++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_uc_fw.h |  1 +
 2 files changed, 68 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_uc_fw.c b/drivers/gpu/drm/xe/xe_uc_fw.c
index 3f08a3b54062..158ac15dde55 100644
--- a/drivers/gpu/drm/xe/xe_uc_fw.c
+++ b/drivers/gpu/drm/xe/xe_uc_fw.c
@@ -833,6 +833,14 @@ static int uc_fw_copy(struct xe_uc_fw *uc_fw, const void *data, size_t size, u32
 	return err;
 }
 
+static void uc_fw_reinit(struct xe_uc_fw *uc_fw, const void *data)
+{
+	struct xe_device *xe = uc_fw_to_xe(uc_fw);
+
+	xe_map_memcpy_to(xe, &uc_fw->bo->vmap, 0, data, uc_fw->size);
+	xe_uc_fw_change_status(uc_fw, XE_UC_FIRMWARE_LOADABLE);
+}
+
 int xe_uc_fw_init(struct xe_uc_fw *uc_fw)
 {
 	const struct firmware *fw = NULL;
@@ -856,6 +864,65 @@ int xe_uc_fw_init(struct xe_uc_fw *uc_fw)
 }
 ALLOW_ERROR_INJECTION(xe_uc_fw_init, ERRNO); /* See xe_pci_probe() */
 
+/**
+ * xe_uc_fw_reinit() - Re-initialize uC firmware into its bo
+ * @uc_fw: uC firmware
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_uc_fw_reinit(struct xe_uc_fw *uc_fw)
+{
+	struct xe_device *xe = uc_fw_to_xe(uc_fw);
+	struct xe_uc_fw_version old_fw, new_fw;
+	const struct firmware *fw = NULL;
+	int err;
+
+	/* Make sure the status was cleared the last time we reset the uc */
+	xe_assert(xe, !xe_uc_fw_is_loaded(uc_fw));
+
+	/* We shouldn't be here for the firmware which wasn't available */
+	if (!xe_uc_fw_is_available(uc_fw))
+		return -ENOEXEC;
+
+	old_fw = uc_fw->versions.found[XE_UC_FW_VER_RELEASE];
+
+	err = firmware_request_nowarn(&fw, uc_fw->path, xe->drm.dev);
+	if (err)
+		goto init_fail;
+
+	err = parse_headers(uc_fw, fw);
+	if (err)
+		goto restore_old;
+
+	new_fw = uc_fw->versions.found[XE_UC_FW_VER_RELEASE];
+	if (memcmp(&old_fw, &new_fw, sizeof(old_fw)) || uc_fw->size != fw->size) {
+		drm_err(&xe->drm, "%s firmware mismatch on %s",
+			xe_uc_fw_type_repr(uc_fw->type), uc_fw->path);
+
+		err = -ENOEXEC;
+		goto restore_old;
+	}
+
+	uc_fw_reinit(uc_fw, fw->data);
+	uc_fw_release(fw);
+	return 0;
+
+restore_old:
+	/*
+	 * parse_headers() updates version details, so restore original version
+	 * before bailing.
+	 *
+	 * TODO: Create a struct of all the fields touched by parse_headers()
+	 * and restore them all.
+	 */
+	uc_fw->versions.found[XE_UC_FW_VER_RELEASE] = old_fw;
+init_fail:
+	xe_uc_fw_change_status(uc_fw, XE_UC_FIRMWARE_INIT_FAIL);
+	/* OK even if fw is NULL */
+	uc_fw_release(fw);
+	return err;
+}
+
 static u32 uc_fw_ggtt_offset(struct xe_uc_fw *uc_fw)
 {
 	return xe_bo_ggtt_addr(uc_fw->bo);
diff --git a/drivers/gpu/drm/xe/xe_uc_fw.h b/drivers/gpu/drm/xe/xe_uc_fw.h
index f2d3a3e7208b..6debdb924310 100644
--- a/drivers/gpu/drm/xe/xe_uc_fw.h
+++ b/drivers/gpu/drm/xe/xe_uc_fw.h
@@ -15,6 +15,7 @@
 struct drm_printer;
 
 int xe_uc_fw_init(struct xe_uc_fw *uc_fw);
+int xe_uc_fw_reinit(struct xe_uc_fw *uc_fw);
 size_t xe_uc_fw_copy_rsa(struct xe_uc_fw *uc_fw, void *dst, u32 max_len);
 int xe_uc_fw_upload(struct xe_uc_fw *uc_fw, u32 offset, u32 dma_flags);
 int xe_uc_fw_check_version_requirements(struct xe_uc_fw *uc_fw);
-- 
2.43.0


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

* [PATCH v9 02/10] drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel()
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 01/10] drm/xe/uc_fw: Allow re-initializing firmware Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 03/10] drm/xe/gt: Introduce FLR helpers Raag Jadav
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

In preparation of usecases which require re-initializing GuC submission
after PCIe FLR, introduce guc_exec_queue_reinit_kernel() helper. This will
restore kernel queues which might have been killed before PCIe FLR.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
v4: Teardown exec queues instead of mangling scheduler pending list (Matthew Brost)
v5: Re-initialize kernel queues through submission backend (Matthew Brost)
v8: Introduce xe_sched_reinit() (Daniele)
    Maintain timeout per scheduler instance (Daniele)
    s/reinit/reinit_kernel (Daniele)
v9: Move drm_sched_is_stopped() assert to xe_sched_reinit() (Daniele)
---
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |  2 ++
 drivers/gpu/drm/xe/xe_execlist.c            |  6 ++++++
 drivers/gpu/drm/xe/xe_gpu_scheduler.c       | 17 +++++++++++++++++
 drivers/gpu/drm/xe/xe_gpu_scheduler.h       |  1 +
 drivers/gpu/drm/xe/xe_gpu_scheduler_types.h |  5 +++++
 drivers/gpu/drm/xe/xe_guc_submit.c          |  9 +++++++++
 6 files changed, 40 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_exec_queue_types.h b/drivers/gpu/drm/xe/xe_exec_queue_types.h
index d27ce24daae5..ac0b3474132c 100644
--- a/drivers/gpu/drm/xe/xe_exec_queue_types.h
+++ b/drivers/gpu/drm/xe/xe_exec_queue_types.h
@@ -274,6 +274,8 @@ struct xe_exec_queue {
 struct xe_exec_queue_ops {
 	/** @init: Initialize exec queue for submission backend */
 	int (*init)(struct xe_exec_queue *q);
+	/** @reinit_kernel: Re-initialize kernel queue for submission backend */
+	void (*reinit_kernel)(struct xe_exec_queue *q);
 	/** @kill: Kill inflight submissions for backend */
 	void (*kill)(struct xe_exec_queue *q);
 	/** @fini: Undoes the init() for submission backend */
diff --git a/drivers/gpu/drm/xe/xe_execlist.c b/drivers/gpu/drm/xe/xe_execlist.c
index 6b86b4f9cc1c..a0572b72e96e 100644
--- a/drivers/gpu/drm/xe/xe_execlist.c
+++ b/drivers/gpu/drm/xe/xe_execlist.c
@@ -403,6 +403,11 @@ static void execlist_exec_queue_destroy_async(struct work_struct *w)
 	xe_exec_queue_fini(q);
 }
 
+static void execlist_exec_queue_reinit_kernel(struct xe_exec_queue *q)
+{
+	/* NIY */
+}
+
 static void execlist_exec_queue_kill(struct xe_exec_queue *q)
 {
 	/* NIY */
@@ -460,6 +465,7 @@ static bool execlist_exec_queue_reset_status(struct xe_exec_queue *q)
 
 static const struct xe_exec_queue_ops execlist_exec_queue_ops = {
 	.init = execlist_exec_queue_init,
+	.reinit_kernel = execlist_exec_queue_reinit_kernel,
 	.kill = execlist_exec_queue_kill,
 	.fini = execlist_exec_queue_fini,
 	.destroy = execlist_exec_queue_destroy,
diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.c b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
index 67d8ce368486..e85bc4077809 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.c
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
@@ -3,7 +3,10 @@
  * Copyright © 2023 Intel Corporation
  */
 
+#include "xe_assert.h"
+#include "xe_exec_queue_types.h"
 #include "xe_gpu_scheduler.h"
+#include "xe_guc_exec_queue_types.h"
 
 static void xe_sched_process_msg_queue(struct xe_gpu_scheduler *sched)
 {
@@ -76,6 +79,7 @@ int xe_sched_init(struct xe_gpu_scheduler *sched,
 	};
 
 	sched->ops = xe_ops;
+	sched->timeout = timeout;
 	spin_lock_init(&sched->msg_lock);
 	INIT_LIST_HEAD(&sched->msgs);
 	INIT_WORK(&sched->work_process_msg, xe_sched_process_msg_work);
@@ -83,6 +87,19 @@ int xe_sched_init(struct xe_gpu_scheduler *sched,
 	return drm_sched_init(&sched->base, &args);
 }
 
+void xe_sched_reinit(struct xe_gpu_scheduler *sched)
+{
+	struct xe_guc_exec_queue *ge = container_of(sched, struct xe_guc_exec_queue, sched);
+
+	xe_gt_assert(ge->q->gt, drm_sched_is_stopped(&sched->base));
+
+	/*
+	 * TODO: Implement drm_sched_reinit() instead of requiring the
+	 * driver to restore individual fields.
+	 */
+	sched->base.timeout = sched->timeout;
+}
+
 void xe_sched_fini(struct xe_gpu_scheduler *sched)
 {
 	xe_sched_submission_stop(sched);
diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.h b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
index 664c2db56af3..22e24b4b7171 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.h
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.h
@@ -17,6 +17,7 @@ int xe_sched_init(struct xe_gpu_scheduler *sched,
 		  long timeout, struct workqueue_struct *timeout_wq,
 		  atomic_t *score, const char *name,
 		  struct device *dev);
+void xe_sched_reinit(struct xe_gpu_scheduler *sched);
 void xe_sched_fini(struct xe_gpu_scheduler *sched);
 
 void xe_sched_submission_start(struct xe_gpu_scheduler *sched);
diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler_types.h b/drivers/gpu/drm/xe/xe_gpu_scheduler_types.h
index 63d9bf92583c..e73fdacca164 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler_types.h
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler_types.h
@@ -51,6 +51,11 @@ struct xe_gpu_scheduler {
 	spinlock_t				msg_lock;
 	/** @work_process_msg: processes messages */
 	struct work_struct		work_process_msg;
+	/**
+	 * @timeout: timeout for the scheduler instance, to be restored
+	 * during exec queue re-initialization
+	 */
+	long				timeout;
 };
 
 #define xe_sched_entity		drm_sched_entity
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 9458bf477fa6..8774c8baeacd 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -2018,6 +2018,14 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 	return err;
 }
 
+static void guc_exec_queue_reinit_kernel(struct xe_exec_queue *q)
+{
+	xe_gt_assert(q->gt, q->flags & EXEC_QUEUE_FLAG_KERNEL);
+
+	atomic_set(&q->guc->state, 0);
+	xe_sched_reinit(&q->guc->sched);
+}
+
 static void guc_exec_queue_kill(struct xe_exec_queue *q)
 {
 	trace_xe_exec_queue_kill(q);
@@ -2252,6 +2260,7 @@ static bool guc_exec_queue_reset_status(struct xe_exec_queue *q)
  */
 static const struct xe_exec_queue_ops guc_exec_queue_ops = {
 	.init = guc_exec_queue_init,
+	.reinit_kernel = guc_exec_queue_reinit_kernel,
 	.kill = guc_exec_queue_kill,
 	.fini = guc_exec_queue_fini,
 	.destroy = guc_exec_queue_destroy,
-- 
2.43.0


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

* [PATCH v9 03/10] drm/xe/gt: Introduce FLR helpers
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 01/10] drm/xe/uc_fw: Allow re-initializing firmware Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 02/10] drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel() Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 04/10] drm/xe/bo_evict: Introduce xe_bo_restore_map() Raag Jadav
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

In preparation of usecases which require preparing/re-initializing GT and
all its uCs before/after PCIe FLR, introduce flr_prepare/reinit() helpers.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
v2: Add kernel doc (Matthew Brost)
v4: Teardown exec queues instead of mangling scheduler pending list (Matthew Brost)
v6: Add IS_DGFX() assert (Daniele)
    s/flr_done/reinit (Daniele)
---
 drivers/gpu/drm/xe/xe_gsc.c      | 14 +++++++
 drivers/gpu/drm/xe/xe_gsc.h      |  1 +
 drivers/gpu/drm/xe/xe_gt.c       | 23 ++++++++++
 drivers/gpu/drm/xe/xe_gt.h       |  2 +
 drivers/gpu/drm/xe/xe_guc.c      | 29 +++++++++++++
 drivers/gpu/drm/xe/xe_guc.h      |  2 +
 drivers/gpu/drm/xe/xe_huc.c      | 14 +++++++
 drivers/gpu/drm/xe/xe_huc.h      |  1 +
 drivers/gpu/drm/xe/xe_uc.c       | 72 ++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_uc.h       |  2 +
 drivers/gpu/drm/xe/xe_uc_types.h | 14 +++++++
 11 files changed, 174 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
index aab59dc647fb..7d5700624e46 100644
--- a/drivers/gpu/drm/xe/xe_gsc.c
+++ b/drivers/gpu/drm/xe/xe_gsc.c
@@ -549,6 +549,20 @@ void xe_gsc_wait_for_worker_completion(struct xe_gsc *gsc)
 		flush_work(&gsc->work);
 }
 
+/**
+ * xe_gsc_reinit() - Re-initialize GSC after FLR
+ * @gsc: The GSC object
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_gsc_reinit(struct xe_gsc *gsc)
+{
+	if (!xe_uc_fw_is_loadable(&gsc->fw))
+		return 0;
+
+	return xe_uc_fw_reinit(&gsc->fw);
+}
+
 void xe_gsc_stop_prepare(struct xe_gsc *gsc)
 {
 	struct xe_gt *gt = gsc_to_gt(gsc);
diff --git a/drivers/gpu/drm/xe/xe_gsc.h b/drivers/gpu/drm/xe/xe_gsc.h
index b8b8e0810ad9..ce390bffb163 100644
--- a/drivers/gpu/drm/xe/xe_gsc.h
+++ b/drivers/gpu/drm/xe/xe_gsc.h
@@ -15,6 +15,7 @@ struct xe_hw_engine;
 
 int xe_gsc_init(struct xe_gsc *gsc);
 int xe_gsc_init_post_hwconfig(struct xe_gsc *gsc);
+int xe_gsc_reinit(struct xe_gsc *gsc);
 void xe_gsc_wait_for_worker_completion(struct xe_gsc *gsc);
 void xe_gsc_stop_prepare(struct xe_gsc *gsc);
 void xe_gsc_load_start(struct xe_gsc *gsc);
diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index 783eb6d631b5..acc28389b0d8 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -908,6 +908,29 @@ static int do_gt_restart(struct xe_gt *gt)
 	return 0;
 }
 
+/**
+ * xe_gt_flr_prepare() - Prepare GT for FLR
+ * @gt: the GT object
+ *
+ * Prepare all GT uCs for FLR.
+ */
+void xe_gt_flr_prepare(struct xe_gt *gt)
+{
+	xe_gt_sanitize(gt);
+	xe_uc_flr_prepare(&gt->uc);
+}
+
+/**
+ * xe_gt_reinit() - Re-initialize GT after FLR
+ * @gt: the GT object
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_gt_reinit(struct xe_gt *gt)
+{
+	return xe_uc_reinit(&gt->uc);
+}
+
 static void gt_reset_worker(struct work_struct *w)
 {
 	struct xe_gt *gt = container_of(w, typeof(*gt), reset.worker);
diff --git a/drivers/gpu/drm/xe/xe_gt.h b/drivers/gpu/drm/xe/xe_gt.h
index 4150aa594f05..488009b9b938 100644
--- a/drivers/gpu/drm/xe/xe_gt.h
+++ b/drivers/gpu/drm/xe/xe_gt.h
@@ -45,8 +45,10 @@ static inline bool xe_fault_inject_gt_reset(void)
 }
 
 struct xe_gt *xe_gt_alloc(struct xe_tile *tile);
+void xe_gt_flr_prepare(struct xe_gt *gt);
 int xe_gt_init_early(struct xe_gt *gt);
 int xe_gt_init(struct xe_gt *gt);
+int xe_gt_reinit(struct xe_gt *gt);
 void xe_gt_mmio_init(struct xe_gt *gt);
 void xe_gt_declare_wedged(struct xe_gt *gt);
 int xe_gt_record_default_lrcs(struct xe_gt *gt);
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index 4023700ff2a9..0647c53a63d0 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -1689,6 +1689,35 @@ void xe_guc_sanitize(struct xe_guc *guc)
 	xe_guc_submit_disable(guc);
 }
 
+/**
+ * xe_guc_flr_prepare() - Prepare GuC for FLR
+ * @guc: The GuC object
+ *
+ * Stop GuC submission and tear down exec queues.
+ */
+void xe_guc_flr_prepare(struct xe_guc *guc)
+{
+	if (!xe_uc_fw_is_loadable(&guc->fw))
+		return;
+
+	xe_guc_submit_stop(guc);
+	xe_guc_submit_pause_abort(guc);
+}
+
+/**
+ * xe_guc_reinit() - Re-initialize GuC after FLR
+ * @guc: The GuC object
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_guc_reinit(struct xe_guc *guc)
+{
+	if (!xe_uc_fw_is_loadable(&guc->fw))
+		return 0;
+
+	return xe_uc_fw_reinit(&guc->fw);
+}
+
 int xe_guc_reset_prepare(struct xe_guc *guc)
 {
 	return xe_guc_submit_reset_prepare(guc);
diff --git a/drivers/gpu/drm/xe/xe_guc.h b/drivers/gpu/drm/xe/xe_guc.h
index 02514914f404..0eea9277439a 100644
--- a/drivers/gpu/drm/xe/xe_guc.h
+++ b/drivers/gpu/drm/xe/xe_guc.h
@@ -32,10 +32,12 @@
 struct drm_printer;
 
 void xe_guc_comm_init_early(struct xe_guc *guc);
+void xe_guc_flr_prepare(struct xe_guc *guc);
 int xe_guc_init_noalloc(struct xe_guc *guc);
 int xe_guc_init(struct xe_guc *guc);
 int xe_guc_init_post_hwconfig(struct xe_guc *guc);
 int xe_guc_post_load_init(struct xe_guc *guc);
+int xe_guc_reinit(struct xe_guc *guc);
 int xe_guc_reset(struct xe_guc *guc);
 int xe_guc_upload(struct xe_guc *guc);
 int xe_guc_min_load_for_hwconfig(struct xe_guc *guc);
diff --git a/drivers/gpu/drm/xe/xe_huc.c b/drivers/gpu/drm/xe/xe_huc.c
index 57afe21444b1..c73e1acbd091 100644
--- a/drivers/gpu/drm/xe/xe_huc.c
+++ b/drivers/gpu/drm/xe/xe_huc.c
@@ -296,6 +296,20 @@ void xe_huc_sanitize(struct xe_huc *huc)
 	xe_uc_fw_sanitize(&huc->fw);
 }
 
+/**
+ * xe_huc_reinit() - Re-initialize HuC after FLR
+ * @huc: The HuC object
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_huc_reinit(struct xe_huc *huc)
+{
+	if (!xe_uc_fw_is_loadable(&huc->fw))
+		return 0;
+
+	return xe_uc_fw_reinit(&huc->fw);
+}
+
 void xe_huc_print_info(struct xe_huc *huc, struct drm_printer *p)
 {
 	struct xe_gt *gt = huc_to_gt(huc);
diff --git a/drivers/gpu/drm/xe/xe_huc.h b/drivers/gpu/drm/xe/xe_huc.h
index fa1c45e70443..cb1a770b4a9c 100644
--- a/drivers/gpu/drm/xe/xe_huc.h
+++ b/drivers/gpu/drm/xe/xe_huc.h
@@ -19,6 +19,7 @@ enum xe_huc_auth_types {
 
 int xe_huc_init(struct xe_huc *huc);
 int xe_huc_init_post_hwconfig(struct xe_huc *huc);
+int xe_huc_reinit(struct xe_huc *huc);
 int xe_huc_upload(struct xe_huc *huc);
 int xe_huc_auth(struct xe_huc *huc, enum xe_huc_auth_types type);
 bool xe_huc_is_authenticated(struct xe_huc *huc, enum xe_huc_auth_types type);
diff --git a/drivers/gpu/drm/xe/xe_uc.c b/drivers/gpu/drm/xe/xe_uc.c
index 75091bde0d50..a9b2442494ec 100644
--- a/drivers/gpu/drm/xe/xe_uc.c
+++ b/drivers/gpu/drm/xe/xe_uc.c
@@ -15,6 +15,7 @@
 #include "xe_guc_pc.h"
 #include "xe_guc_rc.h"
 #include "xe_guc_engine_activity.h"
+#include "xe_guc_submit.h"
 #include "xe_huc.h"
 #include "xe_sriov.h"
 #include "xe_wopcm.h"
@@ -275,6 +276,77 @@ static void uc_reset_wait(struct xe_uc *uc)
 		goto again;
 }
 
+static void uc_flr_prepare(struct work_struct *w)
+{
+	struct xe_uc_flr *flr = container_of(w, struct xe_uc_flr, work);
+	struct xe_uc *uc = flr->uc;
+
+	xe_assert(uc_to_xe(uc), xe_device_wedged(uc_to_xe(uc)));
+
+	xe_uc_reset_prepare(uc);
+	xe_guc_flr_prepare(&uc->guc);
+}
+
+static void uc_flr_sanitize(struct work_struct *w)
+{
+	struct xe_uc_flr *flr = container_of(w, struct xe_uc_flr, work);
+	struct xe_uc *uc = flr->uc;
+
+	/* TODO: Sanitize GSC firmware */
+	xe_assert(uc_to_xe(uc), IS_DGFX(uc_to_xe(uc)));
+
+	xe_uc_stop(uc);
+	xe_uc_sanitize(uc);
+}
+
+/**
+ * xe_uc_flr_prepare() - Prepare uCs for FLR
+ * @uc: The uC object
+ *
+ * Tear down pending work and stop all uCs.
+ */
+void xe_uc_flr_prepare(struct xe_uc *uc)
+{
+	struct xe_uc_flr flr = { .uc = uc };
+	struct xe_gt *gt = uc_to_gt(uc);
+
+	/*
+	 * We'll be tearing down exec queues which signals all fences and frees the
+	 * jobs but all of that happens asynchronously, so make sure we don't disrupt
+	 * the scheduler while jobs are still in-flight.
+	 */
+	INIT_WORK_ONSTACK(&flr.work, uc_flr_prepare);
+	queue_work(gt->ordered_wq, &flr.work);
+	flush_work(&flr.work);
+	destroy_work_on_stack(&flr.work);
+
+	INIT_WORK_ONSTACK(&flr.work, uc_flr_sanitize);
+	queue_work(gt->ordered_wq, &flr.work);
+	flush_work(&flr.work);
+	destroy_work_on_stack(&flr.work);
+}
+
+/**
+ * xe_uc_reinit() - Re-initialize uCs after FLR
+ * @uc: The uC object
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_uc_reinit(struct xe_uc *uc)
+{
+	int ret;
+
+	ret = xe_guc_reinit(&uc->guc);
+	if (ret)
+		return ret;
+
+	ret = xe_huc_reinit(&uc->huc);
+	if (ret)
+		return ret;
+
+	return xe_gsc_reinit(&uc->gsc);
+}
+
 void xe_uc_suspend_prepare(struct xe_uc *uc)
 {
 	xe_gsc_wait_for_worker_completion(&uc->gsc);
diff --git a/drivers/gpu/drm/xe/xe_uc.h b/drivers/gpu/drm/xe/xe_uc.h
index 255a54a8f876..e06f7937111f 100644
--- a/drivers/gpu/drm/xe/xe_uc.h
+++ b/drivers/gpu/drm/xe/xe_uc.h
@@ -8,10 +8,12 @@
 
 struct xe_uc;
 
+void xe_uc_flr_prepare(struct xe_uc *uc);
 int xe_uc_init_noalloc(struct xe_uc *uc);
 int xe_uc_init(struct xe_uc *uc);
 int xe_uc_init_post_hwconfig(struct xe_uc *uc);
 int xe_uc_load_hw(struct xe_uc *uc);
+int xe_uc_reinit(struct xe_uc *uc);
 int xe_uc_reset_prepare(struct xe_uc *uc);
 void xe_uc_runtime_resume(struct xe_uc *uc);
 void xe_uc_runtime_suspend(struct xe_uc *uc);
diff --git a/drivers/gpu/drm/xe/xe_uc_types.h b/drivers/gpu/drm/xe/xe_uc_types.h
index 1708379dc834..2b47382f7b3b 100644
--- a/drivers/gpu/drm/xe/xe_uc_types.h
+++ b/drivers/gpu/drm/xe/xe_uc_types.h
@@ -25,4 +25,18 @@ struct xe_uc {
 	struct xe_wopcm wopcm;
 };
 
+/**
+ * struct xe_uc_flr - uC FLR teardown
+ */
+struct xe_uc_flr {
+	/** @uc: uC to schedule FLR worker on */
+	struct xe_uc *uc;
+
+	/**
+	 * @work: worker for FLR teardown to be done async allowing to safely
+	 * flush all code paths
+	 */
+	struct work_struct work;
+};
+
 #endif
-- 
2.43.0


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

* [PATCH v9 04/10] drm/xe/bo_evict: Introduce xe_bo_restore_map()
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (2 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 03/10] drm/xe/gt: Introduce FLR helpers Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 05/10] drm/xe/exec_queue: Introduce xe_exec_queue_reinit() Raag Jadav
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav, Varun Gupta

PCIe FLR clears all hardware state along with GGTT mappings of all
existing bos. Iterate over early and late kernel bo list and restore
their GGTT mappings in hardware, so that driver can make use of them
during re-initialization after PCIe FLR.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Varun Gupta <varun.gupta@intel.com>
---
v2: Add kernel doc (Matthew Brost)
---
 drivers/gpu/drm/xe/xe_bo_evict.c | 51 +++++++++++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_bo_evict.h |  2 ++
 2 files changed, 45 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_bo_evict.c b/drivers/gpu/drm/xe/xe_bo_evict.c
index 7661fca7f278..fa75140c88fe 100644
--- a/drivers/gpu/drm/xe/xe_bo_evict.c
+++ b/drivers/gpu/drm/xe/xe_bo_evict.c
@@ -189,14 +189,8 @@ int xe_bo_evict_all(struct xe_device *xe)
 				     xe_bo_evict_pinned);
 }
 
-static int xe_bo_restore_and_map_ggtt(struct xe_bo *bo)
+static int xe_bo_map_ggtt(struct xe_bo *bo)
 {
-	int ret;
-
-	ret = xe_bo_restore_pinned(bo);
-	if (ret)
-		return ret;
-
 	if (bo->flags & XE_BO_FLAG_GGTT) {
 		struct xe_tile *tile;
 		u8 id;
@@ -212,6 +206,41 @@ static int xe_bo_restore_and_map_ggtt(struct xe_bo *bo)
 	return 0;
 }
 
+/**
+ * xe_bo_restore_map() - Restore GGTT mappings of kernel bos
+ * @xe: xe device
+ *
+ * PCIe FLR clears all hardware state along with GGTT mappings of all
+ * existing bos. Iterate over early and late kernel bo list and restore
+ * their GGTT mappings in hardware, so that driver can make use of them
+ * during re-initialization after PCIe FLR.
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_bo_restore_map(struct xe_device *xe)
+{
+	int ret;
+
+	ret = xe_bo_apply_to_pinned(xe, &xe->pinned.early.kernel_bo_present,
+				    &xe->pinned.early.kernel_bo_present, xe_bo_map_ggtt);
+	if (!ret)
+		ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present,
+					    &xe->pinned.late.kernel_bo_present, xe_bo_map_ggtt);
+
+	return ret;
+}
+
+static int xe_bo_restore_and_map_ggtt(struct xe_bo *bo)
+{
+	int ret;
+
+	ret = xe_bo_restore_pinned(bo);
+	if (ret)
+		return ret;
+
+	return xe_bo_map_ggtt(bo);
+}
+
 /**
  * xe_bo_restore_early - restore early phase kernel BOs to VRAM
  *
@@ -270,7 +299,13 @@ int xe_bo_restore_late(struct xe_device *xe)
 	return ret;
 }
 
-static void xe_bo_pci_dev_remove_pinned(struct xe_device *xe)
+/**
+ * xe_bo_pci_dev_remove_pinned() - Unmap external bos
+ * @xe: xe device
+ *
+ * Drop dma mappings of all external pinned bos.
+ */
+void xe_bo_pci_dev_remove_pinned(struct xe_device *xe)
 {
 	struct xe_tile *tile;
 	unsigned int id;
diff --git a/drivers/gpu/drm/xe/xe_bo_evict.h b/drivers/gpu/drm/xe/xe_bo_evict.h
index e8385cb7f5e9..d4f5b87243e7 100644
--- a/drivers/gpu/drm/xe/xe_bo_evict.h
+++ b/drivers/gpu/drm/xe/xe_bo_evict.h
@@ -14,7 +14,9 @@ int xe_bo_notifier_prepare_all_pinned(struct xe_device *xe);
 void xe_bo_notifier_unprepare_all_pinned(struct xe_device *xe);
 int xe_bo_restore_early(struct xe_device *xe);
 int xe_bo_restore_late(struct xe_device *xe);
+int xe_bo_restore_map(struct xe_device *xe);
 
+void xe_bo_pci_dev_remove_pinned(struct xe_device *xe);
 void xe_bo_pci_dev_remove_all(struct xe_device *xe);
 
 int xe_bo_pinned_init(struct xe_device *xe);
-- 
2.43.0


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

* [PATCH v9 05/10] drm/xe/exec_queue: Introduce xe_exec_queue_reinit()
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (3 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 04/10] drm/xe/bo_evict: Introduce xe_bo_restore_map() Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 06/10] drm/xe/migrate: Introduce xe_migrate_reinit() Raag Jadav
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

In preparation of usecases which require re-initializing exec queue
after PCIe FLR, introduce xe_exec_queue_reinit() helper. All the exec
queue LCRs already exist but the context is lost on PCIe FLR and needs
re-initialization.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
v2: Re-initialize migrate context (Matthew Brost)
v6: Add IS_DGFX() and EXEC_QUEUE_FLAG_KERNEL asserts (Daniele)
v9: Add negative asserts for GSC and PXP (Daniele)
    Provide xe_lrc_ctx_init() as regular function (Daniele)
---
 drivers/gpu/drm/xe/xe_exec_queue.c | 47 +++++++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_exec_queue.h |  1 +
 drivers/gpu/drm/xe/xe_lrc.c        | 15 ++++++++--
 drivers/gpu/drm/xe/xe_lrc.h        |  2 ++
 4 files changed, 59 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_exec_queue.c b/drivers/gpu/drm/xe/xe_exec_queue.c
index 1b5ca3ce578a..c864e7f2e227 100644
--- a/drivers/gpu/drm/xe/xe_exec_queue.c
+++ b/drivers/gpu/drm/xe/xe_exec_queue.c
@@ -27,6 +27,7 @@
 #include "xe_migrate.h"
 #include "xe_pm.h"
 #include "xe_trace.h"
+#include "xe_uc_fw.h"
 #include "xe_vm.h"
 #include "xe_pxp.h"
 
@@ -335,9 +336,8 @@ static void __xe_exec_queue_fini(struct xe_exec_queue *q)
 		xe_lrc_put(q->lrc[i]);
 }
 
-static int __xe_exec_queue_init(struct xe_exec_queue *q, u32 exec_queue_flags)
+static u32 xe_lrc_init_flags(struct xe_exec_queue *q, u32 exec_queue_flags)
 {
-	int i, err;
 	u32 flags = 0;
 
 	/*
@@ -360,6 +360,13 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q, u32 exec_queue_flags)
 	if (q->flags & EXEC_QUEUE_FLAG_DISABLE_STATE_CACHE_PERF_FIX)
 		flags |= XE_LRC_DISABLE_STATE_CACHE_PERF_FIX;
 
+	return flags;
+}
+
+static int __xe_exec_queue_init(struct xe_exec_queue *q, u32 exec_queue_flags)
+{
+	int i, err;
+
 	err = q->ops->init(q);
 	if (err)
 		return err;
@@ -383,8 +390,8 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q, u32 exec_queue_flags)
 
 			marker = xe_gt_sriov_vf_wait_valid_ggtt(q->gt);
 
-			lrc = xe_lrc_create(q->hwe, q->vm, q->replay_state,
-					    xe_lrc_ring_size(), q->msix_vec, flags);
+			lrc = xe_lrc_create(q->hwe, q->vm, q->replay_state, xe_lrc_ring_size(),
+					    q->msix_vec, xe_lrc_init_flags(q, exec_queue_flags));
 			if (IS_ERR(lrc)) {
 				err = PTR_ERR(lrc);
 				goto err_lrc;
@@ -406,6 +413,38 @@ static int __xe_exec_queue_init(struct xe_exec_queue *q, u32 exec_queue_flags)
 	return err;
 }
 
+/**
+ * xe_exec_queue_reinit() - Re-initialize exec queue
+ * @q: exec queue to re-initialize
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_exec_queue_reinit(struct xe_exec_queue *q)
+{
+	struct xe_gt *gt = q->gt;
+	int i, err;
+
+	/* TODO: Re-initialize GSC and PXP queues */
+	xe_gt_assert(gt, IS_DGFX(gt_to_xe(gt)));
+	xe_gt_assert(gt, !xe_uc_fw_is_loadable(&gt->uc.gsc.fw));
+	xe_gt_assert(gt, !xe_pxp_is_enabled(gt_to_xe(gt)->pxp));
+
+	/* Re-initialization only allowed for kernel queues */
+	xe_gt_assert(gt, q->flags & EXEC_QUEUE_FLAG_KERNEL);
+
+	/* Re-initialize submission backend */
+	q->ops->reinit_kernel(q);
+
+	for (i = 0; i < q->width; i++) {
+		err = xe_lrc_ctx_init(q->lrc[i], q->hwe, q->vm, q->replay_state,
+				      q->msix_vec, xe_lrc_init_flags(q, q->flags));
+		if (err)
+			return err;
+	}
+
+	return 0;
+}
+
 /**
  * xe_exec_queue_create() - Create an exec queue
  * @xe: Xe device
diff --git a/drivers/gpu/drm/xe/xe_exec_queue.h b/drivers/gpu/drm/xe/xe_exec_queue.h
index 0225426c57b0..236fa44c2a72 100644
--- a/drivers/gpu/drm/xe/xe_exec_queue.h
+++ b/drivers/gpu/drm/xe/xe_exec_queue.h
@@ -34,6 +34,7 @@ struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
 void xe_exec_queue_fini(struct xe_exec_queue *q);
 void xe_exec_queue_destroy(struct kref *ref);
 void xe_exec_queue_assign_name(struct xe_exec_queue *q, u32 instance);
+int xe_exec_queue_reinit(struct xe_exec_queue *q);
 
 static inline struct xe_exec_queue *
 xe_exec_queue_get_unless_zero(struct xe_exec_queue *q)
diff --git a/drivers/gpu/drm/xe/xe_lrc.c b/drivers/gpu/drm/xe/xe_lrc.c
index 3e7c995085d0..3f0a84501bba 100644
--- a/drivers/gpu/drm/xe/xe_lrc.c
+++ b/drivers/gpu/drm/xe/xe_lrc.c
@@ -1486,8 +1486,19 @@ void xe_lrc_set_multi_queue_priority(struct xe_lrc *lrc, enum xe_multi_queue_pri
 	lrc->desc |= FIELD_PREP(LRC_PRIORITY, xe_multi_queue_prio_to_lrc(lrc, priority));
 }
 
-static int xe_lrc_ctx_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, struct xe_vm *vm,
-			   void *replay_state, u16 msix_vec, u32 init_flags)
+/**
+ * xe_lrc_ctx_init() - Initialize LRC with context details
+ * @lrc: Pointer to the LRC
+ * @hwe: Hardware Engine
+ * @vm: The VM (address space)
+ * @replay_state: GPU hang replay state
+ * @msix_vec: MSI-X interrupt vector (for platforms that support it)
+ * @init_flags: LRC initialization flags
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_lrc_ctx_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, struct xe_vm *vm,
+		    void *replay_state, u16 msix_vec, u32 init_flags)
 {
 	struct xe_gt *gt = hwe->gt;
 	struct xe_tile *tile = gt_to_tile(gt);
diff --git a/drivers/gpu/drm/xe/xe_lrc.h b/drivers/gpu/drm/xe/xe_lrc.h
index 0a3a611391ee..f77c9341e77b 100644
--- a/drivers/gpu/drm/xe/xe_lrc.h
+++ b/drivers/gpu/drm/xe/xe_lrc.h
@@ -56,6 +56,8 @@ struct xe_lrc_snapshot {
 
 struct xe_lrc *xe_lrc_create(struct xe_hw_engine *hwe, struct xe_vm *vm,
 			     void *replay_state, u32 ring_size, u16 msix_vec, u32 flags);
+int xe_lrc_ctx_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe, struct xe_vm *vm,
+		    void *replay_state, u16 msix_vec, u32 init_flags);
 void xe_lrc_destroy(struct kref *ref);
 
 /**
-- 
2.43.0


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

* [PATCH v9 06/10] drm/xe/migrate: Introduce xe_migrate_reinit()
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (4 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 05/10] drm/xe/exec_queue: Introduce xe_exec_queue_reinit() Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 07/10] drm/xe/pm: Introduce xe_device_suspend/resume() Raag Jadav
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

In preparation of usecases which require re-initializing migrate context
after PCIe FLR, introduce xe_migrate_reinit() helper. Migrate exec queue
and pt_bo already exist in migrate structure but since their contents live
on VRAM, they are lost on PCIe FLR and need re-initialization.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
v2: Re-initialize migrate context (Matthew Brost)
---
 drivers/gpu/drm/xe/xe_gt.c      | 10 ++++++++++
 drivers/gpu/drm/xe/xe_migrate.c | 12 ++++++++++++
 drivers/gpu/drm/xe/xe_migrate.h |  1 +
 3 files changed, 23 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index acc28389b0d8..a60e04c4d885 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -928,6 +928,16 @@ void xe_gt_flr_prepare(struct xe_gt *gt)
  */
 int xe_gt_reinit(struct xe_gt *gt)
 {
+	int err;
+
+	if (xe_gt_is_main_type(gt)) {
+		struct xe_tile *tile = gt_to_tile(gt);
+
+		err = xe_migrate_reinit(tile->migrate);
+		if (err)
+			return err;
+	}
+
 	return xe_uc_reinit(&gt->uc);
 }
 
diff --git a/drivers/gpu/drm/xe/xe_migrate.c b/drivers/gpu/drm/xe/xe_migrate.c
index 9428dd5e7760..9e1754028e1f 100644
--- a/drivers/gpu/drm/xe/xe_migrate.c
+++ b/drivers/gpu/drm/xe/xe_migrate.c
@@ -454,6 +454,18 @@ static int xe_migrate_lock_prepare_vm(struct xe_tile *tile, struct xe_migrate *m
 	return err;
 }
 
+/**
+ * xe_migrate_reinit() - Re-initialize a migrate context
+ * @m: The migration context
+ *
+ * Returns: 0 on success, negative error code otherwise.
+ */
+int xe_migrate_reinit(struct xe_migrate *m)
+{
+	xe_migrate_prepare_vm(m->tile, m, m->q->vm, NULL);
+	return xe_exec_queue_reinit(m->q);
+}
+
 /**
  * xe_migrate_init() - Initialize a migrate context
  * @m: The migration context
diff --git a/drivers/gpu/drm/xe/xe_migrate.h b/drivers/gpu/drm/xe/xe_migrate.h
index 965c45889c72..49d8c717b957 100644
--- a/drivers/gpu/drm/xe/xe_migrate.h
+++ b/drivers/gpu/drm/xe/xe_migrate.h
@@ -112,6 +112,7 @@ struct xe_migrate_pt_update {
 
 struct xe_migrate *xe_migrate_alloc(struct xe_tile *tile);
 int xe_migrate_init(struct xe_migrate *m);
+int xe_migrate_reinit(struct xe_migrate *m);
 
 struct dma_fence *xe_migrate_to_vram(struct xe_migrate *m,
 				     unsigned long npages,
-- 
2.43.0


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

* [PATCH v9 07/10] drm/xe/pm: Introduce xe_device_suspend/resume()
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (5 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 06/10] drm/xe/migrate: Introduce xe_migrate_reinit() Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 08/10] drm/xe: Improve wedged state management Raag Jadav
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

PCIe FLR prepare/re-initialization flows pretty much reflect system
suspend/resume flows with a few notable exceptions. Repurpose existing
helpers for PCIe FLR with an explicit flag to distinguish between both
flows.

Suggested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v6: Repurpose system suspend/resume helpers for FLR (Daniele)
---
 drivers/gpu/drm/xe/xe_device.c | 150 +++++++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_device.h |   2 +
 drivers/gpu/drm/xe/xe_pm.c     | 103 ++--------------------
 3 files changed, 160 insertions(+), 95 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index d3fbcf10f8ab..c5e3e2d1f7c3 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -38,6 +38,7 @@
 #include "xe_force_wake.h"
 #include "xe_ggtt.h"
 #include "xe_gt.h"
+#include "xe_gt_idle.h"
 #include "xe_gt_mcr.h"
 #include "xe_gt_printk.h"
 #include "xe_gt_sriov_vf.h"
@@ -66,6 +67,7 @@
 #include "xe_soc_remapper.h"
 #include "xe_survivability_mode.h"
 #include "xe_sriov.h"
+#include "xe_sriov_vf_ccs.h"
 #include "xe_svm.h"
 #include "xe_sysctrl.h"
 #include "xe_tile.h"
@@ -1526,3 +1528,151 @@ struct xe_vm *xe_device_asid_to_vm(struct xe_device *xe, u32 asid)
 
 	return vm;
 }
+
+/**
+ * xe_device_suspend() - Common helper for system suspend and FLR prepare
+ * @xe: xe device instance
+ * @flr: indicate FLR prepare
+ *
+ * Return: 0 on success, negative error code otherwise.
+ */
+int xe_device_suspend(struct xe_device *xe, bool flr)
+{
+	struct xe_gt *gt;
+	u8 id;
+	int err;
+
+	err = xe_pxp_pm_suspend(xe->pxp);
+	if (err)
+		return err;
+
+	xe_late_bind_wait_for_worker_completion(&xe->late_bind);
+
+	for_each_gt(gt, xe, id)
+		xe_gt_suspend_prepare(gt);
+
+	if (flr) {
+		for_each_gt(gt, xe, id)
+			xe_gt_flr_prepare(gt);
+	} else {
+		xe_display_pm_suspend(xe);
+
+		/* FIXME: Super racey... */
+		err = xe_bo_evict_all(xe);
+		if (err)
+			goto err_display;
+
+		for_each_gt(gt, xe, id) {
+			err = xe_gt_suspend(gt);
+			if (err)
+				goto err_display;
+		}
+	}
+
+	xe_irq_suspend(xe);
+
+	if (flr) {
+		/* TODO: Drop all user bos */
+		xe_bo_pci_dev_remove_pinned(xe);
+
+		unmap_mapping_range(xe->drm.anon_inode->i_mapping, 0, 0, 1);
+	} else {
+		xe_display_pm_suspend_late(xe);
+
+		xe_i2c_pm_suspend(xe);
+	}
+
+	return 0;
+
+err_display:
+	xe_display_pm_resume(xe);
+	xe_pxp_pm_resume(xe->pxp);
+	return err;
+}
+
+/**
+ * xe_device_resume() - Common helper for system resume and re-initialization post FLR
+ * @xe: xe device instance
+ * @flr: indicate re-initialization post FLR
+ *
+ * Return: 0 on success, negative error code otherwise.
+ */
+int xe_device_resume(struct xe_device *xe, bool flr)
+{
+	struct xe_tile *tile;
+	struct xe_gt *gt;
+	u8 id;
+	int err;
+
+	for_each_gt(gt, xe, id)
+		xe_gt_idle_disable_c6(gt);
+
+	for_each_tile(tile, xe, id)
+		xe_wa_apply_tile_workarounds(tile);
+
+	err = xe_pcode_ready(xe, true);
+	if (err)
+		return err;
+
+	assert_lmem_ready(xe);
+
+	if (flr) {
+		err = xe_bo_restore_map(xe);
+		if (err)
+			return err;
+
+		for_each_gt(gt, xe, id) {
+			err = xe_gt_reinit(gt);
+			if (err)
+				return err;
+		}
+	} else {
+		xe_display_pm_resume_early(xe);
+
+		/*
+		 * This only restores pinned memory which is the memory required for the
+		 * GT(s) to resume.
+		 */
+		err = xe_bo_restore_early(xe);
+		if (err)
+			return err;
+	}
+
+	xe_i2c_pm_resume(xe, true);
+
+	xe_sysctrl_pm_resume(xe);
+
+	xe_irq_resume(xe);
+
+	for_each_gt(gt, xe, id) {
+		err = xe_gt_resume(gt);
+		if (err)
+			break;
+	}
+
+	if (flr) {
+		if (err)
+			return err;
+	} else {
+		/*
+		 * Try to bring up display before bailing from GT resume failure,
+		 * so we don't leave the user clueless with a blank screen.
+		 */
+		xe_display_pm_resume(xe);
+		if (err)
+			return err;
+
+		err = xe_bo_restore_late(xe);
+		if (err)
+			return err;
+
+		if (IS_VF_CCS_READY(xe))
+			xe_sriov_vf_ccs_register_context(xe);
+	}
+
+	xe_pxp_pm_resume(xe->pxp);
+
+	xe_late_bind_fw_load(&xe->late_bind);
+
+	return 0;
+}
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 8056d8bd7d6d..11b67820eb67 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -48,7 +48,9 @@ int xe_device_init_early(struct xe_device *xe);
 int xe_device_probe_early(struct xe_device *xe);
 int xe_device_probe(struct xe_device *xe);
 void xe_device_remove(struct xe_device *xe);
+int xe_device_resume(struct xe_device *xe, bool flr);
 void xe_device_shutdown(struct xe_device *xe);
+int xe_device_suspend(struct xe_device *xe, bool flr);
 
 void xe_device_wmb(struct xe_device *xe);
 
diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index 99562f691080..161d3f36f372 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -172,52 +172,18 @@ static void xe_rpm_lockmap_release(const struct xe_device *xe)
  */
 int xe_pm_suspend(struct xe_device *xe)
 {
-	struct xe_gt *gt;
-	u8 id;
 	int err;
 
 	drm_dbg(&xe->drm, "Suspending device\n");
 	xe_pm_block_begin_signalling();
 	trace_xe_pm_suspend(xe, __builtin_return_address(0));
 
-	err = xe_pxp_pm_suspend(xe->pxp);
+	err = xe_device_suspend(xe, false);
 	if (err)
-		goto err;
+		drm_dbg(&xe->drm, "Device suspend failed %d\n", err);
+	else
+		drm_dbg(&xe->drm, "Device suspended\n");
 
-	xe_late_bind_wait_for_worker_completion(&xe->late_bind);
-
-	for_each_gt(gt, xe, id)
-		xe_gt_suspend_prepare(gt);
-
-	xe_display_pm_suspend(xe);
-
-	/* FIXME: Super racey... */
-	err = xe_bo_evict_all(xe);
-	if (err)
-		goto err_display;
-
-	for_each_gt(gt, xe, id) {
-		err = xe_gt_suspend(gt);
-		if (err)
-			goto err_display;
-	}
-
-	xe_irq_suspend(xe);
-
-	xe_display_pm_suspend_late(xe);
-
-	xe_i2c_pm_suspend(xe);
-
-	drm_dbg(&xe->drm, "Device suspended\n");
-	xe_pm_block_end_signalling();
-
-	return 0;
-
-err_display:
-	xe_display_pm_resume(xe);
-	xe_pxp_pm_resume(xe->pxp);
-err:
-	drm_dbg(&xe->drm, "Device suspend failed %d\n", err);
 	xe_pm_block_end_signalling();
 	return err;
 }
@@ -230,71 +196,18 @@ int xe_pm_suspend(struct xe_device *xe)
  */
 int xe_pm_resume(struct xe_device *xe)
 {
-	struct xe_tile *tile;
-	struct xe_gt *gt;
-	u8 id;
 	int err;
 
 	xe_pm_block_begin_signalling();
 	drm_dbg(&xe->drm, "Resuming device\n");
 	trace_xe_pm_resume(xe, __builtin_return_address(0));
 
-	for_each_gt(gt, xe, id)
-		xe_gt_idle_disable_c6(gt);
-
-	for_each_tile(tile, xe, id)
-		xe_wa_apply_tile_workarounds(tile);
-
-	err = xe_pcode_ready(xe, true);
-	if (err)
-		return err;
-
-	xe_display_pm_resume_early(xe);
-
-	/*
-	 * This only restores pinned memory which is the memory required for the
-	 * GT(s) to resume.
-	 */
-	err = xe_bo_restore_early(xe);
-	if (err)
-		goto err;
-
-	xe_i2c_pm_resume(xe, true);
-
-	xe_sysctrl_pm_resume(xe);
-
-	xe_irq_resume(xe);
-
-	for_each_gt(gt, xe, id) {
-		err = xe_gt_resume(gt);
-		if (err)
-			break;
-	}
-
-	/*
-	 * Try to bring up display before bailing from GT resume failure,
-	 * so we don't leave the user clueless with a blank screen.
-	 */
-	xe_display_pm_resume(xe);
-	if (err)
-		goto err;
-
-	err = xe_bo_restore_late(xe);
+	err = xe_device_resume(xe, false);
 	if (err)
-		goto err;
-
-	xe_pxp_pm_resume(xe->pxp);
-
-	if (IS_VF_CCS_READY(xe))
-		xe_sriov_vf_ccs_register_context(xe);
-
-	xe_late_bind_fw_load(&xe->late_bind);
+		drm_dbg(&xe->drm, "Device resume failed %d\n", err);
+	else
+		drm_dbg(&xe->drm, "Device resumed\n");
 
-	drm_dbg(&xe->drm, "Device resumed\n");
-	xe_pm_block_end_signalling();
-	return 0;
-err:
-	drm_dbg(&xe->drm, "Device resume failed %d\n", err);
 	xe_pm_block_end_signalling();
 	return err;
 }
-- 
2.43.0


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

* [PATCH v9 08/10] drm/xe: Improve wedged state management
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (6 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 07/10] drm/xe/pm: Introduce xe_device_suspend/resume() Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-09 21:27   ` Matthew Brost
  2026-07-01  8:29 ` [PATCH v9 09/10] drm/xe/pci: Introduce PCIe FLR Raag Jadav
                   ` (5 subsequent siblings)
  13 siblings, 1 reply; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

Currently, wedged state is serving a single usecase where the device is
permanently declared wedged, but this doesn't allow any wedged state
management for runtime usecases. In preparation of usecases which require
to facilitate temporary device wedging, convert wedged.flag to wedged.ref
which serves as a driver internal refcount for wedged state and blocks
critical path execution during device lifetime. While at it, introduce
wedged.perm which signifies permanent device wedging and operates
independent of the refcount allowing relevant cleanup action on unwind
path.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
v9: Redesign to prevent races
---
 drivers/gpu/drm/xe/xe_device.c       | 102 ++++++++++++++++++++-------
 drivers/gpu/drm/xe/xe_device.h       |   8 +--
 drivers/gpu/drm/xe/xe_device_types.h |   8 ++-
 3 files changed, 84 insertions(+), 34 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index c5e3e2d1f7c3..e8b6afb29ab6 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -598,6 +598,10 @@ int xe_device_init_early(struct xe_device *xe)
 	if (err)
 		return err;
 
+	err = drmm_mutex_init(&xe->drm, &xe->wedged.lock);
+	if (err)
+		return err;
+
 	err = xe_pm_init_early(xe);
 	if (err)
 		return err;
@@ -920,8 +924,10 @@ 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);
+	if (xe->wedged.perm)
+		xe_device_wedged_put(xe);
+
+	xe_assert(xe, !xe_device_wedged(xe));
 }
 
 int xe_device_probe(struct xe_device *xe)
@@ -1387,6 +1393,44 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
  *   firmware and restore device to normal operation.
  */
 
+/**
+ * xe_device_wedged_get() - Acquire wedged reference
+ * @xe: xe device instance
+ *
+ * Get runtime PM reference and block critical path execution.
+ */
+void xe_device_wedged_get(struct xe_device *xe)
+{
+	int ref;
+
+	/* We should not be runtime suspending as long as critical paths are blocked */
+	xe_pm_runtime_get_noresume(xe);
+
+	ref = atomic_inc_return(&xe->wedged.ref);
+	xe_assert(xe, ref > 0);
+}
+
+/**
+ * xe_device_wedged_put() - Relinquish wedged reference
+ * @xe: xe device instance
+ *
+ * Restore critical path execution and put runtime PM reference.
+ */
+void xe_device_wedged_put(struct xe_device *xe)
+{
+	int ref;
+
+	ref = atomic_dec_return(&xe->wedged.ref);
+	xe_assert(xe, ref >= 0);
+
+	xe_pm_runtime_put(xe);
+}
+
+bool xe_device_wedged(struct xe_device *xe)
+{
+	return atomic_read(&xe->wedged.ref);
+}
+
 /**
  * xe_device_set_wedged_method - Set wedged recovery method
  * @xe: xe device instance
@@ -1427,36 +1471,40 @@ void xe_device_declare_wedged(struct xe_device *xe)
 		return;
 	}
 
-	if (!atomic_xchg(&xe->wedged.flag, 1)) {
-		xe->needs_flr_on_fini = true;
-		xe_pm_runtime_get_noresume(xe);
-		drm_err(&xe->drm,
-			"CRITICAL: Xe has declared device %s as wedged.\n"
-			"IOCTLs and executions are blocked.\n"
-			"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
-			"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
-			dev_name(xe->drm.dev));
-	}
+	mutex_lock(&xe->wedged.lock);
+
+	if (xe->wedged.perm)
+		goto out;
+
+	xe_device_wedged_get(xe);
+	xe->wedged.perm = true;
+	xe->needs_flr_on_fini = true;
+	drm_err(&xe->drm,
+		"CRITICAL: Xe has declared device %s as wedged.\n"
+		"IOCTLs and executions are blocked.\n"
+		"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
+		"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
+		dev_name(xe->drm.dev));
 
 	for_each_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)
-			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);
+	/*
+	 * 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_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);
 
-		/* Notify userspace of wedged device */
-		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
-	}
+	/* Notify userspace of wedged device */
+	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
+out:
+	mutex_unlock(&xe->wedged.lock);
 }
 
 /**
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 11b67820eb67..89bf909c96e0 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -194,11 +194,9 @@ 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);
 
-static inline bool xe_device_wedged(struct xe_device *xe)
-{
-	return atomic_read(&xe->wedged.flag);
-}
-
+void xe_device_wedged_get(struct xe_device *xe);
+void xe_device_wedged_put(struct xe_device *xe);
+bool xe_device_wedged(struct xe_device *xe);
 void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
 void xe_device_declare_wedged(struct xe_device *xe);
 int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 46a9e9fad7a9..80fa60821a47 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -485,14 +485,18 @@ struct xe_device {
 
 	/** @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.ref: Refcount for wedged device, blocks critical path execution */
+		atomic_t ref;
 		/** @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.perm: Permanently wedged, needs cleanup on fini */
+		bool perm;
+		/** @wedged.lock: Lock protecting wedged state */
+		struct mutex lock;
 	} wedged;
 
 	/** @bo_device: Struct to control async free of BOs */
-- 
2.43.0


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

* [PATCH v9 09/10] drm/xe/pci: Introduce PCIe FLR
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (7 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 08/10] drm/xe: Improve wedged state management Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:29 ` [PATCH v9 10/10] drm/xe/doc: Wire up PCI Error Handling Raag Jadav
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

With bare minimum pieces in place, we can finally introduce PCIe Function
Level Reset (FLR) support which re-initializes hardware state without the
need for reloading the driver from userspace. All VRAM contents are lost
along with hardware state and driver takes care of recreating the required
kernel bos as part of re-initialization, but user still needs to recreate
user bos and reload context after PCIe FLR.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Lukasz Laguna <lukasz.laguna@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
v2: Spell out Function Level Reset (Jani)
v5: Prevent PM ref leak for wedged device (Matthew Brost)
v6: Add PCIe FLR documentation (Daniele)
v7: Refine PCIe FLR documentation (Daniele)
    Introduce xe_pci_reset_skip() helper (Lukasz)
v9: Add 'Xe' prefix to document title (Rodrigo)
---
 drivers/gpu/drm/xe/Makefile          |   1 +
 drivers/gpu/drm/xe/xe_device_types.h |   3 +
 drivers/gpu/drm/xe/xe_pci.c          |   1 +
 drivers/gpu/drm/xe/xe_pci.h          |   2 +
 drivers/gpu/drm/xe/xe_pci_error.c    | 129 +++++++++++++++++++++++++++
 5 files changed, 136 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/xe_pci_error.c

diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile
index 8e7b146880f4..3c001b2a4aec 100644
--- a/drivers/gpu/drm/xe/Makefile
+++ b/drivers/gpu/drm/xe/Makefile
@@ -101,6 +101,7 @@ xe-y += xe_bb.o \
 	xe_page_reclaim.o \
 	xe_pat.o \
 	xe_pci.o \
+	xe_pci_error.o \
 	xe_pci_rebar.o \
 	xe_pcode.o \
 	xe_pm.o \
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 80fa60821a47..3ccfa8af482c 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -480,6 +480,9 @@ struct xe_device {
 	/** @pxp: Encapsulate Protected Xe Path support */
 	struct xe_pxp *pxp;
 
+	/** @flr_prepared: Prepared for function-reset */
+	bool flr_prepared;
+
 	/** @needs_flr_on_fini: requests function-reset on fini */
 	bool needs_flr_on_fini;
 
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 03362480e3e0..d11188790eca 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -1353,6 +1353,7 @@ static struct pci_driver xe_pci_driver = {
 #ifdef CONFIG_PM_SLEEP
 	.driver.pm = &xe_pm_ops,
 #endif
+	.err_handler = &xe_pci_error_handlers,
 };
 
 /**
diff --git a/drivers/gpu/drm/xe/xe_pci.h b/drivers/gpu/drm/xe/xe_pci.h
index 11bcc5fe2c5b..24e51a71a959 100644
--- a/drivers/gpu/drm/xe/xe_pci.h
+++ b/drivers/gpu/drm/xe/xe_pci.h
@@ -8,6 +8,8 @@
 
 struct pci_dev;
 
+extern const struct pci_error_handlers xe_pci_error_handlers;
+
 int xe_register_pci_driver(void);
 void xe_unregister_pci_driver(void);
 struct xe_device *xe_pci_to_pf_device(struct pci_dev *pdev);
diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
new file mode 100644
index 000000000000..544005af4d3f
--- /dev/null
+++ b/drivers/gpu/drm/xe/xe_pci_error.c
@@ -0,0 +1,129 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2026 Intel Corporation
+ */
+
+#include "xe_device.h"
+#include "xe_printk.h"
+#include "xe_sriov_pf_helpers.h"
+
+/**
+ * DOC: Xe PCI Error Handling
+ *
+ * Xe driver registers PCI callbacks which are called by PCI core in case of
+ * bus errors or resets.
+ *
+ * Currently only Function Level Reset (FLR) callbacks are supported. PCIe FLR
+ * wipes the VRAM and resets the state of all the hardware units. Therefore, the
+ * contents of all exec queues and BOs in VRAM are lost and the hardware needs a
+ * full re-initialization. The way Xe driver handles it, is pretty much similar
+ * to system suspend/resume flow with a few notable exceptions.
+ *
+ * Prepare phase:
+ *
+ * - Temporarily wedge the device to prevent userspace access
+ * - Kill exec queues which signals all fences and frees in-flight jobs
+ * - Stop the scheduler and all submissions to GuC
+ * - The fact that FLR is needed is because hardware could be in corrupted state
+ *   and access unreliable, so skip memory eviction due to untrustworthy VRAM
+ *   contents
+ * - Remove all memory mappings since VRAM contents will be lost
+ *
+ * Re-initialization phase:
+ *
+ * - Recreate kernel BOs due to skipped memory eviction in prepare phase
+ * - Restore kernel queues which were killed in prepare phase
+ * - Reload all uC firmwares
+ * - Bring up all hardware units
+ * - Unwedge the device to allow userspace access
+ *
+ * Since VRAM contents are lost, the user is expected to recreate user memory
+ * and reload context.
+ *
+ * TODO: Add PCIe error handling callbacks using similar flow.
+ *
+ * Current implementation is only limited to re-initializing GT. This needs to
+ * be extended for a lot of components listed below.
+ *
+ * - Proper re-initialization of GSC and PXP for integrated platforms
+ * - SR-IOV cases which need PF and VF synchronization
+ * - Re-initialization of all child devices registered by Xe
+ * - MM corner cases
+ * - Display
+ */
+
+static inline bool xe_pci_reset_skip(struct xe_device *xe)
+{
+	return !IS_DGFX(xe) || IS_SRIOV_VF(xe) || xe_sriov_pf_num_vfs(xe) || xe->info.probe_display;
+}
+
+static void xe_pci_reset_prepare(struct pci_dev *pdev)
+{
+	struct xe_device *xe = pdev_to_xe_device(pdev);
+
+	if (xe_pci_reset_skip(xe)) {
+		xe_err(xe, "PCIe FLR not supported\n");
+		return;
+	}
+
+	if (xe_device_wedged(xe)) {
+		xe_err(xe, "PCIe FLR aborted, device in unexpected state\n");
+		return;
+	}
+
+	/* Wedge the device to prevent userspace access but don't send the event yet */
+	xe_device_wedged_get(xe);
+
+	/*
+	 * The hardware could be in corrupted state and access unreliable, but we try to
+	 * update data structures and cleanup any pending work to avoid side effects during
+	 * PCIe FLR. This will be similar to system suspend flow but without eviction.
+	 */
+	if (xe_device_suspend(xe, true)) {
+		xe_err(xe, "Failed to prepare for PCIe FLR\n");
+		xe_device_wedged_put(xe);
+		return;
+	}
+
+	xe->flr_prepared = true;
+	xe_info(xe, "Prepared for PCIe FLR\n");
+}
+
+static void xe_pci_reset_done(struct pci_dev *pdev)
+{
+	struct xe_device *xe = pdev_to_xe_device(pdev);
+
+	if (xe_pci_reset_skip(xe))
+		goto out;
+
+	if (!xe_device_wedged(xe) || !xe->flr_prepared)
+		goto out;
+
+	/* Unprepare early in case we fail */
+	xe->flr_prepared = false;
+
+	/*
+	 * We already have the data structures intact, so try to re-initialize the device.
+	 * This will be similar to system resume flow, except we'll also need to recreate
+	 * kernel bos and restore kernel queues.
+	 */
+	if (xe_device_resume(xe, true)) {
+		xe_err(xe, "Re-initialization failed\n");
+		xe_device_wedged_put(xe);
+		goto out;
+	}
+
+	/* Unwedge to allow userspace access */
+	xe_device_wedged_put(xe);
+	xe_info(xe, "Re-initialization success\n");
+
+	return;
+out:
+	/* Most likely the device is unusable and there's nothing we can do about it */
+	xe_device_declare_wedged(xe);
+}
+
+const struct pci_error_handlers xe_pci_error_handlers = {
+	.reset_prepare = xe_pci_reset_prepare,
+	.reset_done = xe_pci_reset_done,
+};
-- 
2.43.0


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

* [PATCH v9 10/10] drm/xe/doc: Wire up PCI Error Handling
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (8 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 09/10] drm/xe/pci: Introduce PCIe FLR Raag Jadav
@ 2026-07-01  8:29 ` Raag Jadav
  2026-07-01  8:42 ` ✗ CI.checkpatch: warning for Introduce Xe PCIe FLR (rev9) Patchwork
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-01  8:29 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar, Raag Jadav

Wire up PCI Error Handling documentation.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
 Documentation/gpu/xe/index.rst        | 1 +
 Documentation/gpu/xe/xe_pci_error.rst | 8 ++++++++
 2 files changed, 9 insertions(+)
 create mode 100644 Documentation/gpu/xe/xe_pci_error.rst

diff --git a/Documentation/gpu/xe/index.rst b/Documentation/gpu/xe/index.rst
index 665c0e93601c..e5acf299a897 100644
--- a/Documentation/gpu/xe/index.rst
+++ b/Documentation/gpu/xe/index.rst
@@ -35,3 +35,4 @@ The display, or :ref:`drm-kms`, support for drm/xe is provided by
    xe-drm-usage-stats.rst
    xe_configfs
    xe_gt_stats
+   xe_pci_error
diff --git a/Documentation/gpu/xe/xe_pci_error.rst b/Documentation/gpu/xe/xe_pci_error.rst
new file mode 100644
index 000000000000..25cc5a8adf99
--- /dev/null
+++ b/Documentation/gpu/xe/xe_pci_error.rst
@@ -0,0 +1,8 @@
+.. SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+=====================
+Xe PCI Error Handling
+=====================
+
+.. kernel-doc:: drivers/gpu/drm/xe/xe_pci_error.c
+   :doc: Xe PCI Error Handling
-- 
2.43.0


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

* ✗ CI.checkpatch: warning for Introduce Xe PCIe FLR (rev9)
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (9 preceding siblings ...)
  2026-07-01  8:29 ` [PATCH v9 10/10] drm/xe/doc: Wire up PCI Error Handling Raag Jadav
@ 2026-07-01  8:42 ` Patchwork
  2026-07-01  8:43 ` ✓ CI.KUnit: success " Patchwork
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2026-07-01  8:42 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

== Series Details ==

Series: Introduce Xe PCIe FLR (rev9)
URL   : https://patchwork.freedesktop.org/series/162055/
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
061140b9bc586ae7f40abc1249c97e1cc72d1b9d
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit df0a1942e02e08fbeccc57aa217c274313cb1e7b
Author: Raag Jadav <raag.jadav@intel.com>
Date:   Wed Jul 1 13:59:34 2026 +0530

    drm/xe/doc: Wire up PCI Error Handling
    
    Wire up PCI Error Handling documentation.
    
    Signed-off-by: Raag Jadav <raag.jadav@intel.com>
+ /mt/dim checkpatch 4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3 drm-intel
a3afad54e632 drm/xe/uc_fw: Allow re-initializing firmware
baf854f60f64 drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel()
2fa51fad7ca1 drm/xe/gt: Introduce FLR helpers
0fe4d481971b drm/xe/bo_evict: Introduce xe_bo_restore_map()
4b89deb601ac drm/xe/exec_queue: Introduce xe_exec_queue_reinit()
d77f554e01eb drm/xe/migrate: Introduce xe_migrate_reinit()
17a333b838ba drm/xe/pm: Introduce xe_device_suspend/resume()
1b0ebe7e35d5 drm/xe: Improve wedged state management
b88099ec9164 drm/xe/pci: Introduce PCIe FLR
-:69: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#69: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 160 lines checked
df0a1942e02e drm/xe/doc: Wire up PCI Error Handling
-:20: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#20: 
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 12 lines checked



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

* ✓ CI.KUnit: success for Introduce Xe PCIe FLR (rev9)
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (10 preceding siblings ...)
  2026-07-01  8:42 ` ✗ CI.checkpatch: warning for Introduce Xe PCIe FLR (rev9) Patchwork
@ 2026-07-01  8:43 ` Patchwork
  2026-07-01  9:41 ` ✓ Xe.CI.BAT: " Patchwork
  2026-07-01 23:59 ` ✓ Xe.CI.FULL: " Patchwork
  13 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2026-07-01  8:43 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

== Series Details ==

Series: Introduce Xe PCIe FLR (rev9)
URL   : https://patchwork.freedesktop.org/series/162055/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[08:42:31] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[08:42:35] 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
../drivers/gpu/drm/xe/xe_pt.c:1418:13: warning: ‘xe_pt_svm_userptr_notifier_lock’ defined but not used [-Wunused-function]
 1418 | static void xe_pt_svm_userptr_notifier_lock(struct xe_vm *vm)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[08:43:07] Starting KUnit Kernel (1/1)...
[08:43:07] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[08:43:07] ================== guc_buf (11 subtests) ===================
[08:43:07] [PASSED] test_smallest
[08:43:07] [PASSED] test_largest
[08:43:07] [PASSED] test_granular
[08:43:07] [PASSED] test_unique
[08:43:07] [PASSED] test_overlap
[08:43:07] [PASSED] test_reusable
[08:43:07] [PASSED] test_too_big
[08:43:07] [PASSED] test_flush
[08:43:07] [PASSED] test_lookup
[08:43:07] [PASSED] test_data
[08:43:07] [PASSED] test_class
[08:43:07] ===================== [PASSED] guc_buf =====================
[08:43:07] =================== guc_dbm (7 subtests) ===================
[08:43:07] [PASSED] test_empty
[08:43:07] [PASSED] test_default
[08:43:07] ======================== test_size  ========================
[08:43:07] [PASSED] 4
[08:43:07] [PASSED] 8
[08:43:07] [PASSED] 32
[08:43:07] [PASSED] 256
[08:43:07] ==================== [PASSED] test_size ====================
[08:43:07] ======================= test_reuse  ========================
[08:43:07] [PASSED] 4
[08:43:07] [PASSED] 8
[08:43:07] [PASSED] 32
[08:43:07] [PASSED] 256
[08:43:07] =================== [PASSED] test_reuse ====================
[08:43:07] =================== test_range_overlap  ====================
[08:43:07] [PASSED] 4
[08:43:07] [PASSED] 8
[08:43:07] [PASSED] 32
[08:43:07] [PASSED] 256
[08:43:07] =============== [PASSED] test_range_overlap ================
[08:43:07] =================== test_range_compact  ====================
[08:43:07] [PASSED] 4
[08:43:07] [PASSED] 8
[08:43:07] [PASSED] 32
[08:43:07] [PASSED] 256
[08:43:07] =============== [PASSED] test_range_compact ================
[08:43:07] ==================== test_range_spare  =====================
[08:43:07] [PASSED] 4
[08:43:07] [PASSED] 8
[08:43:07] [PASSED] 32
[08:43:07] [PASSED] 256
[08:43:07] ================ [PASSED] test_range_spare =================
[08:43:07] ===================== [PASSED] guc_dbm =====================
[08:43:07] =================== guc_idm (6 subtests) ===================
[08:43:07] [PASSED] bad_init
[08:43:07] [PASSED] no_init
[08:43:07] [PASSED] init_fini
[08:43:07] [PASSED] check_used
[08:43:07] [PASSED] check_quota
[08:43:07] [PASSED] check_all
[08:43:07] ===================== [PASSED] guc_idm =====================
[08:43:07] ================== no_relay (3 subtests) ===================
[08:43:07] [PASSED] xe_drops_guc2pf_if_not_ready
[08:43:07] [PASSED] xe_drops_guc2vf_if_not_ready
[08:43:07] [PASSED] xe_rejects_send_if_not_ready
[08:43:07] ==================== [PASSED] no_relay =====================
[08:43:07] ================== pf_relay (14 subtests) ==================
[08:43:07] [PASSED] pf_rejects_guc2pf_too_short
[08:43:07] [PASSED] pf_rejects_guc2pf_too_long
[08:43:07] [PASSED] pf_rejects_guc2pf_no_payload
[08:43:07] [PASSED] pf_fails_no_payload
[08:43:07] [PASSED] pf_fails_bad_origin
[08:43:07] [PASSED] pf_fails_bad_type
[08:43:07] [PASSED] pf_txn_reports_error
[08:43:07] [PASSED] pf_txn_sends_pf2guc
[08:43:07] [PASSED] pf_sends_pf2guc
[08:43:07] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[08:43:07] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[08:43:07] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[08:43:07] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[08:43:07] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[08:43:07] ==================== [PASSED] pf_relay =====================
[08:43:07] ================== vf_relay (3 subtests) ===================
[08:43:07] [PASSED] vf_rejects_guc2vf_too_short
[08:43:07] [PASSED] vf_rejects_guc2vf_too_long
[08:43:07] [PASSED] vf_rejects_guc2vf_no_payload
[08:43:07] ==================== [PASSED] vf_relay =====================
[08:43:07] ================ pf_gt_config (9 subtests) =================
[08:43:07] [PASSED] fair_contexts_1vf
[08:43:07] [PASSED] fair_doorbells_1vf
[08:43:07] [PASSED] fair_ggtt_1vf
[08:43:07] ====================== fair_vram_1vf  ======================
[08:43:07] [PASSED] 3.50 GiB
[08:43:07] [PASSED] 11.5 GiB
[08:43:07] [PASSED] 15.5 GiB
[08:43:07] [PASSED] 31.5 GiB
[08:43:07] [PASSED] 63.5 GiB
[08:43:07] [PASSED] 1.91 GiB
[08:43:07] ================== [PASSED] fair_vram_1vf ==================
[08:43:07] ================ fair_vram_1vf_admin_only  =================
[08:43:07] [PASSED] 3.50 GiB
[08:43:07] [PASSED] 11.5 GiB
[08:43:07] [PASSED] 15.5 GiB
[08:43:07] [PASSED] 31.5 GiB
[08:43:07] [PASSED] 63.5 GiB
[08:43:07] [PASSED] 1.91 GiB
[08:43:07] ============ [PASSED] fair_vram_1vf_admin_only =============
[08:43:07] ====================== fair_contexts  ======================
[08:43:07] [PASSED] 1 VF
[08:43:07] [PASSED] 2 VFs
[08:43:07] [PASSED] 3 VFs
[08:43:07] [PASSED] 4 VFs
[08:43:07] [PASSED] 5 VFs
[08:43:07] [PASSED] 6 VFs
[08:43:07] [PASSED] 7 VFs
[08:43:07] [PASSED] 8 VFs
[08:43:07] [PASSED] 9 VFs
[08:43:07] [PASSED] 10 VFs
[08:43:07] [PASSED] 11 VFs
[08:43:07] [PASSED] 12 VFs
[08:43:07] [PASSED] 13 VFs
[08:43:07] [PASSED] 14 VFs
[08:43:07] [PASSED] 15 VFs
[08:43:07] [PASSED] 16 VFs
[08:43:07] [PASSED] 17 VFs
[08:43:07] [PASSED] 18 VFs
[08:43:07] [PASSED] 19 VFs
[08:43:07] [PASSED] 20 VFs
[08:43:07] [PASSED] 21 VFs
[08:43:07] [PASSED] 22 VFs
[08:43:07] [PASSED] 23 VFs
[08:43:07] [PASSED] 24 VFs
[08:43:07] [PASSED] 25 VFs
[08:43:07] [PASSED] 26 VFs
[08:43:07] [PASSED] 27 VFs
[08:43:07] [PASSED] 28 VFs
[08:43:07] [PASSED] 29 VFs
[08:43:07] [PASSED] 30 VFs
[08:43:07] [PASSED] 31 VFs
[08:43:07] [PASSED] 32 VFs
[08:43:07] [PASSED] 33 VFs
[08:43:07] [PASSED] 34 VFs
[08:43:07] [PASSED] 35 VFs
[08:43:07] [PASSED] 36 VFs
[08:43:07] [PASSED] 37 VFs
[08:43:07] [PASSED] 38 VFs
[08:43:07] [PASSED] 39 VFs
[08:43:07] [PASSED] 40 VFs
[08:43:07] [PASSED] 41 VFs
[08:43:07] [PASSED] 42 VFs
[08:43:07] [PASSED] 43 VFs
[08:43:07] [PASSED] 44 VFs
[08:43:07] [PASSED] 45 VFs
[08:43:07] [PASSED] 46 VFs
[08:43:07] [PASSED] 47 VFs
[08:43:07] [PASSED] 48 VFs
[08:43:07] [PASSED] 49 VFs
[08:43:07] [PASSED] 50 VFs
[08:43:07] [PASSED] 51 VFs
[08:43:07] [PASSED] 52 VFs
[08:43:07] [PASSED] 53 VFs
[08:43:07] [PASSED] 54 VFs
[08:43:07] [PASSED] 55 VFs
[08:43:07] [PASSED] 56 VFs
[08:43:07] [PASSED] 57 VFs
[08:43:07] [PASSED] 58 VFs
[08:43:07] [PASSED] 59 VFs
[08:43:07] [PASSED] 60 VFs
[08:43:07] [PASSED] 61 VFs
[08:43:07] [PASSED] 62 VFs
[08:43:07] [PASSED] 63 VFs
[08:43:07] ================== [PASSED] fair_contexts ==================
[08:43:07] ===================== fair_doorbells  ======================
[08:43:07] [PASSED] 1 VF
[08:43:07] [PASSED] 2 VFs
[08:43:07] [PASSED] 3 VFs
[08:43:07] [PASSED] 4 VFs
[08:43:07] [PASSED] 5 VFs
[08:43:07] [PASSED] 6 VFs
[08:43:07] [PASSED] 7 VFs
[08:43:07] [PASSED] 8 VFs
[08:43:07] [PASSED] 9 VFs
[08:43:07] [PASSED] 10 VFs
[08:43:07] [PASSED] 11 VFs
[08:43:07] [PASSED] 12 VFs
[08:43:07] [PASSED] 13 VFs
[08:43:07] [PASSED] 14 VFs
[08:43:07] [PASSED] 15 VFs
[08:43:07] [PASSED] 16 VFs
[08:43:07] [PASSED] 17 VFs
[08:43:07] [PASSED] 18 VFs
[08:43:07] [PASSED] 19 VFs
[08:43:07] [PASSED] 20 VFs
[08:43:07] [PASSED] 21 VFs
[08:43:07] [PASSED] 22 VFs
[08:43:07] [PASSED] 23 VFs
[08:43:07] [PASSED] 24 VFs
[08:43:07] [PASSED] 25 VFs
[08:43:07] [PASSED] 26 VFs
[08:43:07] [PASSED] 27 VFs
[08:43:07] [PASSED] 28 VFs
[08:43:07] [PASSED] 29 VFs
[08:43:07] [PASSED] 30 VFs
[08:43:07] [PASSED] 31 VFs
[08:43:07] [PASSED] 32 VFs
[08:43:07] [PASSED] 33 VFs
[08:43:07] [PASSED] 34 VFs
[08:43:07] [PASSED] 35 VFs
[08:43:07] [PASSED] 36 VFs
[08:43:07] [PASSED] 37 VFs
[08:43:07] [PASSED] 38 VFs
[08:43:07] [PASSED] 39 VFs
[08:43:07] [PASSED] 40 VFs
[08:43:07] [PASSED] 41 VFs
[08:43:07] [PASSED] 42 VFs
[08:43:07] [PASSED] 43 VFs
[08:43:07] [PASSED] 44 VFs
[08:43:07] [PASSED] 45 VFs
[08:43:07] [PASSED] 46 VFs
[08:43:07] [PASSED] 47 VFs
[08:43:07] [PASSED] 48 VFs
[08:43:07] [PASSED] 49 VFs
[08:43:07] [PASSED] 50 VFs
[08:43:07] [PASSED] 51 VFs
[08:43:07] [PASSED] 52 VFs
[08:43:07] [PASSED] 53 VFs
[08:43:07] [PASSED] 54 VFs
[08:43:07] [PASSED] 55 VFs
[08:43:07] [PASSED] 56 VFs
[08:43:07] [PASSED] 57 VFs
[08:43:07] [PASSED] 58 VFs
[08:43:07] [PASSED] 59 VFs
[08:43:07] [PASSED] 60 VFs
[08:43:07] [PASSED] 61 VFs
[08:43:07] [PASSED] 62 VFs
[08:43:07] [PASSED] 63 VFs
[08:43:07] ================= [PASSED] fair_doorbells ==================
[08:43:07] ======================== fair_ggtt  ========================
[08:43:07] [PASSED] 1 VF
[08:43:07] [PASSED] 2 VFs
[08:43:07] [PASSED] 3 VFs
[08:43:07] [PASSED] 4 VFs
[08:43:07] [PASSED] 5 VFs
[08:43:07] [PASSED] 6 VFs
[08:43:07] [PASSED] 7 VFs
[08:43:07] [PASSED] 8 VFs
[08:43:07] [PASSED] 9 VFs
[08:43:07] [PASSED] 10 VFs
[08:43:07] [PASSED] 11 VFs
[08:43:07] [PASSED] 12 VFs
[08:43:07] [PASSED] 13 VFs
[08:43:07] [PASSED] 14 VFs
[08:43:07] [PASSED] 15 VFs
[08:43:07] [PASSED] 16 VFs
[08:43:07] [PASSED] 17 VFs
[08:43:07] [PASSED] 18 VFs
[08:43:07] [PASSED] 19 VFs
[08:43:07] [PASSED] 20 VFs
[08:43:07] [PASSED] 21 VFs
[08:43:07] [PASSED] 22 VFs
[08:43:07] [PASSED] 23 VFs
[08:43:07] [PASSED] 24 VFs
[08:43:07] [PASSED] 25 VFs
[08:43:07] [PASSED] 26 VFs
[08:43:07] [PASSED] 27 VFs
[08:43:07] [PASSED] 28 VFs
[08:43:07] [PASSED] 29 VFs
[08:43:07] [PASSED] 30 VFs
[08:43:07] [PASSED] 31 VFs
[08:43:07] [PASSED] 32 VFs
[08:43:07] [PASSED] 33 VFs
[08:43:07] [PASSED] 34 VFs
[08:43:07] [PASSED] 35 VFs
[08:43:07] [PASSED] 36 VFs
[08:43:07] [PASSED] 37 VFs
[08:43:07] [PASSED] 38 VFs
[08:43:07] [PASSED] 39 VFs
[08:43:07] [PASSED] 40 VFs
[08:43:07] [PASSED] 41 VFs
[08:43:07] [PASSED] 42 VFs
[08:43:07] [PASSED] 43 VFs
[08:43:07] [PASSED] 44 VFs
[08:43:07] [PASSED] 45 VFs
[08:43:07] [PASSED] 46 VFs
[08:43:07] [PASSED] 47 VFs
[08:43:07] [PASSED] 48 VFs
[08:43:07] [PASSED] 49 VFs
[08:43:07] [PASSED] 50 VFs
[08:43:07] [PASSED] 51 VFs
[08:43:07] [PASSED] 52 VFs
[08:43:07] [PASSED] 53 VFs
[08:43:07] [PASSED] 54 VFs
[08:43:07] [PASSED] 55 VFs
[08:43:07] [PASSED] 56 VFs
[08:43:07] [PASSED] 57 VFs
[08:43:07] [PASSED] 58 VFs
[08:43:07] [PASSED] 59 VFs
[08:43:07] [PASSED] 60 VFs
[08:43:07] [PASSED] 61 VFs
[08:43:07] [PASSED] 62 VFs
[08:43:07] [PASSED] 63 VFs
[08:43:07] ==================== [PASSED] fair_ggtt ====================
[08:43:07] ======================== fair_vram  ========================
[08:43:07] [PASSED] 1 VF
[08:43:07] [PASSED] 2 VFs
[08:43:07] [PASSED] 3 VFs
[08:43:07] [PASSED] 4 VFs
[08:43:07] [PASSED] 5 VFs
[08:43:07] [PASSED] 6 VFs
[08:43:07] [PASSED] 7 VFs
[08:43:07] [PASSED] 8 VFs
[08:43:07] [PASSED] 9 VFs
[08:43:07] [PASSED] 10 VFs
[08:43:07] [PASSED] 11 VFs
[08:43:07] [PASSED] 12 VFs
[08:43:07] [PASSED] 13 VFs
[08:43:07] [PASSED] 14 VFs
[08:43:07] [PASSED] 15 VFs
[08:43:07] [PASSED] 16 VFs
[08:43:07] [PASSED] 17 VFs
[08:43:07] [PASSED] 18 VFs
[08:43:07] [PASSED] 19 VFs
[08:43:07] [PASSED] 20 VFs
[08:43:07] [PASSED] 21 VFs
[08:43:07] [PASSED] 22 VFs
[08:43:07] [PASSED] 23 VFs
[08:43:07] [PASSED] 24 VFs
[08:43:07] [PASSED] 25 VFs
[08:43:07] [PASSED] 26 VFs
[08:43:07] [PASSED] 27 VFs
[08:43:07] [PASSED] 28 VFs
[08:43:07] [PASSED] 29 VFs
[08:43:07] [PASSED] 30 VFs
[08:43:07] [PASSED] 31 VFs
[08:43:07] [PASSED] 32 VFs
[08:43:07] [PASSED] 33 VFs
[08:43:07] [PASSED] 34 VFs
[08:43:07] [PASSED] 35 VFs
[08:43:07] [PASSED] 36 VFs
[08:43:07] [PASSED] 37 VFs
[08:43:07] [PASSED] 38 VFs
[08:43:07] [PASSED] 39 VFs
[08:43:07] [PASSED] 40 VFs
[08:43:07] [PASSED] 41 VFs
[08:43:07] [PASSED] 42 VFs
[08:43:07] [PASSED] 43 VFs
[08:43:07] [PASSED] 44 VFs
[08:43:07] [PASSED] 45 VFs
[08:43:07] [PASSED] 46 VFs
[08:43:07] [PASSED] 47 VFs
[08:43:07] [PASSED] 48 VFs
[08:43:07] [PASSED] 49 VFs
[08:43:07] [PASSED] 50 VFs
[08:43:07] [PASSED] 51 VFs
[08:43:07] [PASSED] 52 VFs
[08:43:07] [PASSED] 53 VFs
[08:43:08] [PASSED] 54 VFs
[08:43:08] [PASSED] 55 VFs
[08:43:08] [PASSED] 56 VFs
[08:43:08] [PASSED] 57 VFs
[08:43:08] [PASSED] 58 VFs
[08:43:08] [PASSED] 59 VFs
[08:43:08] [PASSED] 60 VFs
[08:43:08] [PASSED] 61 VFs
[08:43:08] [PASSED] 62 VFs
[08:43:08] [PASSED] 63 VFs
[08:43:08] ==================== [PASSED] fair_vram ====================
[08:43:08] ================== [PASSED] pf_gt_config ===================
[08:43:08] ===================== lmtt (1 subtest) =====================
[08:43:08] ======================== test_ops  =========================
[08:43:08] [PASSED] 2-level
[08:43:08] [PASSED] multi-level
[08:43:08] ==================== [PASSED] test_ops =====================
[08:43:08] ====================== [PASSED] lmtt =======================
[08:43:08] ================= pf_service (11 subtests) =================
[08:43:08] [PASSED] pf_negotiate_any
[08:43:08] [PASSED] pf_negotiate_base_match
[08:43:08] [PASSED] pf_negotiate_base_newer
[08:43:08] [PASSED] pf_negotiate_base_next
[08:43:08] [SKIPPED] pf_negotiate_base_older (no older minor)
[08:43:08] [PASSED] pf_negotiate_base_prev
[08:43:08] [PASSED] pf_negotiate_latest_match
[08:43:08] [PASSED] pf_negotiate_latest_newer
[08:43:08] [PASSED] pf_negotiate_latest_next
[08:43:08] [SKIPPED] pf_negotiate_latest_older (no older minor)
[08:43:08] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[08:43:08] =================== [PASSED] pf_service ====================
[08:43:08] ================= xe_guc_g2g (2 subtests) ==================
[08:43:08] ============== xe_live_guc_g2g_kunit_default  ==============
[08:43:08] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[08:43:08] ============== xe_live_guc_g2g_kunit_allmem  ===============
[08:43:08] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[08:43:08] =================== [SKIPPED] xe_guc_g2g ===================
[08:43:08] =================== xe_mocs (2 subtests) ===================
[08:43:08] ================ xe_live_mocs_kernel_kunit  ================
[08:43:08] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[08:43:08] ================ xe_live_mocs_reset_kunit  =================
[08:43:08] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[08:43:08] ==================== [SKIPPED] xe_mocs =====================
[08:43:08] ================= xe_migrate (2 subtests) ==================
[08:43:08] ================= xe_migrate_sanity_kunit  =================
[08:43:08] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[08:43:08] ================== xe_validate_ccs_kunit  ==================
[08:43:08] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[08:43:08] =================== [SKIPPED] xe_migrate ===================
[08:43:08] ================== xe_dma_buf (1 subtest) ==================
[08:43:08] ==================== xe_dma_buf_kunit  =====================
[08:43:08] ================ [SKIPPED] xe_dma_buf_kunit ================
[08:43:08] =================== [SKIPPED] xe_dma_buf ===================
[08:43:08] ================= xe_bo_shrink (1 subtest) =================
[08:43:08] =================== xe_bo_shrink_kunit  ====================
[08:43:08] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[08:43:08] ================== [SKIPPED] xe_bo_shrink ==================
[08:43:08] ==================== xe_bo (2 subtests) ====================
[08:43:08] ================== xe_ccs_migrate_kunit  ===================
[08:43:08] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[08:43:08] ==================== xe_bo_evict_kunit  ====================
[08:43:08] =============== [SKIPPED] xe_bo_evict_kunit ================
[08:43:08] ===================== [SKIPPED] xe_bo ======================
[08:43:08] ==================== args (13 subtests) ====================
[08:43:08] [PASSED] count_args_test
[08:43:08] [PASSED] call_args_example
[08:43:08] [PASSED] call_args_test
[08:43:08] [PASSED] drop_first_arg_example
[08:43:08] [PASSED] drop_first_arg_test
[08:43:08] [PASSED] first_arg_example
[08:43:08] [PASSED] first_arg_test
[08:43:08] [PASSED] last_arg_example
[08:43:08] [PASSED] last_arg_test
[08:43:08] [PASSED] pick_arg_example
[08:43:08] [PASSED] if_args_example
[08:43:08] [PASSED] if_args_test
[08:43:08] [PASSED] sep_comma_example
[08:43:08] ====================== [PASSED] args =======================
[08:43:08] =================== xe_pci (3 subtests) ====================
[08:43:08] ==================== check_graphics_ip  ====================
[08:43:08] [PASSED] 12.00 Xe_LP
[08:43:08] [PASSED] 12.10 Xe_LP+
[08:43:08] [PASSED] 12.55 Xe_HPG
[08:43:08] [PASSED] 12.60 Xe_HPC
[08:43:08] [PASSED] 12.70 Xe_LPG
[08:43:08] [PASSED] 12.71 Xe_LPG
[08:43:08] [PASSED] 12.74 Xe_LPG+
[08:43:08] [PASSED] 20.01 Xe2_HPG
[08:43:08] [PASSED] 20.02 Xe2_HPG
[08:43:08] [PASSED] 20.04 Xe2_LPG
[08:43:08] [PASSED] 30.00 Xe3_LPG
[08:43:08] [PASSED] 30.01 Xe3_LPG
[08:43:08] [PASSED] 30.03 Xe3_LPG
[08:43:08] [PASSED] 30.04 Xe3_LPG
[08:43:08] [PASSED] 30.05 Xe3_LPG
[08:43:08] [PASSED] 35.10 Xe3p_LPG
[08:43:08] [PASSED] 35.11 Xe3p_XPC
[08:43:08] ================ [PASSED] check_graphics_ip ================
[08:43:08] ===================== check_media_ip  ======================
[08:43:08] [PASSED] 12.00 Xe_M
[08:43:08] [PASSED] 12.55 Xe_HPM
[08:43:08] [PASSED] 13.00 Xe_LPM+
[08:43:08] [PASSED] 13.01 Xe2_HPM
[08:43:08] [PASSED] 20.00 Xe2_LPM
[08:43:08] [PASSED] 30.00 Xe3_LPM
[08:43:08] [PASSED] 30.02 Xe3_LPM
[08:43:08] [PASSED] 35.00 Xe3p_LPM
[08:43:08] [PASSED] 35.03 Xe3p_HPM
[08:43:08] ================= [PASSED] check_media_ip ==================
[08:43:08] =================== check_platform_desc  ===================
[08:43:08] [PASSED] 0x9A60 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A68 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A70 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A40 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A49 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A59 (TIGERLAKE)
[08:43:08] [PASSED] 0x9A78 (TIGERLAKE)
[08:43:08] [PASSED] 0x9AC0 (TIGERLAKE)
[08:43:08] [PASSED] 0x9AC9 (TIGERLAKE)
[08:43:08] [PASSED] 0x9AD9 (TIGERLAKE)
[08:43:08] [PASSED] 0x9AF8 (TIGERLAKE)
[08:43:08] [PASSED] 0x4C80 (ROCKETLAKE)
[08:43:08] [PASSED] 0x4C8A (ROCKETLAKE)
[08:43:08] [PASSED] 0x4C8B (ROCKETLAKE)
[08:43:08] [PASSED] 0x4C8C (ROCKETLAKE)
[08:43:08] [PASSED] 0x4C90 (ROCKETLAKE)
[08:43:08] [PASSED] 0x4C9A (ROCKETLAKE)
[08:43:08] [PASSED] 0x4680 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4682 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4688 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x468A (ALDERLAKE_S)
[08:43:08] [PASSED] 0x468B (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4690 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4692 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4693 (ALDERLAKE_S)
[08:43:08] [PASSED] 0x46A0 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46A1 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46A2 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46A3 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46A6 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46A8 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46AA (ALDERLAKE_P)
[08:43:08] [PASSED] 0x462A (ALDERLAKE_P)
[08:43:08] [PASSED] 0x4626 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x4628 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46B0 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46B1 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46B2 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46B3 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46C0 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46C1 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46C2 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46C3 (ALDERLAKE_P)
[08:43:08] [PASSED] 0x46D0 (ALDERLAKE_N)
[08:43:08] [PASSED] 0x46D1 (ALDERLAKE_N)
[08:43:08] [PASSED] 0x46D2 (ALDERLAKE_N)
[08:43:08] [PASSED] 0x46D3 (ALDERLAKE_N)
[08:43:08] [PASSED] 0x46D4 (ALDERLAKE_N)
[08:43:08] [PASSED] 0xA721 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7A1 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7A9 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7AC (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7AD (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA720 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7A0 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7A8 (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7AA (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA7AB (ALDERLAKE_P)
[08:43:08] [PASSED] 0xA780 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA781 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA782 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA783 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA788 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA789 (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA78A (ALDERLAKE_S)
[08:43:08] [PASSED] 0xA78B (ALDERLAKE_S)
[08:43:08] [PASSED] 0x4905 (DG1)
[08:43:08] [PASSED] 0x4906 (DG1)
[08:43:08] [PASSED] 0x4907 (DG1)
[08:43:08] [PASSED] 0x4908 (DG1)
[08:43:08] [PASSED] 0x4909 (DG1)
[08:43:08] [PASSED] 0x56C0 (DG2)
[08:43:08] [PASSED] 0x56C2 (DG2)
[08:43:08] [PASSED] 0x56C1 (DG2)
[08:43:08] [PASSED] 0x7D51 (METEORLAKE)
[08:43:08] [PASSED] 0x7DD1 (METEORLAKE)
[08:43:08] [PASSED] 0x7D41 (METEORLAKE)
[08:43:08] [PASSED] 0x7D67 (METEORLAKE)
[08:43:08] [PASSED] 0xB640 (METEORLAKE)
[08:43:08] [PASSED] 0x56A0 (DG2)
[08:43:08] [PASSED] 0x56A1 (DG2)
[08:43:08] [PASSED] 0x56A2 (DG2)
[08:43:08] [PASSED] 0x56BE (DG2)
[08:43:08] [PASSED] 0x56BF (DG2)
[08:43:08] [PASSED] 0x5690 (DG2)
[08:43:08] [PASSED] 0x5691 (DG2)
[08:43:08] [PASSED] 0x5692 (DG2)
[08:43:08] [PASSED] 0x56A5 (DG2)
[08:43:08] [PASSED] 0x56A6 (DG2)
[08:43:08] [PASSED] 0x56B0 (DG2)
[08:43:08] [PASSED] 0x56B1 (DG2)
[08:43:08] [PASSED] 0x56BA (DG2)
[08:43:08] [PASSED] 0x56BB (DG2)
[08:43:08] [PASSED] 0x56BC (DG2)
[08:43:08] [PASSED] 0x56BD (DG2)
[08:43:08] [PASSED] 0x5693 (DG2)
[08:43:08] [PASSED] 0x5694 (DG2)
[08:43:08] [PASSED] 0x5695 (DG2)
[08:43:08] [PASSED] 0x56A3 (DG2)
[08:43:08] [PASSED] 0x56A4 (DG2)
[08:43:08] [PASSED] 0x56B2 (DG2)
[08:43:08] [PASSED] 0x56B3 (DG2)
[08:43:08] [PASSED] 0x5696 (DG2)
[08:43:08] [PASSED] 0x5697 (DG2)
[08:43:08] [PASSED] 0xB69 (PVC)
[08:43:08] [PASSED] 0xB6E (PVC)
[08:43:08] [PASSED] 0xBD4 (PVC)
[08:43:08] [PASSED] 0xBD5 (PVC)
[08:43:08] [PASSED] 0xBD6 (PVC)
[08:43:08] [PASSED] 0xBD7 (PVC)
[08:43:08] [PASSED] 0xBD8 (PVC)
[08:43:08] [PASSED] 0xBD9 (PVC)
[08:43:08] [PASSED] 0xBDA (PVC)
[08:43:08] [PASSED] 0xBDB (PVC)
[08:43:08] [PASSED] 0xBE0 (PVC)
[08:43:08] [PASSED] 0xBE1 (PVC)
[08:43:08] [PASSED] 0xBE5 (PVC)
[08:43:08] [PASSED] 0x7D40 (METEORLAKE)
[08:43:08] [PASSED] 0x7D45 (METEORLAKE)
[08:43:08] [PASSED] 0x7D55 (METEORLAKE)
[08:43:08] [PASSED] 0x7D60 (METEORLAKE)
[08:43:08] [PASSED] 0x7DD5 (METEORLAKE)
[08:43:08] [PASSED] 0x6420 (LUNARLAKE)
[08:43:08] [PASSED] 0x64A0 (LUNARLAKE)
[08:43:08] [PASSED] 0x64B0 (LUNARLAKE)
[08:43:08] [PASSED] 0xE202 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE209 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE20B (BATTLEMAGE)
[08:43:08] [PASSED] 0xE20C (BATTLEMAGE)
[08:43:08] [PASSED] 0xE20D (BATTLEMAGE)
[08:43:08] [PASSED] 0xE210 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE211 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE212 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE216 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE220 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE221 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE222 (BATTLEMAGE)
[08:43:08] [PASSED] 0xE223 (BATTLEMAGE)
[08:43:08] [PASSED] 0xB080 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB081 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB082 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB083 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB084 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB085 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB086 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB087 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB08F (PANTHERLAKE)
[08:43:08] [PASSED] 0xB090 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB0A0 (PANTHERLAKE)
[08:43:08] [PASSED] 0xB0B0 (PANTHERLAKE)
[08:43:08] [PASSED] 0xFD80 (PANTHERLAKE)
[08:43:08] [PASSED] 0xFD81 (PANTHERLAKE)
[08:43:08] [PASSED] 0xD740 (NOVALAKE_S)
[08:43:08] [PASSED] 0xD741 (NOVALAKE_S)
[08:43:08] [PASSED] 0xD742 (NOVALAKE_S)
[08:43:08] [PASSED] 0xD743 (NOVALAKE_S)
[08:43:08] [PASSED] 0xD745 (NOVALAKE_S)
[08:43:08] [PASSED] 0xD74A (NOVALAKE_S)
[08:43:08] [PASSED] 0xD74B (NOVALAKE_S)
[08:43:08] [PASSED] 0x674C (CRESCENTISLAND)
[08:43:08] [PASSED] 0x674D (CRESCENTISLAND)
[08:43:08] [PASSED] 0x674E (CRESCENTISLAND)
[08:43:08] [PASSED] 0x674F (CRESCENTISLAND)
[08:43:08] [PASSED] 0x6750 (CRESCENTISLAND)
[08:43:08] [PASSED] 0xD750 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD751 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD752 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD753 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD754 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD755 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD756 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD757 (NOVALAKE_P)
[08:43:08] [PASSED] 0xD75F (NOVALAKE_P)
[08:43:08] =============== [PASSED] check_platform_desc ===============
[08:43:08] ===================== [PASSED] xe_pci ======================
[08:43:08] ============= xe_rtp_tables_test (5 subtests) ==============
[08:43:08] ================== xe_rtp_table_gt_test  ===================
[08:43:08] [PASSED] gt_was/14011060649
[08:43:08] [PASSED] gt_was/14011059788
[08:43:08] [PASSED] gt_was/14015795083
[08:43:08] [PASSED] gt_was/16021867713
[08:43:08] [PASSED] gt_was/14019449301
[08:43:08] [PASSED] gt_was/16028005424
[08:43:08] [PASSED] gt_was/14026578760
[08:43:08] [PASSED] gt_was/1409420604
[08:43:08] [PASSED] gt_was/1408615072
[08:43:08] [PASSED] gt_was/22010523718
[08:43:08] [PASSED] gt_was/14011006942
[08:43:08] [PASSED] gt_was/14014830051
[08:43:08] [PASSED] gt_was/18018781329
[08:43:08] [PASSED] gt_was/1509235366
[08:43:08] [PASSED] gt_was/18018781329
[08:43:08] [PASSED] gt_was/16016694945
[08:43:08] [PASSED] gt_was/14018575942
[08:43:08] [PASSED] gt_was/22016670082
[08:43:08] [PASSED] gt_was/22016670082
[08:43:08] [PASSED] gt_was/14017421178
[08:43:08] [PASSED] gt_was/16025250150
[08:43:08] [PASSED] gt_was/14021871409
[08:43:08] [PASSED] gt_was/16021865536
[08:43:08] [PASSED] gt_was/14021486841
[08:43:08] [PASSED] gt_was/14025160223
[08:43:08] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[08:43:08] [PASSED] gt_was/14025635424
[08:43:08] [PASSED] gt_was/16028005424
[08:43:08] ============== [PASSED] xe_rtp_table_gt_test ===============
[08:43:08] ================== xe_rtp_table_gt_test  ===================
[08:43:08] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[08:43:08] [PASSED] gt_tunings/Tuning: 32B Access Enable
[08:43:08] [PASSED] gt_tunings/Tuning: L3 cache
[08:43:08] [PASSED] gt_tunings/Tuning: L3 cache - media
[08:43:08] [PASSED] gt_tunings/Tuning: Compression Overfetch
[08:43:08] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[08:43:08] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[08:43:08] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[08:43:08] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[08:43:08] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[08:43:08] [PASSED] gt_tunings/Tuning: Stateless compression control
[08:43:08] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[08:43:08] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[08:43:08] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[08:43:08] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[08:43:08] ============== [PASSED] xe_rtp_table_gt_test ===============
[08:43:08] ================== xe_rtp_table_oob_test  ==================
[08:43:08] [PASSED] oob_was/1607983814
[08:43:08] [PASSED] oob_was/16010904313
[08:43:08] [PASSED] oob_was/18022495364
[08:43:08] [PASSED] oob_was/22012773006
[08:43:08] [PASSED] oob_was/14014475959
[08:43:08] [PASSED] oob_was/22011391025
[08:43:08] [PASSED] oob_was/22012727170
[08:43:08] [PASSED] oob_was/22012727685
[08:43:08] [PASSED] oob_was/22016596838
[08:43:08] [PASSED] oob_was/18020744125
[08:43:08] [PASSED] oob_was/1409600907
[08:43:08] [PASSED] oob_was/22014953428
[08:43:08] [PASSED] oob_was/16017236439
[08:43:08] [PASSED] oob_was/14019821291
[08:43:08] [PASSED] oob_was/14015076503
[08:43:08] [PASSED] oob_was/14018913170
[08:43:08] [PASSED] oob_was/14018094691
[08:43:08] [PASSED] oob_was/18024947630
[08:43:08] [PASSED] oob_was/16022287689
[08:43:08] [PASSED] oob_was/13011645652
[08:43:08] [PASSED] oob_was/14022293748
[08:43:08] [PASSED] oob_was/22019794406
[08:43:08] [PASSED] oob_was/22019338487
[08:43:08] [PASSED] oob_was/16023588340
[08:43:08] [PASSED] oob_was/14019789679
[08:43:08] [PASSED] oob_was/14022866841
[08:43:08] [PASSED] oob_was/16021333562
[08:43:08] [PASSED] oob_was/14016712196
[08:43:08] [PASSED] oob_was/14015568240
[08:43:08] [PASSED] oob_was/18013179988
[08:43:08] [PASSED] oob_was/1508761755
[08:43:08] [PASSED] oob_was/16023105232
[08:43:08] [PASSED] oob_was/16026508708
[08:43:08] [PASSED] oob_was/14020001231
[08:43:08] [PASSED] oob_was/16023683509
[08:43:08] [PASSED] oob_was/14025515070
[08:43:08] [PASSED] oob_was/15015404425_disable
[08:43:08] [PASSED] oob_was/16026007364
[08:43:08] [PASSED] oob_was/14020316580
[08:43:08] [PASSED] oob_was/14025883347
[08:43:08] [PASSED] oob_was/16029380221
[08:43:08] ============== [PASSED] xe_rtp_table_oob_test ==============
[08:43:08] ================ xe_rtp_table_dev_oob_test  ================
[08:43:08] [PASSED] device_oob_was/22010954014
[08:43:08] [PASSED] device_oob_was/15015404425
[08:43:08] [PASSED] device_oob_was/22019338487_display
[08:43:08] [PASSED] device_oob_was/14022085890
[08:43:08] [PASSED] device_oob_was/14026539277
[08:43:08] [PASSED] device_oob_was/14026633728
[08:43:08] [PASSED] device_oob_was/14026746987
[08:43:08] [PASSED] device_oob_was/14026779378
[08:43:08] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[08:43:08] ========== xe_rtp_table_missing_upper_bound_test  ==========
[08:43:08] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[08:43:08] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[08:43:08] [PASSED] register_whitelist/1806527549
[08:43:08] [PASSED] register_whitelist/allow_read_ctx_timestamp
[08:43:08] [PASSED] register_whitelist/allow_read_queue_timestamp
[08:43:08] [PASSED] register_whitelist/16014440446
[08:43:08] [PASSED] register_whitelist/16017236439
[08:43:08] [PASSED] register_whitelist/16020183090
[08:43:08] [PASSED] register_whitelist/14024997852
[08:43:08] [PASSED] register_whitelist/14024997852
[08:43:08] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[08:43:08] =============== [PASSED] xe_rtp_tables_test ================
[08:43:08] =================== xe_rtp (3 subtests) ====================
[08:43:08] =================== xe_rtp_rules_tests  ====================
[08:43:08] [PASSED] no
[08:43:08] [PASSED] yes
[08:43:08] [PASSED] no-and-no
[08:43:08] [PASSED] no-and-yes
[08:43:08] [PASSED] yes-and-no
[08:43:08] [PASSED] yes-and-yes
[08:43:08] [PASSED] no-or-no
[08:43:08] [PASSED] no-or-yes
[08:43:08] [PASSED] yes-or-no
[08:43:08] [PASSED] yes-or-yes
[08:43:08] [PASSED] no-yes-or-yes-no
[08:43:08] [PASSED] no-yes-or-yes-yes
[08:43:08] [PASSED] yes-yes-or-no-yes
[08:43:08] [PASSED] yes-yes-or-yes-yes
[08:43:08] [PASSED] no-no-or-yes-or-no
[08:43:08] [PASSED] or
[08:43:08] [PASSED] or-yes
[08:43:08] [PASSED] or-no
[08:43:08] [PASSED] yes-or
[08:43:08] [PASSED] no-or
[08:43:08] [PASSED] no-or-or-yes
[08:43:08] [PASSED] yes-or-or-no
[08:43:08] [PASSED] no-or-or-no
[08:43:08] [PASSED] missing-context-engine-class
[08:43:08] [PASSED] missing-context-engine-class-or-yes
[08:43:08] [PASSED] missing-context-engine-class-or-or-yes
[08:43:08] =============== [PASSED] xe_rtp_rules_tests ================
[08:43:08] =============== xe_rtp_process_to_sr_tests  ================
[08:43:08] [PASSED] coalesce-same-reg
[08:43:08] [PASSED] coalesce-same-reg-literal-and-func
[08:43:08] [PASSED] no-match-no-add
[08:43:08] [PASSED] two-regs-two-entries
[08:43:08] [PASSED] clr-one-set-other
[08:43:08] [PASSED] set-field
[08:43:08] [PASSED] conflict-duplicate
[08:43:08] [PASSED] conflict-not-disjoint
[08:43:08] [PASSED] conflict-not-disjoint-literal-and-func
[08:43:08] [PASSED] conflict-reg-type
[08:43:08] [PASSED] bad-mcr-reg-forced-to-regular
[08:43:08] [PASSED] bad-regular-reg-forced-to-mcr
[08:43:08] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[08:43:08] ================== xe_rtp_process_tests  ===================
[08:43:08] [PASSED] active1
[08:43:08] [PASSED] active2
[08:43:08] [PASSED] active-inactive
[08:43:08] [PASSED] inactive-active
[08:43:08] [PASSED] inactive-active-inactive
[08:43:08] [PASSED] inactive-inactive-inactive
[08:43:08] ============== [PASSED] xe_rtp_process_tests ===============
[08:43:08] ===================== [PASSED] xe_rtp ======================
[08:43:08] ==================== xe_wa (1 subtest) =====================
[08:43:08] ======================== xe_wa_gt  =========================
[08:43:08] [PASSED] TIGERLAKE B0
[08:43:08] [PASSED] DG1 A0
[08:43:08] [PASSED] DG1 B0
[08:43:08] [PASSED] ALDERLAKE_S A0
[08:43:08] [PASSED] ALDERLAKE_S B0
[08:43:08] [PASSED] ALDERLAKE_S C0
[08:43:08] [PASSED] ALDERLAKE_S D0
[08:43:08] [PASSED] ALDERLAKE_P A0
[08:43:08] [PASSED] ALDERLAKE_P B0
[08:43:08] [PASSED] ALDERLAKE_P C0
[08:43:08] [PASSED] ALDERLAKE_S RPLS D0
[08:43:08] [PASSED] ALDERLAKE_P RPLU E0
[08:43:08] [PASSED] DG2 G10 C0
[08:43:08] [PASSED] DG2 G11 B1
[08:43:08] [PASSED] DG2 G12 A1
[08:43:08] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[08:43:08] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[08:43:08] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[08:43:08] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[08:43:08] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[08:43:08] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[08:43:08] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[08:43:08] ==================== [PASSED] xe_wa_gt =====================
[08:43:08] ====================== [PASSED] xe_wa ======================
[08:43:08] ============================================================
[08:43:08] Testing complete. Ran 729 tests: passed: 711, skipped: 18
[08:43:08] Elapsed time: 36.834s total, 4.437s configuring, 31.781s building, 0.600s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[08:43:08] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[08:43:09] 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
[08:43:34] Starting KUnit Kernel (1/1)...
[08:43:34] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[08:43:34] ============ drm_test_pick_cmdline (2 subtests) ============
[08:43:34] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[08:43:34] =============== drm_test_pick_cmdline_named  ===============
[08:43:34] [PASSED] NTSC
[08:43:34] [PASSED] NTSC-J
[08:43:34] [PASSED] PAL
[08:43:34] [PASSED] PAL-M
[08:43:34] =========== [PASSED] drm_test_pick_cmdline_named ===========
[08:43:34] ============== [PASSED] drm_test_pick_cmdline ==============
[08:43:34] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[08:43:34] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[08:43:34] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[08:43:34] =========== drm_validate_clone_mode (2 subtests) ===========
[08:43:34] ============== drm_test_check_in_clone_mode  ===============
[08:43:34] [PASSED] in_clone_mode
[08:43:34] [PASSED] not_in_clone_mode
[08:43:34] ========== [PASSED] drm_test_check_in_clone_mode ===========
[08:43:34] =============== drm_test_check_valid_clones  ===============
[08:43:34] [PASSED] not_in_clone_mode
[08:43:34] [PASSED] valid_clone
[08:43:34] [PASSED] invalid_clone
[08:43:34] =========== [PASSED] drm_test_check_valid_clones ===========
[08:43:34] ============= [PASSED] drm_validate_clone_mode =============
[08:43:34] ============= drm_validate_modeset (1 subtest) =============
[08:43:34] [PASSED] drm_test_check_connector_changed_modeset
[08:43:34] ============== [PASSED] drm_validate_modeset ===============
[08:43:34] ====== drm_test_bridge_get_current_state (2 subtests) ======
[08:43:34] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[08:43:34] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[08:43:34] ======== [PASSED] drm_test_bridge_get_current_state ========
[08:43:34] ====== drm_test_bridge_helper_reset_crtc (4 subtests) ======
[08:43:34] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[08:43:34] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[08:43:34] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[08:43:34] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[08:43:34] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[08:43:34] ============== drm_bridge_alloc (2 subtests) ===============
[08:43:34] [PASSED] drm_test_drm_bridge_alloc_basic
[08:43:34] [PASSED] drm_test_drm_bridge_alloc_get_put
[08:43:34] ================ [PASSED] drm_bridge_alloc =================
[08:43:34] ============= drm_bridge_bus_fmt (5 subtests) ==============
[08:43:34] [PASSED] drm_test_bridge_rgb_yuv_rgb
[08:43:34] [PASSED] drm_test_bridge_must_convert_to_yuv444
[08:43:34] [PASSED] drm_test_bridge_hdmi_auto_rgb
[08:43:34] [PASSED] drm_test_bridge_auto_first
[08:43:34] [PASSED] drm_test_bridge_rgb_yuv_no_path
[08:43:34] =============== [PASSED] drm_bridge_bus_fmt ================
[08:43:34] ============= drm_cmdline_parser (40 subtests) =============
[08:43:34] [PASSED] drm_test_cmdline_force_d_only
[08:43:34] [PASSED] drm_test_cmdline_force_D_only_dvi
[08:43:34] [PASSED] drm_test_cmdline_force_D_only_hdmi
[08:43:34] [PASSED] drm_test_cmdline_force_D_only_not_digital
[08:43:34] [PASSED] drm_test_cmdline_force_e_only
[08:43:34] [PASSED] drm_test_cmdline_res
[08:43:34] [PASSED] drm_test_cmdline_res_vesa
[08:43:34] [PASSED] drm_test_cmdline_res_vesa_rblank
[08:43:34] [PASSED] drm_test_cmdline_res_rblank
[08:43:34] [PASSED] drm_test_cmdline_res_bpp
[08:43:34] [PASSED] drm_test_cmdline_res_refresh
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[08:43:34] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[08:43:34] [PASSED] drm_test_cmdline_res_margins_force_on
[08:43:34] [PASSED] drm_test_cmdline_res_vesa_margins
[08:43:34] [PASSED] drm_test_cmdline_name
[08:43:34] [PASSED] drm_test_cmdline_name_bpp
[08:43:34] [PASSED] drm_test_cmdline_name_option
[08:43:34] [PASSED] drm_test_cmdline_name_bpp_option
[08:43:34] [PASSED] drm_test_cmdline_rotate_0
[08:43:34] [PASSED] drm_test_cmdline_rotate_90
[08:43:34] [PASSED] drm_test_cmdline_rotate_180
[08:43:34] [PASSED] drm_test_cmdline_rotate_270
[08:43:34] [PASSED] drm_test_cmdline_hmirror
[08:43:34] [PASSED] drm_test_cmdline_vmirror
[08:43:34] [PASSED] drm_test_cmdline_margin_options
[08:43:34] [PASSED] drm_test_cmdline_multiple_options
[08:43:34] [PASSED] drm_test_cmdline_bpp_extra_and_option
[08:43:34] [PASSED] drm_test_cmdline_extra_and_option
[08:43:34] [PASSED] drm_test_cmdline_freestanding_options
[08:43:34] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[08:43:34] [PASSED] drm_test_cmdline_panel_orientation
[08:43:34] ================ drm_test_cmdline_invalid  =================
[08:43:34] [PASSED] margin_only
[08:43:34] [PASSED] interlace_only
[08:43:34] [PASSED] res_missing_x
[08:43:34] [PASSED] res_missing_y
[08:43:34] [PASSED] res_bad_y
[08:43:34] [PASSED] res_missing_y_bpp
[08:43:34] [PASSED] res_bad_bpp
[08:43:34] [PASSED] res_bad_refresh
[08:43:34] [PASSED] res_bpp_refresh_force_on_off
[08:43:34] [PASSED] res_invalid_mode
[08:43:34] [PASSED] res_bpp_wrong_place_mode
[08:43:34] [PASSED] name_bpp_refresh
[08:43:34] [PASSED] name_refresh
[08:43:34] [PASSED] name_refresh_wrong_mode
[08:43:34] [PASSED] name_refresh_invalid_mode
[08:43:34] [PASSED] rotate_multiple
[08:43:34] [PASSED] rotate_invalid_val
[08:43:34] [PASSED] rotate_truncated
[08:43:34] [PASSED] invalid_option
[08:43:34] [PASSED] invalid_tv_option
[08:43:34] [PASSED] truncated_tv_option
[08:43:34] ============ [PASSED] drm_test_cmdline_invalid =============
[08:43:34] =============== drm_test_cmdline_tv_options  ===============
[08:43:34] [PASSED] NTSC
[08:43:34] [PASSED] NTSC_443
[08:43:34] [PASSED] NTSC_J
[08:43:34] [PASSED] PAL
[08:43:34] [PASSED] PAL_M
[08:43:34] [PASSED] PAL_N
[08:43:34] [PASSED] SECAM
[08:43:34] [PASSED] MONO_525
[08:43:34] [PASSED] MONO_625
[08:43:34] =========== [PASSED] drm_test_cmdline_tv_options ===========
[08:43:34] =============== [PASSED] drm_cmdline_parser ================
[08:43:34] ========== drmm_connector_hdmi_init (20 subtests) ==========
[08:43:34] [PASSED] drm_test_connector_hdmi_init_valid
[08:43:34] [PASSED] drm_test_connector_hdmi_init_bpc_8
[08:43:34] [PASSED] drm_test_connector_hdmi_init_bpc_10
[08:43:34] [PASSED] drm_test_connector_hdmi_init_bpc_12
[08:43:34] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[08:43:34] [PASSED] drm_test_connector_hdmi_init_bpc_null
[08:43:34] [PASSED] drm_test_connector_hdmi_init_formats_empty
[08:43:34] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[08:43:34] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[08:43:34] [PASSED] supported_formats=0x9 yuv420_allowed=1
[08:43:34] [PASSED] supported_formats=0x9 yuv420_allowed=0
[08:43:34] [PASSED] supported_formats=0x5 yuv420_allowed=1
[08:43:34] [PASSED] supported_formats=0x5 yuv420_allowed=0
[08:43:34] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[08:43:34] [PASSED] drm_test_connector_hdmi_init_null_ddc
[08:43:34] [PASSED] drm_test_connector_hdmi_init_null_product
[08:43:34] [PASSED] drm_test_connector_hdmi_init_null_vendor
[08:43:34] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[08:43:34] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[08:43:34] [PASSED] drm_test_connector_hdmi_init_product_valid
[08:43:34] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[08:43:34] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[08:43:34] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[08:43:34] ========= drm_test_connector_hdmi_init_type_valid  =========
[08:43:34] [PASSED] HDMI-A
[08:43:34] [PASSED] HDMI-B
[08:43:34] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[08:43:34] ======== drm_test_connector_hdmi_init_type_invalid  ========
[08:43:34] [PASSED] Unknown
[08:43:34] [PASSED] VGA
[08:43:34] [PASSED] DVI-I
[08:43:34] [PASSED] DVI-D
[08:43:34] [PASSED] DVI-A
[08:43:34] [PASSED] Composite
[08:43:34] [PASSED] SVIDEO
[08:43:34] [PASSED] LVDS
[08:43:34] [PASSED] Component
[08:43:34] [PASSED] DIN
[08:43:34] [PASSED] DP
[08:43:34] [PASSED] TV
[08:43:34] [PASSED] eDP
[08:43:34] [PASSED] Virtual
[08:43:34] [PASSED] DSI
[08:43:34] [PASSED] DPI
[08:43:34] [PASSED] Writeback
[08:43:34] [PASSED] SPI
[08:43:34] [PASSED] USB
[08:43:34] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[08:43:34] ============ [PASSED] drmm_connector_hdmi_init =============
[08:43:34] ============= drmm_connector_init (3 subtests) =============
[08:43:34] [PASSED] drm_test_drmm_connector_init
[08:43:34] [PASSED] drm_test_drmm_connector_init_null_ddc
[08:43:34] ========= drm_test_drmm_connector_init_type_valid  =========
[08:43:34] [PASSED] Unknown
[08:43:34] [PASSED] VGA
[08:43:34] [PASSED] DVI-I
[08:43:34] [PASSED] DVI-D
[08:43:34] [PASSED] DVI-A
[08:43:34] [PASSED] Composite
[08:43:34] [PASSED] SVIDEO
[08:43:34] [PASSED] LVDS
[08:43:34] [PASSED] Component
[08:43:34] [PASSED] DIN
[08:43:34] [PASSED] DP
[08:43:34] [PASSED] HDMI-A
[08:43:34] [PASSED] HDMI-B
[08:43:34] [PASSED] TV
[08:43:34] [PASSED] eDP
[08:43:34] [PASSED] Virtual
[08:43:34] [PASSED] DSI
[08:43:34] [PASSED] DPI
[08:43:34] [PASSED] Writeback
[08:43:34] [PASSED] SPI
[08:43:34] [PASSED] USB
[08:43:34] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[08:43:34] =============== [PASSED] drmm_connector_init ===============
[08:43:34] ========= drm_connector_dynamic_init (6 subtests) ==========
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_init
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_init_properties
[08:43:34] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[08:43:34] [PASSED] Unknown
[08:43:34] [PASSED] VGA
[08:43:34] [PASSED] DVI-I
[08:43:34] [PASSED] DVI-D
[08:43:34] [PASSED] DVI-A
[08:43:34] [PASSED] Composite
[08:43:34] [PASSED] SVIDEO
[08:43:34] [PASSED] LVDS
[08:43:34] [PASSED] Component
[08:43:34] [PASSED] DIN
[08:43:34] [PASSED] DP
[08:43:34] [PASSED] HDMI-A
[08:43:34] [PASSED] HDMI-B
[08:43:34] [PASSED] TV
[08:43:34] [PASSED] eDP
[08:43:34] [PASSED] Virtual
[08:43:34] [PASSED] DSI
[08:43:34] [PASSED] DPI
[08:43:34] [PASSED] Writeback
[08:43:34] [PASSED] SPI
[08:43:34] [PASSED] USB
[08:43:34] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[08:43:34] ======== drm_test_drm_connector_dynamic_init_name  =========
[08:43:34] [PASSED] Unknown
[08:43:34] [PASSED] VGA
[08:43:34] [PASSED] DVI-I
[08:43:34] [PASSED] DVI-D
[08:43:34] [PASSED] DVI-A
[08:43:34] [PASSED] Composite
[08:43:34] [PASSED] SVIDEO
[08:43:34] [PASSED] LVDS
[08:43:34] [PASSED] Component
[08:43:34] [PASSED] DIN
[08:43:34] [PASSED] DP
[08:43:34] [PASSED] HDMI-A
[08:43:34] [PASSED] HDMI-B
[08:43:34] [PASSED] TV
[08:43:34] [PASSED] eDP
[08:43:34] [PASSED] Virtual
[08:43:34] [PASSED] DSI
[08:43:34] [PASSED] DPI
[08:43:34] [PASSED] Writeback
[08:43:34] [PASSED] SPI
[08:43:34] [PASSED] USB
[08:43:34] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[08:43:34] =========== [PASSED] drm_connector_dynamic_init ============
[08:43:34] ==== drm_connector_dynamic_register_early (4 subtests) =====
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[08:43:34] ====== [PASSED] drm_connector_dynamic_register_early =======
[08:43:34] ======= drm_connector_dynamic_register (7 subtests) ========
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[08:43:34] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[08:43:34] ========= [PASSED] drm_connector_dynamic_register ==========
[08:43:34] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[08:43:34] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[08:43:34] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[08:43:34] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[08:43:34] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[08:43:34] ========== drm_test_get_tv_mode_from_name_valid  ===========
[08:43:34] [PASSED] NTSC
[08:43:34] [PASSED] NTSC-443
[08:43:34] [PASSED] NTSC-J
[08:43:34] [PASSED] PAL
[08:43:34] [PASSED] PAL-M
[08:43:34] [PASSED] PAL-N
[08:43:34] [PASSED] SECAM
[08:43:34] [PASSED] Mono
[08:43:34] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[08:43:34] [PASSED] drm_test_get_tv_mode_from_name_truncated
[08:43:34] ============ [PASSED] drm_get_tv_mode_from_name ============
[08:43:34] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[08:43:34] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[08:43:34] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[08:43:34] [PASSED] VIC 96
[08:43:34] [PASSED] VIC 97
[08:43:34] [PASSED] VIC 101
[08:43:34] [PASSED] VIC 102
[08:43:34] [PASSED] VIC 106
[08:43:34] [PASSED] VIC 107
[08:43:34] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[08:43:34] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[08:43:34] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[08:43:34] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[08:43:34] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[08:43:34] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[08:43:34] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[08:43:34] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[08:43:34] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[08:43:34] [PASSED] Automatic
[08:43:34] [PASSED] Full
[08:43:34] [PASSED] Limited 16:235
[08:43:34] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[08:43:34] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[08:43:34] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[08:43:34] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[08:43:34] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[08:43:34] [PASSED] RGB
[08:43:34] [PASSED] YUV 4:2:0
[08:43:34] [PASSED] YUV 4:2:2
[08:43:34] [PASSED] YUV 4:4:4
[08:43:34] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[08:43:34] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[08:43:34] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[08:43:34] ============= drm_damage_helper (21 subtests) ==============
[08:43:34] [PASSED] drm_test_damage_iter_no_damage
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_src_moved
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_not_visible
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[08:43:34] [PASSED] drm_test_damage_iter_no_damage_no_fb
[08:43:34] [PASSED] drm_test_damage_iter_simple_damage
[08:43:34] [PASSED] drm_test_damage_iter_single_damage
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_outside_src
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_src_moved
[08:43:34] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[08:43:34] [PASSED] drm_test_damage_iter_damage
[08:43:34] [PASSED] drm_test_damage_iter_damage_one_intersect
[08:43:34] [PASSED] drm_test_damage_iter_damage_one_outside
[08:43:34] [PASSED] drm_test_damage_iter_damage_src_moved
[08:43:34] [PASSED] drm_test_damage_iter_damage_not_visible
[08:43:34] ================ [PASSED] drm_damage_helper ================
[08:43:34] ============== drm_dp_mst_helper (3 subtests) ==============
[08:43:34] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[08:43:34] [PASSED] Clock 154000 BPP 30 DSC disabled
[08:43:34] [PASSED] Clock 234000 BPP 30 DSC disabled
[08:43:34] [PASSED] Clock 297000 BPP 24 DSC disabled
[08:43:34] [PASSED] Clock 332880 BPP 24 DSC enabled
[08:43:34] [PASSED] Clock 324540 BPP 24 DSC enabled
[08:43:34] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[08:43:34] ============== drm_test_dp_mst_calc_pbn_div  ===============
[08:43:34] [PASSED] Link rate 2000000 lane count 4
[08:43:34] [PASSED] Link rate 2000000 lane count 2
[08:43:34] [PASSED] Link rate 2000000 lane count 1
[08:43:34] [PASSED] Link rate 1350000 lane count 4
[08:43:34] [PASSED] Link rate 1350000 lane count 2
[08:43:34] [PASSED] Link rate 1350000 lane count 1
[08:43:34] [PASSED] Link rate 1000000 lane count 4
[08:43:34] [PASSED] Link rate 1000000 lane count 2
[08:43:34] [PASSED] Link rate 1000000 lane count 1
[08:43:34] [PASSED] Link rate 810000 lane count 4
[08:43:34] [PASSED] Link rate 810000 lane count 2
[08:43:34] [PASSED] Link rate 810000 lane count 1
[08:43:34] [PASSED] Link rate 540000 lane count 4
[08:43:34] [PASSED] Link rate 540000 lane count 2
[08:43:34] [PASSED] Link rate 540000 lane count 1
[08:43:34] [PASSED] Link rate 270000 lane count 4
[08:43:34] [PASSED] Link rate 270000 lane count 2
[08:43:34] [PASSED] Link rate 270000 lane count 1
[08:43:34] [PASSED] Link rate 162000 lane count 4
[08:43:34] [PASSED] Link rate 162000 lane count 2
[08:43:34] [PASSED] Link rate 162000 lane count 1
[08:43:34] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[08:43:34] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[08:43:34] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[08:43:34] [PASSED] DP_POWER_UP_PHY with port number
[08:43:34] [PASSED] DP_POWER_DOWN_PHY with port number
[08:43:34] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[08:43:34] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[08:43:34] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[08:43:34] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[08:43:34] [PASSED] DP_QUERY_PAYLOAD with port number
[08:43:34] [PASSED] DP_QUERY_PAYLOAD with VCPI
[08:43:34] [PASSED] DP_REMOTE_DPCD_READ with port number
[08:43:34] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[08:43:34] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[08:43:34] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[08:43:34] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[08:43:34] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[08:43:34] [PASSED] DP_REMOTE_I2C_READ with port number
[08:43:34] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[08:43:34] [PASSED] DP_REMOTE_I2C_READ with transactions array
[08:43:34] [PASSED] DP_REMOTE_I2C_WRITE with port number
[08:43:34] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[08:43:34] [PASSED] DP_REMOTE_I2C_WRITE with data array
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[08:43:34] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[08:43:34] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[08:43:34] ================ [PASSED] drm_dp_mst_helper ================
[08:43:34] ================== drm_exec (7 subtests) ===================
[08:43:34] [PASSED] sanitycheck
[08:43:34] [PASSED] test_lock
[08:43:34] [PASSED] test_lock_unlock
[08:43:34] [PASSED] test_duplicates
[08:43:34] [PASSED] test_prepare
[08:43:34] [PASSED] test_prepare_array
[08:43:34] [PASSED] test_multiple_loops
[08:43:34] ==================== [PASSED] drm_exec =====================
[08:43:34] =========== drm_format_helper_test (17 subtests) ===========
[08:43:34] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[08:43:34] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[08:43:34] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[08:43:34] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[08:43:34] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[08:43:34] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[08:43:34] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[08:43:34] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[08:43:34] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[08:43:34] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[08:43:34] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[08:43:34] ============== drm_test_fb_xrgb8888_to_mono  ===============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[08:43:34] ==================== drm_test_fb_swab  =====================
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ================ [PASSED] drm_test_fb_swab =================
[08:43:34] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[08:43:34] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[08:43:34] [PASSED] single_pixel_source_buffer
[08:43:34] [PASSED] single_pixel_clip_rectangle
[08:43:34] [PASSED] well_known_colors
[08:43:34] [PASSED] destination_pitch
[08:43:34] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[08:43:34] ================= drm_test_fb_clip_offset  =================
[08:43:34] [PASSED] pass through
[08:43:34] [PASSED] horizontal offset
[08:43:34] [PASSED] vertical offset
[08:43:34] [PASSED] horizontal and vertical offset
[08:43:34] [PASSED] horizontal offset (custom pitch)
[08:43:34] [PASSED] vertical offset (custom pitch)
[08:43:34] [PASSED] horizontal and vertical offset (custom pitch)
[08:43:34] ============= [PASSED] drm_test_fb_clip_offset =============
[08:43:34] =================== drm_test_fb_memcpy  ====================
[08:43:34] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[08:43:34] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[08:43:34] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[08:43:34] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[08:43:34] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[08:43:34] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[08:43:34] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[08:43:34] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[08:43:34] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[08:43:34] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[08:43:34] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[08:43:34] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[08:43:34] =============== [PASSED] drm_test_fb_memcpy ================
[08:43:34] ============= [PASSED] drm_format_helper_test ==============
[08:43:34] ================= drm_format (18 subtests) =================
[08:43:34] [PASSED] drm_test_format_block_width_invalid
[08:43:34] [PASSED] drm_test_format_block_width_one_plane
[08:43:34] [PASSED] drm_test_format_block_width_two_plane
[08:43:34] [PASSED] drm_test_format_block_width_three_plane
[08:43:34] [PASSED] drm_test_format_block_width_tiled
[08:43:34] [PASSED] drm_test_format_block_height_invalid
[08:43:34] [PASSED] drm_test_format_block_height_one_plane
[08:43:34] [PASSED] drm_test_format_block_height_two_plane
[08:43:34] [PASSED] drm_test_format_block_height_three_plane
[08:43:34] [PASSED] drm_test_format_block_height_tiled
[08:43:34] [PASSED] drm_test_format_min_pitch_invalid
[08:43:34] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[08:43:34] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[08:43:34] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[08:43:34] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[08:43:34] [PASSED] drm_test_format_min_pitch_two_plane
[08:43:34] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[08:43:34] [PASSED] drm_test_format_min_pitch_tiled
[08:43:34] =================== [PASSED] drm_format ====================
[08:43:34] ============== drm_framebuffer (10 subtests) ===============
[08:43:34] ========== drm_test_framebuffer_check_src_coords  ==========
[08:43:34] [PASSED] Success: source fits into fb
[08:43:34] [PASSED] Fail: overflowing fb with x-axis coordinate
[08:43:34] [PASSED] Fail: overflowing fb with y-axis coordinate
[08:43:34] [PASSED] Fail: overflowing fb with source width
[08:43:34] [PASSED] Fail: overflowing fb with source height
[08:43:34] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[08:43:34] [PASSED] drm_test_framebuffer_cleanup
[08:43:34] =============== drm_test_framebuffer_create  ===============
[08:43:34] [PASSED] ABGR8888 normal sizes
[08:43:34] [PASSED] ABGR8888 max sizes
[08:43:34] [PASSED] ABGR8888 pitch greater than min required
[08:43:34] [PASSED] ABGR8888 pitch less than min required
[08:43:34] [PASSED] ABGR8888 Invalid width
[08:43:34] [PASSED] ABGR8888 Invalid buffer handle
[08:43:34] [PASSED] No pixel format
[08:43:34] [PASSED] ABGR8888 Width 0
[08:43:34] [PASSED] ABGR8888 Height 0
[08:43:34] [PASSED] ABGR8888 Out of bound height * pitch combination
[08:43:34] [PASSED] ABGR8888 Large buffer offset
[08:43:34] [PASSED] ABGR8888 Buffer offset for inexistent plane
[08:43:34] [PASSED] ABGR8888 Invalid flag
[08:43:34] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[08:43:34] [PASSED] ABGR8888 Valid buffer modifier
[08:43:34] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[08:43:34] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] NV12 Normal sizes
[08:43:34] [PASSED] NV12 Max sizes
[08:43:34] [PASSED] NV12 Invalid pitch
[08:43:34] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[08:43:34] [PASSED] NV12 different  modifier per-plane
[08:43:34] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[08:43:34] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] NV12 Modifier for inexistent plane
[08:43:34] [PASSED] NV12 Handle for inexistent plane
[08:43:34] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[08:43:34] [PASSED] YVU420 Normal sizes
[08:43:34] [PASSED] YVU420 Max sizes
[08:43:34] [PASSED] YVU420 Invalid pitch
[08:43:34] [PASSED] YVU420 Different pitches
[08:43:34] [PASSED] YVU420 Different buffer offsets/pitches
[08:43:34] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[08:43:34] [PASSED] YVU420 Valid modifier
[08:43:34] [PASSED] YVU420 Different modifiers per plane
[08:43:34] [PASSED] YVU420 Modifier for inexistent plane
[08:43:34] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[08:43:34] [PASSED] X0L2 Normal sizes
[08:43:34] [PASSED] X0L2 Max sizes
[08:43:34] [PASSED] X0L2 Invalid pitch
[08:43:34] [PASSED] X0L2 Pitch greater than minimum required
[08:43:34] [PASSED] X0L2 Handle for inexistent plane
[08:43:34] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[08:43:34] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[08:43:34] [PASSED] X0L2 Valid modifier
[08:43:34] [PASSED] X0L2 Modifier for inexistent plane
[08:43:34] =========== [PASSED] drm_test_framebuffer_create ===========
[08:43:34] [PASSED] drm_test_framebuffer_free
[08:43:34] [PASSED] drm_test_framebuffer_init
[08:43:34] [PASSED] drm_test_framebuffer_init_bad_format
[08:43:34] [PASSED] drm_test_framebuffer_init_dev_mismatch
[08:43:34] [PASSED] drm_test_framebuffer_lookup
[08:43:34] [PASSED] drm_test_framebuffer_lookup_inexistent
[08:43:34] [PASSED] drm_test_framebuffer_modifiers_not_supported
[08:43:34] ================= [PASSED] drm_framebuffer =================
[08:43:34] ================ drm_gem_shmem (8 subtests) ================
[08:43:34] [PASSED] drm_gem_shmem_test_obj_create
[08:43:34] [PASSED] drm_gem_shmem_test_obj_create_private
[08:43:34] [PASSED] drm_gem_shmem_test_pin_pages
[08:43:34] [PASSED] drm_gem_shmem_test_vmap
[08:43:34] [PASSED] drm_gem_shmem_test_get_sg_table
[08:43:34] [PASSED] drm_gem_shmem_test_get_pages_sgt
[08:43:34] [PASSED] drm_gem_shmem_test_madvise
[08:43:34] [PASSED] drm_gem_shmem_test_purge
[08:43:34] ================== [PASSED] drm_gem_shmem ==================
[08:43:34] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[08:43:34] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[08:43:34] [PASSED] Automatic
[08:43:34] [PASSED] Full
[08:43:34] [PASSED] Limited 16:235
[08:43:34] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[08:43:34] [PASSED] drm_test_check_disable_connector
[08:43:34] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[08:43:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[08:43:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[08:43:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[08:43:34] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[08:43:34] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[08:43:34] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[08:43:34] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[08:43:34] [PASSED] drm_test_check_output_bpc_dvi
[08:43:34] [PASSED] drm_test_check_output_bpc_format_vic_1
[08:43:34] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[08:43:34] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[08:43:34] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[08:43:34] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[08:43:34] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[08:43:34] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[08:43:34] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[08:43:34] ============ drm_test_check_hdmi_color_format  =============
[08:43:34] [PASSED] AUTO -> RGB
[08:43:34] [PASSED] YCBCR422 -> YUV422
[08:43:34] [PASSED] YCBCR420 -> YUV420
[08:43:34] [PASSED] YCBCR444 -> YUV444
[08:43:34] [PASSED] RGB -> RGB
[08:43:34] ======== [PASSED] drm_test_check_hdmi_color_format =========
[08:43:34] ======== drm_test_check_hdmi_color_format_420_only  ========
[08:43:34] [PASSED] RGB should fail
[08:43:34] [PASSED] YUV444 should fail
[08:43:34] [PASSED] YUV422 should fail
[08:43:34] [PASSED] YUV420 should work
[08:43:34] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[08:43:34] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[08:43:34] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[08:43:34] [PASSED] drm_test_check_broadcast_rgb_value
[08:43:34] [PASSED] drm_test_check_bpc_8_value
[08:43:34] [PASSED] drm_test_check_bpc_10_value
[08:43:34] [PASSED] drm_test_check_bpc_12_value
[08:43:34] [PASSED] drm_test_check_format_value
[08:43:34] [PASSED] drm_test_check_tmds_char_value
[08:43:34] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[08:43:34] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[08:43:34] [PASSED] drm_test_check_mode_valid
[08:43:34] [PASSED] drm_test_check_mode_valid_reject
[08:43:34] [PASSED] drm_test_check_mode_valid_reject_rate
[08:43:34] [PASSED] drm_test_check_mode_valid_reject_max_clock
[08:43:34] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[08:43:34] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[08:43:34] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[08:43:34] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[08:43:34] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[08:43:34] [PASSED] drm_test_check_infoframes
[08:43:34] [PASSED] drm_test_check_reject_avi_infoframe
[08:43:34] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[08:43:34] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[08:43:34] [PASSED] drm_test_check_reject_audio_infoframe
[08:43:34] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[08:43:34] ================= drm_managed (2 subtests) =================
[08:43:34] [PASSED] drm_test_managed_release_action
[08:43:34] [PASSED] drm_test_managed_run_action
[08:43:34] =================== [PASSED] drm_managed ===================
[08:43:34] =================== drm_mm (6 subtests) ====================
[08:43:34] [PASSED] drm_test_mm_init
[08:43:34] [PASSED] drm_test_mm_debug
[08:43:34] [PASSED] drm_test_mm_align32
[08:43:34] [PASSED] drm_test_mm_align64
[08:43:34] [PASSED] drm_test_mm_lowest
[08:43:34] [PASSED] drm_test_mm_highest
[08:43:34] ===================== [PASSED] drm_mm ======================
[08:43:34] ============= drm_modes_analog_tv (5 subtests) =============
[08:43:34] [PASSED] drm_test_modes_analog_tv_mono_576i
[08:43:34] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[08:43:34] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[08:43:34] [PASSED] drm_test_modes_analog_tv_pal_576i
[08:43:34] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[08:43:34] =============== [PASSED] drm_modes_analog_tv ===============
[08:43:34] ============== drm_plane_helper (2 subtests) ===============
[08:43:34] =============== drm_test_check_plane_state  ================
[08:43:34] [PASSED] clipping_simple
[08:43:34] [PASSED] clipping_rotate_reflect
[08:43:34] [PASSED] positioning_simple
[08:43:34] [PASSED] upscaling
[08:43:34] [PASSED] downscaling
[08:43:34] [PASSED] rounding1
[08:43:34] [PASSED] rounding2
[08:43:34] [PASSED] rounding3
[08:43:34] [PASSED] rounding4
[08:43:34] =========== [PASSED] drm_test_check_plane_state ============
[08:43:34] =========== drm_test_check_invalid_plane_state  ============
[08:43:34] [PASSED] positioning_invalid
[08:43:34] [PASSED] upscaling_invalid
[08:43:34] [PASSED] downscaling_invalid
[08:43:34] ======= [PASSED] drm_test_check_invalid_plane_state ========
[08:43:34] ================ [PASSED] drm_plane_helper =================
[08:43:34] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[08:43:34] ====== drm_test_connector_helper_tv_get_modes_check  =======
[08:43:34] [PASSED] None
[08:43:34] [PASSED] PAL
[08:43:34] [PASSED] NTSC
[08:43:34] [PASSED] Both, NTSC Default
[08:43:34] [PASSED] Both, PAL Default
[08:43:34] [PASSED] Both, NTSC Default, with PAL on command-line
[08:43:34] [PASSED] Both, PAL Default, with NTSC on command-line
[08:43:34] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[08:43:34] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[08:43:34] ================== drm_rect (9 subtests) ===================
[08:43:34] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[08:43:34] [PASSED] drm_test_rect_clip_scaled_not_clipped
[08:43:34] [PASSED] drm_test_rect_clip_scaled_clipped
[08:43:34] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[08:43:34] ================= drm_test_rect_intersect  =================
[08:43:34] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[08:43:34] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[08:43:34] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[08:43:34] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[08:43:34] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[08:43:34] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[08:43:34] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[08:43:34] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[08:43:34] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[08:43:34] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[08:43:34] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[08:43:34] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[08:43:34] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[08:43:34] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[08:43:34] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[08:43:34] ============= [PASSED] drm_test_rect_intersect =============
[08:43:34] ================ drm_test_rect_calc_hscale  ================
[08:43:34] [PASSED] normal use
[08:43:34] [PASSED] out of max range
[08:43:34] [PASSED] out of min range
[08:43:34] [PASSED] zero dst
[08:43:34] [PASSED] negative src
[08:43:34] [PASSED] negative dst
[08:43:34] ============ [PASSED] drm_test_rect_calc_hscale ============
[08:43:34] ================ drm_test_rect_calc_vscale  ================
[08:43:34] [PASSED] normal use
[08:43:34] [PASSED] out of max range
[08:43:34] [PASSED] out of min range
[08:43:34] [PASSED] zero dst
[08:43:34] [PASSED] negative src
[08:43:34] [PASSED] negative dst
[08:43:34] ============ [PASSED] drm_test_rect_calc_vscale ============
[08:43:34] ================== drm_test_rect_rotate  ===================
[08:43:34] [PASSED] reflect-x
[08:43:34] [PASSED] reflect-y
[08:43:34] [PASSED] rotate-0
[08:43:34] [PASSED] rotate-90
[08:43:34] [PASSED] rotate-180
[08:43:34] [PASSED] rotate-270
[08:43:34] ============== [PASSED] drm_test_rect_rotate ===============
[08:43:34] ================ drm_test_rect_rotate_inv  =================
[08:43:34] [PASSED] reflect-x
[08:43:34] [PASSED] reflect-y
[08:43:34] [PASSED] rotate-0
[08:43:34] [PASSED] rotate-90
[08:43:34] [PASSED] rotate-180
[08:43:34] [PASSED] rotate-270
[08:43:34] ============ [PASSED] drm_test_rect_rotate_inv =============
[08:43:34] ==================== [PASSED] drm_rect =====================
[08:43:34] ============ drm_sysfb_modeset_test (1 subtest) ============
[08:43:34] ============ drm_test_sysfb_build_fourcc_list  =============
[08:43:34] [PASSED] no native formats
[08:43:34] [PASSED] XRGB8888 as native format
[08:43:34] [PASSED] remove duplicates
[08:43:34] [PASSED] convert alpha formats
[08:43:34] [PASSED] random formats
[08:43:34] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[08:43:34] ============= [PASSED] drm_sysfb_modeset_test ==============
[08:43:34] ================== drm_fixp (2 subtests) ===================
[08:43:34] [PASSED] drm_test_int2fixp
[08:43:34] [PASSED] drm_test_sm2fixp
[08:43:34] ==================== [PASSED] drm_fixp =====================
[08:43:34] ============================================================
[08:43:34] Testing complete. Ran 639 tests: passed: 639
[08:43:34] Elapsed time: 26.446s total, 1.739s configuring, 24.490s building, 0.191s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[08:43:34] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[08:43:36] 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
[08:43:46] Starting KUnit Kernel (1/1)...
[08:43:46] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[08:43:46] ================= ttm_device (5 subtests) ==================
[08:43:46] [PASSED] ttm_device_init_basic
[08:43:46] [PASSED] ttm_device_init_multiple
[08:43:46] [PASSED] ttm_device_fini_basic
[08:43:46] [PASSED] ttm_device_init_no_vma_man
[08:43:46] ================== ttm_device_init_pools  ==================
[08:43:46] [PASSED] No DMA allocations, no DMA32 required
[08:43:46] [PASSED] DMA allocations, DMA32 required
[08:43:46] [PASSED] No DMA allocations, DMA32 required
[08:43:46] [PASSED] DMA allocations, no DMA32 required
[08:43:46] ============== [PASSED] ttm_device_init_pools ==============
[08:43:46] =================== [PASSED] ttm_device ====================
[08:43:46] ================== ttm_pool (8 subtests) ===================
[08:43:46] ================== ttm_pool_alloc_basic  ===================
[08:43:46] [PASSED] One page
[08:43:46] [PASSED] More than one page
[08:43:46] [PASSED] Above the allocation limit
[08:43:46] [PASSED] One page, with coherent DMA mappings enabled
[08:43:46] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[08:43:46] ============== [PASSED] ttm_pool_alloc_basic ===============
[08:43:46] ============== ttm_pool_alloc_basic_dma_addr  ==============
[08:43:46] [PASSED] One page
[08:43:46] [PASSED] More than one page
[08:43:46] [PASSED] Above the allocation limit
[08:43:46] [PASSED] One page, with coherent DMA mappings enabled
[08:43:46] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[08:43:46] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[08:43:46] [PASSED] ttm_pool_alloc_order_caching_match
[08:43:46] [PASSED] ttm_pool_alloc_caching_mismatch
[08:43:46] [PASSED] ttm_pool_alloc_order_mismatch
[08:43:46] [PASSED] ttm_pool_free_dma_alloc
[08:43:46] [PASSED] ttm_pool_free_no_dma_alloc
[08:43:46] [PASSED] ttm_pool_fini_basic
[08:43:46] ==================== [PASSED] ttm_pool =====================
[08:43:46] ================ ttm_resource (8 subtests) =================
[08:43:46] ================= ttm_resource_init_basic  =================
[08:43:46] [PASSED] Init resource in TTM_PL_SYSTEM
[08:43:46] [PASSED] Init resource in TTM_PL_VRAM
[08:43:46] [PASSED] Init resource in a private placement
[08:43:46] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[08:43:46] ============= [PASSED] ttm_resource_init_basic =============
[08:43:46] [PASSED] ttm_resource_init_pinned
[08:43:46] [PASSED] ttm_resource_fini_basic
[08:43:46] [PASSED] ttm_resource_manager_init_basic
[08:43:46] [PASSED] ttm_resource_manager_usage_basic
[08:43:46] [PASSED] ttm_resource_manager_set_used_basic
[08:43:46] [PASSED] ttm_sys_man_alloc_basic
[08:43:46] [PASSED] ttm_sys_man_free_basic
[08:43:46] ================== [PASSED] ttm_resource ===================
[08:43:46] =================== ttm_tt (15 subtests) ===================
[08:43:46] ==================== ttm_tt_init_basic  ====================
[08:43:46] [PASSED] Page-aligned size
[08:43:46] [PASSED] Extra pages requested
[08:43:46] ================ [PASSED] ttm_tt_init_basic ================
[08:43:46] [PASSED] ttm_tt_init_misaligned
[08:43:46] [PASSED] ttm_tt_fini_basic
[08:43:46] [PASSED] ttm_tt_fini_sg
[08:43:46] [PASSED] ttm_tt_fini_shmem
[08:43:46] [PASSED] ttm_tt_create_basic
[08:43:46] [PASSED] ttm_tt_create_invalid_bo_type
[08:43:46] [PASSED] ttm_tt_create_ttm_exists
[08:43:46] [PASSED] ttm_tt_create_failed
[08:43:46] [PASSED] ttm_tt_destroy_basic
[08:43:46] [PASSED] ttm_tt_populate_null_ttm
[08:43:46] [PASSED] ttm_tt_populate_populated_ttm
[08:43:46] [PASSED] ttm_tt_unpopulate_basic
[08:43:46] [PASSED] ttm_tt_unpopulate_empty_ttm
[08:43:46] [PASSED] ttm_tt_swapin_basic
[08:43:46] ===================== [PASSED] ttm_tt ======================
[08:43:46] =================== ttm_bo (14 subtests) ===================
[08:43:46] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[08:43:46] [PASSED] Cannot be interrupted and sleeps
[08:43:46] [PASSED] Cannot be interrupted, locks straight away
[08:43:46] [PASSED] Can be interrupted, sleeps
[08:43:46] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[08:43:46] [PASSED] ttm_bo_reserve_locked_no_sleep
[08:43:46] [PASSED] ttm_bo_reserve_no_wait_ticket
[08:43:46] [PASSED] ttm_bo_reserve_double_resv
[08:43:46] [PASSED] ttm_bo_reserve_interrupted
[08:43:46] [PASSED] ttm_bo_reserve_deadlock
[08:43:46] [PASSED] ttm_bo_unreserve_basic
[08:43:46] [PASSED] ttm_bo_unreserve_pinned
[08:43:46] [PASSED] ttm_bo_unreserve_bulk
[08:43:46] [PASSED] ttm_bo_fini_basic
[08:43:46] [PASSED] ttm_bo_fini_shared_resv
[08:43:46] [PASSED] ttm_bo_pin_basic
[08:43:46] [PASSED] ttm_bo_pin_unpin_resource
[08:43:46] [PASSED] ttm_bo_multiple_pin_one_unpin
[08:43:46] ===================== [PASSED] ttm_bo ======================
[08:43:46] ============== ttm_bo_validate (22 subtests) ===============
[08:43:46] ============== ttm_bo_init_reserved_sys_man  ===============
[08:43:46] [PASSED] Buffer object for userspace
[08:43:46] [PASSED] Kernel buffer object
[08:43:46] [PASSED] Shared buffer object
[08:43:46] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[08:43:46] ============== ttm_bo_init_reserved_mock_man  ==============
[08:43:46] [PASSED] Buffer object for userspace
[08:43:46] [PASSED] Kernel buffer object
[08:43:46] [PASSED] Shared buffer object
[08:43:46] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[08:43:46] [PASSED] ttm_bo_init_reserved_resv
[08:43:46] ================== ttm_bo_validate_basic  ==================
[08:43:46] [PASSED] Buffer object for userspace
[08:43:46] [PASSED] Kernel buffer object
[08:43:46] [PASSED] Shared buffer object
[08:43:46] ============== [PASSED] ttm_bo_validate_basic ==============
[08:43:46] [PASSED] ttm_bo_validate_invalid_placement
[08:43:46] ============= ttm_bo_validate_same_placement  ==============
[08:43:46] [PASSED] System manager
[08:43:46] [PASSED] VRAM manager
[08:43:46] ========= [PASSED] ttm_bo_validate_same_placement ==========
[08:43:46] [PASSED] ttm_bo_validate_failed_alloc
[08:43:46] [PASSED] ttm_bo_validate_pinned
[08:43:46] [PASSED] ttm_bo_validate_busy_placement
[08:43:46] ================ ttm_bo_validate_multihop  =================
[08:43:46] [PASSED] Buffer object for userspace
[08:43:46] [PASSED] Kernel buffer object
[08:43:46] [PASSED] Shared buffer object
[08:43:46] ============ [PASSED] ttm_bo_validate_multihop =============
[08:43:46] ========== ttm_bo_validate_no_placement_signaled  ==========
[08:43:46] [PASSED] Buffer object in system domain, no page vector
[08:43:46] [PASSED] Buffer object in system domain with an existing page vector
[08:43:46] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[08:43:46] ======== ttm_bo_validate_no_placement_not_signaled  ========
[08:43:46] [PASSED] Buffer object for userspace
[08:43:46] [PASSED] Kernel buffer object
[08:43:46] [PASSED] Shared buffer object
[08:43:46] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[08:43:46] [PASSED] ttm_bo_validate_move_fence_signaled
[08:43:46] ========= ttm_bo_validate_move_fence_not_signaled  =========
[08:43:46] [PASSED] Waits for GPU
[08:43:46] [PASSED] Tries to lock straight away
[08:43:46] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[08:43:46] [PASSED] ttm_bo_validate_swapout
[08:43:46] [PASSED] ttm_bo_validate_happy_evict
[08:43:46] [PASSED] ttm_bo_validate_all_pinned_evict
[08:43:46] [PASSED] ttm_bo_validate_allowed_only_evict
[08:43:46] [PASSED] ttm_bo_validate_deleted_evict
[08:43:46] [PASSED] ttm_bo_validate_busy_domain_evict
[08:43:46] [PASSED] ttm_bo_validate_evict_gutting
[08:43:46] [PASSED] ttm_bo_validate_recrusive_evict
[08:43:46] ================= [PASSED] ttm_bo_validate =================
[08:43:46] ============================================================
[08:43:46] Testing complete. Ran 102 tests: passed: 102
[08:43:46] Elapsed time: 11.824s total, 1.779s configuring, 9.781s building, 0.225s running

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



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

* ✓ Xe.CI.BAT: success for Introduce Xe PCIe FLR (rev9)
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (11 preceding siblings ...)
  2026-07-01  8:43 ` ✓ CI.KUnit: success " Patchwork
@ 2026-07-01  9:41 ` Patchwork
  2026-07-01 23:59 ` ✓ Xe.CI.FULL: " Patchwork
  13 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2026-07-01  9:41 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

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

== Series Details ==

Series: Introduce Xe PCIe FLR (rev9)
URL   : https://patchwork.freedesktop.org/series/162055/
State : success

== Summary ==

CI Bug Log - changes from xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3_BAT -> xe-pw-162055v9_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (13 -> 13)
------------------------------

  No changes in participating hosts


Changes
-------

  No changes found


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

  * Linux: xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3 -> xe-pw-162055v9

  IGT_8989: a8e2cbd2854d7980a9eccecc6e0c801d0824b88f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3: 4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3
  xe-pw-162055v9: 162055v9

== Logs ==

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

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

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

* ✓ Xe.CI.FULL: success for Introduce Xe PCIe FLR (rev9)
  2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
                   ` (12 preceding siblings ...)
  2026-07-01  9:41 ` ✓ Xe.CI.BAT: " Patchwork
@ 2026-07-01 23:59 ` Patchwork
  13 siblings, 0 replies; 17+ messages in thread
From: Patchwork @ 2026-07-01 23:59 UTC (permalink / raw)
  To: Raag Jadav; +Cc: intel-xe

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

== Series Details ==

Series: Introduce Xe PCIe FLR (rev9)
URL   : https://patchwork.freedesktop.org/series/162055/
State : success

== Summary ==

CI Bug Log - changes from xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3_FULL -> xe-pw-162055v9_FULL
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (2 -> 2)
------------------------------

  No changes in participating hosts

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

  Here are the changes found in xe-pw-162055v9_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@kms_addfb_basic@unused-pitches:
    - shard-lnl:          NOTRUN -> [ABORT][1] ([Intel XE#8007])
   [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-lnl-5/igt@kms_addfb_basic@unused-pitches.html

  * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0:
    - shard-bmg:          NOTRUN -> [SKIP][2] ([Intel XE#1124]) +2 other tests skip
   [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0.html

  * igt@kms_bw@linear-tiling-1-displays-target-2160x1440p:
    - shard-bmg:          NOTRUN -> [SKIP][3] ([Intel XE#367])
   [3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_bw@linear-tiling-1-displays-target-2160x1440p.html

  * igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs:
    - shard-bmg:          NOTRUN -> [SKIP][4] ([Intel XE#3432])
   [4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_ccs@crc-primary-suspend-y-tiled-gen12-rc-ccs.html

  * igt@kms_ccs@crc-sprite-planes-basic-y-tiled-ccs:
    - shard-bmg:          NOTRUN -> [SKIP][5] ([Intel XE#2887]) +3 other tests skip
   [5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_ccs@crc-sprite-planes-basic-y-tiled-ccs.html

  * igt@kms_chamelium_color_pipeline@plane-ctm3x4:
    - shard-bmg:          NOTRUN -> [SKIP][6] ([Intel XE#7358])
   [6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_chamelium_color_pipeline@plane-ctm3x4.html

  * igt@kms_chamelium_edid@dp-edid-resolution-list:
    - shard-bmg:          NOTRUN -> [SKIP][7] ([Intel XE#2252]) +1 other test skip
   [7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_chamelium_edid@dp-edid-resolution-list.html

  * igt@kms_content_protection@atomic-dpms-hdcp14@pipe-a-dp-2:
    - shard-bmg:          NOTRUN -> [FAIL][8] ([Intel XE#3304] / [Intel XE#7374]) +1 other test fail
   [8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_content_protection@atomic-dpms-hdcp14@pipe-a-dp-2.html

  * igt@kms_content_protection@legacy:
    - shard-bmg:          NOTRUN -> [FAIL][9] ([Intel XE#1178] / [Intel XE#3304] / [Intel XE#7374]) +3 other tests fail
   [9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_content_protection@legacy.html

  * igt@kms_cursor_crc@cursor-onscreen-32x10:
    - shard-bmg:          NOTRUN -> [SKIP][10] ([Intel XE#2320]) +2 other tests skip
   [10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_cursor_crc@cursor-onscreen-32x10.html

  * igt@kms_dirtyfb@fbc-dirtyfb-ioctl:
    - shard-bmg:          NOTRUN -> [SKIP][11] ([Intel XE#4210] / [Intel XE#7467])
   [11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@kms_dirtyfb@fbc-dirtyfb-ioctl.html

  * igt@kms_dirtyfb@psr-dirtyfb-ioctl:
    - shard-bmg:          NOTRUN -> [SKIP][12] ([Intel XE#1508])
   [12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_dirtyfb@psr-dirtyfb-ioctl.html

  * igt@kms_dp_link_training@uhbr-sst:
    - shard-bmg:          NOTRUN -> [SKIP][13] ([Intel XE#4354] / [Intel XE#5870])
   [13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_dp_link_training@uhbr-sst.html

  * igt@kms_feature_discovery@display-4x:
    - shard-bmg:          NOTRUN -> [SKIP][14] ([Intel XE#1138] / [Intel XE#7344])
   [14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_feature_discovery@display-4x.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible:
    - shard-lnl:          [PASS][15] -> [FAIL][16] ([Intel XE#301]) +2 other tests fail
   [15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
   [16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-lnl-1/igt@kms_flip@flip-vs-expired-vblank-interruptible.html

  * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling:
    - shard-bmg:          NOTRUN -> [SKIP][17] ([Intel XE#7178] / [Intel XE#7351]) +1 other test skip
   [17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-upscaling.html

  * igt@kms_frontbuffer_tracking@drrs-argb161616f-draw-mmap-wc:
    - shard-bmg:          NOTRUN -> [SKIP][18] ([Intel XE#7061] / [Intel XE#7356]) +2 other tests skip
   [18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_frontbuffer_tracking@drrs-argb161616f-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
    - shard-bmg:          NOTRUN -> [SKIP][19] ([Intel XE#4141]) +6 other tests skip
   [19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html

  * igt@kms_frontbuffer_tracking@fbc-tiling-y:
    - shard-bmg:          NOTRUN -> [SKIP][20] ([Intel XE#2352] / [Intel XE#7399])
   [20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_frontbuffer_tracking@fbc-tiling-y.html

  * igt@kms_frontbuffer_tracking@fbcdrrshdr-1p-primscrn-indfb-pgflip-blt:
    - shard-bmg:          NOTRUN -> [SKIP][21] ([Intel XE#2311]) +22 other tests skip
   [21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_frontbuffer_tracking@fbcdrrshdr-1p-primscrn-indfb-pgflip-blt.html

  * igt@kms_frontbuffer_tracking@hdr-argb161616f-draw-mmap-wc:
    - shard-bmg:          NOTRUN -> [SKIP][22] ([Intel XE#7061])
   [22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@kms_frontbuffer_tracking@hdr-argb161616f-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-fullscreen:
    - shard-bmg:          NOTRUN -> [SKIP][23] ([Intel XE#2313]) +13 other tests skip
   [23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-fullscreen.html

  * igt@kms_hdr@invalid-hdr:
    - shard-bmg:          NOTRUN -> [SKIP][24] ([Intel XE#1503])
   [24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_hdr@invalid-hdr.html

  * igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier:
    - shard-bmg:          NOTRUN -> [SKIP][25] ([Intel XE#7283])
   [25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@kms_plane@pixel-format-y-tiled-gen12-mc-ccs-modifier.html

  * igt@kms_plane_multiple@tiling-y:
    - shard-bmg:          NOTRUN -> [SKIP][26] ([Intel XE#5020] / [Intel XE#7348])
   [26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_plane_multiple@tiling-y.html

  * igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-a:
    - shard-bmg:          NOTRUN -> [SKIP][27] ([Intel XE#2763] / [Intel XE#6886]) +4 other tests skip
   [27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-a.html

  * igt@kms_pm_dc@dc3co-vpb-simulation@pr:
    - shard-bmg:          NOTRUN -> [SKIP][28] ([Intel XE#8395]) +1 other test skip
   [28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_pm_dc@dc3co-vpb-simulation@pr.html

  * igt@kms_pm_dc@dc3co-vpb-simulation@psr2:
    - shard-bmg:          NOTRUN -> [SKIP][29] ([Intel XE#8396])
   [29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_pm_dc@dc3co-vpb-simulation@psr2.html

  * igt@kms_psr2_sf@fbc-psr2-primary-plane-update-sf-dmg-area:
    - shard-bmg:          NOTRUN -> [SKIP][30] ([Intel XE#1489])
   [30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_psr2_sf@fbc-psr2-primary-plane-update-sf-dmg-area.html

  * igt@kms_psr2_su@page_flip-xrgb8888:
    - shard-bmg:          NOTRUN -> [SKIP][31] ([Intel XE#2387] / [Intel XE#7429])
   [31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_psr2_su@page_flip-xrgb8888.html

  * igt@kms_sharpness_filter@filter-scaler-downscale:
    - shard-bmg:          NOTRUN -> [SKIP][32] ([Intel XE#6503])
   [32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_sharpness_filter@filter-scaler-downscale.html

  * igt@kms_tv_load_detect@load-detect:
    - shard-bmg:          NOTRUN -> [SKIP][33] ([Intel XE#2450] / [Intel XE#5857])
   [33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@kms_tv_load_detect@load-detect.html

  * igt@xe_configfs@engines-allowed:
    - shard-bmg:          NOTRUN -> [ABORT][34] ([Intel XE#8007])
   [34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@xe_configfs@engines-allowed.html

  * igt@xe_eudebug@basic-vms:
    - shard-bmg:          NOTRUN -> [SKIP][35] ([Intel XE#7636]) +5 other tests skip
   [35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_eudebug@basic-vms.html

  * igt@xe_evict@evict-cm-threads-small-multi-queue:
    - shard-bmg:          NOTRUN -> [SKIP][36] ([Intel XE#8370])
   [36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_evict@evict-cm-threads-small-multi-queue.html

  * igt@xe_evict@evict-mixed-many-threads-small:
    - shard-bmg:          [PASS][37] -> [INCOMPLETE][38] ([Intel XE#6321] / [Intel XE#8355])
   [37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-4/igt@xe_evict@evict-mixed-many-threads-small.html
   [38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-7/igt@xe_evict@evict-mixed-many-threads-small.html

  * igt@xe_exec_basic@multigpu-no-exec-basic:
    - shard-bmg:          NOTRUN -> [SKIP][39] ([Intel XE#2322] / [Intel XE#7372]) +1 other test skip
   [39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_exec_basic@multigpu-no-exec-basic.html

  * igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-invalidate-prefetch:
    - shard-bmg:          NOTRUN -> [SKIP][40] ([Intel XE#8374]) +5 other tests skip
   [40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_exec_fault_mode@many-execqueues-multi-queue-userptr-invalidate-prefetch.html

  * igt@xe_exec_multi_queue@two-queues-userptr:
    - shard-bmg:          NOTRUN -> [SKIP][41] ([Intel XE#8364]) +10 other tests skip
   [41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@xe_exec_multi_queue@two-queues-userptr.html

  * igt@xe_exec_reset@cm-multi-queue-cat-error:
    - shard-bmg:          NOTRUN -> [SKIP][42] ([Intel XE#8369]) +1 other test skip
   [42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_exec_reset@cm-multi-queue-cat-error.html

  * igt@xe_exec_reset@long-spin-reuse-many-preempt:
    - shard-bmg:          [PASS][43] -> [FAIL][44] ([Intel XE#7850])
   [43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-1/igt@xe_exec_reset@long-spin-reuse-many-preempt.html
   [44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-2/igt@xe_exec_reset@long-spin-reuse-many-preempt.html

  * igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate:
    - shard-bmg:          NOTRUN -> [SKIP][45] ([Intel XE#8378]) +3 other tests skip
   [45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_exec_threads@threads-multi-queue-mixed-userptr-invalidate.html

  * igt@xe_fault_injection@probe-fail-guc-xe_guc_mmio_send_recv:
    - shard-bmg:          [PASS][46] -> [ABORT][47] ([Intel XE#8007])
   [46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-8/igt@xe_fault_injection@probe-fail-guc-xe_guc_mmio_send_recv.html
   [47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-8/igt@xe_fault_injection@probe-fail-guc-xe_guc_mmio_send_recv.html

  * igt@xe_multigpu_svm@mgpu-migration-basic:
    - shard-bmg:          NOTRUN -> [SKIP][48] ([Intel XE#6964])
   [48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_multigpu_svm@mgpu-migration-basic.html

  * igt@xe_pm@d3cold-basic-exec:
    - shard-bmg:          NOTRUN -> [SKIP][49] ([Intel XE#2284] / [Intel XE#7370])
   [49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_pm@d3cold-basic-exec.html

  * igt@xe_pxp@pxp-termination-key-update-post-suspend:
    - shard-bmg:          NOTRUN -> [SKIP][50] ([Intel XE#4733] / [Intel XE#7417])
   [50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_pxp@pxp-termination-key-update-post-suspend.html

  * igt@xe_query@multigpu-query-invalid-uc-fw-version-mbz:
    - shard-bmg:          NOTRUN -> [SKIP][51] ([Intel XE#944]) +1 other test skip
   [51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_query@multigpu-query-invalid-uc-fw-version-mbz.html

  
#### Possible fixes ####

  * igt@kms_async_flips@alternate-sync-async-flip-atomic:
    - shard-bmg:          [FAIL][52] ([Intel XE#3718] / [Intel XE#6078]) -> [PASS][53]
   [52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-4/igt@kms_async_flips@alternate-sync-async-flip-atomic.html
   [53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-7/igt@kms_async_flips@alternate-sync-async-flip-atomic.html

  * igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-dp-2:
    - shard-bmg:          [FAIL][54] ([Intel XE#6078]) -> [PASS][55]
   [54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-4/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-dp-2.html
   [55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-7/igt@kms_async_flips@alternate-sync-async-flip-atomic@pipe-b-dp-2.html

  * igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs:
    - shard-bmg:          [INCOMPLETE][56] ([Intel XE#7084] / [Intel XE#8150]) -> [PASS][57] +1 other test pass
   [56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-7/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html
   [57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-9/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html

  * igt@kms_cursor_legacy@flip-vs-cursor-legacy:
    - shard-bmg:          [FAIL][58] ([Intel XE#7571]) -> [PASS][59]
   [58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-6/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html
   [59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-7/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html

  * igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible:
    - shard-bmg:          [FAIL][60] ([Intel XE#5408] / [Intel XE#6266]) -> [PASS][61] +1 other test pass
   [60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-2/igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible.html
   [61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-6/igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible.html

  * igt@kms_flip@flip-vs-expired-vblank@b-edp1:
    - shard-lnl:          [FAIL][62] ([Intel XE#301]) -> [PASS][63]
   [62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-lnl-5/igt@kms_flip@flip-vs-expired-vblank@b-edp1.html
   [63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-lnl-6/igt@kms_flip@flip-vs-expired-vblank@b-edp1.html

  * igt@xe_pm@s3-multiple-execs:
    - shard-bmg:          [INCOMPLETE][64] ([Intel XE#8175]) -> [PASS][65]
   [64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-9/igt@xe_pm@s3-multiple-execs.html
   [65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-10/igt@xe_pm@s3-multiple-execs.html

  * igt@xe_wedged@wedged-mode-toggle:
    - shard-lnl:          [ABORT][66] ([Intel XE#8007]) -> [PASS][67]
   [66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-lnl-2/igt@xe_wedged@wedged-mode-toggle.html
   [67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-lnl-5/igt@xe_wedged@wedged-mode-toggle.html

  
#### Warnings ####

  * igt@kms_hdr@brightness-with-hdr:
    - shard-bmg:          [SKIP][68] ([Intel XE#3374] / [Intel XE#3544]) -> [SKIP][69] ([Intel XE#3544])
   [68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-6/igt@kms_hdr@brightness-with-hdr.html
   [69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-5/igt@kms_hdr@brightness-with-hdr.html

  * igt@xe_pxp@pxp-termination-key-update-post-termination-irq:
    - shard-bmg:          [INCOMPLETE][70] ([Intel XE#2594]) -> [SKIP][71] ([Intel XE#4733] / [Intel XE#7417])
   [70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3/shard-bmg-1/igt@xe_pxp@pxp-termination-key-update-post-termination-irq.html
   [71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-162055v9/shard-bmg-1/igt@xe_pxp@pxp-termination-key-update-post-termination-irq.html

  
  [Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
  [Intel XE#1138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1138
  [Intel XE#1178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1178
  [Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
  [Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
  [Intel XE#1508]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1508
  [Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
  [Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
  [Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
  [Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
  [Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
  [Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
  [Intel XE#2352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2352
  [Intel XE#2387]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2387
  [Intel XE#2450]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2450
  [Intel XE#2594]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2594
  [Intel XE#2763]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2763
  [Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
  [Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
  [Intel XE#3304]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3304
  [Intel XE#3374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3374
  [Intel XE#3432]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3432
  [Intel XE#3544]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3544
  [Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
  [Intel XE#3718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3718
  [Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
  [Intel XE#4210]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4210
  [Intel XE#4354]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4354
  [Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
  [Intel XE#5020]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5020
  [Intel XE#5408]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5408
  [Intel XE#5857]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5857
  [Intel XE#5870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5870
  [Intel XE#6078]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6078
  [Intel XE#6266]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6266
  [Intel XE#6321]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6321
  [Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
  [Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
  [Intel XE#6964]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6964
  [Intel XE#7061]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7061
  [Intel XE#7084]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7084
  [Intel XE#7178]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7178
  [Intel XE#7283]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7283
  [Intel XE#7344]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7344
  [Intel XE#7348]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7348
  [Intel XE#7351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7351
  [Intel XE#7356]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7356
  [Intel XE#7358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7358
  [Intel XE#7370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7370
  [Intel XE#7372]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7372
  [Intel XE#7374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7374
  [Intel XE#7399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7399
  [Intel XE#7417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7417
  [Intel XE#7429]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7429
  [Intel XE#7467]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7467
  [Intel XE#7571]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7571
  [Intel XE#7636]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7636
  [Intel XE#7850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/7850
  [Intel XE#8007]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8007
  [Intel XE#8150]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8150
  [Intel XE#8175]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8175
  [Intel XE#8355]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8355
  [Intel XE#8364]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8364
  [Intel XE#8369]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8369
  [Intel XE#8370]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8370
  [Intel XE#8374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8374
  [Intel XE#8378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8378
  [Intel XE#8395]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8395
  [Intel XE#8396]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/8396
  [Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944


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

  * Linux: xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3 -> xe-pw-162055v9

  IGT_8989: a8e2cbd2854d7980a9eccecc6e0c801d0824b88f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  xe-5317-4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3: 4847fd44d1663d4ea8bbfc2f6e178f60a377bbb3
  xe-pw-162055v9: 162055v9

== Logs ==

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

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

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

* Re: [PATCH v9 08/10] drm/xe: Improve wedged state management
  2026-07-01  8:29 ` [PATCH v9 08/10] drm/xe: Improve wedged state management Raag Jadav
@ 2026-07-09 21:27   ` Matthew Brost
  2026-07-10  5:01     ` Raag Jadav
  0 siblings, 1 reply; 17+ messages in thread
From: Matthew Brost @ 2026-07-09 21:27 UTC (permalink / raw)
  To: Raag Jadav
  Cc: intel-xe, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar

On Wed, Jul 01, 2026 at 01:59:32PM +0530, Raag Jadav wrote:
> Currently, wedged state is serving a single usecase where the device is
> permanently declared wedged, but this doesn't allow any wedged state
> management for runtime usecases. In preparation of usecases which require
> to facilitate temporary device wedging, convert wedged.flag to wedged.ref
> which serves as a driver internal refcount for wedged state and blocks
> critical path execution during device lifetime. While at it, introduce
> wedged.perm which signifies permanent device wedging and operates
> independent of the refcount allowing relevant cleanup action on unwind
> path.
> 
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> ---
> v9: Redesign to prevent races
> ---
>  drivers/gpu/drm/xe/xe_device.c       | 102 ++++++++++++++++++++-------
>  drivers/gpu/drm/xe/xe_device.h       |   8 +--
>  drivers/gpu/drm/xe/xe_device_types.h |   8 ++-
>  3 files changed, 84 insertions(+), 34 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index c5e3e2d1f7c3..e8b6afb29ab6 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -598,6 +598,10 @@ int xe_device_init_early(struct xe_device *xe)
>  	if (err)
>  		return err;
>  
> +	err = drmm_mutex_init(&xe->drm, &xe->wedged.lock);
> +	if (err)
> +		return err;
> +
>  	err = xe_pm_init_early(xe);
>  	if (err)
>  		return err;
> @@ -920,8 +924,10 @@ 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);
> +	if (xe->wedged.perm)
> +		xe_device_wedged_put(xe);
> +
> +	xe_assert(xe, !xe_device_wedged(xe));
>  }
>  
>  int xe_device_probe(struct xe_device *xe)
> @@ -1387,6 +1393,44 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
>   *   firmware and restore device to normal operation.
>   */
>  
> +/**
> + * xe_device_wedged_get() - Acquire wedged reference
> + * @xe: xe device instance
> + *
> + * Get runtime PM reference and block critical path execution.
> + */
> +void xe_device_wedged_get(struct xe_device *xe)
> +{
> +	int ref;
> +
> +	/* We should not be runtime suspending as long as critical paths are blocked */
> +	xe_pm_runtime_get_noresume(xe);
> +
> +	ref = atomic_inc_return(&xe->wedged.ref);
> +	xe_assert(xe, ref > 0);
> +}
> +
> +/**
> + * xe_device_wedged_put() - Relinquish wedged reference
> + * @xe: xe device instance
> + *
> + * Restore critical path execution and put runtime PM reference.
> + */
> +void xe_device_wedged_put(struct xe_device *xe)
> +{
> +	int ref;
> +
> +	ref = atomic_dec_return(&xe->wedged.ref);
> +	xe_assert(xe, ref >= 0);
> +
> +	xe_pm_runtime_put(xe);
> +}
> +
> +bool xe_device_wedged(struct xe_device *xe)
> +{
> +	return atomic_read(&xe->wedged.ref);
> +}
> +
>  /**
>   * xe_device_set_wedged_method - Set wedged recovery method
>   * @xe: xe device instance
> @@ -1427,36 +1471,40 @@ void xe_device_declare_wedged(struct xe_device *xe)
>  		return;
>  	}
>  
> -	if (!atomic_xchg(&xe->wedged.flag, 1)) {
> -		xe->needs_flr_on_fini = true;
> -		xe_pm_runtime_get_noresume(xe);
> -		drm_err(&xe->drm,
> -			"CRITICAL: Xe has declared device %s as wedged.\n"
> -			"IOCTLs and executions are blocked.\n"
> -			"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
> -			"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
> -			dev_name(xe->drm.dev));
> -	}
> +	mutex_lock(&xe->wedged.lock);

Sashiko pointed out what is likely a pre existing issue:


Can this mutex_lock() trigger a scheduling while atomic panic?
Looking at the call chain, xe_device_declare_wedged() can be invoked from
a hardirq context when a hardware error occurs:
xe_irq_handler()
  xe_mert_irq_handler()
    mert_handle_cat_error()
      xe_device_declare_wedged()
Since the interrupt handler runs in atomic context, acquiring a sleeping
lock here causes a crash.
Could this synchronization be handled without introducing a mutex in the
interrupt path?

This is an issue and currently unsafe too as we take mutexes deeper in
xe_device_declare_wedged call stack too. Maybe declare wedged in an
async work item? We have other issues in xe_device_declare_wedged too
which stop / start scheduling which also isn't safe unless this is on
the GT ordered work queue too.

Matt

> +
> +	if (xe->wedged.perm)
> +		goto out;
> +
> +	xe_device_wedged_get(xe);
> +	xe->wedged.perm = true;
> +	xe->needs_flr_on_fini = true;
> +	drm_err(&xe->drm,
> +		"CRITICAL: Xe has declared device %s as wedged.\n"
> +		"IOCTLs and executions are blocked.\n"
> +		"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
> +		"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
> +		dev_name(xe->drm.dev));
>  
>  	for_each_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)
> -			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);
> +	/*
> +	 * 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_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);
>  
> -		/* Notify userspace of wedged device */
> -		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
> -	}
> +	/* Notify userspace of wedged device */
> +	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
> +out:
> +	mutex_unlock(&xe->wedged.lock);
>  }
>  
>  /**
> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> index 11b67820eb67..89bf909c96e0 100644
> --- a/drivers/gpu/drm/xe/xe_device.h
> +++ b/drivers/gpu/drm/xe/xe_device.h
> @@ -194,11 +194,9 @@ 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);
>  
> -static inline bool xe_device_wedged(struct xe_device *xe)
> -{
> -	return atomic_read(&xe->wedged.flag);
> -}
> -
> +void xe_device_wedged_get(struct xe_device *xe);
> +void xe_device_wedged_put(struct xe_device *xe);
> +bool xe_device_wedged(struct xe_device *xe);
>  void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
>  void xe_device_declare_wedged(struct xe_device *xe);
>  int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 46a9e9fad7a9..80fa60821a47 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -485,14 +485,18 @@ struct xe_device {
>  
>  	/** @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.ref: Refcount for wedged device, blocks critical path execution */
> +		atomic_t ref;
>  		/** @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.perm: Permanently wedged, needs cleanup on fini */
> +		bool perm;
> +		/** @wedged.lock: Lock protecting wedged state */
> +		struct mutex lock;
>  	} wedged;
>  
>  	/** @bo_device: Struct to control async free of BOs */
> -- 
> 2.43.0
> 

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

* Re: [PATCH v9 08/10] drm/xe: Improve wedged state management
  2026-07-09 21:27   ` Matthew Brost
@ 2026-07-10  5:01     ` Raag Jadav
  0 siblings, 0 replies; 17+ messages in thread
From: Raag Jadav @ 2026-07-10  5:01 UTC (permalink / raw)
  To: Matthew Brost
  Cc: intel-xe, rodrigo.vivi, thomas.hellstrom, riana.tauro,
	michal.wajdeczko, matthew.d.roper, michal.winiarski, matthew.auld,
	dev, jani.nikula, lukasz.laguna, zhanjun.dong, lukas,
	daniele.ceraolospurio, badal.nilawar

On Thu, Jul 09, 2026 at 02:27:40PM -0700, Matthew Brost wrote:
> On Wed, Jul 01, 2026 at 01:59:32PM +0530, Raag Jadav wrote:
> > Currently, wedged state is serving a single usecase where the device is
> > permanently declared wedged, but this doesn't allow any wedged state
> > management for runtime usecases. In preparation of usecases which require
> > to facilitate temporary device wedging, convert wedged.flag to wedged.ref
> > which serves as a driver internal refcount for wedged state and blocks
> > critical path execution during device lifetime. While at it, introduce
> > wedged.perm which signifies permanent device wedging and operates
> > independent of the refcount allowing relevant cleanup action on unwind
> > path.
> > 
> > Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> > ---
> > v9: Redesign to prevent races
> > ---
> >  drivers/gpu/drm/xe/xe_device.c       | 102 ++++++++++++++++++++-------
> >  drivers/gpu/drm/xe/xe_device.h       |   8 +--
> >  drivers/gpu/drm/xe/xe_device_types.h |   8 ++-
> >  3 files changed, 84 insertions(+), 34 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> > index c5e3e2d1f7c3..e8b6afb29ab6 100644
> > --- a/drivers/gpu/drm/xe/xe_device.c
> > +++ b/drivers/gpu/drm/xe/xe_device.c
> > @@ -598,6 +598,10 @@ int xe_device_init_early(struct xe_device *xe)
> >  	if (err)
> >  		return err;
> >  
> > +	err = drmm_mutex_init(&xe->drm, &xe->wedged.lock);
> > +	if (err)
> > +		return err;
> > +
> >  	err = xe_pm_init_early(xe);
> >  	if (err)
> >  		return err;
> > @@ -920,8 +924,10 @@ 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);
> > +	if (xe->wedged.perm)
> > +		xe_device_wedged_put(xe);
> > +
> > +	xe_assert(xe, !xe_device_wedged(xe));
> >  }
> >  
> >  int xe_device_probe(struct xe_device *xe)
> > @@ -1387,6 +1393,44 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
> >   *   firmware and restore device to normal operation.
> >   */
> >  
> > +/**
> > + * xe_device_wedged_get() - Acquire wedged reference
> > + * @xe: xe device instance
> > + *
> > + * Get runtime PM reference and block critical path execution.
> > + */
> > +void xe_device_wedged_get(struct xe_device *xe)
> > +{
> > +	int ref;
> > +
> > +	/* We should not be runtime suspending as long as critical paths are blocked */
> > +	xe_pm_runtime_get_noresume(xe);
> > +
> > +	ref = atomic_inc_return(&xe->wedged.ref);
> > +	xe_assert(xe, ref > 0);
> > +}
> > +
> > +/**
> > + * xe_device_wedged_put() - Relinquish wedged reference
> > + * @xe: xe device instance
> > + *
> > + * Restore critical path execution and put runtime PM reference.
> > + */
> > +void xe_device_wedged_put(struct xe_device *xe)
> > +{
> > +	int ref;
> > +
> > +	ref = atomic_dec_return(&xe->wedged.ref);
> > +	xe_assert(xe, ref >= 0);
> > +
> > +	xe_pm_runtime_put(xe);
> > +}
> > +
> > +bool xe_device_wedged(struct xe_device *xe)
> > +{
> > +	return atomic_read(&xe->wedged.ref);
> > +}
> > +
> >  /**
> >   * xe_device_set_wedged_method - Set wedged recovery method
> >   * @xe: xe device instance
> > @@ -1427,36 +1471,40 @@ void xe_device_declare_wedged(struct xe_device *xe)
> >  		return;
> >  	}
> >  
> > -	if (!atomic_xchg(&xe->wedged.flag, 1)) {
> > -		xe->needs_flr_on_fini = true;
> > -		xe_pm_runtime_get_noresume(xe);
> > -		drm_err(&xe->drm,
> > -			"CRITICAL: Xe has declared device %s as wedged.\n"
> > -			"IOCTLs and executions are blocked.\n"
> > -			"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
> > -			"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
> > -			dev_name(xe->drm.dev));
> > -	}
> > +	mutex_lock(&xe->wedged.lock);
> 
> Sashiko pointed out what is likely a pre existing issue:
> 
> 
> Can this mutex_lock() trigger a scheduling while atomic panic?
> Looking at the call chain, xe_device_declare_wedged() can be invoked from
> a hardirq context when a hardware error occurs:
> xe_irq_handler()
>   xe_mert_irq_handler()
>     mert_handle_cat_error()
>       xe_device_declare_wedged()
> Since the interrupt handler runs in atomic context, acquiring a sleeping
> lock here causes a crash.
> Could this synchronization be handled without introducing a mutex in the
> interrupt path?

Yes, the event call performs memory allocation for environment buffer
so mert was broken to begin with. But I'm not sure if that in scope of
series? Perhaps fix it separately? Michal?

> This is an issue and currently unsafe too as we take mutexes deeper in
> xe_device_declare_wedged call stack too. Maybe declare wedged in an
> async work item? We have other issues in xe_device_declare_wedged too
> which stop / start scheduling which also isn't safe unless this is on
> the GT ordered work queue too.

Yes, I have planned this as part of my wedging improvement series once we
land this. It'll be reusing some parts of patch 3 where we use GT ordered
wq for it.

Raag

> > +
> > +	if (xe->wedged.perm)
> > +		goto out;
> > +
> > +	xe_device_wedged_get(xe);
> > +	xe->wedged.perm = true;
> > +	xe->needs_flr_on_fini = true;
> > +	drm_err(&xe->drm,
> > +		"CRITICAL: Xe has declared device %s as wedged.\n"
> > +		"IOCTLs and executions are blocked.\n"
> > +		"For recovery procedure, refer to https://docs.kernel.org/gpu/drm-uapi.html#device-wedging\n"
> > +		"Please file a _new_ bug report at https://gitlab.freedesktop.org/drm/xe/kernel/issues/new\n",
> > +		dev_name(xe->drm.dev));
> >  
> >  	for_each_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)
> > -			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);
> > +	/*
> > +	 * 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_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);
> >  
> > -		/* Notify userspace of wedged device */
> > -		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
> > -	}
> > +	/* Notify userspace of wedged device */
> > +	drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
> > +out:
> > +	mutex_unlock(&xe->wedged.lock);
> >  }
> >  
> >  /**
> > diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> > index 11b67820eb67..89bf909c96e0 100644
> > --- a/drivers/gpu/drm/xe/xe_device.h
> > +++ b/drivers/gpu/drm/xe/xe_device.h
> > @@ -194,11 +194,9 @@ 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);
> >  
> > -static inline bool xe_device_wedged(struct xe_device *xe)
> > -{
> > -	return atomic_read(&xe->wedged.flag);
> > -}
> > -
> > +void xe_device_wedged_get(struct xe_device *xe);
> > +void xe_device_wedged_put(struct xe_device *xe);
> > +bool xe_device_wedged(struct xe_device *xe);
> >  void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
> >  void xe_device_declare_wedged(struct xe_device *xe);
> >  int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
> > diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> > index 46a9e9fad7a9..80fa60821a47 100644
> > --- a/drivers/gpu/drm/xe/xe_device_types.h
> > +++ b/drivers/gpu/drm/xe/xe_device_types.h
> > @@ -485,14 +485,18 @@ struct xe_device {
> >  
> >  	/** @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.ref: Refcount for wedged device, blocks critical path execution */
> > +		atomic_t ref;
> >  		/** @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.perm: Permanently wedged, needs cleanup on fini */
> > +		bool perm;
> > +		/** @wedged.lock: Lock protecting wedged state */
> > +		struct mutex lock;
> >  	} wedged;
> >  
> >  	/** @bo_device: Struct to control async free of BOs */
> > -- 
> > 2.43.0
> > 

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

end of thread, other threads:[~2026-07-10  5:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01  8:29 [PATCH v9 00/10] Introduce Xe PCIe FLR Raag Jadav
2026-07-01  8:29 ` [PATCH v9 01/10] drm/xe/uc_fw: Allow re-initializing firmware Raag Jadav
2026-07-01  8:29 ` [PATCH v9 02/10] drm/xe/guc_submit: Introduce guc_exec_queue_reinit_kernel() Raag Jadav
2026-07-01  8:29 ` [PATCH v9 03/10] drm/xe/gt: Introduce FLR helpers Raag Jadav
2026-07-01  8:29 ` [PATCH v9 04/10] drm/xe/bo_evict: Introduce xe_bo_restore_map() Raag Jadav
2026-07-01  8:29 ` [PATCH v9 05/10] drm/xe/exec_queue: Introduce xe_exec_queue_reinit() Raag Jadav
2026-07-01  8:29 ` [PATCH v9 06/10] drm/xe/migrate: Introduce xe_migrate_reinit() Raag Jadav
2026-07-01  8:29 ` [PATCH v9 07/10] drm/xe/pm: Introduce xe_device_suspend/resume() Raag Jadav
2026-07-01  8:29 ` [PATCH v9 08/10] drm/xe: Improve wedged state management Raag Jadav
2026-07-09 21:27   ` Matthew Brost
2026-07-10  5:01     ` Raag Jadav
2026-07-01  8:29 ` [PATCH v9 09/10] drm/xe/pci: Introduce PCIe FLR Raag Jadav
2026-07-01  8:29 ` [PATCH v9 10/10] drm/xe/doc: Wire up PCI Error Handling Raag Jadav
2026-07-01  8:42 ` ✗ CI.checkpatch: warning for Introduce Xe PCIe FLR (rev9) Patchwork
2026-07-01  8:43 ` ✓ CI.KUnit: success " Patchwork
2026-07-01  9:41 ` ✓ Xe.CI.BAT: " Patchwork
2026-07-01 23:59 ` ✓ Xe.CI.FULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox