Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Send 'none' recovery method for XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET

XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging hangs,
so wedge the device with 'none' recovery method and have it available
to the user for debugging.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260305130720.3685754-4-raag.jadav@intel.com

authored by

Raag Jadav and committed by
Matthew Brost
f3014d7f 9810e23b

+8 -1
+8 -1
drivers/gpu/drm/xe/xe_device.c
··· 1318 1318 xe_gt_declare_wedged(gt); 1319 1319 1320 1320 if (xe_device_wedged(xe)) { 1321 + /* 1322 + * XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging 1323 + * hangs, so wedge the device with 'none' recovery method and have 1324 + * it available to the user for debugging. 1325 + */ 1326 + if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET) 1327 + xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_NONE); 1321 1328 /* If no wedge recovery method is set, use default */ 1322 - if (!xe->wedged.method) 1329 + else if (!xe->wedged.method) 1323 1330 xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_REBIND | 1324 1331 DRM_WEDGE_RECOVERY_BUS_RESET); 1325 1332