public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Raag Jadav <raag.jadav@intel.com>
To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: airlied@gmail.com, simona@ffwll.ch, mripard@kernel.org,
	matthew.brost@intel.com, rodrigo.vivi@intel.com,
	riana.tauro@intel.com, christian.koenig@amd.com,
	andrealmeid@igalia.com, Raag Jadav <raag.jadav@intel.com>
Subject: [PATCH v2 3/3] drm/xe: Send 'none' recovery method for XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET
Date: Thu,  5 Mar 2026 18:36:49 +0530	[thread overview]
Message-ID: <20260305130720.3685754-4-raag.jadav@intel.com> (raw)
In-Reply-To: <20260305130720.3685754-1-raag.jadav@intel.com>

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>
---
 drivers/gpu/drm/xe/xe_device.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index c137dc0a1840..eeb626737760 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -1329,8 +1329,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);
 
-- 
2.43.0


  parent reply	other threads:[~2026-03-05 13:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-05 13:06 [PATCH v2 0/3] Update 'none' recovery method for DRM wedged event Raag Jadav
2026-03-05 13:06 ` [PATCH v2 1/3] drm/doc: Update documentation for 'none' recovery method Raag Jadav
2026-03-05 14:16   ` Rodrigo Vivi
2026-03-23 14:13   ` Christian König
2026-03-05 13:06 ` [PATCH v2 2/3] drm: Update log " Raag Jadav
2026-03-23 14:13   ` Christian König
2026-03-05 13:06 ` Raag Jadav [this message]
2026-03-23 14:16   ` [PATCH v2 3/3] drm/xe: Send 'none' recovery method for XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET Christian König
2026-03-06 13:39 ` ✓ CI.KUnit: success for Update 'none' recovery method for DRM wedged event (rev2) Patchwork
2026-03-06 14:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-07 15:31 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-23 17:19   ` Raag Jadav
2026-03-10  7:56 ` [PATCH v2 0/3] Update 'none' recovery method for DRM wedged event Raag Jadav
2026-03-23 14:10   ` Raag Jadav
2026-03-23 14:11     ` Christian König
2026-03-24  2:36       ` Raag Jadav
2026-03-24 13:52         ` Rodrigo Vivi
2026-03-24 14:04           ` Raag Jadav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260305130720.3685754-4-raag.jadav@intel.com \
    --to=raag.jadav@intel.com \
    --cc=airlied@gmail.com \
    --cc=andrealmeid@igalia.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=mripard@kernel.org \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=simona@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox