Skip to contentSkip to conversation

drm/xe: Isolate permanently wedged devices

PATCH Superseded Arvind Yadav 2 participants 22 messages Oct 16

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover drm/xe: Isolate permanently wedged devices

DO NOT REVIEW

Arvind Yadav (17):
drm/xe/irq: Always free requested IRQs on uninstall drm/xe: Separate AER reset state from device wedging drm/xe: Protect device I/O with DRM device SRCU drm/xe: Keep software waits outside the device I/O gate drm/xe: Drop queued page faults when device I/O is blocked drm/xe: Stop VM work when device I/O is blocked drm/xe/ggtt: Skip GGTT updates on a wedged device drm/xe: Skip VM close hardware access when device I/O is blocked drm/xe: Send wedged notification from a worker drm/xe: Reuse one dummy page per BO after wedge drm/xe: Invalidate existing VRAM mappings on wedge drm/xe/irq: Protect IRQ state during wedge isolation drm/xe: Isolate a wedged device before notifying userspace drm/xe/ttm: Reject VRAM allocations on wedged devices drm/xe/guc: Skip timeout recovery on a wedged device drm/xe: Skip PM notifier preparation when device I/O is blocked drm/xe: Block BO VM access when device I/O is unavailable

Thomas Hellström (1):
drm/drv: Export drm_dev_srcu_synchronize()

 drivers/gpu/drm/drm_drv.c               |  17 ++-
 drivers/gpu/drm/xe/display/xe_display.c |  39 ++++-
 drivers/gpu/drm/xe/xe_bo.c              |  72 ++++++++-
 drivers/gpu/drm/xe/xe_bo.h              |   1 +
 drivers/gpu/drm/xe/xe_bo_types.h        |   4 +
 drivers/gpu/drm/xe/xe_device.c          | 187 ++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_device.h          |  41 ++++++
 drivers/gpu/drm/xe/xe_device_types.h    |  25 ++++
 drivers/gpu/drm/xe/xe_ggtt.c            |  26 +++-
 drivers/gpu/drm/xe/xe_guc_ct.c          |  24 ++-
 drivers/gpu/drm/xe/xe_guc_pc.c          |  10 +-
 drivers/gpu/drm/xe/xe_guc_rc.c          |   4 +-
 drivers/gpu/drm/xe/xe_guc_submit.c      |  22 ++-
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c   |  36 +++--
 drivers/gpu/drm/xe/xe_irq.c             |  29 +++-
 drivers/gpu/drm/xe/xe_pagefault.c       |  15 +-
 drivers/gpu/drm/xe/xe_pci.c             |  51 ++++++-
 drivers/gpu/drm/xe/xe_pci_error.c       |  25 ++--
 drivers/gpu/drm/xe/xe_pm.c              |  12 ++
 drivers/gpu/drm/xe/xe_sriov_pf.c        |   2 +-
 drivers/gpu/drm/xe/xe_svm.c             |  26 +++-
 drivers/gpu/drm/xe/xe_ttm_vram_mgr.c    |   4 +
 drivers/gpu/drm/xe/xe_vm.c              |  21 +--
 drivers/gpu/drm/xe/xe_wait_user_fence.c |  12 +-
 include/drm/drm_drv.h                   |   1 +
 25 files changed, 593 insertions(+), 113 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/18 drm/xe/irq: Always free requested IRQs on uninstall

DO NOT REVIEW

xe_irq_suspend() clears irq.enabled after disabling and synchronizing the interrupts. irq_uninstall() currently returns when that flag is clear, so a suspended device can skip free_irq() during teardown.

The managed uninstall action is registered only after the IRQ request succeeds. Reset the interrupt registers only when interrupts are still enabled, but always free the requested IRQs.

---
 drivers/gpu/drm/xe/xe_irq.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/xe/xe_irq.c +2 -4
index 9e49e2241da4..d314993b14a1 100644
@@ -786,10 +786,8 @@ static void irq_uninstall(void *arg)
 {
 	struct xe_device *xe = arg;
 
-	if (!atomic_xchg(&xe->irq.enabled, 0))
-		return;
-
-	xe_irq_reset(xe);
+	if (atomic_xchg(&xe->irq.enabled, 0))
+		xe_irq_reset(xe);
 
 	if (xe_device_has_msix(xe))
 		xe_irq_msix_free(xe);
Signature · 1 line
2.43.0
#2 lore raw

PATCH v3 2/18 drm/drv: Export drm_dev_srcu_synchronize()

In reply to Arvind Yadav

DO NOT REVIEW

drm_dev_unplug() marks a device as unplugged and waits for existing drm_dev_enter() users to finish before releasing device resources.

Drivers may need the same publish-and-drain sequence for their own device state without unplugging the device.

Export drm_dev_srcu_synchronize() so drivers can publish their state and wait for existing DRM SRCU readers to finish.

The Xe driver will use this helper to block device access during PCI error recovery and permanent wedge isolation.

The SRCU domain is shared by all DRM devices, so synchronization also waits for existing drm_dev_enter() sections on other devices.

---
 drivers/gpu/drm/drm_drv.c | 17 ++++++++++++++++-
 include/drm/drm_drv.h     |  1 +
 2 files changed, 17 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_drv.c +16 -1
index 0cdc606af8d1..0f25103e9037 100644
@@ -476,6 +476,21 @@ void drm_dev_exit(int idx)
 }
 EXPORT_SYMBOL(drm_dev_exit);
 
+/**
+ * drm_dev_srcu_synchronize - Drain device SRCU readers
+ * @dev: DRM device whose state change is being synchronized
+ *
+ * Wait for existing drm_dev_enter() users to finish.
+ *
+ * The SRCU domain is shared by all DRM devices. Readers for other DRM
+ * devices may also delay this function.
+ */
+void drm_dev_srcu_synchronize(struct drm_device *dev)
+{
+	synchronize_srcu(&drm_unplug_srcu);
+}
+EXPORT_SYMBOL(drm_dev_srcu_synchronize);
+
 /*
  * Mark the device as unplugged and wait for any in-flight drm_dev_enter()
  * critical sections to complete.
@@ -489,7 +504,7 @@ static void drm_dev_synchronize_unplug(struct drm_device *dev)
 	 * finished.
 	 */
 	dev->unplugged = true;
-	synchronize_srcu(&drm_unplug_srcu);
+	drm_dev_srcu_synchronize(dev);
 }
 
 /**
include/drm/drm_drv.h +1 -0
index b23830494ed4..27361fbad6dc 100644
@@ -482,6 +482,7 @@ void drm_dev_put(struct drm_device *dev);
 void drm_put_dev(struct drm_device *dev);
 bool drm_dev_enter(struct drm_device *dev, int *idx);
 void drm_dev_exit(int idx);
+void drm_dev_srcu_synchronize(struct drm_device *dev);
 void drm_dev_unplug(struct drm_device *dev);
 int drm_dev_wedged_event(struct drm_device *dev, unsigned long method,
 			 struct drm_wedge_task_info *info);
Signature · 1 line
2.43.0
#3 lore raw

PATCH v3 3/18 drm/xe: Separate AER reset state from device wedging

In reply to Arvind Yadav

DO NOT REVIEW

PCI error recovery currently uses xe->wedged.flag to block driver access. This mixes a temporary AER reset with a permanent device wedge.

If the device wedges during AER recovery, the wedge is not seen as the first transition. The AER resume callback may then clear the flag and make the permanently wedged device appear usable again.

Keep the old device blocked while slot reset removes it, and block the new device until the AER resume callback.

The old AER path took a runtime PM reference to balance xe_device_wedged_fini(), which drops one when wedged.flag is set. AER no longer sets that flag, so keeping the Xe-owned reference would leak it. pcie_do_recovery() holds a PCI-core runtime PM reference across the error_detected, slot_reset and resume callbacks.

v2:
- Return -ECANCELED for GuC sends blocked by AER recovery, keeping -ENOTRECOVERABLE for permanent wedges. This matches the existing cancellation path. (Sashiko)
- Keep GuC CT cancellation retryable during AER recovery
- Use one helper for GuC CT cancellation errors

---
 drivers/gpu/drm/xe/xe_bo.c            |  2 +-
 drivers/gpu/drm/xe/xe_device.c        |  4 ++--
 drivers/gpu/drm/xe/xe_device.h        | 12 ++++++++++++
 drivers/gpu/drm/xe/xe_guc_ct.c        | 17 ++++++++++++-----
 drivers/gpu/drm/xe/xe_guc_pc.c        | 10 +++++-----
 drivers/gpu/drm/xe/xe_guc_rc.c        |  4 ++--
 drivers/gpu/drm/xe/xe_guc_submit.c    |  8 ++++++--
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c |  8 +++++++-
 drivers/gpu/drm/xe/xe_pci_error.c     | 18 +++++-------------
 drivers/gpu/drm/xe/xe_sriov_pf.c      |  2 +-
 10 files changed, 53 insertions(+), 32 deletions(-)
drivers/gpu/drm/xe/xe_bo.c +1 -1
index 12e523c61c1f..203a0e0309f0 100644
@@ -2203,7 +2203,7 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 	int err = 0;
 	int idx;
 
-	if (xe_device_wedged(xe) || !drm_dev_enter(&xe->drm, &idx))
+	if (xe_device_io_blocked(xe) || !drm_dev_enter(&xe->drm, &idx))
 		return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
 
 	ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);
drivers/gpu/drm/xe/xe_device.c +2 -2
index 8392c9fad3c4..778f18926530 100644
@@ -238,7 +238,7 @@ static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
 	long ret;
 
-	if (xe_device_wedged(xe))
+	if (xe_device_io_blocked(xe))
 		return -ECANCELED;
 
 	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
@@ -256,7 +256,7 @@ static long xe_drm_compat_ioctl(struct file *file, unsigned int cmd, unsigned lo
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
 	long ret;
 
-	if (xe_device_wedged(xe))
+	if (xe_device_io_blocked(xe))
 		return -ECANCELED;
 
 	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
drivers/gpu/drm/xe/xe_device.h +12 -0
index 83d6dafab53c..e3c8ba9597b4 100644
@@ -212,6 +212,18 @@ static inline bool xe_device_wedged(struct xe_device *xe)
 	return atomic_read(&xe->wedged.flag);
 }
 
+/*
+ * Return true when device access must be blocked either permanently because
+ * the device is wedged or temporarily while PCI error recovery is running.
+ *
+ * Do not use this helper for one-way wedged-device decisions such as DMA
+ * isolation, IRQ resume suppression or recovery-method reporting.
+ */
+static inline bool xe_device_io_blocked(struct xe_device *xe)
+{
+	return xe_device_wedged(xe) || xe_device_is_in_reset(xe);
+}
+
 #ifdef CONFIG_DRM_XE_DEBUG_PAGE_SIZE
 static inline bool xe_debug_page_size_supported(struct xe_device *xe)
 {
drivers/gpu/drm/xe/xe_guc_ct.c +12 -5
index da5ce97484b8..b52d5ca0b47e 100644
@@ -1049,6 +1049,13 @@ static int h2g_write(struct xe_guc_ct *ct, const u32 *action, u32 len,
 	return -EPIPE;
 }
 
+static int guc_ct_cancel_errno(struct xe_guc_ct *ct)
+{
+	/* AER is temporary. Only a permanent wedge is terminal. */
+	return xe_device_wedged(ct_to_xe(ct)) ?
+		-ENOTRECOVERABLE : -ECANCELED;
+}
+
 static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 				u32 len, u32 g2h_len, u32 num_g2h,
 				struct g2h_fence *g2h_fence, bool defer_flush)
@@ -1064,8 +1071,8 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 	xe_gt_assert(gt, g2h_len || !num_g2h);
 	lockdep_assert_held(&ct->lock);
 
-	if (xe_device_wedged(ct_to_xe(ct))) {
-		ret = -ENOTRECOVERABLE;
+	if (xe_device_io_blocked(ct_to_xe(ct))) {
+		ret = guc_ct_cancel_errno(ct);
 		goto out;
 	}
 
@@ -1489,7 +1496,7 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
 	if (g2h_fence.fail) {
 		if (g2h_fence.cancel) {
 			xe_gt_dbg(gt, "H2G request %#x canceled!\n", action[0]);
-			ret = xe_device_wedged(ct_to_xe(ct)) ? -ENOTRECOVERABLE : -ECANCELED;
+			ret = guc_ct_cancel_errno(ct);
 			goto unlock;
 		}
 		xe_gt_err(gt, "H2G request %#x failed: error %#x hint %#x\n",
@@ -1828,8 +1835,8 @@ static int g2h_read(struct xe_guc_ct *ct, u32 *msg, bool fast_path)
 	xe_gt_assert(gt, xe_guc_ct_initialized(ct));
 	lockdep_assert_held(&ct->fast_lock);
 
-	if (xe_device_wedged(xe))
-		return -ENOTRECOVERABLE;
+	if (xe_device_io_blocked(xe))
+		return guc_ct_cancel_errno(ct);
 
 	if (ct->state == XE_GUC_CT_STATE_DISABLED)
 		return -ENODEV;
drivers/gpu/drm/xe/xe_guc_pc.c +5 -5
index e0105222a2c7..a731ae8d66b0 100644
@@ -188,7 +188,7 @@ static int pc_action_reset(struct xe_guc_pc *pc)
 	int ret;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_device_io_blocked(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC reset failed: %pe\n",
 			  ERR_PTR(ret));
 
@@ -212,7 +212,7 @@ static int pc_action_query_task_state(struct xe_guc_pc *pc)
 
 	/* Blocking here to ensure the results are ready before reading them */
 	ret = xe_guc_ct_send_block(ct, action, ARRAY_SIZE(action));
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_device_io_blocked(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC query task state failed: %pe\n",
 			  ERR_PTR(ret));
 
@@ -235,7 +235,7 @@ static int pc_action_set_param(struct xe_guc_pc *pc, u8 id, u32 value)
 		return -EAGAIN;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_device_io_blocked(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC set param[%u]=%u failed: %pe\n",
 			  id, value, ERR_PTR(ret));
 
@@ -257,7 +257,7 @@ static int pc_action_unset_param(struct xe_guc_pc *pc, u8 id)
 		return -EAGAIN;
 
 	ret = xe_guc_ct_send(ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(pc_to_xe(pc)) && ret == -ECANCELED))
+	if (ret && !(xe_device_io_blocked(pc_to_xe(pc)) && ret == -ECANCELED))
 		xe_gt_err(pc_to_gt(pc), "GuC PC unset param failed: %pe",
 			  ERR_PTR(ret));
 
@@ -1357,7 +1357,7 @@ static void xe_guc_pc_fini_hw(void *arg)
 	struct xe_guc_pc *pc = arg;
 	struct xe_device *xe = pc_to_xe(pc);
 
-	if (xe_device_wedged(xe))
+	if (xe_device_io_blocked(xe))
 		return;
 
 	xe_guc_pc_stop(pc);
drivers/gpu/drm/xe/xe_guc_rc.c +2 -2
index 99fa127b261f..eb5ec443f7ee 100644
@@ -40,7 +40,7 @@ static int guc_action_setup_gucrc(struct xe_guc *guc, u32 control)
 	int ret;
 
 	ret = xe_guc_ct_send(&guc->ct, action, ARRAY_SIZE(action), 0, 0);
-	if (ret && !(xe_device_wedged(guc_to_xe(guc)) && ret == -ECANCELED))
+	if (ret && !(xe_device_io_blocked(guc_to_xe(guc)) && ret == -ECANCELED))
 		xe_gt_err(guc_to_gt(guc),
 			  "GuC RC setup %s(%u) failed (%pe)\n",
 			   control == GUCRC_HOST_CONTROL ? "HOST_CONTROL" :
@@ -73,7 +73,7 @@ static void xe_guc_rc_fini_hw(void *arg)
 	struct xe_device *xe = guc_to_xe(guc);
 	struct xe_gt *gt = guc_to_gt(guc);
 
-	if (xe_device_wedged(xe))
+	if (xe_device_io_blocked(xe))
 		return;
 
 	CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FW_GT);
drivers/gpu/drm/xe/xe_guc_submit.c +6 -2
index 7ce73489c35f..f0bbd32b9acd 100644
@@ -2543,7 +2543,7 @@ static int guc_exec_queue_wait_suspend_done(struct xe_exec_queue *q, bool blocki
 						       WAIT_COND, HZ * 5);
 	}
 
-	if (!blocking && vf_recovery(guc) && !xe_device_wedged(xe))
+	if (!blocking && vf_recovery(guc) && !xe_device_io_blocked(xe))
 		return -EAGAIN;
 
 	if (!ret)
@@ -2803,7 +2803,11 @@ int xe_guc_submit_reset_prepare(struct xe_guc *guc)
 
 void xe_guc_submit_reset_wait(struct xe_guc *guc)
 {
-	wait_event(guc->ct.wq, xe_device_wedged(guc_to_xe(guc)) ||
+	/*
+	 * AER sets in_reset before declaring the GT wedged, which wakes this
+	 * waitqueue.
+	 */
+	wait_event(guc->ct.wq, xe_device_io_blocked(guc_to_xe(guc)) ||
 		   !xe_guc_read_stopped(guc));
 }
 
drivers/gpu/drm/xe/xe_guc_tlb_inval.c +7 -1
index 111fef781b2a..8daa9c968f4f 100644
@@ -34,6 +34,9 @@ static int send_tlb_inval(struct xe_guc *guc, const u32 *action, int len)
 
 	xe_gt_assert(gt, action[1]);	/* Seqno */
 
+	if (xe_device_io_blocked(guc_to_xe(guc)))
+		return -ECANCELED;
+
 	xe_gt_stats_incr(gt, XE_GT_STATS_ID_TLB_INVAL, 1);
 	return xe_guc_ct_send(&guc->ct, action, len,
 			      G2H_LEN_DW_TLB_INVALIDATE, 1);
@@ -69,6 +72,9 @@ static int send_tlb_inval_ggtt(struct xe_tlb_inval *tlb_inval, u32 seqno)
 	 * signals waiters.
 	 */
 
+	if (xe_device_io_blocked(xe))
+		return -ECANCELED;
+
 	if (xe_guc_ct_enabled(&guc->ct) && guc->submission_state.enabled) {
 		u32 action[] = {
 			XE_GUC_ACTION_TLB_INVALIDATION,
@@ -77,7 +83,7 @@ static int send_tlb_inval_ggtt(struct xe_tlb_inval *tlb_inval, u32 seqno)
 		};
 
 		return send_tlb_inval(guc, action, ARRAY_SIZE(action));
-	} else if (xe_device_uc_enabled(xe) && !xe_device_wedged(xe)) {
+	} else if (xe_device_uc_enabled(xe)) {
 		struct xe_mmio *mmio = &gt->mmio;
 
 		if (IS_SRIOV_VF(xe))
drivers/gpu/drm/xe/xe_pci_error.c +5 -13
index 79ce0c671549..4b09e74af92e 100644
@@ -9,7 +9,6 @@
 #include "xe_gt.h"
 #include "xe_log.h"
 #include "xe_pci.h"
-#include "xe_pm.h"
 #include "xe_printk.h"
 #include "xe_ras.h"
 #include "xe_survivability_mode.h"
@@ -20,14 +19,7 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 	struct xe_gt *gt;
 	u8 id;
 
-	/*
-	 * Wedge the device to prevent userspace access but do not send the uevent.
-	 * xe_device_wedged_fini() releases runtime pm if wedged flag is set, so acquire a runtime
-	 * pm reference to avoid underflow.
-	 */
-	if (!atomic_xchg(&xe->wedged.flag, 1))
-		xe_pm_runtime_get_noresume(xe);
-
+	/* Block device access until PCI error recovery completes. */
 	xe_device_set_in_reset(xe);
 
 	for_each_gt(gt, xe, id)
@@ -116,7 +108,6 @@ static pci_ers_result_t xe_pci_error_slot_reset(struct pci_dev *pdev)
 	 * TODO: optimize by re-initializing only the hardware state and re-creating
 	 * kernel BOs.
 	 */
-	xe_device_clear_in_reset(xe);
 	pdev->driver->remove(pdev);
 	devres_release_group(&pdev->dev, xe->devres_group);
 
@@ -125,8 +116,8 @@ static pci_ers_result_t xe_pci_error_slot_reset(struct pci_dev *pdev)
 
 	xe = pdev_to_xe_device(pdev);
 
-	/* Wedge the device to prevent I/O operations till the resume callback */
-	atomic_set(&xe->wedged.flag, 1);
+	/* Block the new instance until the resume callback. */
+	xe_device_set_in_reset(xe);
 
 	return PCI_ERS_RESULT_RECOVERED;
 }
@@ -137,7 +128,8 @@ static void xe_pci_error_resume(struct pci_dev *pdev)
 
 	xe_info(xe, "PCI error: resume\n");
 
-	atomic_set(&xe->wedged.flag, 0);
+	/* Resume I/O operations. */
+	xe_device_clear_in_reset(xe);
 }
 
 const struct pci_error_handlers xe_pci_error_handlers = {
drivers/gpu/drm/xe/xe_sriov_pf.c +1 -1
index 33bd754d138f..568b7ed7c380 100644
@@ -157,7 +157,7 @@ int xe_sriov_pf_wait_ready(struct xe_device *xe)
 	unsigned int id;
 	int err;
 
-	if (xe_device_wedged(xe))
+	if (xe_device_io_blocked(xe))
 		return -ECANCELED;
 
 	for_each_gt(gt, xe, id) {
Signature · 1 line
2.43.0
#4 lore raw

PATCH v3 4/18 drm/xe: Protect device I/O with DRM device SRCU

In reply to Arvind Yadav

DO NOT REVIEW

A device state check alone cannot stop reset or wedging from racing with a caller that has already passed the check.

Add xe_device_io_get() and xe_device_io_put() wrappers around drm_dev_enter() and drm_dev_exit(). Check the device state inside the DRM SRCU critical section so new access is rejected after PCI recovery starts or the device becomes wedged.

After blocking new access, PCI recovery wedges the GTs to signal pending fences and drains existing readers before disabling the PCI device.

Permanent wedge isolation uses the same DRM SRCU domain to drain active hardware users before stopping interrupts and DMA.

v3:
- Replace the private device I/O SRCU domain with DRM device SRCU. (Thomas)
- Keep the device I/O gate held until forcewake cleanup completes. (Sashiko)

---
 drivers/gpu/drm/xe/xe_bo.c            |  6 ++---
 drivers/gpu/drm/xe/xe_device.c        | 33 ++++++++++++++++++--------
 drivers/gpu/drm/xe/xe_device.h        | 29 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_guc_ct.c        |  9 ++++++-
 drivers/gpu/drm/xe/xe_guc_tlb_inval.c | 34 +++++++++++++++------------
 drivers/gpu/drm/xe/xe_pci_error.c     |  6 +++++
 6 files changed, 88 insertions(+), 29 deletions(-)
drivers/gpu/drm/xe/xe_bo.c +3 -3
index 203a0e0309f0..7ee0eade172a 100644
@@ -2201,9 +2201,9 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 	struct drm_exec exec;
 	vm_fault_t ret;
 	int err = 0;
-	int idx;
+	int io_idx;
 
-	if (xe_device_io_blocked(xe) || !drm_dev_enter(&xe->drm, &idx))
+	if (xe_device_io_get(xe, &io_idx))
 		return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
 
 	ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);
@@ -2290,7 +2290,7 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 	if (retry_after_wait)
 		xe_bo_put(bo);
 out:
-	drm_dev_exit(idx);
+	xe_device_io_put(io_idx);
 
 	return ret;
 }
drivers/gpu/drm/xe/xe_device.c +23 -10
index 778f18926530..7c4f42ea83d0 100644
@@ -236,16 +236,20 @@ static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
 	struct drm_file *file_priv = file->private_data;
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
+	int io_idx;
 	long ret;
 
-	if (xe_device_io_blocked(xe))
-		return -ECANCELED;
+	ret = xe_device_io_get(xe, &io_idx);
+	if (ret)
+		return ret;
 
-	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
-	ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &pm);
-	if (ret >= 0)
+	scoped_cond_guard(xe_pm_runtime_ioctl,
+			  ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &scope),
+			  xe) {
 		ret = drm_ioctl(file, cmd, arg);
+	}
 
+	xe_device_io_put(io_idx);
 	return ret;
 }
 
@@ -254,16 +258,20 @@ static long xe_drm_compat_ioctl(struct file *file, unsigned int cmd, unsigned lo
 {
 	struct drm_file *file_priv = file->private_data;
 	struct xe_device *xe = to_xe_device(file_priv->minor->dev);
+	int io_idx;
 	long ret;
 
-	if (xe_device_io_blocked(xe))
-		return -ECANCELED;
+	ret = xe_device_io_get(xe, &io_idx);
+	if (ret)
+		return ret;
 
-	ACQUIRE(xe_pm_runtime_ioctl, pm)(xe);
-	ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &pm);
-	if (ret >= 0)
+	scoped_cond_guard(xe_pm_runtime_ioctl,
+			  ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &scope),
+			  xe) {
 		ret = drm_compat_ioctl(file, cmd, arg);
+	}
 
+	xe_device_io_put(io_idx);
 	return ret;
 }
 #else
@@ -439,6 +447,11 @@ struct xe_device *xe_device_create(struct pci_dev *pdev)
 }
 ALLOW_ERROR_INJECTION(xe_device_create, ERRNO); /* See xe_pci_probe() */
 
+void xe_device_io_drain(struct xe_device *xe)
+{
+	drm_dev_srcu_synchronize(&xe->drm);
+}
+
 static void xe_device_parse_modparam(struct xe_device *xe)
 {
 	xe->atomic_svm_timeslice_ms = 5;
drivers/gpu/drm/xe/xe_device.h +29 -0
index e3c8ba9597b4..ac70db479d77 100644
@@ -6,6 +6,7 @@
 #ifndef _XE_DEVICE_H_
 #define _XE_DEVICE_H_
 
+#include <drm/drm_drv.h>
 #include <drm/drm_util.h>
 
 #include "xe_device_types.h"
@@ -224,6 +225,34 @@ static inline bool xe_device_io_blocked(struct xe_device *xe)
 	return xe_device_wedged(xe) || xe_device_is_in_reset(xe);
 }
 
+/**
+ * xe_device_io_get - Enter a device access critical section
+ * @xe: Xe device
+ * @idx: SRCU index returned on success
+ *
+ * Return: 0 on success, -ENODEV after unplug, or -ECANCELED when
+ * device I/O is blocked.
+ */
+static inline int xe_device_io_get(struct xe_device *xe, int *idx)
+{
+	if (!drm_dev_enter(&xe->drm, idx))
+		return -ENODEV;
+
+	if (xe_device_io_blocked(xe)) {
+		drm_dev_exit(*idx);
+		return -ECANCELED;
+	}
+
+	return 0;
+}
+
+static inline void xe_device_io_put(int idx)
+{
+	drm_dev_exit(idx);
+}
+
+void xe_device_io_drain(struct xe_device *xe);
+
 #ifdef CONFIG_DRM_XE_DEBUG_PAGE_SIZE
 static inline bool xe_debug_page_size_supported(struct xe_device *xe)
 {
drivers/gpu/drm/xe/xe_guc_ct.c +8 -1
index b52d5ca0b47e..ec2f6a77154c 100644
@@ -1061,6 +1061,8 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 				struct g2h_fence *g2h_fence, bool defer_flush)
 {
 	struct xe_gt *gt = ct_to_gt(ct);
+	bool io_held = false;
+	int io_idx;
 	u16 seqno;
 	int ret;
 
@@ -1071,11 +1073,13 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 	xe_gt_assert(gt, g2h_len || !num_g2h);
 	lockdep_assert_held(&ct->lock);
 
-	if (xe_device_io_blocked(ct_to_xe(ct))) {
+	if (xe_device_io_get(ct_to_xe(ct), &io_idx)) {
 		ret = guc_ct_cancel_errno(ct);
 		goto out;
 	}
 
+	io_held = true;
+
 	if (unlikely(ct->ctbs.h2g.info.broken)) {
 		ret = -EPIPE;
 		goto out;
@@ -1132,6 +1136,9 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
 	if (g2h_len)
 		spin_unlock_irq(&ct->fast_lock);
 out:
+	if (io_held)
+		xe_device_io_put(io_idx);
+
 	return ret;
 }
 
drivers/gpu/drm/xe/xe_guc_tlb_inval.c +19 -15
index 8daa9c968f4f..6150e2e8a661 100644
@@ -66,15 +66,13 @@ static int send_tlb_inval_ggtt(struct xe_tlb_inval *tlb_inval, u32 seqno)
 	struct xe_guc *guc = tlb_inval->private;
 	struct xe_gt *gt = guc_to_gt(guc);
 	struct xe_device *xe = guc_to_xe(guc);
+	int io_idx;
 
 	/*
 	 * Returning -ECANCELED in this function is squashed at the caller and
 	 * signals waiters.
 	 */
 
-	if (xe_device_io_blocked(xe))
-		return -ECANCELED;
-
 	if (xe_guc_ct_enabled(&guc->ct) && guc->submission_state.enabled) {
 		u32 action[] = {
 			XE_GUC_ACTION_TLB_INVALIDATION,
@@ -84,21 +82,27 @@ static int send_tlb_inval_ggtt(struct xe_tlb_inval *tlb_inval, u32 seqno)
 
 		return send_tlb_inval(guc, action, ARRAY_SIZE(action));
 	} else if (xe_device_uc_enabled(xe)) {
-		struct xe_mmio *mmio = &gt->mmio;
-
-		if (IS_SRIOV_VF(xe))
+		if (xe_device_io_get(xe, &io_idx))
 			return -ECANCELED;
 
-		CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt), XE_FW_GT);
-		if (xe->info.platform == XE_PVC || GRAPHICS_VER(xe) >= 20) {
-			xe_mmio_write32(mmio, PVC_GUC_TLB_INV_DESC1,
-					PVC_GUC_TLB_INV_DESC1_INVALIDATE);
-			xe_mmio_write32(mmio, PVC_GUC_TLB_INV_DESC0,
-					PVC_GUC_TLB_INV_DESC0_VALID);
-		} else {
-			xe_mmio_write32(mmio, GUC_TLB_INV_CR,
-					GUC_TLB_INV_CR_INVALIDATE);
+		if (!IS_SRIOV_VF(xe)) {
+			struct xe_mmio *mmio = &gt->mmio;
+
+			CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt),
+						    XE_FW_GT);
+			if (xe->info.platform == XE_PVC ||
+			    GRAPHICS_VER(xe) >= 20) {
+				xe_mmio_write32(mmio, PVC_GUC_TLB_INV_DESC1,
+						PVC_GUC_TLB_INV_DESC1_INVALIDATE);
+				xe_mmio_write32(mmio, PVC_GUC_TLB_INV_DESC0,
+						PVC_GUC_TLB_INV_DESC0_VALID);
+			} else {
+				xe_mmio_write32(mmio, GUC_TLB_INV_CR,
+						GUC_TLB_INV_CR_INVALIDATE);
+			}
 		}
+
+		xe_device_io_put(io_idx);
 	}
 
 	return -ECANCELED;
drivers/gpu/drm/xe/xe_pci_error.c +6 -0
index 4b09e74af92e..3e06f504f1b3 100644
@@ -25,6 +25,12 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 	for_each_gt(gt, xe, id)
 		xe_gt_declare_wedged(gt);
 
+	/*
+	 * GT wedging signals pending fences. Existing hardware users can now
+	 * finish without blocking reset.
+	 */
+	xe_device_io_drain(xe);
+
 	pci_disable_device(pdev);
 }
 
Signature · 1 line
2.43.0
#5 lore raw

PATCH v3 5/18 drm/xe: Keep software waits outside the device I/O gate

In reply to Arvind Yadav

DO NOT REVIEW

xe_drm_ioctl() holds the device I/O gate across the whole ioctl. Software waits can wait for a fence that userspace has not submitted. Signalling GT fences cannot end these waits, so device I/O draining can hang during reset or wedge isolation.

Release the outer gate before syncobj waits, syncobj transfers and Xe user-fence waits. Protect each Xe user-fence memory read with the gate, but release it before sleeping.

Wake Xe user-fence waiters when PCI recovery starts, the device wedges or the device is unplugged, so they can observe the blocked state.

---
 drivers/gpu/drm/xe/xe_device.c          | 28 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_pci_error.c       |  1 +
 drivers/gpu/drm/xe/xe_wait_user_fence.c | 12 ++++++++---
 3 files changed, 38 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device.c +28 -0
index 7c4f42ea83d0..0f319415055c 100644
@@ -232,6 +232,19 @@ static const struct drm_ioctl_desc xe_ioctls[] = {
 			  DRM_RENDER_ALLOW),
 };
 
+static bool xe_drm_ioctl_is_wait(unsigned int cmd)
+{
+	switch (DRM_IOCTL_NR(cmd)) {
+	case DRM_IOCTL_NR(DRM_IOCTL_SYNCOBJ_WAIT):
+	case DRM_IOCTL_NR(DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT):
+	case DRM_IOCTL_NR(DRM_IOCTL_SYNCOBJ_TRANSFER):
+	case DRM_IOCTL_NR(DRM_IOCTL_XE_WAIT_USER_FENCE):
+		return true;
+	default:
+		return false;
+	}
+}
+
 static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
 	struct drm_file *file_priv = file->private_data;
@@ -243,6 +256,12 @@ static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	if (ret)
 		return ret;
 
+	/* These waits must not hold up device I/O draining. */
+	if (xe_drm_ioctl_is_wait(cmd)) {
+		xe_device_io_put(io_idx);
+		return drm_ioctl(file, cmd, arg);
+	}
+
 	scoped_cond_guard(xe_pm_runtime_ioctl,
 			  ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &scope),
 			  xe) {
@@ -265,6 +284,12 @@ static long xe_drm_compat_ioctl(struct file *file, unsigned int cmd, unsigned lo
 	if (ret)
 		return ret;
 
+	/* These waits must not hold up device I/O draining. */
+	if (xe_drm_ioctl_is_wait(cmd)) {
+		xe_device_io_put(io_idx);
+		return drm_compat_ioctl(file, cmd, arg);
+	}
+
 	scoped_cond_guard(xe_pm_runtime_ioctl,
 			  ret = ACQUIRE_ERR(xe_pm_runtime_ioctl, &scope),
 			  xe) {
@@ -1138,6 +1163,8 @@ void xe_device_remove(struct xe_device *xe)
 
 	drm_dev_unplug(&xe->drm);
 
+	wake_up_all(&xe->ufence_wq);
+
 	xe_bo_pci_dev_remove_all(xe);
 }
 
@@ -1437,6 +1464,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
 	if (!atomic_xchg(&xe->wedged.flag, 1)) {
 		xe->needs_flr_on_fini = true;
 		xe_pm_runtime_get_noresume(xe);
+		wake_up_all(&xe->ufence_wq);
 
 		xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
 		xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
drivers/gpu/drm/xe/xe_pci_error.c +1 -0
index 3e06f504f1b3..3dfcef03850e 100644
@@ -21,6 +21,7 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
 
 	/* Block device access until PCI error recovery completes. */
 	xe_device_set_in_reset(xe);
+	wake_up_all(&xe->ufence_wq);
 
 	for_each_gt(gt, xe, id)
 		xe_gt_declare_wedged(gt);
drivers/gpu/drm/xe/xe_wait_user_fence.c +9 -3
index e241f3ec3547..b5239c002368 100644
@@ -14,13 +14,19 @@
 #include "xe_macros.h"
 #include "xe_exec_queue.h"
 
-static int do_compare(u64 addr, u64 value, u64 mask, u16 op)
+static int do_compare(struct xe_device *xe, u64 addr, u64 value, u64 mask, u16 op)
 {
 	u64 rvalue;
+	int io_idx;
 	int err;
 	bool passed;
 
+	err = xe_device_io_get(xe, &io_idx);
+	if (err)
+		return err;
+
 	err = copy_from_user(&rvalue, u64_to_user_ptr(addr), sizeof(rvalue));
+	xe_device_io_put(io_idx);
 	if (err)
 		return -EFAULT;
 
@@ -136,7 +142,7 @@ int xe_wait_user_fence_ioctl(struct drm_device *dev, void *data,
 
 	add_wait_queue(&xe->ufence_wq, &w_wait);
 	for (;;) {
-		err = do_compare(addr, args->value, args->mask, args->op);
+		err = do_compare(xe, addr, args->value, args->mask, args->op);
 		if (err <= 0)
 			break;
 
@@ -155,7 +161,7 @@ int xe_wait_user_fence_ioctl(struct drm_device *dev, void *data,
 
 		if (!timeout) {
 			LNL_FLUSH_WORKQUEUE(xe->ordered_wq);
-			err = do_compare(addr, args->value, args->mask,
+			err = do_compare(xe, addr, args->value, args->mask,
 					 args->op);
 			if (err <= 0) {
 				drm_dbg(&xe->drm, "LNL_FLUSH_WORKQUEUE resolved ufence timeout\n");
Signature · 1 line
2.43.0
#6 lore raw

PATCH v3 6/18 drm/xe: Drop queued page faults when device I/O is blocked

In reply to Arvind Yadav

DO NOT REVIEW

Page-fault work may still be queued when PCI error recovery starts or the device becomes permanently wedged. Servicing these faults can migrate memory or update page tables after device I/O has been blocked.

Check the device state while popping queued faults. Release queued entries instead of passing them to a worker when device I/O is blocked.

Hold the device I/O gate across fault servicing so wedge isolation waits for faults already in progress. Faults that start after the block are rejected at the gate.

v2:
- Move the blocked-device check into the queue pop path. (Matt)
- Drop queued faults while holding the queue lock. (Matt)
- Remove weak checks around fault servicing. (Matt)

v3:
- Hold the common device I/O gate across fault servicing. (Thomas)

---
 drivers/gpu/drm/xe/xe_pagefault.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_pagefault.c +14 -1
index 5247321c805e..c9458688684b 100644
@@ -270,6 +270,7 @@ static int xe_pagefault_service(struct xe_pagefault *pf)
 	struct xe_device *xe = gt_to_xe(gt);
 	struct xe_vm *vm;
 	struct xe_vma *vma = NULL;
+	int io_idx;
 	int err;
 	bool atomic;
 	u32 asid = FIELD_GET(XE_PAGEFAULT_ASID_MASK, pf->consumer.id);
@@ -278,13 +279,17 @@ static int xe_pagefault_service(struct xe_pagefault *pf)
 	if (pf->consumer.fault_type_level == XE_PAGEFAULT_TYPE_LEVEL_NACK)
 		return -EFAULT;
 
+	err = xe_device_io_get(xe, &io_idx);
+	if (err)
+		return err;
+
 	vm = xe_pagefault_asid_to_vm(pf, asid);
 	if (IS_ERR(vm)) {
 		err = PTR_ERR(vm);
 		trace_xe_pagefault_fail(xe, NULL, NULL, asid,
 					xe_pagefault_addr(pf),
 					xe_pagefault_get_error(pf), err);
-		return err;
+		goto out_io;
 	}
 
 	xe_migrate_ulls_enter(gt_to_tile(gt)->migrate);
@@ -328,6 +333,8 @@ static int xe_pagefault_service(struct xe_pagefault *pf)
 	up_read(&vm->lock);
 	xe_vm_put(vm);
 
+out_io:
+	xe_device_io_put(io_idx);
 	return err;
 }
 
@@ -517,6 +524,12 @@ static bool xe_pagefault_queue_pop(struct xe_pagefault_queue *pf_queue,
 		    XE_PAGEFAULT_ALLOC_STATE_QUEUED)
 			continue;
 
+		if (xe_device_io_blocked(xe)) {
+			lpf->consumer.alloc_state =
+				XE_PAGEFAULT_ALLOC_STATE_FREE;
+			continue;
+		}
+
 		if (xe_pagefault_try_chain(pf_queue, lpf))
 			continue;
 
Signature · 1 line
2.43.0
#7 lore raw

PATCH v3 7/18 drm/xe: Stop VM work when device I/O is blocked

In reply to Arvind Yadav

DO NOT REVIEW

SVM fault handling and VM rebind work may still run when PCI error recovery starts or the device becomes permanently wedged. This work can validate BOs, update page tables or submit migration work after device I/O has been blocked.

Stop SVM fault handling, pagemap population, device-memory copies and preempt rebind work when device I/O is blocked.

v2:
- Protect VM and SVM hardware access with the common SRCU gate (Thomas)
- Hold the gate across page-fault, migration and rebind work.
- Remove the racy device state checks (Matt)

v3:
- Use DRM device SRCU for VM and SVM hardware access.
- Protect the SVM garbage collector worker with the common I/O gate.
- Keep the original TLB invalidation warning because cancellation is converted to success by the lower layer.

---
 drivers/gpu/drm/xe/xe_svm.c | 26 +++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_vm.c  | 11 +++++++++--
 2 files changed, 32 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_svm.c +23 -3
index 909a602d091e..226dfa57cc06 100644
@@ -12,6 +12,7 @@
 #include <drm/ttm/ttm_bo.h>
 
 #include "xe_bo.h"
+#include "xe_device.h"
 #include "xe_exec_queue_types.h"
 #include "xe_gt_stats.h"
 #include "xe_log.h"
@@ -457,9 +458,15 @@ static void xe_svm_garbage_collector_work_func(struct work_struct *w)
 {
 	struct xe_vm *vm = container_of(w, struct xe_vm,
 					svm.garbage_collector.work);
+	int io_idx;
 
 	guard(rwsem_read)(&vm->lock);
+
+	if (xe_device_io_get(vm->xe, &io_idx))
+		return;
+
 	xe_svm_garbage_collector(vm);
+	xe_device_io_put(io_idx);
 }
 
 #if IS_ENABLED(CONFIG_DRM_XE_PAGEMAP)
@@ -600,6 +607,8 @@ static int xe_svm_copy(struct page **pages,
 #define XE_VRAM_ADDR_INVALID	~0x0ull
 	u64 vram_addr = XE_VRAM_ADDR_INVALID;
 	int err = 0, pos = 0;
+	bool io_held = false;
+	int io_idx;
 	bool sram = dir == XE_SVM_COPY_TO_SRAM;
 	ktime_t start = xe_gt_stats_ktime_get();
 
@@ -630,6 +639,12 @@ static int xe_svm_copy(struct page **pages,
 			vr = xe_page_to_vr(spage);
 			gt = xe_migrate_exec_queue(vr->migrate)->gt;
 			xe = vr->xe;
+
+			err = xe_device_io_get(xe, &io_idx);
+			if (err)
+				goto err_out;
+
+			io_held = true;
 		}
 		XE_WARN_ON(spage && xe_page_to_vr(spage) != vr);
 
@@ -750,6 +765,9 @@ static int xe_svm_copy(struct page **pages,
 	if (pre_migrate_fence)
 		dma_fence_wait(pre_migrate_fence, false);
 
+	if (io_held)
+		xe_device_io_put(io_idx);
+
 	/*
 	 * XXX: We can't derive the GT here (or anywhere in this functions, but
 	 * compute always uses the primary GT so accumulate stats on the likely
@@ -1124,8 +1142,9 @@ static int xe_drm_pagemap_populate_mm(struct drm_pagemap *dpagemap,
 	struct xe_bo *bo;
 	int err = 0, idx;
 
-	if (!drm_dev_enter(&xe->drm, &idx))
-		return -ENODEV;
+	err = xe_device_io_get(xe, &idx);
+	if (err)
+		return err;
 
 	xe_pm_runtime_get(xe);
 
@@ -1167,7 +1186,8 @@ static int xe_drm_pagemap_populate_mm(struct drm_pagemap *dpagemap,
 		xe_bo_put(bo);
 	}
 	xe_pm_runtime_put(xe);
-	drm_dev_exit(idx);
+
+	xe_device_io_put(idx);
 
 	return err;
 }
drivers/gpu/drm/xe/xe_vm.c +9 -2
index 095f762bbb6f..a9882a22b34e 100644
@@ -512,6 +512,7 @@ static void preempt_rebind_work_func(struct work_struct *w)
 	unsigned int fence_count = 0;
 	LIST_HEAD(preempt_fences);
 	int err = 0;
+	int io_idx;
 	long wait;
 	int __maybe_unused tries = 0;
 
@@ -545,6 +546,12 @@ static void preempt_rebind_work_func(struct work_struct *w)
 	if (err)
 		goto out_unlock_outer;
 
+	if (xe_device_io_get(vm->xe, &io_idx)) {
+		xe_validation_ctx_fini(&ctx);
+		err = 0;
+		goto out_unlock_outer;
+	}
+
 	drm_exec_until_all_locked(&exec) {
 		bool done = false;
 
@@ -552,8 +559,7 @@ static void preempt_rebind_work_func(struct work_struct *w)
 		drm_exec_retry_on_contention(&exec);
 		xe_validation_retry_on_oom(&ctx, &err);
 		if (err || done) {
-			xe_validation_ctx_fini(&ctx);
-			goto out_unlock_outer;
+			goto out_unlock;
 		}
 	}
 
@@ -599,6 +605,7 @@ static void preempt_rebind_work_func(struct work_struct *w)
 
 out_unlock:
 	xe_validation_ctx_fini(&ctx);
+	xe_device_io_put(io_idx);
 out_unlock_outer:
 	if (err == -EAGAIN) {
 		trace_xe_vm_rebind_worker_retry(vm);
Signature · 1 line
2.43.0
#8 lore raw

PATCH v3 8/18 drm/xe/ggtt: Skip GGTT updates on a wedged device

In reply to Arvind Yadav

DO NOT REVIEW

ggtt_node_remove() checks whether the GGTT is online, but does not check whether the device is wedged. It can still clear entries and request invalidation after wedge isolation.

Keep GGTT hardware cleanup inside drm_dev_enter()/drm_dev_exit() and check the wedge state there. Isolation can then drain cleanup admitted before the wedge. Node removal and drm_mm bookkeeping still run when hardware access is skipped.

Keep the existing GGTT cleanup behaviour during PCI error recovery.

---
 drivers/gpu/drm/xe/xe_ggtt.c | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_ggtt.c +24 -2
index 63e8bf193605..25880e896778 100644
@@ -20,6 +20,7 @@
 #include "regs/xe_regs.h"
 #include "xe_assert.h"
 #include "xe_bo.h"
+#include "xe_device.h"
 #include "xe_gt.h"
 #include "xe_gt_printk.h"
 #include "xe_gt_types.h"
@@ -472,13 +473,13 @@ static void ggtt_node_fini(struct xe_ggtt_node *node)
 	kfree(node);
 }
 
-static void ggtt_node_remove(struct xe_ggtt_node *node)
+static void __ggtt_node_remove(struct xe_ggtt_node *node, bool clear_hw)
 {
 	struct xe_ggtt *ggtt = node->ggtt;
 	bool bound;
 
 	mutex_lock(&ggtt->lock);
-	bound = ggtt->flags & XE_GGTT_FLAGS_ONLINE;
+	bound = clear_hw && (ggtt->flags & XE_GGTT_FLAGS_ONLINE);
 	if (bound)
 		xe_ggtt_clear(ggtt, xe_ggtt_node_addr(node), xe_ggtt_node_size(node));
 	drm_mm_remove_node(&node->base);
@@ -493,6 +494,27 @@ static void ggtt_node_remove(struct xe_ggtt_node *node)
 	ggtt_node_fini(node);
 }
 
+static void ggtt_node_remove(struct xe_ggtt_node *node)
+{
+	struct xe_device *xe = tile_to_xe(node->ggtt->tile);
+	int idx;
+
+	/*
+	 * GGTT updates write page table entries through the BAR and request a
+	 * TLB invalidation. Skip them after unplug, where the BAR is gone.
+	 * Keep them during PCI error recovery so a recovered device does not
+	 * inherit stale GGTT entries.
+	 */
+	if (!drm_dev_enter(&xe->drm, &idx)) {
+		__ggtt_node_remove(node, false);
+		return;
+	}
+
+	__ggtt_node_remove(node, !xe_device_wedged(xe));
+
+	drm_dev_exit(idx);
+}
+
 static void ggtt_node_remove_work_func(struct work_struct *work)
 {
 	struct xe_ggtt_node *node = container_of(work, typeof(*node),
Signature · 1 line
2.43.0
#9 lore raw

PATCH v3 9/18 drm/xe: Skip VM close hardware access when device I/O is blocked

In reply to Arvind Yadav

DO NOT REVIEW

xe_vm_close() uses drm_dev_enter(), which only checks unplug. After a permanent wedge, VM close can still write page tables in VRAM and request TLB invalidation.

Use xe_device_io_get() around page-table clearing and TLB invalidation. Skip these operations when device I/O is blocked or unplugged, while still closing the VM and running software cleanup.

Take the gate after the pending-bind fence wait. Isolation waits for hardware cleanup admitted before the block, without including that fence wait in this function's gate.

---
 drivers/gpu/drm/xe/xe_vm.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
drivers/gpu/drm/xe/xe_vm.c +3 -7
index a9882a22b34e..26de682b309b 100644
@@ -1903,11 +1903,8 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags, struct xe_file *xef)
 static void xe_vm_close(struct xe_vm *vm)
 {
 	struct xe_device *xe = vm->xe;
-	bool bound;
 	int idx;
 
-	bound = drm_dev_enter(&xe->drm, &idx);
-
 	down_write(&vm->lock);
 	xe_vm_lock(vm, false);
 
@@ -1926,13 +1923,15 @@ static void xe_vm_close(struct xe_vm *vm)
 				      DMA_RESV_USAGE_BOOKKEEP,
 				      false, MAX_SCHEDULE_TIMEOUT);
 
-		if (bound) {
+		if (!xe_device_io_get(xe, &idx)) {
 			for_each_tile(tile, xe, id)
 				if (vm->pt_root[id])
 					xe_pt_clear(xe, vm->pt_root[id]);
 
 			for_each_gt(gt, xe, id)
 				xe_tlb_inval_vm(&gt->tlb_inval, vm);
+
+			xe_device_io_put(idx);
 		}
 	}
 
@@ -1941,9 +1940,6 @@ static void xe_vm_close(struct xe_vm *vm)
 
 	xe_vm_unlock(vm);
 	up_write(&vm->lock);
-
-	if (bound)
-		drm_dev_exit(idx);
 }
 
 void xe_vm_close_and_put(struct xe_vm *vm)
Signature · 1 line
2.43.0
#10 lore raw

PATCH v3 10/18 drm/xe: Send wedged notification from a worker

In reply to Arvind Yadav

DO NOT REVIEW

Move the wedged event to a device worker. This provides a sleepable context for later isolation work and allows it to complete before userspace is notified.

Prepare the GTs only on the first wedge declaration. Reject queue publication after the wedge under the submission lock, so a queue cannot appear after the scan.

Later declarations can update the recovery method and requeue notification without repeating GT preparation.

Track the last reported method and resample it after each event so an update is not lost when the worker is already running.

Stop the worker before probe cleanup, remove, shutdown and GT devres cleanup so it cannot race device teardown.

v2:
- Update reported_method only when drm_dev_wedged_event() succeeds. (Andi)
- Requeue only if the recovery method changed, avoiding repeated retries when notification fails.
- Make wedge worker shutdown one-shot.

v3:
- Use cmpxchg() when setting the default recovery method to avoid overwriting a concurrent method update. (Sashiko)
- Stop the wedge worker before GT devres cleanup.
- Stop wedge handling explicitly if GT initialization fails.
- Run GT preparation only on the first wedge declaration.
- Reject queue publication after a permanent wedge.

---
 drivers/gpu/drm/xe/xe_device.c       | 87 +++++++++++++++++++++++-----
 drivers/gpu/drm/xe/xe_device_types.h |  6 ++
 drivers/gpu/drm/xe/xe_guc_submit.c   |  9 +++
 3 files changed, 87 insertions(+), 15 deletions(-)
drivers/gpu/drm/xe/xe_device.c +72 -15
index 0f319415055c..7010d1320f8d 100644
@@ -85,6 +85,8 @@
 #include <generated/xe_device_wa_oob.h>
 #include <generated/xe_wa_oob.h>
 
+static void xe_device_wedged_work(struct work_struct *work);
+
 static int xe_file_open(struct drm_device *dev, struct drm_file *file)
 {
 	struct xe_device *xe = to_xe_device(dev);
@@ -498,6 +500,9 @@ int xe_device_init_early(struct xe_device *xe)
 {
 	int err;
 
+	INIT_WORK(&xe->wedged.work, xe_device_wedged_work);
+	xe->wedged.reported_method = ~0UL;
+
 	err = ttm_device_init(&xe->ttm, &xe_ttm_funcs, xe->drm.dev,
 			      xe->drm.anon_inode->i_mapping,
 			      xe->drm.vma_offset_manager,
@@ -924,6 +929,40 @@ static void xe_uid_probe(struct xe_device *xe)
 		xe->device_uid = xe_mmio_read64_2x32(xe_root_tile_mmio(xe), CRI_DEVICE_UID);
 }
 
+static void xe_device_wedged_work(struct work_struct *work)
+{
+	struct xe_device *xe =
+			container_of(work, struct xe_device, wedged.work);
+	unsigned long method;
+	int err;
+
+	/* Report at most one recovery method per worker invocation. */
+	method = READ_ONCE(xe->wedged.method);
+	if (method != READ_ONCE(xe->wedged.reported_method)) {
+		err = drm_dev_wedged_event(&xe->drm, method, NULL);
+		if (!err)
+			WRITE_ONCE(xe->wedged.reported_method, method);
+	}
+
+	/*
+	 * Queue another pass if the method changed while the event was sent.
+	 * This preserves the update without keeping this worker in a loop.
+	 */
+	if (!atomic_read(&xe->wedged.stopping) &&
+	    READ_ONCE(xe->wedged.method) != method)
+		queue_work(xe->unordered_wq, &xe->wedged.work);
+}
+
+static void xe_device_wedged_disable(void *arg)
+{
+	struct xe_device *xe = arg;
+
+	if (atomic_xchg(&xe->wedged.stopping, 1))
+		return;
+
+	disable_work_sync(&xe->wedged.work);
+}
+
 int xe_device_probe(struct xe_device *xe)
 {
 	struct xe_tile *tile;
@@ -1040,10 +1079,18 @@ int xe_device_probe(struct xe_device *xe)
 
 	for_each_gt(gt, xe, id) {
 		err = xe_gt_init(gt);
-		if (err)
+		if (err) {
+			xe_device_wedged_disable(xe);
 			return err;
+		}
 	}
 
+	/* Stop wedge work before GT and IRQ devres cleanup. */
+	err = devm_add_action_or_reset(xe->drm.dev,
+				       xe_device_wedged_disable, xe);
+	if (err)
+		return err;
+
 	err = xe_vram_memtest(xe);
 	if (err)
 		return err;
@@ -1151,6 +1198,7 @@ int xe_device_probe(struct xe_device *xe)
 	return 0;
 
 err_unregister_display:
+	xe_device_wedged_disable(xe);
 	xe_display_unregister(xe);
 	drm_dev_unregister(&xe->drm);
 
@@ -1159,6 +1207,8 @@ int xe_device_probe(struct xe_device *xe)
 
 void xe_device_remove(struct xe_device *xe)
 {
+	xe_device_wedged_disable(xe);
+
 	xe_display_unregister(xe);
 
 	drm_dev_unplug(&xe->drm);
@@ -1175,6 +1225,8 @@ void xe_device_shutdown(struct xe_device *xe)
 
 	drm_dbg(&xe->drm, "Shutting down device\n");
 
+	xe_device_wedged_disable(xe);
+
 	xe_display_shutdown(xe);
 
 	xe_irq_suspend(xe);
@@ -1427,7 +1479,7 @@ u64 xe_device_uncanonicalize_addr(struct xe_device *xe, u64 address)
  */
 void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method)
 {
-	xe->wedged.method = method;
+	WRITE_ONCE(xe->wedged.method, method);
 }
 
 #define WEDGED_URL	"https://docs.kernel.org/gpu/drm-uapi.html#device-wedging"
@@ -1454,6 +1506,7 @@ void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method)
 void xe_device_declare_wedged(struct xe_device *xe)
 {
 	struct xe_gt *gt;
+	bool first;
 	u8 id;
 
 	if (xe->wedged.mode == XE_WEDGED_MODE_NEVER) {
@@ -1461,7 +1514,8 @@ void xe_device_declare_wedged(struct xe_device *xe)
 		return;
 	}
 
-	if (!atomic_xchg(&xe->wedged.flag, 1)) {
+	first = !atomic_xchg(&xe->wedged.flag, 1);
+	if (first) {
 		xe->needs_flr_on_fini = true;
 		xe_pm_runtime_get_noresume(xe);
 		wake_up_all(&xe->ufence_wq);
@@ -1471,12 +1525,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
 			    "For recovery procedure, refer to %s\n"
 			    "Please file a _new_ bug report at %s\n",
 			    WEDGED_URL, XE_BUG_URL);
-	}
-
-	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
@@ -1484,14 +1533,22 @@ void xe_device_declare_wedged(struct xe_device *xe)
 		 */
 		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);
+
+		/* Prepare GTs only on the first wedge declaration. */
+		for_each_gt(gt, xe, id)
+			xe_gt_declare_wedged(gt);
 	}
+
+	/* Set the default only if no recovery method was selected. */
+	cmpxchg(&xe->wedged.method, 0UL,
+		DRM_WEDGE_RECOVERY_REBIND |
+		DRM_WEDGE_RECOVERY_BUS_RESET);
+
+	if (!atomic_read(&xe->wedged.stopping) &&
+	    (first ||
+	     READ_ONCE(xe->wedged.method) !=
+	     READ_ONCE(xe->wedged.reported_method)))
+		queue_work(xe->unordered_wq, &xe->wedged.work);
 }
 
 /**
drivers/gpu/drm/xe/xe_device_types.h +6 -0
index 41f703a87916..9f6f015d7559 100644
@@ -560,6 +560,12 @@ struct xe_device {
 		unsigned long method;
 		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
 		bool inconsistent_reset;
+		/** @wedged.work: Runs sleepable wedge handling */
+		struct work_struct work;
+		/** @wedged.stopping: Blocks worker requeue and repeated disable */
+		atomic_t stopping;
+		/** @wedged.reported_method: Last recovery method reported to userspace */
+		unsigned long reported_method;
 	} wedged;
 
 	/** @devres_group: devres group */
drivers/gpu/drm/xe/xe_guc_submit.c +9 -0
index f0bbd32b9acd..84eb4933c930 100644
@@ -2172,6 +2172,12 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 	q->entity = &ge->entity;
 
 	mutex_lock(&guc->submission_state.lock);
+	if (xe_device_wedged(guc_to_xe(guc))) {
+		mutex_unlock(&guc->submission_state.lock);
+		err = -ECANCELED;
+		goto err_entity;
+	}
+
 	if (xe_guc_read_stopped(guc) || vf_recovery(guc))
 		xe_sched_stop(sched);
 	publish_guc_id(guc, q);
@@ -2199,6 +2205,9 @@ static int guc_exec_queue_init(struct xe_exec_queue *q)
 
 	return 0;
 
+err_entity:
+	q->entity = NULL;
+	xe_sched_entity_fini(&ge->entity);
 err_sched:
 	xe_sched_fini(&ge->sched);
 err_release_id:
Signature · 1 line
2.43.0
#11 lore raw

PATCH v3 11/18 drm/xe: Reuse one dummy page per BO after wedge

In reply to Arvind Yadav

DO NOT REVIEW

ttm_bo_vm_dummy_page() allocates a page and a managed cleanup action on every call. These allocations remain until the DRM device is released, so repeated fallback faults can retain many pages.

Keep one zeroed dummy page in each Xe BO and reuse it when device I/O is blocked or the device is unplugged. Use cmpxchg() to handle concurrent faults and free the page when the BO is destroyed.

A per-BO page also prevents writable mappings from different BOs from sharing data.

Map only the faulting address and return the insertion result directly. Other addresses fault on demand and reuse the same dummy page. This avoids walking a potentially large VMA during a single fault.

v2:
- Drop whole-VMA prefaulting and map only the faulting address to avoid long fault-handler runtimes on large mappings. (Sashiko)

v3:
- Map the dummy RAM page with normal WB protection. (Sashiko)

---
 drivers/gpu/drm/xe/xe_bo.c       | 33 +++++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_bo_types.h |  4 ++++
 2 files changed, 36 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_bo.c +32 -1
index 7ee0eade172a..20dcaf4cb9f1 100644
@@ -1994,6 +1994,9 @@ static void xe_ttm_bo_destroy(struct ttm_buffer_object *ttm_bo)
 		list_del(&bo->vram_userfault_link);
 	mutex_unlock(&xe->mem_access.vram_userfault.lock);
 
+	if (bo->wedged_dummy_page)
+		__free_page(bo->wedged_dummy_page);
+
 	kfree(bo);
 }
 
@@ -2189,6 +2192,32 @@ static vm_fault_t xe_bo_cpu_fault_fastpath(struct vm_fault *vmf, struct xe_devic
 	return ret;
 }
 
+static vm_fault_t xe_bo_vm_dummy_page(struct vm_fault *vmf, struct xe_bo *bo)
+{
+	struct vm_area_struct *vma = vmf->vma;
+	struct page *page, *old;
+	pgprot_t prot = vm_get_page_prot(vma->vm_flags);
+	unsigned long pfn;
+
+	page = READ_ONCE(bo->wedged_dummy_page);
+	if (!page) {
+		page = alloc_page(GFP_KERNEL | __GFP_ZERO);
+		if (!page)
+			return VM_FAULT_OOM;
+
+		old = cmpxchg(&bo->wedged_dummy_page, NULL, page);
+		if (old) {
+			__free_page(page);
+			page = old;
+		}
+	}
+
+	pfn = page_to_pfn(page);
+
+	/* Map other addresses on demand instead of walking the whole VMA. */
+	return vmf_insert_pfn_prot(vma, vmf->address, pfn, prot);
+}
+
 static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 {
 	struct ttm_buffer_object *tbo = vmf->vma->vm_private_data;
@@ -2204,7 +2233,7 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
 	int io_idx;
 
 	if (xe_device_io_get(xe, &io_idx))
-		return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
+		return xe_bo_vm_dummy_page(vmf, bo);
 
 	ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);
 	if (ret != VM_FAULT_RETRY)
@@ -2494,6 +2523,8 @@ struct xe_bo *xe_bo_init_locked(struct xe_device *xe, struct xe_bo *bo,
 			return bo;
 	}
 
+	bo->wedged_dummy_page = NULL;
+
 	bo->ccs_cleared = false;
 	bo->tile = tile;
 	bo->flags = flags;
drivers/gpu/drm/xe/xe_bo_types.h +4 -0
index 8ec4a01a0092..80aeb4e31fe9 100644
@@ -21,6 +21,7 @@ struct xe_device;
 struct xe_mem_pool_node;
 struct xe_vm;
 struct xe_exec_queue;
+struct page;
 
 #define XE_BO_MAX_PLACEMENTS	3
 
@@ -112,6 +113,9 @@ struct xe_bo {
 	/** @vram_userfault_link: Link into @mem_access.vram_userfault.list */
 	struct list_head vram_userfault_link;
 
+	/** @wedged_dummy_page: Zeroed page used for faults after device wedge */
+	struct page *wedged_dummy_page;
+
 	/**
 	 * @min_align: minimum alignment needed for this BO if different
 	 * from default
Signature · 1 line
2.43.0
#12 lore raw

PATCH v3 12/18 drm/xe: Invalidate existing VRAM mappings on wedge

In reply to Arvind Yadav

DO NOT REVIEW

CPU mappings created before a device wedge can keep valid PTEs and continue accessing VRAM. Mapping new faults to a dummy page does not replace these existing mappings.

Use the common device I/O SRCU gate to wait for active CPU faults to finish. Then invalidate all tracked VRAM mappings. Faults starting after the wedge use the per-BO dummy page.

This ensures userspace is notified only after existing VRAM mappings have been removed.

v2:
- Drain active faults before invalidating VRAM mappings

v3:
- Use the common DRM device SRCU gate instead of a separate VRAM fault SRCU domain.

---
 drivers/gpu/drm/xe/xe_bo.c     | 20 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_bo.h     |  1 +
 drivers/gpu/drm/xe/xe_device.c |  4 ++++
 3 files changed, 25 insertions(+)
drivers/gpu/drm/xe/xe_bo.c +20 -0
index 20dcaf4cb9f1..e5f8c8b6db94 100644
@@ -4235,6 +4235,26 @@ void xe_bo_runtime_pm_release_mmap_offset(struct xe_bo *bo)
 	list_del_init(&bo->vram_userfault_link);
 }
 
+/**
+ * xe_bo_wedged_invalidate_mmaps - Invalidate CPU mappings backed by VRAM
+ * @xe: xe device instance
+ *
+ * The caller must drain the common device I/O gate before calling this
+ * function. Remove all tracked VRAM mappings so later faults map the
+ * per-BO dummy page.
+ */
+void xe_bo_wedged_invalidate_mmaps(struct xe_device *xe)
+{
+	struct xe_bo *bo, *next;
+
+	mutex_lock(&xe->mem_access.vram_userfault.lock);
+	list_for_each_entry_safe(bo, next,
+				 &xe->mem_access.vram_userfault.list,
+				 vram_userfault_link)
+		xe_bo_runtime_pm_release_mmap_offset(bo);
+	mutex_unlock(&xe->mem_access.vram_userfault.lock);
+}
+
 #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
 #include "tests/xe_bo.c"
 #endif
drivers/gpu/drm/xe/xe_bo.h +1 -0
index 77b3a02e9b8e..3bd19866819c 100644
@@ -453,6 +453,7 @@ int xe_gem_create_ioctl(struct drm_device *dev, void *data,
 int xe_gem_mmap_offset_ioctl(struct drm_device *dev, void *data,
 			     struct drm_file *file);
 void xe_bo_runtime_pm_release_mmap_offset(struct xe_bo *bo);
+void xe_bo_wedged_invalidate_mmaps(struct xe_device *xe);
 
 int xe_bo_dumb_create(struct drm_file *file_priv,
 		      struct drm_device *dev,
drivers/gpu/drm/xe/xe_device.c +4 -0
index 7010d1320f8d..82743ca2d3f8 100644
@@ -936,6 +936,10 @@ static void xe_device_wedged_work(struct work_struct *work)
 	unsigned long method;
 	int err;
 
+	/* Drain active faults before invalidating VRAM mappings. */
+	xe_device_io_drain(xe);
+	xe_bo_wedged_invalidate_mmaps(xe);
+
 	/* Report at most one recovery method per worker invocation. */
 	method = READ_ONCE(xe->wedged.method);
 	if (method != READ_ONCE(xe->wedged.reported_method)) {
Signature · 1 line
2.43.0
#13 lore raw

PATCH v3 13/18 drm/xe/irq: Protect IRQ state during wedge isolation

In reply to Arvind Yadav

DO NOT REVIEW

Wedge isolation can disable interrupts from a worker while PM resume enables them. If both state changes overlap, resume can leave interrupts enabled after the device is wedged.

Add a mutex to protect updates to irq.enabled and the related hardware programming. Check the wedged state while holding the same lock so the final IRQ state remains disabled.

v2:
- Rename pm_lock to state_lock and document the IRQ state it protects.

---
 drivers/gpu/drm/xe/xe_device_types.h |  4 ++++
 drivers/gpu/drm/xe/xe_irq.c          | 23 ++++++++++++++++++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device_types.h +4 -0
index 9f6f015d7559..0696769cf44c 100644
@@ -6,6 +6,7 @@
 #ifndef _XE_DEVICE_TYPES_H_
 #define _XE_DEVICE_TYPES_H_
 
+#include <linux/mutex.h>
 #include <linux/pci.h>
 
 #include <drm/drm_device.h>
@@ -278,6 +279,9 @@ struct xe_device {
 		/** @irq.lock: lock for processing irq's on this device */
 		spinlock_t lock;
 
+		/** @irq.state_lock: Protects suspend and resume IRQ state updates */
+		struct mutex state_lock;
+
 		/** @irq.enabled: interrupts enabled on this device */
 		atomic_t enabled;
 
drivers/gpu/drm/xe/xe_irq.c +20 -3
index d314993b14a1..f7ff3fe5b843 100644
@@ -797,8 +797,14 @@ static void irq_uninstall(void *arg)
 
 int xe_irq_init(struct xe_device *xe)
 {
+	int err;
+
 	spin_lock_init(&xe->irq.lock);
 
+	err = drmm_mutex_init(&xe->drm, &xe->irq.state_lock);
+	if (err)
+		return err;
+
 	return xe_irq_msix_init(xe);
 }
 
@@ -843,6 +849,8 @@ static void xe_irq_msi_synchronize_irq(struct xe_device *xe)
 
 void xe_irq_suspend(struct xe_device *xe)
 {
+	mutex_lock(&xe->irq.state_lock);
+
 	atomic_set(&xe->irq.enabled, 0); /* no new irqs */
 
 	/* flush irqs */
@@ -851,6 +859,8 @@ void xe_irq_suspend(struct xe_device *xe)
 	else
 		xe_irq_msi_synchronize_irq(xe);
 	xe_irq_reset(xe); /* turn irqs off */
+
+	mutex_unlock(&xe->irq.state_lock);
 }
 
 void xe_irq_resume(struct xe_device *xe)
@@ -858,10 +868,14 @@ void xe_irq_resume(struct xe_device *xe)
 	struct xe_gt *gt;
 	int id;
 
+	mutex_lock(&xe->irq.state_lock);
+
+	if (xe_device_wedged(xe))
+		goto out_unlock;
+
 	/*
-	 * lock not needed:
-	 * 1. no irq will arrive before the postinstall
-	 * 2. display is not yet resumed
+	 * irq.lock is not needed because no IRQ can arrive before
+	 * postinstall and the display has not been resumed yet.
 	 */
 	atomic_set(&xe->irq.enabled, 1);
 	xe_irq_reset(xe);
@@ -869,6 +883,9 @@ void xe_irq_resume(struct xe_device *xe)
 
 	for_each_gt(gt, xe, id)
 		xe_irq_enable_hwe(gt);
+
+out_unlock:
+	mutex_unlock(&xe->irq.state_lock);
 }
 
 /* MSI-X related definitions and functions below. */
Signature · 1 line
2.43.0
#14 lore raw

PATCH v3 14/18 drm/xe: Isolate a wedged device before notifying userspace

In reply to Arvind Yadav

DO NOT REVIEW

A permanently wedged device must stop interrupt and DMA activity before userspace is notified that recovery is required.

Run the sleepable isolation steps from the wedge worker. Shut down and unregister the display, suspend interrupts and clear PCI bus mastering, then invalidate VRAM mappings. Mapping teardown does not access hardware, so it runs after DMA has stopped.

Track display and isolation state so later teardown does not repeat these steps. Display shutdown already disables display power, so skip the runtime PM disable when unregister follows shutdown.

System suspend may see the wedge flag before the worker is queued. Use a completion to close this window and flush the worker before skipping normal device suspend. The IRQ serialization keeps a racing resume from enabling interrupts after isolation.

Resume always balances pci_disable_device() with pci_enable_device(). If the device is wedged, clear bus mastering and skip xe_pm_resume().

v2:
- Run the common PCI suspend path for wedged devices so the D3Cold toggles remain paired. (Sashiko)
- Move pci_enable_device() before the resume wedge check to balance pci_disable_device() even if the device wedges during suspend. (Sashiko)
- Reuse the common device I/O SRCU gate
- Remove the separate VRAM fault SRCU domain
- Protect driver suspend and resume with the common SRCU gate
- Wait for isolation when the device wedges during PM

v3:
- Protect display registration with the common device I/O gate. (Sashiko)
- Track display PM suspend state to avoid a second display suspend. (Sashiko)
- Keep display lifecycle checks inside the display helpers. (Sashiko)
- Suspend interrupts and clear PCI bus mastering before invalidating VRAM CPU mappings.

---
 drivers/gpu/drm/xe/display/xe_display.c | 39 ++++++++++++++++---
 drivers/gpu/drm/xe/xe_device.c          | 45 +++++++++++++++++++---
 drivers/gpu/drm/xe/xe_device_types.h    | 13 +++++++
 drivers/gpu/drm/xe/xe_pci.c             | 51 +++++++++++++++++++++----
 4 files changed, 131 insertions(+), 17 deletions(-)
drivers/gpu/drm/xe/display/xe_display.c +34 -5
index aab416485e3e..62d607afbf38 100644
@@ -4,6 +4,7 @@
  */
 
 #include "xe_display.h"
+#include "xe_device.h"
 #include "regs/xe_irq_regs.h"
 
 #include <linux/acpi.h>
@@ -141,35 +142,55 @@ int xe_display_init(struct xe_device *xe)
 void xe_display_register(struct xe_device *xe)
 {
 	struct intel_display *display = xe->display;
+	int io_idx;
 
 	if (!xe->info.probe_display)
 		return;
 
+	if (xe_device_io_get(xe, &io_idx))
+		return;
+
+	if (xe->display_registered)
+		goto out;
+
 	intel_display_driver_register(display);
 	intel_display_driver_runtime_pm_enable(display);
+
+	xe->display_registered = true;
+
+out:
+	xe_device_io_put(io_idx);
 }
 
 void xe_display_unregister(struct xe_device *xe)
 {
 	struct intel_display *display = xe->display;
 
-	if (!xe->info.probe_display)
+	if (!xe->info.probe_display || !xe->display_registered)
 		return;
 
-	intel_display_driver_runtime_pm_disable(display);
+	if (!xe->display_shutdown && !xe->display_pm_suspended)
+		intel_display_driver_runtime_pm_disable(display);
+
 	intel_display_driver_unregister(display);
+
+	xe->display_registered = false;
 }
 
 void xe_display_shutdown(struct xe_device *xe)
 {
 	struct intel_display *display = xe->display;
 
-	if (!xe->info.probe_display)
+	if (!xe->info.probe_display || !xe->display_registered ||
+	    xe->display_shutdown ||
+	    xe->display_pm_suspended)
 		return;
 
 	intel_display_driver_shutdown(display);
 
 	intel_opregion_suspend(display, PCI_D3cold);
+
+	xe->display_shutdown = true;
 }
 
 void xe_display_shutdown_late(struct xe_device *xe)
@@ -240,12 +261,16 @@ void xe_display_pm_suspend(struct xe_device *xe)
 	struct intel_display *display = xe->display;
 	bool s2idle = suspend_to_idle();
 
-	if (!xe->info.probe_display)
+	if (!xe->info.probe_display || !xe->display_registered ||
+	    xe->display_shutdown ||
+	    xe->display_pm_suspended)
 		return;
 
 	intel_display_driver_pm_suspend(display);
 
 	intel_opregion_suspend(display, s2idle ? PCI_D1 : PCI_D3cold);
+
+	xe->display_pm_suspended = true;
 }
 
 void xe_display_pm_suspend_late(struct xe_device *xe)
@@ -273,7 +298,9 @@ void xe_display_pm_resume(struct xe_device *xe)
 {
 	struct intel_display *display = xe->display;
 
-	if (!xe->info.probe_display)
+	if (!xe->info.probe_display || !xe->display_registered ||
+	    xe->display_shutdown ||
+	    !xe->display_pm_suspended)
 		return;
 
 	intel_dmc_resume(display);
@@ -284,6 +311,8 @@ void xe_display_pm_resume(struct xe_device *xe)
 	intel_display_driver_init_hw(display);
 
 	intel_display_driver_pm_resume(display);
+
+	xe->display_pm_suspended = false;
 }
 
 static void xe_display_enable_d3cold(struct xe_device *xe)
drivers/gpu/drm/xe/xe_device.c +40 -5

81 lines not on this page · raw message

drivers/gpu/drm/xe/xe_device_types.h +13 -0
index 0696769cf44c..0a6ca893b257 100644
@@ -6,6 +6,7 @@
 #ifndef _XE_DEVICE_TYPES_H_
 #define _XE_DEVICE_TYPES_H_
 
+#include <linux/completion.h>
 #include <linux/mutex.h>
 #include <linux/pci.h>
 
@@ -112,6 +113,14 @@ struct xe_device {
 #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
 	/** @display: display device data, must be placed after drm device member */
 	struct intel_display *display;
+	/** @display_registered: Display userspace interfaces are registered */
+	bool display_registered;
+	/**
+	 * @display_pm_suspended: Display was suspended by system PM
+	 */
+	bool display_pm_suspended;
+	/** @display_shutdown: Display hardware shutdown has completed */
+	bool display_shutdown;
 #endif
 
 	/** @devcoredump: device coredump */
@@ -568,8 +577,12 @@ struct xe_device {
 		struct work_struct work;
 		/** @wedged.stopping: Blocks worker requeue and repeated disable */
 		atomic_t stopping;
+		/** @wedged.prepared: First wedge declaration finished and work was queued */
+		struct completion prepared;
 		/** @wedged.reported_method: Last recovery method reported to userspace */
 		unsigned long reported_method;
+		/** @wedged.isolated: Terminal device isolation has completed */
+		bool isolated;
 	} wedged;
 
 	/** @devres_group: devres group */
drivers/gpu/drm/xe/xe_pci.c +44 -7

82 lines not on this page · raw message

Signature · 1 line
2.43.0
#15 lore raw

PATCH v3 15/18 drm/xe/ttm: Reject VRAM allocations on wedged devices

In reply to Arvind Yadav

DO NOT REVIEW

VRAM is no longer usable after the device is wedged. Reject observed VRAM allocations with -ENODEV and stop placement fallback.

An allocation racing with the wedge may still complete. The wedged fault path prevents new VRAM CPU mappings, and device teardown releases the resource.

v2:
- Return -ENODEV to stop placement fallback after a permanent wedge. (Rodrigo)

---
 drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +4 -0
index 8bf6bbc2f0ae..7d61621871a2 100644
@@ -105,6 +105,7 @@ static int xe_ttm_vram_mgr_new(struct ttm_resource_manager *man,
 			       const struct ttm_place *place,
 			       struct ttm_resource **res)
 {
+	struct xe_device *xe = ttm_to_xe_device(tbo->bdev);
 	struct xe_ttm_vram_mgr *mgr = to_xe_ttm_vram_mgr(man);
 	struct xe_ttm_vram_mgr_resource *vres;
 	struct gpu_buddy *mm = &mgr->mm;
@@ -112,6 +113,9 @@ static int xe_ttm_vram_mgr_new(struct ttm_resource_manager *man,
 	unsigned long lpfn;
 	int err;
 
+	if (xe_device_wedged(xe))
+		return -ENODEV;
+
 	lpfn = place->lpfn;
 	if (!lpfn || lpfn > man->size >> PAGE_SHIFT)
 		lpfn = man->size >> PAGE_SHIFT;
Signature · 1 line
2.43.0
#16 lore raw

PATCH v3 16/18 drm/xe/guc: Skip timeout recovery on a wedged device

In reply to Arvind Yadav

DO NOT REVIEW

A scheduler timeout can still run after the device has been declared wedged. guc_submit_hint_wedged() only returns true for the no-reset debug mode, so other wedge modes can continue into GuC timeout recovery.

The killed-queue case already preserves an existing wedge. Extend the same check to non-killed queues, where guc_submit_hint_wedged() returns false outside the no-reset debug mode.

If the device is already wedged, use the existing wedged cleanup path and avoid further hardware recovery. This also avoids the kernel-submitted job timeout warning seen after wedge isolation.

The timeout was observed as:

[ 8939.200065] xe 0000:03:00.0: [drm] Tile0: GT0: Kernel-submitted job timed out
[ 8939.200066] WARNING: xe_guc_submit.c:1683 at guc_exec_queue_timedout_job+0x1160/0x2550
---
 drivers/gpu/drm/xe/xe_guc_submit.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_guc_submit.c +2 -3
index 84eb4933c930..aee4f9d909a8 100644
@@ -1657,10 +1657,9 @@ guc_exec_queue_timedout_job(struct drm_sched_job *drm_job)
 	 * Killed queues must not newly wedge the device, but preserve an
 	 * already-wedged state to avoid warning on teardown timeouts.
 	 */
-	if (!exec_queue_killed(q))
+	wedged = xe_device_wedged(xe);
+	if (!wedged && !exec_queue_killed(q))
 		wedged = guc_submit_hint_wedged(exec_queue_to_guc(q));
-	else
-		wedged = xe_device_wedged(xe);
 
 	/*
 	 * Only tag as GPU hang if this is the original timeout, not a
Signature · 1 line
2.43.0
#17 lore raw

PATCH v3 17/18 drm/xe: Skip PM notifier preparation when device I/O is blocked

In reply to Arvind Yadav

DO NOT REVIEW

The system PM notifier runs before the PCI suspend callback and may evict BOs or prepare pinned BOs.

Hold the common device I/O gate during preparation and skip it when the device is blocked or unplugged. Track whether preparation ran so the post callback only performs matching cleanup and releases the runtime PM reference when needed.

Keep the gate held across BO eviction so isolation waits for preparation admitted before the device was blocked.

v2:
- Protect PM preparation with the common SRCU gate.

v3:
- Replace the private I/O gate with the DRM device SRCU helper.

---
 drivers/gpu/drm/xe/xe_device_types.h |  2 ++
 drivers/gpu/drm/xe/xe_pm.c           | 12 ++++++++++++
 2 files changed, 14 insertions(+)
drivers/gpu/drm/xe/xe_device_types.h +2 -0
index 0a6ca893b257..b02d61343477 100644
@@ -494,6 +494,8 @@ struct xe_device {
 
 	/** @pm_notifier: Our PM notifier to perform actions in response to various PM events. */
 	struct notifier_block pm_notifier;
+	/** @pm_notifier_active: PM notifier prepare work was performed */
+	bool pm_notifier_active;
 	/** @pm_block: Completion to block validating tasks on suspend / hibernate prepare */
 	struct completion pm_block;
 	/** @rebind_resume_list: List of wq items to kick on resume. */
drivers/gpu/drm/xe/xe_pm.c +12 -0
index daa7ba2df317..fd265f9135c6 100644
@@ -459,10 +459,16 @@ static int xe_pm_notifier_callback(struct notifier_block *nb,
 	case PM_SUSPEND_PREPARE:
 	{
 		struct xe_validation_ctx ctx;
+		int io_idx;
+
+		/* Do not start PM preparation while device I/O is blocked. */
+		if (xe_device_io_get(xe, &io_idx))
+			break;
 
 		reinit_completion(&xe->pm_block);
 		xe_pm_block_begin_signalling();
 		xe_pm_runtime_get(xe);
+		xe->pm_notifier_active = true;
 		(void)xe_validation_ctx_init(&ctx, &xe->val, NULL,
 					     (struct xe_val_flags) {.exclusive = true});
 		err = xe_bo_evict_all_user(xe);
@@ -479,10 +485,16 @@ static int xe_pm_notifier_callback(struct notifier_block *nb,
 		 * allocations.
 		 */
 		xe_pm_block_end_signalling();
+		xe_device_io_put(io_idx);
 		break;
 	}
 	case PM_POST_HIBERNATION:
 	case PM_POST_SUSPEND:
+		if (!xe->pm_notifier_active)
+			break;
+
+		xe->pm_notifier_active = false;
+
 		complete_all(&xe->pm_block);
 		xe_pm_wake_rebind_workers(xe);
 		xe_bo_notifier_unprepare_all_pinned(xe);
Signature · 1 line
2.43.0
#18 lore raw

PATCH v3 18/18 drm/xe: Block BO VM access when device I/O is unavailable

In reply to Arvind Yadav

DO NOT REVIEW

xe_bo_vm_access() may acquire a runtime PM reference and access a BO during PCI error recovery, after a permanent wedge or during device unplug.

Use xe_device_io_get() to protect against unplug, PCI error recovery and permanent wedging. Keep the device I/O gate held until the runtime PM reference has been released.

Return -EIO for a permanent wedge, -ECANCELED during PCI error recovery and -ENODEV after device unplug.

v2:
- Replace the runtime-PM scoped guard with explicit get/put calls to avoid mixing scope-based and goto-based cleanup. (Sashiko)
- Replace the private VRAM SRCU lock with the common device I/O gate.
- Preserve -EIO for BO access after a permanent wedge.

v3:
- Combine unplug and blocked-device protection through the common DRM device SRCU helper.
- Return -ENODEV after unplug and -ECANCELED during PCI recovery, while preserving -EIO for a permanent wedge.

---
 drivers/gpu/drm/xe/xe_bo.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
drivers/gpu/drm/xe/xe_bo.c +11 -2
index e5f8c8b6db94..c92382ff5cbd 100644
@@ -2330,9 +2330,18 @@ static int xe_bo_vm_access(struct vm_area_struct *vma, unsigned long addr,
 	struct ttm_buffer_object *ttm_bo = vma->vm_private_data;
 	struct xe_bo *bo = ttm_to_xe_bo(ttm_bo);
 	struct xe_device *xe = xe_bo_device(bo);
+	int idx, ret;
 
-	guard(xe_pm_runtime)(xe);
-	return ttm_bo_vm_access(vma, addr, buf, len, write);
+	ret = xe_device_io_get(xe, &idx);
+	if (ret)
+		return ret == -ECANCELED && xe_device_wedged(xe) ? -EIO : ret;
+
+	xe_pm_runtime_get(xe);
+	ret = ttm_bo_vm_access(vma, addr, buf, len, write);
+	xe_pm_runtime_put(xe);
+
+	xe_device_io_put(idx);
+	return ret;
 }
 
 /**
Signature · 1 line
2.43.0
#19 lore raw

✗ CI.checkpatch: warning for drm/xe: Isolate permanently wedged devices

In reply to Arvind Yadav
== Series Details ==

== Series Details ==

Series: drm/xe: Isolate permanently wedged devices
URL : https://patchwork.freedesktop.org/series/176267/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 6bef5ce5c74dc76b4ee69ab2832c0d1fd63c91c7
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 8bd802f76eb2bc2f4150b31fd9f71c8ec5d5b1a5

Author: Arvind Yadav <[email protected]>
Date:   Fri Oct 16 12:48:28 2026 +0530

drm/xe: Block BO VM access when device I/O is unavailable

DO NOT REVIEW

xe_bo_vm_access() may acquire a runtime PM reference and access a BO during PCI error recovery, after a permanent wedge or during device unplug.

Use xe_device_io_get() to protect against unplug, PCI error recovery and permanent wedging. Keep the device I/O gate held until the runtime PM reference has been released.

Return -EIO for a permanent wedge, -ECANCELED during PCI error recovery and -ENODEV after device unplug.

v2:
- Replace the runtime-PM scoped guard with explicit get/put calls to avoid mixing scope-based and goto-based cleanup. (Sashiko)
- Replace the private VRAM SRCU lock with the common device I/O gate.
- Preserve -EIO for BO access after a permanent wedge.

v3:
- Combine unplug and blocked-device protection through the common DRM device SRCU helper.
- Return -ENODEV after unplug and -ECANCELED during PCI recovery, while preserving -EIO for a permanent wedge.

+ /mt/dim checkpatch 25ac2be14e483405af697f32d04950fe737db1a9 drm-intel ec1852ea8999 drm/xe/irq: Always free requested IRQs on uninstall f4b4fbecd679 drm/drv: Export drm_dev_srcu_synchronize() 2f5b3b0c9445 drm/xe: Separate AER reset state from device wedging 0faad7c8b42e drm/xe: Protect device I/O with DRM device SRCU -:252: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #252: FILE: drivers/gpu/drm/xe/xe_guc_tlb_inval.c:92:
+ CLASS(xe_force_wake, fw_ref)(gt_to_fw(gt),
+ XE_FW_GT);

total: 0 errors, 0 warnings, 1 checks, 219 lines checked 6d41bc4090f4 drm/xe: Keep software waits outside the device I/O gate 02082f91e61f drm/xe: Drop queued page faults when device I/O is blocked c34892eecc4a drm/xe: Stop VM work when device I/O is blocked 498054a320c8 drm/xe/ggtt: Skip GGTT updates on a wedged device 6c3f6a02c651 drm/xe: Skip VM close hardware access when device I/O is blocked 0789643f63b9 drm/xe: Send wedged notification from a worker 9d61ef534bc4 drm/xe: Reuse one dummy page per BO after wedge 89731e987648 drm/xe: Invalidate existing VRAM mappings on wedge 8391ab6ff322 drm/xe/irq: Protect IRQ state during wedge isolation 2aaa5e628310 drm/xe: Isolate a wedged device before notifying userspace 477ea635e5c7 drm/xe/ttm: Reject VRAM allocations on wedged devices 402bcb02d93d drm/xe/guc: Skip timeout recovery on a wedged device d4e7b9b6db83 drm/xe: Skip PM notifier preparation when device I/O is blocked 8bd802f76eb2 drm/xe: Block BO VM access when device I/O is unavailable

#20 lore raw

✓ CI.KUnit: success for drm/xe: Isolate permanently wedged devices

In reply to Arvind Yadav
== Series Details ==

== Series Details ==

Series: drm/xe: Isolate permanently wedged devices
URL : https://patchwork.freedesktop.org/series/176267/
State : success

== Summary ==

+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[07:26:09] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[07:26:13] 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
[07:26:34] Starting KUnit Kernel (1/1)...
[07:26:34] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[07:26:34] ================= gpu_buddy (14 subtests) ==================
[07:26:34] [PASSED] gpu_test_buddy_alloc_limit
[07:26:34] [PASSED] gpu_test_buddy_alloc_optimistic
[07:26:34] [PASSED] gpu_test_buddy_alloc_pessimistic
[07:26:34] [PASSED] gpu_test_buddy_alloc_pathological
[07:26:34] [PASSED] gpu_test_buddy_alloc_contiguous
[07:26:34] [PASSED] gpu_test_buddy_alloc_clear
[07:26:34] [PASSED] gpu_test_buddy_alloc_range
[07:26:34] [PASSED] gpu_test_buddy_alloc_range_bias
[07:26:35] [PASSED] gpu_test_buddy_fragmentation_performance
[07:26:36] [PASSED] gpu_test_buddy_dirty_tracker_performance
[07:26:36] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[07:26:36] [PASSED] gpu_test_buddy_offset_aligned_allocation
[07:26:36] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[07:26:36] [PASSED] gpu_test_buddy_addr_to_block
[07:26:36] ==================== [PASSED] gpu_buddy ====================
[07:26:36] ============================================================
[07:26:36] Testing complete. Ran 14 tests: passed: 14
[07:26:36] Elapsed time: 27.454s total, 4.481s configuring, 20.805s building, 2.130s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [07:26:36] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

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

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [07:27:19] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

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

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [07:27:47] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

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

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig [07:27:59] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[07:28:01] 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
[07:28:10] Starting KUnit Kernel (1/1)...
[07:28:10] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[07:28:10] =============== dma-buf-fence (12 subtests) ================
[07:28:10] [PASSED] test_sanitycheck
[07:28:10] [PASSED] test_signaling
[07:28:10] [PASSED] test_add_callback
[07:28:10] [PASSED] test_late_add_callback
[07:28:10] [PASSED] test_rm_callback
[07:28:10] [PASSED] test_late_rm_callback
[07:28:10] [PASSED] test_status
[07:28:10] [PASSED] test_error
[07:28:10] [PASSED] test_wait
[07:28:10] [PASSED] test_wait_timeout
[07:28:10] [PASSED] test_stub
[07:28:10] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[07:28:10] ================== [PASSED] dma-buf-fence ==================
[07:28:10] ============ dma-buf-fence-chain (11 subtests) =============
[07:28:10] [PASSED] test_sanitycheck
[07:28:10] [PASSED] test_find_seqno
[07:28:10] [PASSED] test_find_signaled
[07:28:10] [PASSED] test_find_out_of_order
[07:28:15] [PASSED] test_find_gap
[07:28:15] [PASSED] test_find_race
[07:28:15] [PASSED] test_signal_forward
[07:28:15] [PASSED] test_signal_backward
[07:28:15] [PASSED] test_wait_forward
[07:28:15] [PASSED] test_wait_backward
[07:28:15] [PASSED] test_wait_random
[07:28:15] =============== [PASSED] dma-buf-fence-chain ===============
[07:28:15] ============ dma-buf-fence-unwrap (11 subtests) ============
[07:28:15] [PASSED] test_sanitycheck
[07:28:15] [PASSED] test_unwrap_array
[07:28:15] [PASSED] test_unwrap_chain
[07:28:15] [PASSED] test_unwrap_chain_array
[07:28:15] [PASSED] test_unwrap_merge
[07:28:15] [PASSED] test_unwrap_merge_duplicate
[07:28:15] [PASSED] test_unwrap_merge_seqno
[07:28:15] [PASSED] test_unwrap_merge_order
[07:28:15] [PASSED] test_unwrap_merge_complex
[07:28:15] [PASSED] test_unwrap_merge_complex_seqno
[07:28:15] [PASSED] test_dedup_empty
[07:28:15] ============== [PASSED] dma-buf-fence-unwrap ===============
[07:28:15] ================ dma-buf-resv (5 subtests) =================
[07:28:15] [PASSED] test_sanitycheck
[07:28:15] ===================== test_signaling  ======================
[07:28:15] [PASSED] kernel
[07:28:15] [PASSED] write
[07:28:15] [PASSED] read
[07:28:15] [PASSED] bookkeep
[07:28:15] ================= [PASSED] test_signaling ==================
[07:28:15] ====================== test_for_each  ======================
[07:28:15] [PASSED] kernel
[07:28:15] [PASSED] write
[07:28:15] [PASSED] read
[07:28:15] [PASSED] bookkeep
[07:28:15] ================== [PASSED] test_for_each ==================
[07:28:15] ================= test_for_each_unlocked  ==================
[07:28:15] [PASSED] kernel
[07:28:15] [PASSED] write
[07:28:15] [PASSED] read
[07:28:15] [PASSED] bookkeep
[07:28:15] ============= [PASSED] test_for_each_unlocked ==============
[07:28:15] ===================== test_get_fences  =====================
[07:28:15] [PASSED] kernel
[07:28:15] [PASSED] write
[07:28:15] [PASSED] read
[07:28:15] [PASSED] bookkeep
[07:28:15] ================= [PASSED] test_get_fences =================
[07:28:15] ================== [PASSED] dma-buf-resv ===================
[07:28:15] ============================================================
[07:28:15] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[07:28:15] Elapsed time: 15.943s total, 1.817s configuring, 8.754s building, 5.336s running

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

#21 lore raw

✗ Xe.CI.BAT: failure for drm/xe: Isolate permanently wedged devices

In reply to Arvind Yadav
== Series Details ==

== Series Details ==

Series: drm/xe: Isolate permanently wedged devices
URL : https://patchwork.freedesktop.org/series/176267/
State : failure

== Summary ==

CI Bug Log - changes from xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4_BAT -> xe-pw-176267v1_BAT
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-176267v1_BAT absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-176267v1_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

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

No changes in participating hosts

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in xe-pw-176267v1_BAT:

### IGT changes ###

#### Possible regressions ####

* igt@core_hotunplug@unbind-rebind:
- bat-adlp-7: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-adlp-7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-adlp-7/igt@[email protected]
- bat-ptl-2: [PASS][3] -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-ptl-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-ptl-2/igt@[email protected]
- bat-bmg-1: [PASS][5] -> [DMESG-WARN][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-bmg-1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-bmg-1/igt@[email protected]
- bat-nvls-1: [PASS][7] -> [DMESG-WARN][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-nvls-1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-nvls-1/igt@[email protected]
- bat-lnl-2: [PASS][9] -> [DMESG-WARN][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-lnl-2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-lnl-2/igt@[email protected]
- bat-nvls-2: [PASS][11] -> [DMESG-WARN][12]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-nvls-2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-nvls-2/igt@[email protected]
- bat-atsm-2: [PASS][13] -> [DMESG-WARN][14]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-atsm-2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-atsm-2/igt@[email protected]
- bat-wcl-1: [PASS][15] -> [DMESG-WARN][16]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-wcl-1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-wcl-1/igt@[email protected]
- bat-ptl-1: [PASS][17] -> [DMESG-WARN][18]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-ptl-1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-ptl-1/igt@[email protected]
- bat-wcl-2: [PASS][19] -> [DMESG-WARN][20]
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-wcl-2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-wcl-2/igt@[email protected]
- bat-lnl-1: [PASS][21] -> [DMESG-WARN][22]
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-lnl-1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-lnl-1/igt@[email protected]

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

Here are the changes found in xe-pw-176267v1_BAT that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@core_hotunplug@unbind-rebind:
- bat-bmg-2: [PASS][23] -> [ABORT][24] ([Intel XE#9463])
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4/bat-bmg-2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-176267v1/bat-bmg-2/igt@[email protected]

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

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

* Linux: xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4 -> xe-pw-176267v1

IGT_9150: 18811c476bfde62ffbb4c0af55cd6f57e36e0dca @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5957-80c7a1d738b654b45717944325a57ff9e2ae3de4: 80c7a1d738b654b45717944325a57ff9e2ae3de4
xe-pw-176267v1: 176267v1

== Logs ==

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