Skip to contentSkip to conversation

drm/xe: Don't ask for bug reports on force probed platforms

PATCH New Rodrigo Vivi 1 participant 1 message Oct 16

Subsystems (2)
lore
Share & tools
lore

Rodrigo Vivi

author maintainer
#0 lore raw

PATCH 1/1 drm/xe: Don't ask for bug reports on force probed platforms

Platforms that require force_probe are not yet officially supported, and users enabling them do so at their own risk. Only point to the issue tracker when a device gets wedged on supported platforms.

---
 drivers/gpu/drm/xe/xe_device.c       | 8 +++++---
 drivers/gpu/drm/xe/xe_device_types.h | 2 ++
 drivers/gpu/drm/xe/xe_pci.c          | 1 +
 3 files changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device.c +5 -3
index db0b883322ef..9ae9e5724be8 100644
@@ -1431,9 +1431,11 @@ void xe_device_declare_wedged(struct xe_device *xe)
 
 		xe_log_err_fatal(xe, WEDGED, -EIO, "Device declared wedged!\n");
 		xe_err_once(xe, "IOCTLs and executions are now blocked!\n"
-			    "For recovery procedure, refer to %s\n"
-			    "Please file a _new_ bug report at %s\n",
-			    WEDGED_URL, XE_BUG_URL);
+			    "For recovery procedure, refer to %s\n",
+			    WEDGED_URL);
+		if (!xe->info.require_force_probe)
+			xe_err_once(xe, "Please file a _new_ bug report at %s\n",
+				    XE_BUG_URL);
 	}
 
 	for_each_gt(gt, xe, id)
drivers/gpu/drm/xe/xe_device_types.h +2 -0
index aa3a98ddb457..24cb90c1f3ad 100644
@@ -251,6 +251,8 @@ struct xe_device {
 		 * state the firmware or bootloader left it in.
 		 */
 		u8 probe_display:1;
+		/** @info.require_force_probe: platform requires force_probe */
+		u8 require_force_probe:1;
 		/** @info.skip_guc_pc: Skip GuC based PM feature init */
 		u8 skip_guc_pc:1;
 		/** @info.skip_pcode: skip access to PCODE uC */
drivers/gpu/drm/xe/xe_pci.c +1 -0
index 0c13eb901aa7..99f6c379f334 100644
@@ -824,6 +824,7 @@ static int xe_info_init_early(struct xe_device *xe,
 		desc->has_sriov;
 	xe->info.has_sysctrl = desc->has_sysctrl;
 	xe->info.has_temp_sentinel = desc->has_temp_sentinel;
+	xe->info.require_force_probe = desc->require_force_probe;
 	xe->info.skip_guc_pc = desc->skip_guc_pc;
 	xe->info.skip_pcode = desc->skip_pcode;
 	xe->info.needs_scratch = desc->needs_scratch;
Signature · 1 line
2.55.0