intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v11 0/4] drm/xe: Improve wedged mode handling
@ 2025-12-15 17:46 Lukasz Laguna
  2025-12-15 17:46 ` [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes Lukasz Laguna
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Lukasz Laguna @ 2025-12-15 17:46 UTC (permalink / raw)
  To: intel-xe; +Cc: michal.wajdeczko, rodrigo.vivi, lukasz.laguna

Prevent the VF from attempting to update the GuC reset policy when
changing the wedged mode, as this operation is not supported on VFs.

Additionally, validate the wedged_mode module parameter input, update
the driver's internal wedged.mode state only after successful reset
policy change, and allow setting wedged_mode=2 only in debug builds
if running as PF.

v1: https://patchwork.freedesktop.org/series/148214/#rev1
v2: Replace magic numbers with definitions (Matt, Michal)
    Use helper to sanitize wedged_mode (Michal)
    Change debug messages (Michal)
    Reorder patches (Michal)
    Add fixes tag (Matt)
v3: Rename xe_device_wedged_mode_validate to
    xe_device_validate_wedged_mode (Michal)
    Make enum nameless (Michal)
    Add default field in enum (Michal)
    Change names of enum fields to match modparam description (Michal)
v4: Fix GuC reset policy update
    Replace missing magic numbers with definitions
    Update debug message
v5: Remove old rb-s from the patch that changed
v6: Use string names instead of enum values in log messages (Michal)
    Handle inconsistent reset policy state between GTs (Michal)
    Use bool param in function toggling reset policy (Michal)
    Update commits titles and descriptions (Michal)
v7: Rebase series (Lukasz)
    Rename helpers (Michal, Lukasz)
    Split complex condition into smaller, separate ones (Michal)
    Don't introduce XE_WEDGED_MODE_MISCONFIGURED enum field (Michal)
    Add needs_policy_update helper (Michal)
v8: Apply missing rb (Lukasz)
v9: Simplify conditions (Rodrigo)
v10: Define enum outside of the xe_device struct
     Fix description of module parameter (Michal)
v11: Update the Xe Device Wedging doc (Rodrigo)
     Provide a more detailed commit description (Rodrigo)

Lukasz Laguna (4):
  drm/xe: Validate wedged_mode parameter and define enum for modes
  drm/xe: Update wedged.mode only after successful reset policy change
  drm/xe/vf: Disallow setting wedged mode to upon-any-hang
  drm/xe/pf: Allow upon-any-hang wedged mode only in debug config

 drivers/gpu/drm/xe/xe_debugfs.c      | 75 ++++++++++++++++++++++------
 drivers/gpu/drm/xe/xe_device.c       | 60 +++++++++++++++++++---
 drivers/gpu/drm/xe/xe_device.h       |  2 +
 drivers/gpu/drm/xe/xe_device_types.h | 23 ++++++++-
 drivers/gpu/drm/xe/xe_guc_ads.c      | 16 +++---
 drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
 drivers/gpu/drm/xe/xe_guc_capture.c  |  9 +++-
 drivers/gpu/drm/xe/xe_guc_submit.c   |  7 +--
 drivers/gpu/drm/xe/xe_module.c       | 10 ++--
 drivers/gpu/drm/xe/xe_module.h       |  2 +-
 10 files changed, 170 insertions(+), 39 deletions(-)

-- 
2.40.0


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

* [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
@ 2025-12-15 17:46 ` Lukasz Laguna
  2025-12-19 21:56   ` Rodrigo Vivi
  2025-12-15 17:46 ` [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change Lukasz Laguna
                   ` (7 subsequent siblings)
  8 siblings, 1 reply; 13+ messages in thread
From: Lukasz Laguna @ 2025-12-15 17:46 UTC (permalink / raw)
  To: intel-xe; +Cc: michal.wajdeczko, rodrigo.vivi, lukasz.laguna

Check correctness of the wedged_mode parameter input to ensure only
supported values are accepted. Additionally, replace magic numbers with
a clearly defined enum.

Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
v11:
 - update the Xe Device Wedging doc (Rodrigo),
 - change the name of XE_WEDGED_MODE_UPON_ANY_HANG (Rodrigo).
---
 drivers/gpu/drm/xe/xe_debugfs.c      |  5 +--
 drivers/gpu/drm/xe/xe_device.c       | 54 ++++++++++++++++++++++++----
 drivers/gpu/drm/xe/xe_device.h       |  2 ++
 drivers/gpu/drm/xe/xe_device_types.h | 21 ++++++++++-
 drivers/gpu/drm/xe/xe_guc_ads.c      |  4 +--
 drivers/gpu/drm/xe/xe_guc_capture.c  |  9 ++++-
 drivers/gpu/drm/xe/xe_guc_submit.c   |  7 ++--
 drivers/gpu/drm/xe/xe_module.c       | 10 +++---
 drivers/gpu/drm/xe/xe_module.h       |  2 +-
 9 files changed, 94 insertions(+), 20 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index ad070055cef1..0b65c3940f41 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -267,8 +267,9 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
 	if (ret)
 		return ret;
 
-	if (wedged_mode > 2)
-		return -EINVAL;
+	ret = xe_device_validate_wedged_mode(xe, wedged_mode);
+	if (ret)
+		return ret;
 
 	if (xe->wedged.mode == wedged_mode)
 		return size;
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index cdaa1c1e73f5..492446fdc4dc 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -767,7 +767,10 @@ int xe_device_probe_early(struct xe_device *xe)
 	if (err)
 		return err;
 
-	xe->wedged.mode = xe_modparam.wedged_mode;
+	xe->wedged.mode = xe_device_validate_wedged_mode(xe, xe_modparam.wedged_mode) ?
+			  XE_WEDGED_MODE_DEFAULT : xe_modparam.wedged_mode;
+	drm_dbg(&xe->drm, "wedged_mode: setting mode (%u) %s\n",
+		xe->wedged.mode, xe_wedged_mode_to_string(xe->wedged.mode));
 
 	err = xe_device_vram_alloc(xe);
 	if (err)
@@ -1246,10 +1249,10 @@ static void xe_device_wedged_fini(struct drm_device *drm, void *arg)
  * DOC: Xe Device Wedging
  *
  * Xe driver uses drm device wedged uevent as documented in Documentation/gpu/drm-uapi.rst.
- * When device is in wedged state, every IOCTL will be blocked and GT cannot be
- * used. Certain critical errors like gt reset failure, firmware failures can cause
- * the device to be wedged. The default recovery method for a wedged state
- * is rebind/bus-reset.
+ * When device is in wedged state, every IOCTL will be blocked and GT cannot
+ * be used. The conditions under which the driver declares the device wedged
+ * depend on the wedged mode configuration (see &enum xe_wedged_mode). The
+ * default recovery method for a wedged state is rebind/bus-reset.
  *
  * Another recovery method is vendor-specific. Below are the cases that send
  * ``WEDGED=vendor-specific`` recovery method in drm device wedged uevent.
@@ -1314,7 +1317,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
 	struct xe_gt *gt;
 	u8 id;
 
-	if (xe->wedged.mode == 0) {
+	if (xe->wedged.mode == XE_WEDGED_MODE_NEVER) {
 		drm_dbg(&xe->drm, "Wedged mode is forcibly disabled\n");
 		return;
 	}
@@ -1348,3 +1351,42 @@ void xe_device_declare_wedged(struct xe_device *xe)
 		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
 	}
 }
+
+/**
+ * xe_device_validate_wedged_mode - Check if given mode is supported
+ * @xe: the &xe_device
+ * @mode: requested mode to validate
+ *
+ * Check whether the provided wedged mode is supported.
+ *
+ * Return: 0 if mode is supported, error code otherwise.
+ */
+int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
+{
+	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
+		drm_dbg(&xe->drm, "wedged_mode: invalid value (%u)\n", mode);
+		return -EINVAL;
+	}
+
+	return 0;
+}
+
+/**
+ * xe_wedged_mode_to_string - Convert enum value to string.
+ * @mode: the &xe_wedged_mode to convert
+ *
+ * Returns: wedged mode as a user friendly string.
+ */
+const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode)
+{
+	switch (mode) {
+	case XE_WEDGED_MODE_NEVER:
+		return "never";
+	case XE_WEDGED_MODE_UPON_CRITICAL_ERROR:
+		return "upon-critical-error";
+	case XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET:
+		return "upon-any-hang-no-reset";
+	default:
+		return "<invalid>";
+	}
+}
diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
index 6604b89330d5..b6ef72e95a3d 100644
--- a/drivers/gpu/drm/xe/xe_device.h
+++ b/drivers/gpu/drm/xe/xe_device.h
@@ -194,6 +194,8 @@ static inline bool xe_device_wedged(struct xe_device *xe)
 
 void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
 void xe_device_declare_wedged(struct xe_device *xe);
+int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
+const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode);
 
 struct xe_file *xe_file_get(struct xe_file *xef);
 void xe_file_put(struct xe_file *xef);
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 96acc43b94e1..20a847965b20 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -44,6 +44,25 @@ struct xe_pat_ops;
 struct xe_pxp;
 struct xe_vram_region;
 
+/**
+ * enum xe_wedged_mode - possible wedged modes
+ * @XE_WEDGED_MODE_NEVER: Device will never be declared wedged.
+ * @XE_WEDGED_MODE_UPON_CRITICAL_ERROR: Device will be declared wedged only
+ * 	when critical error occurs like GT reset failure or firmware failure.
+ *	This is the default mode.
+ * @XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET: Device will be declared wedged on
+ *	any hang. In this mode, engine resets are disabled to avoid automatic
+ *	recovery attempts. This mode is primarily intended for debugging hangs.
+ */
+enum xe_wedged_mode {
+	XE_WEDGED_MODE_NEVER = 0,
+	XE_WEDGED_MODE_UPON_CRITICAL_ERROR = 1,
+	XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET = 2,
+};
+
+#define XE_WEDGED_MODE_DEFAULT		XE_WEDGED_MODE_UPON_CRITICAL_ERROR
+#define XE_WEDGED_MODE_DEFAULT_STR	"upon-critical-error"
+
 #define XE_BO_INVALID_OFFSET	LONG_MAX
 
 #define GRAPHICS_VER(xe) ((xe)->info.graphics_verx100 / 100)
@@ -604,7 +623,7 @@ struct xe_device {
 		/** @wedged.flag: Xe device faced a critical error and is now blocked. */
 		atomic_t flag;
 		/** @wedged.mode: Mode controlled by kernel parameter and debugfs */
-		int mode;
+		enum xe_wedged_mode mode;
 		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
 		unsigned long method;
 	} wedged;
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index e06c6aa335bf..e95604416f2d 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -451,7 +451,7 @@ static void guc_policies_init(struct xe_guc_ads *ads)
 	ads_blob_write(ads, policies.max_num_work_items,
 		       GLOBAL_POLICY_MAX_NUM_WI);
 
-	if (xe->wedged.mode == 2)
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
 		global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
 
 	ads_blob_write(ads, policies.global_flags, global_flags);
@@ -1004,7 +1004,7 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
 	policies->dpc_promote_time = ads_blob_read(ads, policies.dpc_promote_time);
 	policies->max_num_work_items = ads_blob_read(ads, policies.max_num_work_items);
 	policies->is_valid = 1;
-	if (xe->wedged.mode == 2)
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
 		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
 	else
 		policies->global_flags &= ~GLOBAL_POLICY_DISABLE_ENGINE_RESET;
diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
index 2cda92f7b323..bdd700ac1e54 100644
--- a/drivers/gpu/drm/xe/xe_guc_capture.c
+++ b/drivers/gpu/drm/xe/xe_guc_capture.c
@@ -1889,7 +1889,14 @@ xe_guc_capture_get_matching_and_lock(struct xe_exec_queue *q)
 		return NULL;
 
 	xe = gt_to_xe(q->gt);
-	if (xe->wedged.mode >= 2 || !xe_device_uc_enabled(xe) || IS_SRIOV_VF(xe))
+
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
+		return NULL;
+
+	if (!xe_device_uc_enabled(xe))
+		return NULL;
+
+	if (IS_SRIOV_VF(xe))
 		return NULL;
 
 	ss = &xe->devcoredump.snapshot;
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 21a8bd2ec672..fd41b06d11df 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -1288,8 +1288,9 @@ void xe_guc_submit_wedge(struct xe_guc *guc)
 	err = devm_add_action_or_reset(guc_to_xe(guc)->drm.dev,
 				       guc_submit_wedged_fini, guc);
 	if (err) {
-		xe_gt_err(gt, "Failed to register clean-up on wedged.mode=2; "
-			  "Although device is wedged.\n");
+		xe_gt_err(gt, "Failed to register clean-up in wedged.mode=%s; "
+			  "Although device is wedged.\n",
+			  xe_wedged_mode_to_string(XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET));
 		return;
 	}
 
@@ -1304,7 +1305,7 @@ static bool guc_submit_hint_wedged(struct xe_guc *guc)
 {
 	struct xe_device *xe = guc_to_xe(guc);
 
-	if (xe->wedged.mode != 2)
+	if (xe->wedged.mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
 		return false;
 
 	if (xe_device_wedged(xe))
diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c
index d08338fc3bc1..9934f90691fd 100644
--- a/drivers/gpu/drm/xe/xe_module.c
+++ b/drivers/gpu/drm/xe/xe_module.c
@@ -10,6 +10,7 @@
 
 #include <drm/drm_module.h>
 
+#include "xe_device.h"
 #include "xe_drv.h"
 #include "xe_configfs.h"
 #include "xe_hw_fence.h"
@@ -29,7 +30,8 @@
 #define DEFAULT_FORCE_PROBE		CONFIG_DRM_XE_FORCE_PROBE
 #define DEFAULT_MAX_VFS			~0
 #define DEFAULT_MAX_VFS_STR		"unlimited"
-#define DEFAULT_WEDGED_MODE		1
+#define DEFAULT_WEDGED_MODE		XE_WEDGED_MODE_DEFAULT
+#define DEFAULT_WEDGED_MODE_STR		XE_WEDGED_MODE_DEFAULT_STR
 #define DEFAULT_SVM_NOTIFIER_SIZE	512
 
 struct xe_modparam xe_modparam = {
@@ -88,10 +90,10 @@ MODULE_PARM_DESC(max_vfs,
 		 "[default=" DEFAULT_MAX_VFS_STR "])");
 #endif
 
-module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, int, 0600);
+module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, uint, 0600);
 MODULE_PARM_DESC(wedged_mode,
-		 "Module's default policy for the wedged mode (0=never, 1=upon-critical-errors, 2=upon-any-hang "
-		 "[default=" __stringify(DEFAULT_WEDGED_MODE) "])");
+		 "Module's default policy for the wedged mode (0=never, 1=upon-critical-error, 2=upon-any-hang-no-reset "
+		 "[default=" DEFAULT_WEDGED_MODE_STR "])");
 
 static int xe_check_nomodeset(void)
 {
diff --git a/drivers/gpu/drm/xe/xe_module.h b/drivers/gpu/drm/xe/xe_module.h
index 5a3bfea8b7b4..1c75f38ca393 100644
--- a/drivers/gpu/drm/xe/xe_module.h
+++ b/drivers/gpu/drm/xe/xe_module.h
@@ -21,7 +21,7 @@ struct xe_modparam {
 #ifdef CONFIG_PCI_IOV
 	unsigned int max_vfs;
 #endif
-	int wedged_mode;
+	unsigned int wedged_mode;
 	u32 svm_notifier_size;
 };
 
-- 
2.40.0


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

* [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
  2025-12-15 17:46 ` [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes Lukasz Laguna
@ 2025-12-15 17:46 ` Lukasz Laguna
  2025-12-19 22:01   ` Rodrigo Vivi
  2025-12-15 17:46 ` [PATCH v11 3/4] drm/xe/vf: Disallow setting wedged mode to upon-any-hang Lukasz Laguna
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 13+ messages in thread
From: Lukasz Laguna @ 2025-12-15 17:46 UTC (permalink / raw)
  To: intel-xe; +Cc: michal.wajdeczko, rodrigo.vivi, lukasz.laguna

Previously, the driver's internal wedged.mode state was updated without
verifying whether the corresponding engine reset policy update in GuC
succeeded. This could leave the driver reporting a wedged.mode state
that doesn't match the actual reset behavior programmed in GuC.

With this change, the reset policy is updated first, and the driver's
wedged.mode state is modified only if the policy update succeeds on all
available GTs.

This patch also introduces two functional improvements:

 - The policy is sent to GuC only when a change is required. An update
   is needed only when entering or leaving XE_WEDGED_MODE_UPON_ANY_HANG,
   because only in that case the reset policy changes. For example,
   switching between XE_WEDGED_MODE_UPON_CRITICAL_ERROR and
   XE_WEDGED_MODE_NEVER doesn't affect the reset policy, so there is no
   need to send the same value to GuC.

 - An inconsistent_reset flag is added to track cases where reset policy
   update succeeds only on a subset of GTs. If such inconsistency is
   detected, future wedged mode configuration will force a retry of the
   reset policy update to restore a consistent state across all GTs.

Fixes: 6b8ef44cc0a9 ("drm/xe: Introduce the wedged_mode debugfs")
Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
---
v11:
 - add more detailed commit description (Rodrigo).
---
 drivers/gpu/drm/xe/xe_debugfs.c      | 70 ++++++++++++++++++++++------
 drivers/gpu/drm/xe/xe_device_types.h |  2 +
 drivers/gpu/drm/xe/xe_guc_ads.c      | 14 +++---
 drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
 4 files changed, 71 insertions(+), 20 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index 0b65c3940f41..f62174f7035a 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -254,14 +254,64 @@ static ssize_t wedged_mode_show(struct file *f, char __user *ubuf,
 	return simple_read_from_buffer(ubuf, size, pos, buf, len);
 }
 
+static int __set_reset_policy(struct xe_gt *gt, enum xe_wedged_mode mode)
+{
+	bool enable_engine_reset;
+	int ret;
+
+	enable_engine_reset = (mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET);
+	ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads,
+						       enable_engine_reset);
+	if (ret)
+		xe_gt_err(gt, "Failed to update GuC ADS scheduler policy (%pe)\n", ERR_PTR(ret));
+
+	return ret;
+}
+
+static int set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
+{
+	struct xe_gt *gt;
+	int ret;
+	u8 id;
+
+	guard(xe_pm_runtime)(xe);
+	for_each_gt(gt, xe, id) {
+		ret = __set_reset_policy(gt, mode);
+		if (ret) {
+			if (id > 0) {
+				xe->wedged.inconsistent_reset = true;
+				drm_err(&xe->drm, "Inconsistent reset policy state between GTs\n");
+			}
+			return ret;
+		}
+	}
+
+	xe->wedged.inconsistent_reset = false;
+
+	return 0;
+}
+
+static bool needs_policy_update(struct xe_device *xe, enum xe_wedged_mode mode)
+{
+	if (xe->wedged.inconsistent_reset)
+		return true;
+
+	if (xe->wedged.mode == mode)
+		return false;
+
+	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET ||
+	    mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
+		return true;
+
+	return false;
+}
+
 static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
 			       size_t size, loff_t *pos)
 {
 	struct xe_device *xe = file_inode(f)->i_private;
-	struct xe_gt *gt;
 	u32 wedged_mode;
 	ssize_t ret;
-	u8 id;
 
 	ret = kstrtouint_from_user(ubuf, size, 0, &wedged_mode);
 	if (ret)
@@ -271,20 +321,14 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
 	if (ret)
 		return ret;
 
-	if (xe->wedged.mode == wedged_mode)
-		return size;
+	if (needs_policy_update(xe, wedged_mode)) {
+		ret = set_reset_policy(xe, wedged_mode);
+		if (ret)
+			return ret;
+	}
 
 	xe->wedged.mode = wedged_mode;
 
-	guard(xe_pm_runtime)(xe);
-	for_each_gt(gt, xe, id) {
-		ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads);
-		if (ret) {
-			xe_gt_err(gt, "Failed to update GuC ADS scheduler policy. GuC may still cause engine reset even with wedged_mode=2\n");
-			return -EIO;
-		}
-	}
-
 	return size;
 }
 
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 20a847965b20..e41f82518d75 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -626,6 +626,8 @@ struct xe_device {
 		enum xe_wedged_mode mode;
 		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
 		unsigned long method;
+		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
+		bool inconsistent_reset;
 	} wedged;
 
 	/** @bo_device: Struct to control async free of BOs */
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index e95604416f2d..25ea17a74a64 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -983,16 +983,17 @@ static int guc_ads_action_update_policies(struct xe_guc_ads *ads, u32 policy_off
 /**
  * xe_guc_ads_scheduler_policy_toggle_reset - Toggle reset policy
  * @ads: Additional data structures object
+ * @enable_engine_reset: true to enable engine resets, false otherwise
  *
- * This function update the GuC's engine reset policy based on wedged.mode.
+ * This function update the GuC's engine reset policy.
  *
  * Return: 0 on success, and negative error code otherwise.
  */
-int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
+int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
+					     bool enable_engine_reset)
 {
 	struct guc_policies *policies;
 	struct xe_guc *guc = ads_to_guc(ads);
-	struct xe_device *xe = ads_to_xe(ads);
 	CLASS(xe_guc_buf, buf)(&guc->buf, sizeof(*policies));
 
 	if (!xe_guc_buf_is_valid(buf))
@@ -1004,10 +1005,11 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
 	policies->dpc_promote_time = ads_blob_read(ads, policies.dpc_promote_time);
 	policies->max_num_work_items = ads_blob_read(ads, policies.max_num_work_items);
 	policies->is_valid = 1;
-	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
-		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
-	else
+
+	if (enable_engine_reset)
 		policies->global_flags &= ~GLOBAL_POLICY_DISABLE_ENGINE_RESET;
+	else
+		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
 
 	return guc_ads_action_update_policies(ads, xe_guc_buf_flush(buf));
 }
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.h b/drivers/gpu/drm/xe/xe_guc_ads.h
index 2e6674c760ff..bec404dda56b 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.h
+++ b/drivers/gpu/drm/xe/xe_guc_ads.h
@@ -6,6 +6,8 @@
 #ifndef _XE_GUC_ADS_H_
 #define _XE_GUC_ADS_H_
 
+#include <linux/types.h>
+
 struct xe_guc_ads;
 
 int xe_guc_ads_init(struct xe_guc_ads *ads);
@@ -13,6 +15,7 @@ int xe_guc_ads_init_post_hwconfig(struct xe_guc_ads *ads);
 void xe_guc_ads_populate(struct xe_guc_ads *ads);
 void xe_guc_ads_populate_minimal(struct xe_guc_ads *ads);
 void xe_guc_ads_populate_post_load(struct xe_guc_ads *ads);
-int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads);
+int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
+                                             bool enable_engine_reset);
 
 #endif
-- 
2.40.0


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

* [PATCH v11 3/4] drm/xe/vf: Disallow setting wedged mode to upon-any-hang
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
  2025-12-15 17:46 ` [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes Lukasz Laguna
  2025-12-15 17:46 ` [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change Lukasz Laguna
@ 2025-12-15 17:46 ` Lukasz Laguna
  2025-12-15 17:46 ` [PATCH v11 4/4] drm/xe/pf: Allow upon-any-hang wedged mode only in debug config Lukasz Laguna
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: Lukasz Laguna @ 2025-12-15 17:46 UTC (permalink / raw)
  To: intel-xe; +Cc: michal.wajdeczko, rodrigo.vivi, lukasz.laguna

In upon-any-hang (2) wedged mode, engine resets need to be disabled,
which requires changing the GuC reset policy. VFs are not permitted to
do that.

Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/xe/xe_device.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 492446fdc4dc..15470e0558cb 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1366,6 +1366,11 @@ int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
 	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
 		drm_dbg(&xe->drm, "wedged_mode: invalid value (%u)\n", mode);
 		return -EINVAL;
+	} else if (mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET && IS_SRIOV_VF(xe)) {
+		drm_dbg(&xe->drm, "wedged_mode: (%u) %s mode is not supported for %s\n",
+			mode, xe_wedged_mode_to_string(mode),
+			xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
+		return -EPERM;
 	}
 
 	return 0;
-- 
2.40.0


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

* [PATCH v11 4/4] drm/xe/pf: Allow upon-any-hang wedged mode only in debug config
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (2 preceding siblings ...)
  2025-12-15 17:46 ` [PATCH v11 3/4] drm/xe/vf: Disallow setting wedged mode to upon-any-hang Lukasz Laguna
@ 2025-12-15 17:46 ` Lukasz Laguna
  2025-12-15 20:55 ` ✗ CI.checkpatch: warning for drm/xe: Improve wedged mode handling (rev11) Patchwork
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: Lukasz Laguna @ 2025-12-15 17:46 UTC (permalink / raw)
  To: intel-xe; +Cc: michal.wajdeczko, rodrigo.vivi, lukasz.laguna

The GuC reset policy is global, so disabling it on PF can affect all
running VFs. To avoid unintended side effects, restrict setting
upon-any-hang (2) wedged mode on the PF to debug builds only.

Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/xe/xe_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 15470e0558cb..cbe9e47f1ca6 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1366,7 +1366,8 @@ int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
 	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
 		drm_dbg(&xe->drm, "wedged_mode: invalid value (%u)\n", mode);
 		return -EINVAL;
-	} else if (mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET && IS_SRIOV_VF(xe)) {
+	} else if (mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET && (IS_SRIOV_VF(xe) ||
+		   (IS_SRIOV_PF(xe) && !IS_ENABLED(CONFIG_DRM_XE_DEBUG)))) {
 		drm_dbg(&xe->drm, "wedged_mode: (%u) %s mode is not supported for %s\n",
 			mode, xe_wedged_mode_to_string(mode),
 			xe_sriov_mode_to_string(xe_device_sriov_mode(xe)));
-- 
2.40.0


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

* ✗ CI.checkpatch: warning for drm/xe: Improve wedged mode handling (rev11)
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (3 preceding siblings ...)
  2025-12-15 17:46 ` [PATCH v11 4/4] drm/xe/pf: Allow upon-any-hang wedged mode only in debug config Lukasz Laguna
@ 2025-12-15 20:55 ` Patchwork
  2025-12-15 20:56 ` ✓ CI.KUnit: success " Patchwork
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-12-15 20:55 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe

== Series Details ==

Series: drm/xe: Improve wedged mode handling (rev11)
URL   : https://patchwork.freedesktop.org/series/148214/
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
8f50e69d0ce3656564bbdf8b3e213d61470d463f
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit c3326a1556e2f76523991dc26bc0fb00b3a20f97
Author: Lukasz Laguna <lukasz.laguna@intel.com>
Date:   Mon Dec 15 18:46:13 2025 +0100

    drm/xe/pf: Allow upon-any-hang wedged mode only in debug config
    
    The GuC reset policy is global, so disabling it on PF can affect all
    running VFs. To avoid unintended side effects, restrict setting
    upon-any-hang (2) wedged mode on the PF to debug builds only.
    
    Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
    Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
+ /mt/dim checkpatch 89b7f1ac50d51d9c2334e119fe40de41b366333f drm-intel
f6a6f4224af9 drm/xe: Validate wedged_mode parameter and define enum for modes
-:137: WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#137: FILE: drivers/gpu/drm/xe/xe_device_types.h:51:
+ * ^Iwhen critical error occurs like GT reset failure or firmware failure.$

total: 0 errors, 1 warnings, 0 checks, 214 lines checked
e6be7b2d855b drm/xe: Update wedged.mode only after successful reset policy change
-:202: ERROR:CODE_INDENT: code indent should use tabs where possible
#202: FILE: drivers/gpu/drm/xe/xe_guc_ads.h:19:
+                                             bool enable_engine_reset);$

-:202: WARNING:LEADING_SPACE: please, no spaces at the start of a line
#202: FILE: drivers/gpu/drm/xe/xe_guc_ads.h:19:
+                                             bool enable_engine_reset);$

total: 1 errors, 1 warnings, 0 checks, 149 lines checked
b866402cbf70 drm/xe/vf: Disallow setting wedged mode to upon-any-hang
c3326a1556e2 drm/xe/pf: Allow upon-any-hang wedged mode only in debug config



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

* ✓ CI.KUnit: success for drm/xe: Improve wedged mode handling (rev11)
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (4 preceding siblings ...)
  2025-12-15 20:55 ` ✗ CI.checkpatch: warning for drm/xe: Improve wedged mode handling (rev11) Patchwork
@ 2025-12-15 20:56 ` Patchwork
  2025-12-15 21:58 ` ✓ Xe.CI.BAT: " Patchwork
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-12-15 20:56 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe

== Series Details ==

Series: drm/xe: Improve wedged mode handling (rev11)
URL   : https://patchwork.freedesktop.org/series/148214/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[20:55:28] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[20:55:32] 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
[20:56:04] Starting KUnit Kernel (1/1)...
[20:56:04] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[20:56:04] ================== guc_buf (11 subtests) ===================
[20:56:04] [PASSED] test_smallest
[20:56:04] [PASSED] test_largest
[20:56:04] [PASSED] test_granular
[20:56:04] [PASSED] test_unique
[20:56:04] [PASSED] test_overlap
[20:56:04] [PASSED] test_reusable
[20:56:04] [PASSED] test_too_big
[20:56:04] [PASSED] test_flush
[20:56:04] [PASSED] test_lookup
[20:56:04] [PASSED] test_data
[20:56:04] [PASSED] test_class
[20:56:04] ===================== [PASSED] guc_buf =====================
[20:56:04] =================== guc_dbm (7 subtests) ===================
[20:56:04] [PASSED] test_empty
[20:56:04] [PASSED] test_default
[20:56:04] ======================== test_size  ========================
[20:56:04] [PASSED] 4
[20:56:04] [PASSED] 8
[20:56:04] [PASSED] 32
[20:56:04] [PASSED] 256
[20:56:04] ==================== [PASSED] test_size ====================
[20:56:04] ======================= test_reuse  ========================
[20:56:04] [PASSED] 4
[20:56:04] [PASSED] 8
[20:56:04] [PASSED] 32
[20:56:04] [PASSED] 256
[20:56:04] =================== [PASSED] test_reuse ====================
[20:56:04] =================== test_range_overlap  ====================
[20:56:04] [PASSED] 4
[20:56:04] [PASSED] 8
[20:56:04] [PASSED] 32
[20:56:04] [PASSED] 256
[20:56:04] =============== [PASSED] test_range_overlap ================
[20:56:04] =================== test_range_compact  ====================
[20:56:04] [PASSED] 4
[20:56:04] [PASSED] 8
[20:56:04] [PASSED] 32
[20:56:04] [PASSED] 256
[20:56:04] =============== [PASSED] test_range_compact ================
[20:56:04] ==================== test_range_spare  =====================
[20:56:04] [PASSED] 4
[20:56:04] [PASSED] 8
[20:56:04] [PASSED] 32
[20:56:04] [PASSED] 256
[20:56:04] ================ [PASSED] test_range_spare =================
[20:56:04] ===================== [PASSED] guc_dbm =====================
[20:56:04] =================== guc_idm (6 subtests) ===================
[20:56:04] [PASSED] bad_init
[20:56:04] [PASSED] no_init
[20:56:04] [PASSED] init_fini
[20:56:04] [PASSED] check_used
[20:56:04] [PASSED] check_quota
[20:56:04] [PASSED] check_all
[20:56:04] ===================== [PASSED] guc_idm =====================
[20:56:04] ================== no_relay (3 subtests) ===================
[20:56:04] [PASSED] xe_drops_guc2pf_if_not_ready
[20:56:04] [PASSED] xe_drops_guc2vf_if_not_ready
[20:56:04] [PASSED] xe_rejects_send_if_not_ready
[20:56:04] ==================== [PASSED] no_relay =====================
[20:56:04] ================== pf_relay (14 subtests) ==================
[20:56:04] [PASSED] pf_rejects_guc2pf_too_short
[20:56:04] [PASSED] pf_rejects_guc2pf_too_long
[20:56:04] [PASSED] pf_rejects_guc2pf_no_payload
[20:56:04] [PASSED] pf_fails_no_payload
[20:56:04] [PASSED] pf_fails_bad_origin
[20:56:04] [PASSED] pf_fails_bad_type
[20:56:04] [PASSED] pf_txn_reports_error
[20:56:04] [PASSED] pf_txn_sends_pf2guc
[20:56:04] [PASSED] pf_sends_pf2guc
[20:56:04] [SKIPPED] pf_loopback_nop
[20:56:04] [SKIPPED] pf_loopback_echo
[20:56:04] [SKIPPED] pf_loopback_fail
[20:56:04] [SKIPPED] pf_loopback_busy
[20:56:04] [SKIPPED] pf_loopback_retry
[20:56:04] ==================== [PASSED] pf_relay =====================
[20:56:04] ================== vf_relay (3 subtests) ===================
[20:56:04] [PASSED] vf_rejects_guc2vf_too_short
[20:56:04] [PASSED] vf_rejects_guc2vf_too_long
[20:56:04] [PASSED] vf_rejects_guc2vf_no_payload
[20:56:04] ==================== [PASSED] vf_relay =====================
[20:56:04] ================ pf_gt_config (6 subtests) =================
[20:56:04] [PASSED] fair_contexts_1vf
[20:56:04] [PASSED] fair_doorbells_1vf
[20:56:04] [PASSED] fair_ggtt_1vf
[20:56:04] ====================== fair_contexts  ======================
[20:56:04] [PASSED] 1 VF
[20:56:04] [PASSED] 2 VFs
[20:56:04] [PASSED] 3 VFs
[20:56:04] [PASSED] 4 VFs
[20:56:04] [PASSED] 5 VFs
[20:56:04] [PASSED] 6 VFs
[20:56:04] [PASSED] 7 VFs
[20:56:04] [PASSED] 8 VFs
[20:56:04] [PASSED] 9 VFs
[20:56:04] [PASSED] 10 VFs
[20:56:04] [PASSED] 11 VFs
[20:56:04] [PASSED] 12 VFs
[20:56:04] [PASSED] 13 VFs
[20:56:04] [PASSED] 14 VFs
[20:56:04] [PASSED] 15 VFs
[20:56:04] [PASSED] 16 VFs
[20:56:04] [PASSED] 17 VFs
[20:56:04] [PASSED] 18 VFs
[20:56:04] [PASSED] 19 VFs
[20:56:04] [PASSED] 20 VFs
[20:56:04] [PASSED] 21 VFs
[20:56:04] [PASSED] 22 VFs
[20:56:04] [PASSED] 23 VFs
[20:56:04] [PASSED] 24 VFs
[20:56:04] [PASSED] 25 VFs
[20:56:04] [PASSED] 26 VFs
[20:56:04] [PASSED] 27 VFs
[20:56:04] [PASSED] 28 VFs
[20:56:04] [PASSED] 29 VFs
[20:56:04] [PASSED] 30 VFs
[20:56:04] [PASSED] 31 VFs
[20:56:04] [PASSED] 32 VFs
[20:56:04] [PASSED] 33 VFs
[20:56:04] [PASSED] 34 VFs
[20:56:04] [PASSED] 35 VFs
[20:56:04] [PASSED] 36 VFs
[20:56:04] [PASSED] 37 VFs
[20:56:04] [PASSED] 38 VFs
[20:56:04] [PASSED] 39 VFs
[20:56:04] [PASSED] 40 VFs
[20:56:04] [PASSED] 41 VFs
[20:56:04] [PASSED] 42 VFs
[20:56:04] [PASSED] 43 VFs
[20:56:04] [PASSED] 44 VFs
[20:56:04] [PASSED] 45 VFs
[20:56:04] [PASSED] 46 VFs
[20:56:04] [PASSED] 47 VFs
[20:56:04] [PASSED] 48 VFs
[20:56:04] [PASSED] 49 VFs
[20:56:04] [PASSED] 50 VFs
[20:56:04] [PASSED] 51 VFs
[20:56:04] [PASSED] 52 VFs
[20:56:04] [PASSED] 53 VFs
[20:56:04] [PASSED] 54 VFs
[20:56:04] [PASSED] 55 VFs
[20:56:04] [PASSED] 56 VFs
[20:56:04] [PASSED] 57 VFs
[20:56:04] [PASSED] 58 VFs
[20:56:04] [PASSED] 59 VFs
[20:56:04] [PASSED] 60 VFs
[20:56:04] [PASSED] 61 VFs
[20:56:04] [PASSED] 62 VFs
[20:56:04] [PASSED] 63 VFs
[20:56:04] ================== [PASSED] fair_contexts ==================
[20:56:04] ===================== fair_doorbells  ======================
[20:56:04] [PASSED] 1 VF
[20:56:04] [PASSED] 2 VFs
[20:56:04] [PASSED] 3 VFs
[20:56:04] [PASSED] 4 VFs
[20:56:04] [PASSED] 5 VFs
[20:56:04] [PASSED] 6 VFs
[20:56:04] [PASSED] 7 VFs
[20:56:04] [PASSED] 8 VFs
[20:56:04] [PASSED] 9 VFs
[20:56:04] [PASSED] 10 VFs
[20:56:04] [PASSED] 11 VFs
[20:56:04] [PASSED] 12 VFs
[20:56:04] [PASSED] 13 VFs
[20:56:04] [PASSED] 14 VFs
[20:56:04] [PASSED] 15 VFs
[20:56:04] [PASSED] 16 VFs
[20:56:04] [PASSED] 17 VFs
[20:56:04] [PASSED] 18 VFs
[20:56:04] [PASSED] 19 VFs
[20:56:04] [PASSED] 20 VFs
[20:56:04] [PASSED] 21 VFs
[20:56:04] [PASSED] 22 VFs
[20:56:04] [PASSED] 23 VFs
[20:56:04] [PASSED] 24 VFs
[20:56:04] [PASSED] 25 VFs
[20:56:04] [PASSED] 26 VFs
[20:56:04] [PASSED] 27 VFs
[20:56:04] [PASSED] 28 VFs
[20:56:04] [PASSED] 29 VFs
[20:56:04] [PASSED] 30 VFs
[20:56:04] [PASSED] 31 VFs
[20:56:04] [PASSED] 32 VFs
[20:56:04] [PASSED] 33 VFs
[20:56:04] [PASSED] 34 VFs
[20:56:04] [PASSED] 35 VFs
[20:56:04] [PASSED] 36 VFs
[20:56:04] [PASSED] 37 VFs
[20:56:04] [PASSED] 38 VFs
[20:56:04] [PASSED] 39 VFs
[20:56:04] [PASSED] 40 VFs
[20:56:04] [PASSED] 41 VFs
[20:56:04] [PASSED] 42 VFs
[20:56:04] [PASSED] 43 VFs
[20:56:04] [PASSED] 44 VFs
[20:56:04] [PASSED] 45 VFs
[20:56:04] [PASSED] 46 VFs
[20:56:04] [PASSED] 47 VFs
[20:56:04] [PASSED] 48 VFs
[20:56:04] [PASSED] 49 VFs
[20:56:04] [PASSED] 50 VFs
[20:56:04] [PASSED] 51 VFs
[20:56:04] [PASSED] 52 VFs
[20:56:04] [PASSED] 53 VFs
[20:56:04] [PASSED] 54 VFs
[20:56:04] [PASSED] 55 VFs
[20:56:04] [PASSED] 56 VFs
[20:56:04] [PASSED] 57 VFs
[20:56:04] [PASSED] 58 VFs
[20:56:04] [PASSED] 59 VFs
[20:56:04] [PASSED] 60 VFs
[20:56:04] [PASSED] 61 VFs
[20:56:04] [PASSED] 62 VFs
[20:56:04] [PASSED] 63 VFs
[20:56:04] ================= [PASSED] fair_doorbells ==================
[20:56:04] ======================== fair_ggtt  ========================
[20:56:04] [PASSED] 1 VF
[20:56:04] [PASSED] 2 VFs
[20:56:04] [PASSED] 3 VFs
[20:56:04] [PASSED] 4 VFs
[20:56:04] [PASSED] 5 VFs
[20:56:04] [PASSED] 6 VFs
[20:56:04] [PASSED] 7 VFs
[20:56:04] [PASSED] 8 VFs
[20:56:04] [PASSED] 9 VFs
[20:56:04] [PASSED] 10 VFs
[20:56:04] [PASSED] 11 VFs
[20:56:04] [PASSED] 12 VFs
[20:56:04] [PASSED] 13 VFs
[20:56:04] [PASSED] 14 VFs
[20:56:04] [PASSED] 15 VFs
[20:56:04] [PASSED] 16 VFs
[20:56:04] [PASSED] 17 VFs
[20:56:04] [PASSED] 18 VFs
[20:56:04] [PASSED] 19 VFs
[20:56:04] [PASSED] 20 VFs
[20:56:04] [PASSED] 21 VFs
[20:56:04] [PASSED] 22 VFs
[20:56:04] [PASSED] 23 VFs
[20:56:04] [PASSED] 24 VFs
[20:56:04] [PASSED] 25 VFs
[20:56:04] [PASSED] 26 VFs
[20:56:04] [PASSED] 27 VFs
[20:56:04] [PASSED] 28 VFs
[20:56:04] [PASSED] 29 VFs
[20:56:04] [PASSED] 30 VFs
[20:56:04] [PASSED] 31 VFs
[20:56:04] [PASSED] 32 VFs
[20:56:04] [PASSED] 33 VFs
[20:56:04] [PASSED] 34 VFs
[20:56:04] [PASSED] 35 VFs
[20:56:04] [PASSED] 36 VFs
[20:56:04] [PASSED] 37 VFs
[20:56:04] [PASSED] 38 VFs
[20:56:04] [PASSED] 39 VFs
[20:56:04] [PASSED] 40 VFs
[20:56:04] [PASSED] 41 VFs
[20:56:04] [PASSED] 42 VFs
[20:56:04] [PASSED] 43 VFs
[20:56:04] [PASSED] 44 VFs
[20:56:04] [PASSED] 45 VFs
[20:56:04] [PASSED] 46 VFs
[20:56:04] [PASSED] 47 VFs
[20:56:04] [PASSED] 48 VFs
[20:56:04] [PASSED] 49 VFs
[20:56:04] [PASSED] 50 VFs
[20:56:04] [PASSED] 51 VFs
[20:56:04] [PASSED] 52 VFs
[20:56:04] [PASSED] 53 VFs
[20:56:04] [PASSED] 54 VFs
[20:56:04] [PASSED] 55 VFs
[20:56:04] [PASSED] 56 VFs
[20:56:04] [PASSED] 57 VFs
[20:56:04] [PASSED] 58 VFs
[20:56:04] [PASSED] 59 VFs
[20:56:04] [PASSED] 60 VFs
[20:56:04] [PASSED] 61 VFs
[20:56:04] [PASSED] 62 VFs
[20:56:04] [PASSED] 63 VFs
[20:56:04] ==================== [PASSED] fair_ggtt ====================
[20:56:04] ================== [PASSED] pf_gt_config ===================
[20:56:04] ===================== lmtt (1 subtest) =====================
[20:56:04] ======================== test_ops  =========================
[20:56:04] [PASSED] 2-level
[20:56:04] [PASSED] multi-level
[20:56:04] ==================== [PASSED] test_ops =====================
[20:56:04] ====================== [PASSED] lmtt =======================
[20:56:04] ================= pf_service (11 subtests) =================
[20:56:04] [PASSED] pf_negotiate_any
[20:56:04] [PASSED] pf_negotiate_base_match
[20:56:04] [PASSED] pf_negotiate_base_newer
[20:56:04] [PASSED] pf_negotiate_base_next
[20:56:04] [SKIPPED] pf_negotiate_base_older
[20:56:04] [PASSED] pf_negotiate_base_prev
[20:56:04] [PASSED] pf_negotiate_latest_match
[20:56:04] [PASSED] pf_negotiate_latest_newer
[20:56:04] [PASSED] pf_negotiate_latest_next
[20:56:04] [SKIPPED] pf_negotiate_latest_older
[20:56:04] [SKIPPED] pf_negotiate_latest_prev
[20:56:04] =================== [PASSED] pf_service ====================
[20:56:04] ================= xe_guc_g2g (2 subtests) ==================
[20:56:04] ============== xe_live_guc_g2g_kunit_default  ==============
[20:56:04] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[20:56:04] ============== xe_live_guc_g2g_kunit_allmem  ===============
[20:56:04] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[20:56:04] =================== [SKIPPED] xe_guc_g2g ===================
[20:56:04] =================== xe_mocs (2 subtests) ===================
[20:56:04] ================ xe_live_mocs_kernel_kunit  ================
[20:56:04] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[20:56:04] ================ xe_live_mocs_reset_kunit  =================
[20:56:04] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[20:56:04] ==================== [SKIPPED] xe_mocs =====================
[20:56:04] ================= xe_migrate (2 subtests) ==================
[20:56:04] ================= xe_migrate_sanity_kunit  =================
[20:56:04] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[20:56:04] ================== xe_validate_ccs_kunit  ==================
[20:56:04] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[20:56:04] =================== [SKIPPED] xe_migrate ===================
[20:56:04] ================== xe_dma_buf (1 subtest) ==================
[20:56:04] ==================== xe_dma_buf_kunit  =====================
[20:56:04] ================ [SKIPPED] xe_dma_buf_kunit ================
[20:56:04] =================== [SKIPPED] xe_dma_buf ===================
[20:56:04] ================= xe_bo_shrink (1 subtest) =================
[20:56:04] =================== xe_bo_shrink_kunit  ====================
[20:56:04] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[20:56:04] ================== [SKIPPED] xe_bo_shrink ==================
[20:56:04] ==================== xe_bo (2 subtests) ====================
[20:56:04] ================== xe_ccs_migrate_kunit  ===================
[20:56:04] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[20:56:04] ==================== xe_bo_evict_kunit  ====================
[20:56:04] =============== [SKIPPED] xe_bo_evict_kunit ================
[20:56:04] ===================== [SKIPPED] xe_bo ======================
[20:56:04] ==================== args (11 subtests) ====================
[20:56:04] [PASSED] count_args_test
[20:56:04] [PASSED] call_args_example
[20:56:04] [PASSED] call_args_test
[20:56:04] [PASSED] drop_first_arg_example
[20:56:04] [PASSED] drop_first_arg_test
[20:56:04] [PASSED] first_arg_example
[20:56:04] [PASSED] first_arg_test
[20:56:04] [PASSED] last_arg_example
[20:56:04] [PASSED] last_arg_test
[20:56:04] [PASSED] pick_arg_example
[20:56:04] [PASSED] sep_comma_example
[20:56:04] ====================== [PASSED] args =======================
[20:56:04] =================== xe_pci (3 subtests) ====================
[20:56:04] ==================== check_graphics_ip  ====================
[20:56:04] [PASSED] 12.00 Xe_LP
[20:56:04] [PASSED] 12.10 Xe_LP+
[20:56:04] [PASSED] 12.55 Xe_HPG
[20:56:04] [PASSED] 12.60 Xe_HPC
[20:56:04] [PASSED] 12.70 Xe_LPG
[20:56:04] [PASSED] 12.71 Xe_LPG
[20:56:04] [PASSED] 12.74 Xe_LPG+
[20:56:04] [PASSED] 20.01 Xe2_HPG
[20:56:04] [PASSED] 20.02 Xe2_HPG
[20:56:04] [PASSED] 20.04 Xe2_LPG
[20:56:04] [PASSED] 30.00 Xe3_LPG
[20:56:04] [PASSED] 30.01 Xe3_LPG
[20:56:04] [PASSED] 30.03 Xe3_LPG
[20:56:04] [PASSED] 30.04 Xe3_LPG
[20:56:04] [PASSED] 30.05 Xe3_LPG
[20:56:04] [PASSED] 35.11 Xe3p_XPC
[20:56:04] ================ [PASSED] check_graphics_ip ================
[20:56:04] ===================== check_media_ip  ======================
[20:56:04] [PASSED] 12.00 Xe_M
[20:56:04] [PASSED] 12.55 Xe_HPM
[20:56:04] [PASSED] 13.00 Xe_LPM+
[20:56:04] [PASSED] 13.01 Xe2_HPM
[20:56:04] [PASSED] 20.00 Xe2_LPM
[20:56:04] [PASSED] 30.00 Xe3_LPM
[20:56:04] [PASSED] 30.02 Xe3_LPM
[20:56:04] [PASSED] 35.00 Xe3p_LPM
[20:56:04] [PASSED] 35.03 Xe3p_HPM
[20:56:04] ================= [PASSED] check_media_ip ==================
[20:56:04] =================== check_platform_desc  ===================
[20:56:04] [PASSED] 0x9A60 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A68 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A70 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A40 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A49 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A59 (TIGERLAKE)
[20:56:04] [PASSED] 0x9A78 (TIGERLAKE)
[20:56:04] [PASSED] 0x9AC0 (TIGERLAKE)
[20:56:04] [PASSED] 0x9AC9 (TIGERLAKE)
[20:56:04] [PASSED] 0x9AD9 (TIGERLAKE)
[20:56:04] [PASSED] 0x9AF8 (TIGERLAKE)
[20:56:04] [PASSED] 0x4C80 (ROCKETLAKE)
[20:56:04] [PASSED] 0x4C8A (ROCKETLAKE)
[20:56:04] [PASSED] 0x4C8B (ROCKETLAKE)
[20:56:04] [PASSED] 0x4C8C (ROCKETLAKE)
[20:56:04] [PASSED] 0x4C90 (ROCKETLAKE)
[20:56:04] [PASSED] 0x4C9A (ROCKETLAKE)
[20:56:04] [PASSED] 0x4680 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4682 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4688 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x468A (ALDERLAKE_S)
[20:56:04] [PASSED] 0x468B (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4690 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4692 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4693 (ALDERLAKE_S)
[20:56:04] [PASSED] 0x46A0 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46A1 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46A2 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46A3 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46A6 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46A8 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46AA (ALDERLAKE_P)
[20:56:04] [PASSED] 0x462A (ALDERLAKE_P)
[20:56:04] [PASSED] 0x4626 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x4628 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46B0 (ALDERLAKE_P)
stty: 'standard input': Inappropriate ioctl for device
[20:56:04] [PASSED] 0x46B1 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46B2 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46B3 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46C0 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46C1 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46C2 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46C3 (ALDERLAKE_P)
[20:56:04] [PASSED] 0x46D0 (ALDERLAKE_N)
[20:56:04] [PASSED] 0x46D1 (ALDERLAKE_N)
[20:56:04] [PASSED] 0x46D2 (ALDERLAKE_N)
[20:56:04] [PASSED] 0x46D3 (ALDERLAKE_N)
[20:56:04] [PASSED] 0x46D4 (ALDERLAKE_N)
[20:56:04] [PASSED] 0xA721 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7A1 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7A9 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7AC (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7AD (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA720 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7A0 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7A8 (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7AA (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA7AB (ALDERLAKE_P)
[20:56:04] [PASSED] 0xA780 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA781 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA782 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA783 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA788 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA789 (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA78A (ALDERLAKE_S)
[20:56:04] [PASSED] 0xA78B (ALDERLAKE_S)
[20:56:04] [PASSED] 0x4905 (DG1)
[20:56:04] [PASSED] 0x4906 (DG1)
[20:56:04] [PASSED] 0x4907 (DG1)
[20:56:04] [PASSED] 0x4908 (DG1)
[20:56:04] [PASSED] 0x4909 (DG1)
[20:56:04] [PASSED] 0x56C0 (DG2)
[20:56:04] [PASSED] 0x56C2 (DG2)
[20:56:04] [PASSED] 0x56C1 (DG2)
[20:56:04] [PASSED] 0x7D51 (METEORLAKE)
[20:56:04] [PASSED] 0x7DD1 (METEORLAKE)
[20:56:04] [PASSED] 0x7D41 (METEORLAKE)
[20:56:04] [PASSED] 0x7D67 (METEORLAKE)
[20:56:04] [PASSED] 0xB640 (METEORLAKE)
[20:56:04] [PASSED] 0x56A0 (DG2)
[20:56:04] [PASSED] 0x56A1 (DG2)
[20:56:04] [PASSED] 0x56A2 (DG2)
[20:56:04] [PASSED] 0x56BE (DG2)
[20:56:04] [PASSED] 0x56BF (DG2)
[20:56:04] [PASSED] 0x5690 (DG2)
[20:56:04] [PASSED] 0x5691 (DG2)
[20:56:04] [PASSED] 0x5692 (DG2)
[20:56:04] [PASSED] 0x56A5 (DG2)
[20:56:04] [PASSED] 0x56A6 (DG2)
[20:56:04] [PASSED] 0x56B0 (DG2)
[20:56:04] [PASSED] 0x56B1 (DG2)
[20:56:04] [PASSED] 0x56BA (DG2)
[20:56:04] [PASSED] 0x56BB (DG2)
[20:56:04] [PASSED] 0x56BC (DG2)
[20:56:04] [PASSED] 0x56BD (DG2)
[20:56:04] [PASSED] 0x5693 (DG2)
[20:56:04] [PASSED] 0x5694 (DG2)
[20:56:04] [PASSED] 0x5695 (DG2)
[20:56:04] [PASSED] 0x56A3 (DG2)
[20:56:04] [PASSED] 0x56A4 (DG2)
[20:56:04] [PASSED] 0x56B2 (DG2)
[20:56:04] [PASSED] 0x56B3 (DG2)
[20:56:04] [PASSED] 0x5696 (DG2)
[20:56:04] [PASSED] 0x5697 (DG2)
[20:56:04] [PASSED] 0xB69 (PVC)
[20:56:04] [PASSED] 0xB6E (PVC)
[20:56:04] [PASSED] 0xBD4 (PVC)
[20:56:04] [PASSED] 0xBD5 (PVC)
[20:56:04] [PASSED] 0xBD6 (PVC)
[20:56:04] [PASSED] 0xBD7 (PVC)
[20:56:04] [PASSED] 0xBD8 (PVC)
[20:56:04] [PASSED] 0xBD9 (PVC)
[20:56:04] [PASSED] 0xBDA (PVC)
[20:56:04] [PASSED] 0xBDB (PVC)
[20:56:04] [PASSED] 0xBE0 (PVC)
[20:56:04] [PASSED] 0xBE1 (PVC)
[20:56:04] [PASSED] 0xBE5 (PVC)
[20:56:04] [PASSED] 0x7D40 (METEORLAKE)
[20:56:04] [PASSED] 0x7D45 (METEORLAKE)
[20:56:04] [PASSED] 0x7D55 (METEORLAKE)
[20:56:04] [PASSED] 0x7D60 (METEORLAKE)
[20:56:04] [PASSED] 0x7DD5 (METEORLAKE)
[20:56:04] [PASSED] 0x6420 (LUNARLAKE)
[20:56:04] [PASSED] 0x64A0 (LUNARLAKE)
[20:56:04] [PASSED] 0x64B0 (LUNARLAKE)
[20:56:04] [PASSED] 0xE202 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE209 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE20B (BATTLEMAGE)
[20:56:04] [PASSED] 0xE20C (BATTLEMAGE)
[20:56:04] [PASSED] 0xE20D (BATTLEMAGE)
[20:56:04] [PASSED] 0xE210 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE211 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE212 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE216 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE220 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE221 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE222 (BATTLEMAGE)
[20:56:04] [PASSED] 0xE223 (BATTLEMAGE)
[20:56:04] [PASSED] 0xB080 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB081 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB082 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB083 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB084 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB085 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB086 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB087 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB08F (PANTHERLAKE)
[20:56:04] [PASSED] 0xB090 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB0A0 (PANTHERLAKE)
[20:56:04] [PASSED] 0xB0B0 (PANTHERLAKE)
[20:56:04] [PASSED] 0xFD80 (PANTHERLAKE)
[20:56:04] [PASSED] 0xFD81 (PANTHERLAKE)
[20:56:04] [PASSED] 0xD740 (NOVALAKE_S)
[20:56:04] [PASSED] 0xD741 (NOVALAKE_S)
[20:56:04] [PASSED] 0xD742 (NOVALAKE_S)
[20:56:04] [PASSED] 0xD743 (NOVALAKE_S)
[20:56:04] [PASSED] 0xD744 (NOVALAKE_S)
[20:56:04] [PASSED] 0xD745 (NOVALAKE_S)
[20:56:04] [PASSED] 0x674C (CRESCENTISLAND)
[20:56:04] =============== [PASSED] check_platform_desc ===============
[20:56:04] ===================== [PASSED] xe_pci ======================
[20:56:04] =================== xe_rtp (2 subtests) ====================
[20:56:04] =============== xe_rtp_process_to_sr_tests  ================
[20:56:04] [PASSED] coalesce-same-reg
[20:56:04] [PASSED] no-match-no-add
[20:56:04] [PASSED] match-or
[20:56:04] [PASSED] match-or-xfail
[20:56:04] [PASSED] no-match-no-add-multiple-rules
[20:56:04] [PASSED] two-regs-two-entries
[20:56:04] [PASSED] clr-one-set-other
[20:56:04] [PASSED] set-field
[20:56:04] [PASSED] conflict-duplicate
[20:56:04] [PASSED] conflict-not-disjoint
[20:56:04] [PASSED] conflict-reg-type
[20:56:04] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[20:56:04] ================== xe_rtp_process_tests  ===================
[20:56:04] [PASSED] active1
[20:56:04] [PASSED] active2
[20:56:04] [PASSED] active-inactive
[20:56:04] [PASSED] inactive-active
[20:56:04] [PASSED] inactive-1st_or_active-inactive
[20:56:04] [PASSED] inactive-2nd_or_active-inactive
[20:56:04] [PASSED] inactive-last_or_active-inactive
[20:56:04] [PASSED] inactive-no_or_active-inactive
[20:56:04] ============== [PASSED] xe_rtp_process_tests ===============
[20:56:04] ===================== [PASSED] xe_rtp ======================
[20:56:04] ==================== xe_wa (1 subtest) =====================
[20:56:04] ======================== xe_wa_gt  =========================
[20:56:04] [PASSED] TIGERLAKE B0
[20:56:04] [PASSED] DG1 A0
[20:56:04] [PASSED] DG1 B0
[20:56:04] [PASSED] ALDERLAKE_S A0
[20:56:04] [PASSED] ALDERLAKE_S B0
[20:56:04] [PASSED] ALDERLAKE_S C0
[20:56:04] [PASSED] ALDERLAKE_S D0
[20:56:04] [PASSED] ALDERLAKE_P A0
[20:56:04] [PASSED] ALDERLAKE_P B0
[20:56:04] [PASSED] ALDERLAKE_P C0
[20:56:04] [PASSED] ALDERLAKE_S RPLS D0
[20:56:04] [PASSED] ALDERLAKE_P RPLU E0
[20:56:04] [PASSED] DG2 G10 C0
[20:56:04] [PASSED] DG2 G11 B1
[20:56:04] [PASSED] DG2 G12 A1
[20:56:04] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[20:56:04] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[20:56:04] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[20:56:04] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[20:56:04] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[20:56:04] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[20:56:04] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[20:56:04] ==================== [PASSED] xe_wa_gt =====================
[20:56:04] ====================== [PASSED] xe_wa ======================
[20:56:04] ============================================================
[20:56:04] Testing complete. Ran 510 tests: passed: 492, skipped: 18
[20:56:04] Elapsed time: 36.282s total, 4.224s configuring, 31.542s building, 0.463s running

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

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

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



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

* ✓ Xe.CI.BAT: success for drm/xe: Improve wedged mode handling (rev11)
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (5 preceding siblings ...)
  2025-12-15 20:56 ` ✓ CI.KUnit: success " Patchwork
@ 2025-12-15 21:58 ` Patchwork
  2025-12-16  1:37 ` [PATCH v11 0/4] drm/xe: Improve wedged mode handling Matthew Brost
  2025-12-16  6:36 ` ✓ Xe.CI.Full: success for drm/xe: Improve wedged mode handling (rev11) Patchwork
  8 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-12-15 21:58 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe

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

== Series Details ==

Series: drm/xe: Improve wedged mode handling (rev11)
URL   : https://patchwork.freedesktop.org/series/148214/
State : success

== Summary ==

CI Bug Log - changes from xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2_BAT -> xe-pw-148214v11_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (12 -> 12)
------------------------------

  No changes in participating hosts


Changes
-------

  No changes found


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

  * Linux: xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2 -> xe-pw-148214v11

  IGT_8666: 8666
  xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2: 342b565445c93d6fb5221aa9c23be20d65fa16f2
  xe-pw-148214v11: 148214v11

== Logs ==

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

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

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

* Re: [PATCH v11 0/4] drm/xe: Improve wedged mode handling
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (6 preceding siblings ...)
  2025-12-15 21:58 ` ✓ Xe.CI.BAT: " Patchwork
@ 2025-12-16  1:37 ` Matthew Brost
  2025-12-16  6:36 ` ✓ Xe.CI.Full: success for drm/xe: Improve wedged mode handling (rev11) Patchwork
  8 siblings, 0 replies; 13+ messages in thread
From: Matthew Brost @ 2025-12-16  1:37 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe, michal.wajdeczko, rodrigo.vivi

On Mon, Dec 15, 2025 at 06:46:09PM +0100, Lukasz Laguna wrote:
> Prevent the VF from attempting to update the GuC reset policy when
> changing the wedged mode, as this operation is not supported on VFs.
> 
> Additionally, validate the wedged_mode module parameter input, update
> the driver's internal wedged.mode state only after successful reset
> policy change, and allow setting wedged_mode=2 only in debug builds
> if running as PF.
> 
> v1: https://patchwork.freedesktop.org/series/148214/#rev1
> v2: Replace magic numbers with definitions (Matt, Michal)
>     Use helper to sanitize wedged_mode (Michal)
>     Change debug messages (Michal)
>     Reorder patches (Michal)
>     Add fixes tag (Matt)
> v3: Rename xe_device_wedged_mode_validate to
>     xe_device_validate_wedged_mode (Michal)
>     Make enum nameless (Michal)
>     Add default field in enum (Michal)
>     Change names of enum fields to match modparam description (Michal)
> v4: Fix GuC reset policy update
>     Replace missing magic numbers with definitions
>     Update debug message
> v5: Remove old rb-s from the patch that changed
> v6: Use string names instead of enum values in log messages (Michal)
>     Handle inconsistent reset policy state between GTs (Michal)
>     Use bool param in function toggling reset policy (Michal)
>     Update commits titles and descriptions (Michal)
> v7: Rebase series (Lukasz)
>     Rename helpers (Michal, Lukasz)
>     Split complex condition into smaller, separate ones (Michal)
>     Don't introduce XE_WEDGED_MODE_MISCONFIGURED enum field (Michal)
>     Add needs_policy_update helper (Michal)
> v8: Apply missing rb (Lukasz)
> v9: Simplify conditions (Rodrigo)
> v10: Define enum outside of the xe_device struct
>      Fix description of module parameter (Michal)
> v11: Update the Xe Device Wedging doc (Rodrigo)
>      Provide a more detailed commit description (Rodrigo)
> 

This series looks good but can I ask we hold on until this series [1]
merges in an effort to get clean backports to stable? [1] has a couple
of CI issues which I am looking into now.

Matt

[1] https://patchwork.freedesktop.org/series/158884/

> Lukasz Laguna (4):
>   drm/xe: Validate wedged_mode parameter and define enum for modes
>   drm/xe: Update wedged.mode only after successful reset policy change
>   drm/xe/vf: Disallow setting wedged mode to upon-any-hang
>   drm/xe/pf: Allow upon-any-hang wedged mode only in debug config
> 
>  drivers/gpu/drm/xe/xe_debugfs.c      | 75 ++++++++++++++++++++++------
>  drivers/gpu/drm/xe/xe_device.c       | 60 +++++++++++++++++++---
>  drivers/gpu/drm/xe/xe_device.h       |  2 +
>  drivers/gpu/drm/xe/xe_device_types.h | 23 ++++++++-
>  drivers/gpu/drm/xe/xe_guc_ads.c      | 16 +++---
>  drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
>  drivers/gpu/drm/xe/xe_guc_capture.c  |  9 +++-
>  drivers/gpu/drm/xe/xe_guc_submit.c   |  7 +--
>  drivers/gpu/drm/xe/xe_module.c       | 10 ++--
>  drivers/gpu/drm/xe/xe_module.h       |  2 +-
>  10 files changed, 170 insertions(+), 39 deletions(-)
> 
> -- 
> 2.40.0
> 

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

* ✓ Xe.CI.Full: success for drm/xe: Improve wedged mode handling (rev11)
  2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
                   ` (7 preceding siblings ...)
  2025-12-16  1:37 ` [PATCH v11 0/4] drm/xe: Improve wedged mode handling Matthew Brost
@ 2025-12-16  6:36 ` Patchwork
  8 siblings, 0 replies; 13+ messages in thread
From: Patchwork @ 2025-12-16  6:36 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe

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

== Series Details ==

Series: drm/xe: Improve wedged mode handling (rev11)
URL   : https://patchwork.freedesktop.org/series/148214/
State : success

== Summary ==

CI Bug Log - changes from xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2_FULL -> xe-pw-148214v11_FULL
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

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

  No changes in participating hosts

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

  Here are the changes found in xe-pw-148214v11_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

  * igt@kms_async_flips@async-flip-dpms:
    - shard-lnl:          NOTRUN -> [FAIL][1] ([Intel XE#6676]) +2 other tests fail
   [1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_async_flips@async-flip-dpms.html

  * igt@kms_big_fb@4-tiled-64bpp-rotate-270:
    - shard-lnl:          NOTRUN -> [SKIP][2] ([Intel XE#1407]) +1 other test skip
   [2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_big_fb@4-tiled-64bpp-rotate-270.html

  * igt@kms_big_fb@4-tiled-8bpp-rotate-90:
    - shard-bmg:          NOTRUN -> [SKIP][3] ([Intel XE#2327])
   [3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_big_fb@4-tiled-8bpp-rotate-90.html

  * igt@kms_big_fb@y-tiled-32bpp-rotate-270:
    - shard-lnl:          NOTRUN -> [SKIP][4] ([Intel XE#1124]) +1 other test skip
   [4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_big_fb@y-tiled-32bpp-rotate-270.html

  * igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180:
    - shard-bmg:          NOTRUN -> [SKIP][5] ([Intel XE#1124]) +1 other test skip
   [5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180.html

  * igt@kms_bw@connected-linear-tiling-2-displays-2560x1440p:
    - shard-lnl:          NOTRUN -> [SKIP][6] ([Intel XE#2191])
   [6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_bw@connected-linear-tiling-2-displays-2560x1440p.html

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

  * igt@kms_ccs@bad-pixel-format-4-tiled-dg2-mc-ccs:
    - shard-bmg:          NOTRUN -> [SKIP][8] ([Intel XE#2887]) +3 other tests skip
   [8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_ccs@bad-pixel-format-4-tiled-dg2-mc-ccs.html

  * igt@kms_ccs@ccs-on-another-bo-yf-tiled-ccs:
    - shard-lnl:          NOTRUN -> [SKIP][9] ([Intel XE#2887])
   [9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_ccs@ccs-on-another-bo-yf-tiled-ccs.html

  * igt@kms_ccs@crc-primary-basic-4-tiled-lnl-ccs:
    - shard-bmg:          NOTRUN -> [SKIP][10] ([Intel XE#2652] / [Intel XE#787]) +8 other tests skip
   [10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_ccs@crc-primary-basic-4-tiled-lnl-ccs.html

  * igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs:
    - shard-bmg:          [PASS][11] -> [INCOMPLETE][12] ([Intel XE#3862]) +1 other test incomplete
   [11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-bmg-8/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html
   [12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-1/igt@kms_ccs@crc-primary-suspend-4-tiled-bmg-ccs.html

  * igt@kms_chamelium_color@ctm-limited-range:
    - shard-bmg:          NOTRUN -> [SKIP][13] ([Intel XE#2325])
   [13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_chamelium_color@ctm-limited-range.html

  * igt@kms_chamelium_edid@hdmi-edid-stress-resolution-non-4k:
    - shard-lnl:          NOTRUN -> [SKIP][14] ([Intel XE#373])
   [14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_chamelium_edid@hdmi-edid-stress-resolution-non-4k.html

  * igt@kms_chamelium_hpd@dp-hpd-storm:
    - shard-bmg:          NOTRUN -> [SKIP][15] ([Intel XE#2252]) +1 other test skip
   [15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_chamelium_hpd@dp-hpd-storm.html

  * igt@kms_content_protection@dp-mst-lic-type-0:
    - shard-lnl:          NOTRUN -> [SKIP][16] ([Intel XE#307])
   [16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_content_protection@dp-mst-lic-type-0.html

  * igt@kms_content_protection@dp-mst-type-0:
    - shard-bmg:          NOTRUN -> [SKIP][17] ([Intel XE#2390])
   [17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_content_protection@dp-mst-type-0.html

  * igt@kms_cursor_crc@cursor-offscreen-max-size:
    - shard-bmg:          NOTRUN -> [SKIP][18] ([Intel XE#2320]) +1 other test skip
   [18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_cursor_crc@cursor-offscreen-max-size.html

  * igt@kms_cursor_crc@cursor-sliding-64x21:
    - shard-lnl:          NOTRUN -> [SKIP][19] ([Intel XE#1424]) +2 other tests skip
   [19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_cursor_crc@cursor-sliding-64x21.html

  * igt@kms_cursor_legacy@cursorb-vs-flipa-atomic:
    - shard-lnl:          NOTRUN -> [SKIP][20] ([Intel XE#309])
   [20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic.html

  * igt@kms_cursor_legacy@flip-vs-cursor-atomic:
    - shard-bmg:          [PASS][21] -> [FAIL][22] ([Intel XE#6715])
   [21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-bmg-8/igt@kms_cursor_legacy@flip-vs-cursor-atomic.html
   [22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-8/igt@kms_cursor_legacy@flip-vs-cursor-atomic.html

  * igt@kms_cursor_legacy@flip-vs-cursor-legacy:
    - shard-bmg:          [PASS][23] -> [FAIL][24] ([Intel XE#5299])
   [23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-bmg-2/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html
   [24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_cursor_legacy@flip-vs-cursor-legacy.html

  * igt@kms_fbcon_fbt@fbc-suspend:
    - shard-bmg:          NOTRUN -> [SKIP][25] ([Intel XE#4156])
   [25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_fbcon_fbt@fbc-suspend.html

  * igt@kms_fbcon_fbt@psr:
    - shard-bmg:          NOTRUN -> [SKIP][26] ([Intel XE#776])
   [26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_fbcon_fbt@psr.html

  * igt@kms_feature_discovery@display-3x:
    - shard-bmg:          NOTRUN -> [SKIP][27] ([Intel XE#2373])
   [27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_feature_discovery@display-3x.html

  * igt@kms_feature_discovery@dp-mst:
    - shard-lnl:          NOTRUN -> [SKIP][28] ([Intel XE#1137])
   [28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_feature_discovery@dp-mst.html

  * igt@kms_flip@2x-nonexisting-fb:
    - shard-lnl:          NOTRUN -> [SKIP][29] ([Intel XE#1421])
   [29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_flip@2x-nonexisting-fb.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible:
    - shard-lnl:          [PASS][30] -> [FAIL][31] ([Intel XE#301] / [Intel XE#3149]) +1 other test fail
   [30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
   [31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@kms_flip@flip-vs-expired-vblank-interruptible.html

  * igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
    - shard-lnl:          [PASS][32] -> [FAIL][33] ([Intel XE#301])
   [32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1.html
   [33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1.html

  * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling:
    - shard-bmg:          NOTRUN -> [SKIP][34] ([Intel XE#2293] / [Intel XE#2380])
   [34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling.html

  * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling@pipe-a-valid-mode:
    - shard-bmg:          NOTRUN -> [SKIP][35] ([Intel XE#2293])
   [35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling@pipe-a-valid-mode.html

  * igt@kms_frontbuffer_tracking@drrs-1p-offscreen-pri-shrfb-draw-blt:
    - shard-bmg:          NOTRUN -> [SKIP][36] ([Intel XE#2311]) +5 other tests skip
   [36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_frontbuffer_tracking@drrs-1p-offscreen-pri-shrfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@drrs-rgb101010-draw-mmap-wc:
    - shard-lnl:          NOTRUN -> [SKIP][37] ([Intel XE#651]) +2 other tests skip
   [37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_frontbuffer_tracking@drrs-rgb101010-draw-mmap-wc.html

  * igt@kms_frontbuffer_tracking@fbc-1p-offscreen-pri-indfb-draw-blt:
    - shard-bmg:          NOTRUN -> [SKIP][38] ([Intel XE#4141]) +3 other tests skip
   [38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_frontbuffer_tracking@fbc-1p-offscreen-pri-indfb-draw-blt.html

  * igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-move:
    - shard-lnl:          NOTRUN -> [SKIP][39] ([Intel XE#656]) +4 other tests skip
   [39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_frontbuffer_tracking@fbcpsr-2p-primscrn-spr-indfb-move.html

  * igt@kms_frontbuffer_tracking@fbcpsr-2p-rte:
    - shard-bmg:          NOTRUN -> [SKIP][40] ([Intel XE#2313]) +6 other tests skip
   [40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_frontbuffer_tracking@fbcpsr-2p-rte.html

  * igt@kms_hdmi_inject@inject-audio:
    - shard-lnl:          NOTRUN -> [SKIP][41] ([Intel XE#1470] / [Intel XE#2853])
   [41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_hdmi_inject@inject-audio.html

  * igt@kms_joiner@basic-ultra-joiner:
    - shard-lnl:          NOTRUN -> [SKIP][42] ([Intel XE#2925] / [Intel XE#2927])
   [42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_joiner@basic-ultra-joiner.html

  * igt@kms_joiner@switch-modeset-ultra-joiner-big-joiner:
    - shard-bmg:          NOTRUN -> [SKIP][43] ([Intel XE#4090] / [Intel XE#6590])
   [43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_joiner@switch-modeset-ultra-joiner-big-joiner.html

  * igt@kms_plane_lowres@tiling-x@pipe-b-edp-1:
    - shard-lnl:          NOTRUN -> [SKIP][44] ([Intel XE#599]) +3 other tests skip
   [44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_plane_lowres@tiling-x@pipe-b-edp-1.html

  * igt@kms_plane_scaling@intel-max-src-size:
    - shard-lnl:          NOTRUN -> [SKIP][45] ([Intel XE#3307])
   [45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_plane_scaling@intel-max-src-size.html

  * igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-b:
    - shard-lnl:          NOTRUN -> [SKIP][46] ([Intel XE#6886]) +3 other tests skip
   [46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75@pipe-b.html

  * igt@kms_pm_backlight@fade-with-suspend:
    - shard-bmg:          NOTRUN -> [SKIP][47] ([Intel XE#870])
   [47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_pm_backlight@fade-with-suspend.html

  * igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf:
    - shard-lnl:          NOTRUN -> [SKIP][48] ([Intel XE#1406] / [Intel XE#2893] / [Intel XE#4608])
   [48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf.html

  * igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf@pipe-a-edp-1:
    - shard-lnl:          NOTRUN -> [SKIP][49] ([Intel XE#1406] / [Intel XE#4608]) +1 other test skip
   [49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_psr2_sf@fbc-psr2-overlay-plane-move-continuous-exceed-fully-sf@pipe-a-edp-1.html

  * igt@kms_psr2_sf@pr-primary-plane-update-sf-dmg-area:
    - shard-bmg:          NOTRUN -> [SKIP][50] ([Intel XE#1406] / [Intel XE#1489]) +1 other test skip
   [50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_psr2_sf@pr-primary-plane-update-sf-dmg-area.html

  * igt@kms_psr@fbc-pr-sprite-render:
    - shard-lnl:          NOTRUN -> [SKIP][51] ([Intel XE#1406])
   [51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_psr@fbc-pr-sprite-render.html

  * igt@kms_psr@psr-sprite-render:
    - shard-bmg:          NOTRUN -> [SKIP][52] ([Intel XE#1406] / [Intel XE#2234] / [Intel XE#2850]) +2 other tests skip
   [52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_psr@psr-sprite-render.html

  * igt@kms_rotation_crc@primary-4-tiled-reflect-x-0:
    - shard-lnl:          NOTRUN -> [SKIP][53] ([Intel XE#3414] / [Intel XE#3904])
   [53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_rotation_crc@primary-4-tiled-reflect-x-0.html

  * igt@kms_sharpness_filter@invalid-plane-with-filter:
    - shard-bmg:          NOTRUN -> [SKIP][54] ([Intel XE#6503])
   [54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_sharpness_filter@invalid-plane-with-filter.html

  * igt@xe_eudebug@discovery-empty:
    - shard-lnl:          NOTRUN -> [SKIP][55] ([Intel XE#4837])
   [55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_eudebug@discovery-empty.html

  * igt@xe_eudebug@read-metadata:
    - shard-bmg:          NOTRUN -> [SKIP][56] ([Intel XE#4837]) +1 other test skip
   [56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_eudebug@read-metadata.html

  * igt@xe_eudebug_online@pagefault-one-of-many:
    - shard-lnl:          NOTRUN -> [SKIP][57] ([Intel XE#6665])
   [57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_eudebug_online@pagefault-one-of-many.html

  * igt@xe_eudebug_online@set-breakpoint-faultable:
    - shard-bmg:          NOTRUN -> [SKIP][58] ([Intel XE#4837] / [Intel XE#6665])
   [58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_eudebug_online@set-breakpoint-faultable.html

  * igt@xe_eudebug_sriov@deny-sriov:
    - shard-lnl:          NOTRUN -> [SKIP][59] ([Intel XE#4518])
   [59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_eudebug_sriov@deny-sriov.html

  * igt@xe_evict_ccs@evict-overcommit-parallel-instantfree-reopen:
    - shard-lnl:          NOTRUN -> [SKIP][60] ([Intel XE#688]) +2 other tests skip
   [60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_evict_ccs@evict-overcommit-parallel-instantfree-reopen.html

  * igt@xe_exec_basic@multigpu-no-exec-null-defer-bind:
    - shard-bmg:          NOTRUN -> [SKIP][61] ([Intel XE#2322]) +1 other test skip
   [61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_exec_basic@multigpu-no-exec-null-defer-bind.html

  * igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate:
    - shard-lnl:          NOTRUN -> [SKIP][62] ([Intel XE#1392])
   [62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_exec_basic@multigpu-once-bindexecqueue-userptr-invalidate.html

  * igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-basic:
    - shard-lnl:          NOTRUN -> [SKIP][63] ([Intel XE#6874]) +6 other tests skip
   [63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-basic.html

  * igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-basic-smem:
    - shard-bmg:          NOTRUN -> [SKIP][64] ([Intel XE#6874]) +7 other tests skip
   [64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_exec_multi_queue@max-queues-preempt-mode-fault-basic-smem.html

  * igt@xe_exec_system_allocator@many-mmap-huge:
    - shard-lnl:          NOTRUN -> [SKIP][65] ([Intel XE#4943]) +3 other tests skip
   [65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_exec_system_allocator@many-mmap-huge.html

  * igt@xe_exec_system_allocator@threads-shared-vm-many-large-execqueues-mmap-new-huge:
    - shard-bmg:          NOTRUN -> [SKIP][66] ([Intel XE#4943]) +6 other tests skip
   [66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_exec_system_allocator@threads-shared-vm-many-large-execqueues-mmap-new-huge.html

  * igt@xe_media_fill@media-fill:
    - shard-bmg:          NOTRUN -> [SKIP][67] ([Intel XE#2459] / [Intel XE#2596])
   [67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_media_fill@media-fill.html

  * igt@xe_module_load@load:
    - shard-lnl:          ([PASS][68], [PASS][69], [PASS][70], [PASS][71], [PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83], [PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92]) -> ([PASS][93], [SKIP][94], [PASS][95], [PASS][96], [PASS][97], [PASS][98], [PASS][99], [PASS][100], [PASS][101], [PASS][102], [PASS][103], [PASS][104], [PASS][105], [PASS][106], [PASS][107], [PASS][108], [PASS][109], [PASS][110], [PASS][111], [PASS][112], [PASS][113], [PASS][114], [PASS][115], [PASS][116], [PASS][117], [PASS][118]) ([Intel XE#378])
   [68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-3/igt@xe_module_load@load.html
   [69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-3/igt@xe_module_load@load.html
   [70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-3/igt@xe_module_load@load.html
   [71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_module_load@load.html
   [72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-3/igt@xe_module_load@load.html
   [73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-3/igt@xe_module_load@load.html
   [74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-2/igt@xe_module_load@load.html
   [75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-2/igt@xe_module_load@load.html
   [76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-2/igt@xe_module_load@load.html
   [77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-2/igt@xe_module_load@load.html
   [78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-2/igt@xe_module_load@load.html
   [79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@xe_module_load@load.html
   [80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@xe_module_load@load.html
   [81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@xe_module_load@load.html
   [82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@xe_module_load@load.html
   [83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@xe_module_load@load.html
   [84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-5/igt@xe_module_load@load.html
   [85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@xe_module_load@load.html
   [86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@xe_module_load@load.html
   [87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@xe_module_load@load.html
   [88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-8/igt@xe_module_load@load.html
   [89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_module_load@load.html
   [90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_module_load@load.html
   [91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_module_load@load.html
   [92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_module_load@load.html
   [93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-2/igt@xe_module_load@load.html
   [94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_module_load@load.html
   [95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_module_load@load.html
   [96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_module_load@load.html
   [97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_module_load@load.html
   [98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_module_load@load.html
   [99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-8/igt@xe_module_load@load.html
   [100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-8/igt@xe_module_load@load.html
   [101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_module_load@load.html
   [102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_module_load@load.html
   [103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_module_load@load.html
   [104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_module_load@load.html
   [105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-3/igt@xe_module_load@load.html
   [106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-3/igt@xe_module_load@load.html
   [107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-2/igt@xe_module_load@load.html
   [108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-3/igt@xe_module_load@load.html
   [109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-3/igt@xe_module_load@load.html
   [110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_module_load@load.html
   [111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@xe_module_load@load.html
   [112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-2/igt@xe_module_load@load.html
   [113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-2/igt@xe_module_load@load.html
   [114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-8/igt@xe_module_load@load.html
   [115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-8/igt@xe_module_load@load.html
   [116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@xe_module_load@load.html
   [117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@xe_module_load@load.html
   [118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-5/igt@xe_module_load@load.html

  * igt@xe_pm@d3cold-basic-exec:
    - shard-bmg:          NOTRUN -> [SKIP][119] ([Intel XE#2284])
   [119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_pm@d3cold-basic-exec.html

  * igt@xe_pm@s3-exec-after:
    - shard-lnl:          NOTRUN -> [SKIP][120] ([Intel XE#584])
   [120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_pm@s3-exec-after.html

  * igt@xe_pmu@engine-activity-accuracy-50:
    - shard-lnl:          [PASS][121] -> [FAIL][122] ([Intel XE#6251]) +3 other tests fail
   [121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@xe_pmu@engine-activity-accuracy-50.html
   [122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-4/igt@xe_pmu@engine-activity-accuracy-50.html

  * igt@xe_pxp@pxp-termination-key-update-post-termination-irq:
    - shard-bmg:          NOTRUN -> [SKIP][123] ([Intel XE#4733])
   [123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@xe_pxp@pxp-termination-key-update-post-termination-irq.html

  * igt@xe_sriov_scheduling@nonpreempt-engine-resets:
    - shard-lnl:          NOTRUN -> [SKIP][124] ([Intel XE#4351])
   [124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@xe_sriov_scheduling@nonpreempt-engine-resets.html

  
#### Possible fixes ####

  * igt@kms_big_fb@x-tiled-8bpp-rotate-180:
    - shard-lnl:          [ABORT][125] -> [PASS][126]
   [125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-1/igt@kms_big_fb@x-tiled-8bpp-rotate-180.html
   [126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-1/igt@kms_big_fb@x-tiled-8bpp-rotate-180.html

  * igt@kms_draw_crc@draw-method-render:
    - shard-bmg:          [INCOMPLETE][127] ([Intel XE#5545]) -> [PASS][128] +1 other test pass
   [127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-bmg-2/igt@kms_draw_crc@draw-method-render.html
   [128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-bmg-2/igt@kms_draw_crc@draw-method-render.html

  * igt@kms_fbcon_fbt@fbc-suspend:
    - shard-lnl:          [FAIL][129] ([i915#4767]) -> [PASS][130]
   [129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2/shard-lnl-4/igt@kms_fbcon_fbt@fbc-suspend.html
   [130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-148214v11/shard-lnl-2/igt@kms_fbcon_fbt@fbc-suspend.html

  
  [Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
  [Intel XE#1137]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1137
  [Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
  [Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
  [Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
  [Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421
  [Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
  [Intel XE#1470]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1470
  [Intel XE#1489]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1489
  [Intel XE#2191]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2191
  [Intel XE#2234]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2234
  [Intel XE#2252]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2252
  [Intel XE#2284]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2284
  [Intel XE#2293]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2293
  [Intel XE#2311]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2311
  [Intel XE#2313]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2313
  [Intel XE#2320]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2320
  [Intel XE#2322]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2322
  [Intel XE#2325]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2325
  [Intel XE#2327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2327
  [Intel XE#2373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2373
  [Intel XE#2380]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2380
  [Intel XE#2390]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2390
  [Intel XE#2459]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2459
  [Intel XE#2596]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2596
  [Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
  [Intel XE#2850]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2850
  [Intel XE#2853]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2853
  [Intel XE#2887]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2887
  [Intel XE#2893]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2893
  [Intel XE#2925]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2925
  [Intel XE#2927]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2927
  [Intel XE#301]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/301
  [Intel XE#307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/307
  [Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
  [Intel XE#3149]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3149
  [Intel XE#3307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3307
  [Intel XE#3414]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3414
  [Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
  [Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
  [Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
  [Intel XE#3862]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3862
  [Intel XE#3904]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/3904
  [Intel XE#4090]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4090
  [Intel XE#4141]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4141
  [Intel XE#4156]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4156
  [Intel XE#4351]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4351
  [Intel XE#4518]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4518
  [Intel XE#4608]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4608
  [Intel XE#4733]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4733
  [Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
  [Intel XE#4943]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4943
  [Intel XE#5299]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5299
  [Intel XE#5545]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5545
  [Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584
  [Intel XE#599]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/599
  [Intel XE#6251]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6251
  [Intel XE#6503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6503
  [Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
  [Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
  [Intel XE#6590]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6590
  [Intel XE#6665]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6665
  [Intel XE#6676]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6676
  [Intel XE#6715]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6715
  [Intel XE#6874]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6874
  [Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
  [Intel XE#6886]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/6886
  [Intel XE#776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/776
  [Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
  [Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
  [i915#4767]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4767


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

  * Linux: xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2 -> xe-pw-148214v11

  IGT_8666: 8666
  xe-4247-342b565445c93d6fb5221aa9c23be20d65fa16f2: 342b565445c93d6fb5221aa9c23be20d65fa16f2
  xe-pw-148214v11: 148214v11

== Logs ==

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

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

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

* Re: [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes
  2025-12-15 17:46 ` [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes Lukasz Laguna
@ 2025-12-19 21:56   ` Rodrigo Vivi
  0 siblings, 0 replies; 13+ messages in thread
From: Rodrigo Vivi @ 2025-12-19 21:56 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe, michal.wajdeczko

On Mon, Dec 15, 2025 at 06:46:10PM +0100, Lukasz Laguna wrote:
> Check correctness of the wedged_mode parameter input to ensure only
> supported values are accepted. Additionally, replace magic numbers with
> a clearly defined enum.
> 
> Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
> v11:
>  - update the Xe Device Wedging doc (Rodrigo),
>  - change the name of XE_WEDGED_MODE_UPON_ANY_HANG (Rodrigo).
> ---
>  drivers/gpu/drm/xe/xe_debugfs.c      |  5 +--
>  drivers/gpu/drm/xe/xe_device.c       | 54 ++++++++++++++++++++++++----
>  drivers/gpu/drm/xe/xe_device.h       |  2 ++
>  drivers/gpu/drm/xe/xe_device_types.h | 21 ++++++++++-
>  drivers/gpu/drm/xe/xe_guc_ads.c      |  4 +--
>  drivers/gpu/drm/xe/xe_guc_capture.c  |  9 ++++-
>  drivers/gpu/drm/xe/xe_guc_submit.c   |  7 ++--
>  drivers/gpu/drm/xe/xe_module.c       | 10 +++---
>  drivers/gpu/drm/xe/xe_module.h       |  2 +-
>  9 files changed, 94 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
> index ad070055cef1..0b65c3940f41 100644
> --- a/drivers/gpu/drm/xe/xe_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
> @@ -267,8 +267,9 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>  	if (ret)
>  		return ret;
>  
> -	if (wedged_mode > 2)
> -		return -EINVAL;
> +	ret = xe_device_validate_wedged_mode(xe, wedged_mode);
> +	if (ret)
> +		return ret;
>  
>  	if (xe->wedged.mode == wedged_mode)
>  		return size;
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index cdaa1c1e73f5..492446fdc4dc 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -767,7 +767,10 @@ int xe_device_probe_early(struct xe_device *xe)
>  	if (err)
>  		return err;
>  
> -	xe->wedged.mode = xe_modparam.wedged_mode;
> +	xe->wedged.mode = xe_device_validate_wedged_mode(xe, xe_modparam.wedged_mode) ?
> +			  XE_WEDGED_MODE_DEFAULT : xe_modparam.wedged_mode;
> +	drm_dbg(&xe->drm, "wedged_mode: setting mode (%u) %s\n",
> +		xe->wedged.mode, xe_wedged_mode_to_string(xe->wedged.mode));
>  
>  	err = xe_device_vram_alloc(xe);
>  	if (err)
> @@ -1246,10 +1249,10 @@ static void xe_device_wedged_fini(struct drm_device *drm, void *arg)
>   * DOC: Xe Device Wedging
>   *
>   * Xe driver uses drm device wedged uevent as documented in Documentation/gpu/drm-uapi.rst.
> - * When device is in wedged state, every IOCTL will be blocked and GT cannot be
> - * used. Certain critical errors like gt reset failure, firmware failures can cause
> - * the device to be wedged. The default recovery method for a wedged state
> - * is rebind/bus-reset.
> + * When device is in wedged state, every IOCTL will be blocked and GT cannot
> + * be used. The conditions under which the driver declares the device wedged
> + * depend on the wedged mode configuration (see &enum xe_wedged_mode). The
> + * default recovery method for a wedged state is rebind/bus-reset.
>   *
>   * Another recovery method is vendor-specific. Below are the cases that send
>   * ``WEDGED=vendor-specific`` recovery method in drm device wedged uevent.
> @@ -1314,7 +1317,7 @@ void xe_device_declare_wedged(struct xe_device *xe)
>  	struct xe_gt *gt;
>  	u8 id;
>  
> -	if (xe->wedged.mode == 0) {
> +	if (xe->wedged.mode == XE_WEDGED_MODE_NEVER) {
>  		drm_dbg(&xe->drm, "Wedged mode is forcibly disabled\n");
>  		return;
>  	}
> @@ -1348,3 +1351,42 @@ void xe_device_declare_wedged(struct xe_device *xe)
>  		drm_dev_wedged_event(&xe->drm, xe->wedged.method, NULL);
>  	}
>  }
> +
> +/**
> + * xe_device_validate_wedged_mode - Check if given mode is supported
> + * @xe: the &xe_device
> + * @mode: requested mode to validate
> + *
> + * Check whether the provided wedged mode is supported.
> + *
> + * Return: 0 if mode is supported, error code otherwise.
> + */
> +int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode)
> +{
> +	if (mode > XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) {
> +		drm_dbg(&xe->drm, "wedged_mode: invalid value (%u)\n", mode);
> +		return -EINVAL;
> +	}
> +
> +	return 0;
> +}
> +
> +/**
> + * xe_wedged_mode_to_string - Convert enum value to string.
> + * @mode: the &xe_wedged_mode to convert
> + *
> + * Returns: wedged mode as a user friendly string.
> + */
> +const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode)
> +{
> +	switch (mode) {
> +	case XE_WEDGED_MODE_NEVER:
> +		return "never";
> +	case XE_WEDGED_MODE_UPON_CRITICAL_ERROR:
> +		return "upon-critical-error";
> +	case XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET:
> +		return "upon-any-hang-no-reset";
> +	default:
> +		return "<invalid>";
> +	}
> +}
> diff --git a/drivers/gpu/drm/xe/xe_device.h b/drivers/gpu/drm/xe/xe_device.h
> index 6604b89330d5..b6ef72e95a3d 100644
> --- a/drivers/gpu/drm/xe/xe_device.h
> +++ b/drivers/gpu/drm/xe/xe_device.h
> @@ -194,6 +194,8 @@ static inline bool xe_device_wedged(struct xe_device *xe)
>  
>  void xe_device_set_wedged_method(struct xe_device *xe, unsigned long method);
>  void xe_device_declare_wedged(struct xe_device *xe);
> +int xe_device_validate_wedged_mode(struct xe_device *xe, unsigned int mode);
> +const char *xe_wedged_mode_to_string(enum xe_wedged_mode mode);
>  
>  struct xe_file *xe_file_get(struct xe_file *xef);
>  void xe_file_put(struct xe_file *xef);
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 96acc43b94e1..20a847965b20 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -44,6 +44,25 @@ struct xe_pat_ops;
>  struct xe_pxp;
>  struct xe_vram_region;
>  
> +/**
> + * enum xe_wedged_mode - possible wedged modes
> + * @XE_WEDGED_MODE_NEVER: Device will never be declared wedged.
> + * @XE_WEDGED_MODE_UPON_CRITICAL_ERROR: Device will be declared wedged only
> + * 	when critical error occurs like GT reset failure or firmware failure.
> + *	This is the default mode.
> + * @XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET: Device will be declared wedged on
> + *	any hang. In this mode, engine resets are disabled to avoid automatic
> + *	recovery attempts. This mode is primarily intended for debugging hangs.
> + */
> +enum xe_wedged_mode {
> +	XE_WEDGED_MODE_NEVER = 0,
> +	XE_WEDGED_MODE_UPON_CRITICAL_ERROR = 1,
> +	XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET = 2,
> +};
> +
> +#define XE_WEDGED_MODE_DEFAULT		XE_WEDGED_MODE_UPON_CRITICAL_ERROR
> +#define XE_WEDGED_MODE_DEFAULT_STR	"upon-critical-error"
> +
>  #define XE_BO_INVALID_OFFSET	LONG_MAX
>  
>  #define GRAPHICS_VER(xe) ((xe)->info.graphics_verx100 / 100)
> @@ -604,7 +623,7 @@ struct xe_device {
>  		/** @wedged.flag: Xe device faced a critical error and is now blocked. */
>  		atomic_t flag;
>  		/** @wedged.mode: Mode controlled by kernel parameter and debugfs */
> -		int mode;
> +		enum xe_wedged_mode mode;
>  		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
>  		unsigned long method;
>  	} wedged;
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
> index e06c6aa335bf..e95604416f2d 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
> @@ -451,7 +451,7 @@ static void guc_policies_init(struct xe_guc_ads *ads)
>  	ads_blob_write(ads, policies.max_num_work_items,
>  		       GLOBAL_POLICY_MAX_NUM_WI);
>  
> -	if (xe->wedged.mode == 2)
> +	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
>  		global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>  
>  	ads_blob_write(ads, policies.global_flags, global_flags);
> @@ -1004,7 +1004,7 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
>  	policies->dpc_promote_time = ads_blob_read(ads, policies.dpc_promote_time);
>  	policies->max_num_work_items = ads_blob_read(ads, policies.max_num_work_items);
>  	policies->is_valid = 1;
> -	if (xe->wedged.mode == 2)
> +	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
>  		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>  	else
>  		policies->global_flags &= ~GLOBAL_POLICY_DISABLE_ENGINE_RESET;
> diff --git a/drivers/gpu/drm/xe/xe_guc_capture.c b/drivers/gpu/drm/xe/xe_guc_capture.c
> index 2cda92f7b323..bdd700ac1e54 100644
> --- a/drivers/gpu/drm/xe/xe_guc_capture.c
> +++ b/drivers/gpu/drm/xe/xe_guc_capture.c
> @@ -1889,7 +1889,14 @@ xe_guc_capture_get_matching_and_lock(struct xe_exec_queue *q)
>  		return NULL;
>  
>  	xe = gt_to_xe(q->gt);
> -	if (xe->wedged.mode >= 2 || !xe_device_uc_enabled(xe) || IS_SRIOV_VF(xe))
> +
> +	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
> +		return NULL;
> +
> +	if (!xe_device_uc_enabled(xe))
> +		return NULL;
> +
> +	if (IS_SRIOV_VF(xe))
>  		return NULL;
>  
>  	ss = &xe->devcoredump.snapshot;
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 21a8bd2ec672..fd41b06d11df 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -1288,8 +1288,9 @@ void xe_guc_submit_wedge(struct xe_guc *guc)
>  	err = devm_add_action_or_reset(guc_to_xe(guc)->drm.dev,
>  				       guc_submit_wedged_fini, guc);
>  	if (err) {
> -		xe_gt_err(gt, "Failed to register clean-up on wedged.mode=2; "
> -			  "Although device is wedged.\n");
> +		xe_gt_err(gt, "Failed to register clean-up in wedged.mode=%s; "
> +			  "Although device is wedged.\n",
> +			  xe_wedged_mode_to_string(XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET));
>  		return;
>  	}
>  
> @@ -1304,7 +1305,7 @@ static bool guc_submit_hint_wedged(struct xe_guc *guc)
>  {
>  	struct xe_device *xe = guc_to_xe(guc);
>  
> -	if (xe->wedged.mode != 2)
> +	if (xe->wedged.mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
>  		return false;
>  
>  	if (xe_device_wedged(xe))
> diff --git a/drivers/gpu/drm/xe/xe_module.c b/drivers/gpu/drm/xe/xe_module.c
> index d08338fc3bc1..9934f90691fd 100644
> --- a/drivers/gpu/drm/xe/xe_module.c
> +++ b/drivers/gpu/drm/xe/xe_module.c
> @@ -10,6 +10,7 @@
>  
>  #include <drm/drm_module.h>
>  
> +#include "xe_device.h"
>  #include "xe_drv.h"
>  #include "xe_configfs.h"
>  #include "xe_hw_fence.h"
> @@ -29,7 +30,8 @@
>  #define DEFAULT_FORCE_PROBE		CONFIG_DRM_XE_FORCE_PROBE
>  #define DEFAULT_MAX_VFS			~0
>  #define DEFAULT_MAX_VFS_STR		"unlimited"
> -#define DEFAULT_WEDGED_MODE		1
> +#define DEFAULT_WEDGED_MODE		XE_WEDGED_MODE_DEFAULT
> +#define DEFAULT_WEDGED_MODE_STR		XE_WEDGED_MODE_DEFAULT_STR
>  #define DEFAULT_SVM_NOTIFIER_SIZE	512
>  
>  struct xe_modparam xe_modparam = {
> @@ -88,10 +90,10 @@ MODULE_PARM_DESC(max_vfs,
>  		 "[default=" DEFAULT_MAX_VFS_STR "])");
>  #endif
>  
> -module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, int, 0600);
> +module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, uint, 0600);
>  MODULE_PARM_DESC(wedged_mode,
> -		 "Module's default policy for the wedged mode (0=never, 1=upon-critical-errors, 2=upon-any-hang "
> -		 "[default=" __stringify(DEFAULT_WEDGED_MODE) "])");
> +		 "Module's default policy for the wedged mode (0=never, 1=upon-critical-error, 2=upon-any-hang-no-reset "
> +		 "[default=" DEFAULT_WEDGED_MODE_STR "])");
>  
>  static int xe_check_nomodeset(void)
>  {
> diff --git a/drivers/gpu/drm/xe/xe_module.h b/drivers/gpu/drm/xe/xe_module.h
> index 5a3bfea8b7b4..1c75f38ca393 100644
> --- a/drivers/gpu/drm/xe/xe_module.h
> +++ b/drivers/gpu/drm/xe/xe_module.h
> @@ -21,7 +21,7 @@ struct xe_modparam {
>  #ifdef CONFIG_PCI_IOV
>  	unsigned int max_vfs;
>  #endif
> -	int wedged_mode;
> +	unsigned int wedged_mode;
>  	u32 svm_notifier_size;
>  };
>  
> -- 
> 2.40.0
> 

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

* Re: [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change
  2025-12-15 17:46 ` [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change Lukasz Laguna
@ 2025-12-19 22:01   ` Rodrigo Vivi
  2025-12-22 19:26     ` Laguna, Lukasz
  0 siblings, 1 reply; 13+ messages in thread
From: Rodrigo Vivi @ 2025-12-19 22:01 UTC (permalink / raw)
  To: Lukasz Laguna; +Cc: intel-xe, michal.wajdeczko

On Mon, Dec 15, 2025 at 06:46:11PM +0100, Lukasz Laguna wrote:
> Previously, the driver's internal wedged.mode state was updated without
> verifying whether the corresponding engine reset policy update in GuC
> succeeded. This could leave the driver reporting a wedged.mode state
> that doesn't match the actual reset behavior programmed in GuC.
> 
> With this change, the reset policy is updated first, and the driver's
> wedged.mode state is modified only if the policy update succeeds on all
> available GTs.
> 
> This patch also introduces two functional improvements:
> 
>  - The policy is sent to GuC only when a change is required. An update
>    is needed only when entering or leaving XE_WEDGED_MODE_UPON_ANY_HANG,
>    because only in that case the reset policy changes. For example,
>    switching between XE_WEDGED_MODE_UPON_CRITICAL_ERROR and
>    XE_WEDGED_MODE_NEVER doesn't affect the reset policy, so there is no
>    need to send the same value to GuC.
> 
>  - An inconsistent_reset flag is added to track cases where reset policy
>    update succeeds only on a subset of GTs. If such inconsistency is
>    detected, future wedged mode configuration will force a retry of the
>    reset policy update to restore a consistent state across all GTs.
> 
> Fixes: 6b8ef44cc0a9 ("drm/xe: Introduce the wedged_mode debugfs")
> Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
> ---
> v11:
>  - add more detailed commit description (Rodrigo).
> ---
>  drivers/gpu/drm/xe/xe_debugfs.c      | 70 ++++++++++++++++++++++------
>  drivers/gpu/drm/xe/xe_device_types.h |  2 +
>  drivers/gpu/drm/xe/xe_guc_ads.c      | 14 +++---
>  drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
>  4 files changed, 71 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
> index 0b65c3940f41..f62174f7035a 100644
> --- a/drivers/gpu/drm/xe/xe_debugfs.c
> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
> @@ -254,14 +254,64 @@ static ssize_t wedged_mode_show(struct file *f, char __user *ubuf,
>  	return simple_read_from_buffer(ubuf, size, pos, buf, len);
>  }
>  
> +static int __set_reset_policy(struct xe_gt *gt, enum xe_wedged_mode mode)
> +{
> +	bool enable_engine_reset;
> +	int ret;
> +
> +	enable_engine_reset = (mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET);
> +	ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads,
> +						       enable_engine_reset);
> +	if (ret)
> +		xe_gt_err(gt, "Failed to update GuC ADS scheduler policy (%pe)\n", ERR_PTR(ret));
> +
> +	return ret;
> +}
> +
> +static int set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
> +{

since these new functions are in a generic debugfs file and not
in a exclusive wedge component, it would be better to identify wedge in the name
of the function.

Or perhaps we are in a point deserving a xe_wedge component?


> +	struct xe_gt *gt;
> +	int ret;
> +	u8 id;
> +
> +	guard(xe_pm_runtime)(xe);
> +	for_each_gt(gt, xe, id) {
> +		ret = __set_reset_policy(gt, mode);
> +		if (ret) {
> +			if (id > 0) {
> +				xe->wedged.inconsistent_reset = true;
> +				drm_err(&xe->drm, "Inconsistent reset policy state between GTs\n");
> +			}
> +			return ret;
> +		}
> +	}
> +
> +	xe->wedged.inconsistent_reset = false;
> +
> +	return 0;
> +}
> +
> +static bool needs_policy_update(struct xe_device *xe, enum xe_wedged_mode mode)
> +{
> +	if (xe->wedged.inconsistent_reset)
> +		return true;
> +
> +	if (xe->wedged.mode == mode)
> +		return false;
> +
> +	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET ||
> +	    mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
> +		return true;
> +
> +	return false;
> +}
> +
>  static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>  			       size_t size, loff_t *pos)
>  {
>  	struct xe_device *xe = file_inode(f)->i_private;
> -	struct xe_gt *gt;
>  	u32 wedged_mode;
>  	ssize_t ret;
> -	u8 id;
>  
>  	ret = kstrtouint_from_user(ubuf, size, 0, &wedged_mode);
>  	if (ret)
> @@ -271,20 +321,14 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>  	if (ret)
>  		return ret;
>  
> -	if (xe->wedged.mode == wedged_mode)
> -		return size;
> +	if (needs_policy_update(xe, wedged_mode)) {
> +		ret = set_reset_policy(xe, wedged_mode);
> +		if (ret)
> +			return ret;
> +	}
>  
>  	xe->wedged.mode = wedged_mode;
>  
> -	guard(xe_pm_runtime)(xe);
> -	for_each_gt(gt, xe, id) {
> -		ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads);
> -		if (ret) {
> -			xe_gt_err(gt, "Failed to update GuC ADS scheduler policy. GuC may still cause engine reset even with wedged_mode=2\n");
> -			return -EIO;
> -		}
> -	}
> -
>  	return size;
>  }
>  
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 20a847965b20..e41f82518d75 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -626,6 +626,8 @@ struct xe_device {
>  		enum xe_wedged_mode mode;
>  		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
>  		unsigned long method;
> +		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
> +		bool inconsistent_reset;
>  	} wedged;
>  
>  	/** @bo_device: Struct to control async free of BOs */
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
> index e95604416f2d..25ea17a74a64 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
> @@ -983,16 +983,17 @@ static int guc_ads_action_update_policies(struct xe_guc_ads *ads, u32 policy_off
>  /**
>   * xe_guc_ads_scheduler_policy_toggle_reset - Toggle reset policy
>   * @ads: Additional data structures object
> + * @enable_engine_reset: true to enable engine resets, false otherwise
>   *
> - * This function update the GuC's engine reset policy based on wedged.mode.
> + * This function update the GuC's engine reset policy.
>   *
>   * Return: 0 on success, and negative error code otherwise.
>   */
> -int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
> +int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
> +					     bool enable_engine_reset)
>  {
>  	struct guc_policies *policies;
>  	struct xe_guc *guc = ads_to_guc(ads);
> -	struct xe_device *xe = ads_to_xe(ads);
>  	CLASS(xe_guc_buf, buf)(&guc->buf, sizeof(*policies));
>  
>  	if (!xe_guc_buf_is_valid(buf))
> @@ -1004,10 +1005,11 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
>  	policies->dpc_promote_time = ads_blob_read(ads, policies.dpc_promote_time);
>  	policies->max_num_work_items = ads_blob_read(ads, policies.max_num_work_items);
>  	policies->is_valid = 1;
> -	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
> -		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
> -	else
> +
> +	if (enable_engine_reset)
>  		policies->global_flags &= ~GLOBAL_POLICY_DISABLE_ENGINE_RESET;
> +	else
> +		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>  
>  	return guc_ads_action_update_policies(ads, xe_guc_buf_flush(buf));
>  }
> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.h b/drivers/gpu/drm/xe/xe_guc_ads.h
> index 2e6674c760ff..bec404dda56b 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ads.h
> +++ b/drivers/gpu/drm/xe/xe_guc_ads.h
> @@ -6,6 +6,8 @@
>  #ifndef _XE_GUC_ADS_H_
>  #define _XE_GUC_ADS_H_
>  
> +#include <linux/types.h>
> +
>  struct xe_guc_ads;
>  
>  int xe_guc_ads_init(struct xe_guc_ads *ads);
> @@ -13,6 +15,7 @@ int xe_guc_ads_init_post_hwconfig(struct xe_guc_ads *ads);
>  void xe_guc_ads_populate(struct xe_guc_ads *ads);
>  void xe_guc_ads_populate_minimal(struct xe_guc_ads *ads);
>  void xe_guc_ads_populate_post_load(struct xe_guc_ads *ads);
> -int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads);
> +int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
> +                                             bool enable_engine_reset);
>  
>  #endif
> -- 
> 2.40.0
> 

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

* Re: [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change
  2025-12-19 22:01   ` Rodrigo Vivi
@ 2025-12-22 19:26     ` Laguna, Lukasz
  0 siblings, 0 replies; 13+ messages in thread
From: Laguna, Lukasz @ 2025-12-22 19:26 UTC (permalink / raw)
  To: Rodrigo Vivi; +Cc: intel-xe, michal.wajdeczko


On 12/19/2025 23:01, Rodrigo Vivi wrote:
> On Mon, Dec 15, 2025 at 06:46:11PM +0100, Lukasz Laguna wrote:
>> Previously, the driver's internal wedged.mode state was updated without
>> verifying whether the corresponding engine reset policy update in GuC
>> succeeded. This could leave the driver reporting a wedged.mode state
>> that doesn't match the actual reset behavior programmed in GuC.
>>
>> With this change, the reset policy is updated first, and the driver's
>> wedged.mode state is modified only if the policy update succeeds on all
>> available GTs.
>>
>> This patch also introduces two functional improvements:
>>
>>   - The policy is sent to GuC only when a change is required. An update
>>     is needed only when entering or leaving XE_WEDGED_MODE_UPON_ANY_HANG,
>>     because only in that case the reset policy changes. For example,
>>     switching between XE_WEDGED_MODE_UPON_CRITICAL_ERROR and
>>     XE_WEDGED_MODE_NEVER doesn't affect the reset policy, so there is no
>>     need to send the same value to GuC.
>>
>>   - An inconsistent_reset flag is added to track cases where reset policy
>>     update succeeds only on a subset of GTs. If such inconsistency is
>>     detected, future wedged mode configuration will force a retry of the
>>     reset policy update to restore a consistent state across all GTs.
>>
>> Fixes: 6b8ef44cc0a9 ("drm/xe: Introduce the wedged_mode debugfs")
>> Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
>> ---
>> v11:
>>   - add more detailed commit description (Rodrigo).
>> ---
>>   drivers/gpu/drm/xe/xe_debugfs.c      | 70 ++++++++++++++++++++++------
>>   drivers/gpu/drm/xe/xe_device_types.h |  2 +
>>   drivers/gpu/drm/xe/xe_guc_ads.c      | 14 +++---
>>   drivers/gpu/drm/xe/xe_guc_ads.h      |  5 +-
>>   4 files changed, 71 insertions(+), 20 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
>> index 0b65c3940f41..f62174f7035a 100644
>> --- a/drivers/gpu/drm/xe/xe_debugfs.c
>> +++ b/drivers/gpu/drm/xe/xe_debugfs.c
>> @@ -254,14 +254,64 @@ static ssize_t wedged_mode_show(struct file *f, char __user *ubuf,
>>   	return simple_read_from_buffer(ubuf, size, pos, buf, len);
>>   }
>>   
>> +static int __set_reset_policy(struct xe_gt *gt, enum xe_wedged_mode mode)
>> +{
>> +	bool enable_engine_reset;
>> +	int ret;
>> +
>> +	enable_engine_reset = (mode != XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET);
>> +	ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads,
>> +						       enable_engine_reset);
>> +	if (ret)
>> +		xe_gt_err(gt, "Failed to update GuC ADS scheduler policy (%pe)\n", ERR_PTR(ret));
>> +
>> +	return ret;
>> +}
>> +
>> +static int set_reset_policy(struct xe_device *xe, enum xe_wedged_mode mode)
>> +{
> since these new functions are in a generic debugfs file and not
> in a exclusive wedge component, it would be better to identify wedge in the name
> of the function.
>
> Or perhaps we are in a point deserving a xe_wedge component?
>

Good point.
These helpers are currently only needed here, so keeping them local to 
xe_debugfs.c seems to be sufficient for this series. I'll rename them to 
make the wedge context explicit.

A dedicated xe_wedge component might make sense longer-term, but that 
would require a broader refactor and would go beyond the scope of this 
series, which focuses on wedged.mode validation and proper reset policy 
handling.

Thanks,
Lukasz

>> +	struct xe_gt *gt;
>> +	int ret;
>> +	u8 id;
>> +
>> +	guard(xe_pm_runtime)(xe);
>> +	for_each_gt(gt, xe, id) {
>> +		ret = __set_reset_policy(gt, mode);
>> +		if (ret) {
>> +			if (id > 0) {
>> +				xe->wedged.inconsistent_reset = true;
>> +				drm_err(&xe->drm, "Inconsistent reset policy state between GTs\n");
>> +			}
>> +			return ret;
>> +		}
>> +	}
>> +
>> +	xe->wedged.inconsistent_reset = false;
>> +
>> +	return 0;
>> +}
>> +
>> +static bool needs_policy_update(struct xe_device *xe, enum xe_wedged_mode mode)
>> +{
>> +	if (xe->wedged.inconsistent_reset)
>> +		return true;
>> +
>> +	if (xe->wedged.mode == mode)
>> +		return false;
>> +
>> +	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET ||
>> +	    mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
>> +		return true;
>> +
>> +	return false;
>> +}
>> +
>>   static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>>   			       size_t size, loff_t *pos)
>>   {
>>   	struct xe_device *xe = file_inode(f)->i_private;
>> -	struct xe_gt *gt;
>>   	u32 wedged_mode;
>>   	ssize_t ret;
>> -	u8 id;
>>   
>>   	ret = kstrtouint_from_user(ubuf, size, 0, &wedged_mode);
>>   	if (ret)
>> @@ -271,20 +321,14 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf,
>>   	if (ret)
>>   		return ret;
>>   
>> -	if (xe->wedged.mode == wedged_mode)
>> -		return size;
>> +	if (needs_policy_update(xe, wedged_mode)) {
>> +		ret = set_reset_policy(xe, wedged_mode);
>> +		if (ret)
>> +			return ret;
>> +	}
>>   
>>   	xe->wedged.mode = wedged_mode;
>>   
>> -	guard(xe_pm_runtime)(xe);
>> -	for_each_gt(gt, xe, id) {
>> -		ret = xe_guc_ads_scheduler_policy_toggle_reset(&gt->uc.guc.ads);
>> -		if (ret) {
>> -			xe_gt_err(gt, "Failed to update GuC ADS scheduler policy. GuC may still cause engine reset even with wedged_mode=2\n");
>> -			return -EIO;
>> -		}
>> -	}
>> -
>>   	return size;
>>   }
>>   
>> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
>> index 20a847965b20..e41f82518d75 100644
>> --- a/drivers/gpu/drm/xe/xe_device_types.h
>> +++ b/drivers/gpu/drm/xe/xe_device_types.h
>> @@ -626,6 +626,8 @@ struct xe_device {
>>   		enum xe_wedged_mode mode;
>>   		/** @wedged.method: Recovery method to be sent in the drm device wedged uevent */
>>   		unsigned long method;
>> +		/** @wedged.inconsistent_reset: Inconsistent reset policy state between GTs */
>> +		bool inconsistent_reset;
>>   	} wedged;
>>   
>>   	/** @bo_device: Struct to control async free of BOs */
>> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
>> index e95604416f2d..25ea17a74a64 100644
>> --- a/drivers/gpu/drm/xe/xe_guc_ads.c
>> +++ b/drivers/gpu/drm/xe/xe_guc_ads.c
>> @@ -983,16 +983,17 @@ static int guc_ads_action_update_policies(struct xe_guc_ads *ads, u32 policy_off
>>   /**
>>    * xe_guc_ads_scheduler_policy_toggle_reset - Toggle reset policy
>>    * @ads: Additional data structures object
>> + * @enable_engine_reset: true to enable engine resets, false otherwise
>>    *
>> - * This function update the GuC's engine reset policy based on wedged.mode.
>> + * This function update the GuC's engine reset policy.
>>    *
>>    * Return: 0 on success, and negative error code otherwise.
>>    */
>> -int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
>> +int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
>> +					     bool enable_engine_reset)
>>   {
>>   	struct guc_policies *policies;
>>   	struct xe_guc *guc = ads_to_guc(ads);
>> -	struct xe_device *xe = ads_to_xe(ads);
>>   	CLASS(xe_guc_buf, buf)(&guc->buf, sizeof(*policies));
>>   
>>   	if (!xe_guc_buf_is_valid(buf))
>> @@ -1004,10 +1005,11 @@ int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads)
>>   	policies->dpc_promote_time = ads_blob_read(ads, policies.dpc_promote_time);
>>   	policies->max_num_work_items = ads_blob_read(ads, policies.max_num_work_items);
>>   	policies->is_valid = 1;
>> -	if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
>> -		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>> -	else
>> +
>> +	if (enable_engine_reset)
>>   		policies->global_flags &= ~GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>> +	else
>> +		policies->global_flags |= GLOBAL_POLICY_DISABLE_ENGINE_RESET;
>>   
>>   	return guc_ads_action_update_policies(ads, xe_guc_buf_flush(buf));
>>   }
>> diff --git a/drivers/gpu/drm/xe/xe_guc_ads.h b/drivers/gpu/drm/xe/xe_guc_ads.h
>> index 2e6674c760ff..bec404dda56b 100644
>> --- a/drivers/gpu/drm/xe/xe_guc_ads.h
>> +++ b/drivers/gpu/drm/xe/xe_guc_ads.h
>> @@ -6,6 +6,8 @@
>>   #ifndef _XE_GUC_ADS_H_
>>   #define _XE_GUC_ADS_H_
>>   
>> +#include <linux/types.h>
>> +
>>   struct xe_guc_ads;
>>   
>>   int xe_guc_ads_init(struct xe_guc_ads *ads);
>> @@ -13,6 +15,7 @@ int xe_guc_ads_init_post_hwconfig(struct xe_guc_ads *ads);
>>   void xe_guc_ads_populate(struct xe_guc_ads *ads);
>>   void xe_guc_ads_populate_minimal(struct xe_guc_ads *ads);
>>   void xe_guc_ads_populate_post_load(struct xe_guc_ads *ads);
>> -int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads);
>> +int xe_guc_ads_scheduler_policy_toggle_reset(struct xe_guc_ads *ads,
>> +                                             bool enable_engine_reset);
>>   
>>   #endif
>> -- 
>> 2.40.0
>>

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

end of thread, other threads:[~2025-12-22 19:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 17:46 [PATCH v11 0/4] drm/xe: Improve wedged mode handling Lukasz Laguna
2025-12-15 17:46 ` [PATCH v11 1/4] drm/xe: Validate wedged_mode parameter and define enum for modes Lukasz Laguna
2025-12-19 21:56   ` Rodrigo Vivi
2025-12-15 17:46 ` [PATCH v11 2/4] drm/xe: Update wedged.mode only after successful reset policy change Lukasz Laguna
2025-12-19 22:01   ` Rodrigo Vivi
2025-12-22 19:26     ` Laguna, Lukasz
2025-12-15 17:46 ` [PATCH v11 3/4] drm/xe/vf: Disallow setting wedged mode to upon-any-hang Lukasz Laguna
2025-12-15 17:46 ` [PATCH v11 4/4] drm/xe/pf: Allow upon-any-hang wedged mode only in debug config Lukasz Laguna
2025-12-15 20:55 ` ✗ CI.checkpatch: warning for drm/xe: Improve wedged mode handling (rev11) Patchwork
2025-12-15 20:56 ` ✓ CI.KUnit: success " Patchwork
2025-12-15 21:58 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-16  1:37 ` [PATCH v11 0/4] drm/xe: Improve wedged mode handling Matthew Brost
2025-12-16  6:36 ` ✓ Xe.CI.Full: success for drm/xe: Improve wedged mode handling (rev11) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).