From: "Yadav, Arvind" <arvind.yadav@intel.com>
To: Andi Shyti <andi.shyti@kernel.org>
Cc: <intel-xe@lists.freedesktop.org>,
<dri-devel@lists.freedesktop.org>, <matthew.brost@intel.com>,
<himal.prasad.ghimiray@intel.com>,
<thomas.hellstrom@linux.intel.com>, <rodrigo.vivi@intel.com>
Subject: Re: [PATCH 02/13] drm/xe: Separate AER reset state from device wedging
Date: Fri, 28 Aug 2026 09:02:03 +0530 [thread overview]
Message-ID: <8dd64ccb-2040-4831-a082-f9f7faa767dd@intel.com> (raw)
In-Reply-To: <apCiNlVXlZnhxeNE@zenone.zhora.eu>
On 28-08-2026 03:25, Andi Shyti wrote:
> Hi Arvind,
>
>> @@ -1062,7 +1062,7 @@ static int __guc_ct_send_locked(struct xe_guc_ct *ct, const u32 *action,
>> xe_gt_assert(gt, g2h_len || !num_g2h);
>> lockdep_assert_held(&ct->lock);
>>
>> - if (xe_device_wedged(ct_to_xe(ct))) {
>> + if (xe_device_io_blocked(ct_to_xe(ct))) {
>> ret = -ENOTRECOVERABLE;
>> goto out;
>> }
> There is another place in this function where xe_device_wedged is
> used.
Thanks for the review.
The later xe_device_wedged() check is intentional, as it determines the
error returned to the caller. A permanent device wedge should return
-ENOTRECOVERABLE, whereas a request canceled during AER recovery should
return -ECANCELED.
For that reason, this check should remain as xe_device_wedged().
>
> ...
>
>> @@ -20,14 +19,15 @@ static void prepare_device_for_reset(struct pci_dev *pdev)
>> struct xe_gt *gt;
>> u8 id;
>>
>> +
> Please remove this blank line.
Noted.
Thankyou,
Arvind
>
> Thanks,
> Andi
>
>> /*
>> - * Wedge the device to prevent userspace access but do not send the uevent.
>> - * xe_device_wedged_fini() releases runtime pm if wedged flag is set, so acquire a runtime
>> - * pm reference to avoid underflow.
>> + * Block device access while PCI error recovery is in progress.
>> + *
>> + * The old runtime PM reference balanced xe_device_wedged_fini() while
next prev parent reply other threads:[~2026-08-28 3:32 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 10:17 [PATCH 00/13] drm/xe: Isolate wedged devices from hardware access Arvind Yadav
2026-08-27 10:17 ` [PATCH 01/13] drm/xe/irq: Always free requested IRQs on uninstall Arvind Yadav
2026-08-27 10:39 ` Ghimiray, Himal Prasad
2026-08-27 10:17 ` [PATCH 02/13] drm/xe: Separate AER reset state from device wedging Arvind Yadav
2026-08-27 10:36 ` sashiko-bot
2026-08-27 21:55 ` Andi Shyti
2026-08-28 3:32 ` Yadav, Arvind [this message]
2026-08-28 11:36 ` [PATCH 2/13] " Raag Jadav
2026-08-27 10:17 ` [PATCH 03/13] drm/xe: Drop queued page faults when device I/O is blocked Arvind Yadav
2026-08-27 10:17 ` [PATCH 04/13] drm/xe: Stop VM work " Arvind Yadav
2026-08-27 10:17 ` [PATCH 05/13] drm/xe: Send wedged notification from a worker Arvind Yadav
2026-08-27 22:12 ` Andi Shyti
2026-08-28 3:39 ` Yadav, Arvind
2026-08-27 10:17 ` [PATCH 06/13] drm/xe: Reuse one dummy page per BO after wedge Arvind Yadav
2026-08-27 10:30 ` sashiko-bot
2026-08-27 10:17 ` [PATCH 07/13] drm/xe: Invalidate existing VRAM mappings on wedge Arvind Yadav
2026-08-27 10:17 ` [PATCH 08/13] drm/xe/irq: Serialize IRQ suspend and resume Arvind Yadav
2026-08-27 10:17 ` [PATCH 09/13] drm/xe: Isolate a wedged device before notifying userspace Arvind Yadav
2026-08-27 10:35 ` sashiko-bot
2026-08-27 10:17 ` [PATCH 10/13] drm/xe/ttm: Reject VRAM allocations on wedged devices Arvind Yadav
2026-08-27 10:17 ` [PATCH 11/13] drm/xe/guc: Skip timeout recovery on a wedged device Arvind Yadav
2026-08-27 10:18 ` [PATCH 12/13] drm/xe: Skip PM notifier preparation for wedged devices Arvind Yadav
2026-08-27 10:18 ` [PATCH 13/13] drm/xe: Block BO VM access when device I/O is unavailable Arvind Yadav
2026-08-27 10:30 ` sashiko-bot
2026-08-27 10:24 ` ✗ CI.checkpatch: warning for drm/xe: Isolate wedged devices from hardware access Patchwork
2026-08-27 10:26 ` ✓ CI.KUnit: success " Patchwork
2026-08-27 11:03 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-27 12:16 ` ✓ Xe.CI.FULL: " Patchwork
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=8dd64ccb-2040-4831-a082-f9f7faa767dd@intel.com \
--to=arvind.yadav@intel.com \
--cc=andi.shyti@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=thomas.hellstrom@linux.intel.com \
/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