* [PATCH 0/2] Wedge device if page offline list is full @ 2026-11-26 9:41 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 0 siblings, 2 replies; 4+ messages in thread From: Soham Purkait @ 2026-11-26 9:41 UTC (permalink / raw) To: intel-xe, riana.tauro, anshuman.gupta, aravind.iddamsetty, badal.nilawar, raag.jadav, rodrigo.vivi Cc: soham.purkait When the firmware's page offline list is full, no more pages can be offlined. Wedge the device with an unknown recovery method in this case, at probe and at runtime. v1: - Refactor subject lines. (Riana) - Split the patch. (Riana) Soham Purkait (2): drm/xe/ras: Wedge device if page offline list is full during offlining drm/xe/ras: Wedge device if page offline list is full at probe drivers/gpu/drm/xe/xe_ras.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.43.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] drm/xe/ras: Wedge device if page offline list is full during offlining 2026-11-26 9:41 [PATCH 0/2] Wedge device if page offline list is full Soham Purkait @ 2026-11-26 9:41 ` 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 1 sibling, 0 replies; 4+ messages in thread From: Soham Purkait @ 2026-11-26 9:41 UTC (permalink / raw) To: intel-xe, riana.tauro, anshuman.gupta, aravind.iddamsetty, badal.nilawar, raag.jadav, rodrigo.vivi Cc: soham.purkait When a page offline request is sent to the firmware, it response with OUT_OF_RESOURCES if its offline list in flash is full and cannot hold any more pages. Wedge the device with an unknown recovery method in this case, as manual intervention is required. Signed-off-by: Soham Purkait <soham.purkait@intel.com> --- v1: - Add consistent dmesg. (Riana) --- drivers/gpu/drm/xe/xe_ras.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c index 0fb891d00b36..53fd6dcf8ee1 100644 --- a/drivers/gpu/drm/xe/xe_ras.c +++ b/drivers/gpu/drm/xe/xe_ras.c @@ -80,6 +80,7 @@ enum xe_ras_response_status { XE_RAS_STATUS_TIMEOUT, XE_RAS_STATUS_HARDWARE_FAILURE, XE_RAS_STATUS_INSUFFICIENT_RESOURCES, + XE_RAS_STATUS_OUT_OF_RESOURCES = 0x9, XE_RAS_STATUS_MAX }; @@ -226,6 +227,7 @@ static int ras_status_to_errno(u32 status) case XE_RAS_STATUS_HARDWARE_FAILURE: return -EIO; case XE_RAS_STATUS_INSUFFICIENT_RESOURCES: + case XE_RAS_STATUS_OUT_OF_RESOURCES: return -ENOSPC; default: return -EPROTO; @@ -299,6 +301,10 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address, if (ret) { xe_log_err(xe, SYSCTRL, ret, "page offline command failed with status %u\n", response.status); + if (response.status == XE_RAS_STATUS_OUT_OF_RESOURCES) { + xe_err(xe, "sysctrl: page offline list is full\n"); + xe_wedge_declare(xe, 0); + } return ret; } -- 2.43.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] drm/xe/ras: Wedge device if page offline list is full at probe 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 ` Soham Purkait 2026-11-26 10:08 ` sashiko-bot 1 sibling, 1 reply; 4+ messages in thread From: Soham Purkait @ 2026-11-26 9:41 UTC (permalink / raw) To: intel-xe, riana.tauro, anshuman.gupta, aravind.iddamsetty, badal.nilawar, raag.jadav, rodrigo.vivi Cc: soham.purkait During probe, the driver reads the permanently offlined pages from the firmware's offline list. If the list has reached its maximum number of entries, the firmware cannot offline any more pages, so further memory errors cannot be contained by page offlining. Wedge the device with an unknown recovery method in this case, as manual intervention is required. Signed-off-by: Soham Purkait <soham.purkait@intel.com> --- v1: - Add consistent dmesg. (Riana) - Get total pages before post processing. (Riana) --- drivers/gpu/drm/xe/xe_ras.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c index 53fd6dcf8ee1..1607550e9889 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); + } } /* -- 2.43.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] drm/xe/ras: Wedge device if page offline list is full at probe 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 0 siblings, 0 replies; 4+ messages in thread From: sashiko-bot @ 2026-11-26 10:08 UTC (permalink / raw) To: Soham Purkait, intel-xe 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-26 10:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox