From: sashiko-bot@kernel.org
To: "Soham Purkait" <soham.purkait@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/xe/ras: Wedge device if page offline list is full at probe
Date: Thu, 26 Nov 2026 10:08:25 +0000 [thread overview]
Message-ID: <sashiko-outbox-235246@kernel.org> (raw)
In-Reply-To: <20261126094140.2102442-6-soham.purkait@intel.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] drm/xe/ras: early xe_wedge_declare() in process_offline_pages()
breaks probe
- [Medium] drm/xe/ras: process_offline_pages() ignores
disable_vram_page_offline
--
commit 111befac525523d3b152a055372e4da13c8a7854
Author: Soham Purkait <soham.purkait@intel.com>
drm/xe/ras: Wedge device if page offline list is full at probe
This commit declares the device wedged during probe if the firmware page
offline list has reached its maximum capacity.
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 53fd6dcf8ee1c..1607550e98893 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -487,6 +487,11 @@ static void process_offline_pages(struct xe_device *xe, u32 cmd, void *req, size
> return;
> }
> } while (common->additional_data);
> +
> + if (!xe_wedged(xe) && list_req && state->max_pages && total_pages >= state->max_pages) {
> + xe_err(xe, "[RAS]: page offline list is full\n");
> + xe_wedge_declare(xe, 0);
> + }
> }
>
> /*
[Severity: High]
Does calling xe_wedge_declare() here during xe_ras_init() cause
xe_device_probe() to fail and drop the wedged uevent instead of keeping
the device bound in a wedged state?
In xe_device_probe(), xe_ras_init() runs before xe_gt_init() and
drm_dev_register(). xe_wedge_declare() sets xe->wedged.perm = 1, so when
xe_gt_init() subsequently runs xe_uc_load_hw() ->
xe_gt_record_default_lrcs(), __guc_ct_send_locked() rejects all CT
messages with -ENOTRECOVERABLE:
drivers/gpu/drm/xe/xe_guc_ct.c:__guc_ct_send_locked() {
...
if (xe_wedged_permanent(ct_to_xe(ct))) {
ret = -ENOTRECOVERABLE;
goto out;
}
emit_wa_job() then times out waiting on the dropped submission and aborts
xe_device_probe(). In addition, xe_wedge_declare() schedules
wedge_work() to emit drm_dev_wedged_event() before drm_dev_register() has
registered dev->primary->kdev, so kobject_uevent_env() drops the wedged
uevent.
[Severity: Medium]
Should this check also verify !xe_ras_get_disable_vram_page_offline(xe)
before wedging the device?
xe_ras_init() reads state->disable_vram_page_offline from configfs before
calling get_offline_list(). When an administrator disables VRAM page
offlining via configfs so errors are only logged and removed from the
firmware queue in handle_page_offline(), process_offline_pages() still
wedges the device at probe if the firmware offline list is already full.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126094140.2102442-4-soham.purkait@intel.com?part=2
prev parent reply other threads:[~2026-11-26 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:41 [PATCH 0/2] Wedge device if page offline list is full Soham Purkait
2026-11-26 9:41 ` [PATCH 1/2] drm/xe/ras: Wedge device if page offline list is full during offlining Soham Purkait
2026-11-26 9:41 ` [PATCH 2/2] drm/xe/ras: Wedge device if page offline list is full at probe Soham Purkait
2026-11-26 10:08 ` sashiko-bot [this message]
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=sashiko-outbox-235246@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=soham.purkait@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