mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
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
This commit is contained in:
parent
9810e23b7a
commit
f3014d7f65
|
|
@ -1318,8 +1318,15 @@ void xe_device_declare_wedged(struct xe_device *xe)
|
|||
xe_gt_declare_wedged(gt);
|
||||
|
||||
if (xe_device_wedged(xe)) {
|
||||
/*
|
||||
* XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET is intended for debugging
|
||||
* hangs, so wedge the device with 'none' recovery method and have
|
||||
* it available to the user for debugging.
|
||||
*/
|
||||
if (xe->wedged.mode == XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET)
|
||||
xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_NONE);
|
||||
/* If no wedge recovery method is set, use default */
|
||||
if (!xe->wedged.method)
|
||||
else if (!xe->wedged.method)
|
||||
xe_device_set_wedged_method(xe, DRM_WEDGE_RECOVERY_REBIND |
|
||||
DRM_WEDGE_RECOVERY_BUS_RESET);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user