Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Add support to handle memory double-bit ecc errors
@ 2026-08-25  6:36 Riana Tauro
  2026-08-25  6:36 ` [PATCH 1/5] drm/xe/xe_drm_ras: Rename ras to drm_ras in xe_device Riana Tauro
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Riana Tauro @ 2026-08-25  6:36 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, rodrigo.vivi, aravind.iddamsetty,
	badal.nilawar, raag.jadav, ravi.kishore.koppuravuri,
	mallesh.koujalagi, soham.purkait, tejas.upadhyay,
	himal.prasad.ghimiray

This series introduces the firmware commands required to handle
uncorrectable memory double-bit ecc errors.

When a error is detected, the driver determines whether the affected
page can be offlined and sends an offline/decline request to firmware
via sysctrl interface. Pages belonging to critical Bos or stolen memory
require a Secondary Bus Reset(SBR) to recover.
Pages configured for log-only handling are declined.

For the rest of the valid pages, the first error is a poison error and a
decline is sent to firmware to avoid marking the page as bad. On the
second occurence at the same address, we request the firmware to offline
the page as this would indicate a Double-bit ECC error. Any subsequent
errors at the same address should be because of memory scrubber and a
decline is sent to firmware to remove the page from queue. This is done
by tracking the firmware offlined pages by Xe KMD.

At module load, the driver queries firmware for both the offline list
and the queue and processes them accordingly.

This series is sent as RFC because it depends on the address fault
handling function which is still in review

https://lore.kernel.org/intel-xe/20260818104055.3833974-14-tejas.upadhyay@intel.com/

Riana Tauro (5):
  drm/xe/xe_drm_ras: Rename ras to drm_ras in xe_device
  drm/xe/xe_ras: Handle page offline requests for device memory ECC
    errors
  drm/xe/xe_ras: Add support to query page offline queue and list
  drm/xe/xe_ras: Add function to get maximum pages firmware can store
  drm/xe/xe_ras: Track offlined pages by firmware to avoid duplicates

 drivers/gpu/drm/xe/xe_device.c                |   4 +-
 drivers/gpu/drm/xe/xe_device_types.h          |   6 +-
 drivers/gpu/drm/xe/xe_drm_ras.c               |  12 +-
 drivers/gpu/drm/xe/xe_hw_error.c              |   6 +-
 drivers/gpu/drm/xe/xe_ras.c                   | 269 +++++++++++++++++-
 drivers/gpu/drm/xe/xe_ras.h                   |   3 +-
 drivers/gpu/drm/xe/xe_ras_types.h             |  94 ++++++
 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h |   6 +
 8 files changed, 381 insertions(+), 19 deletions(-)

-- 
2.47.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-08-28 15:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25  6:36 [PATCH 0/5] Add support to handle memory double-bit ecc errors Riana Tauro
2026-08-25  6:36 ` [PATCH 1/5] drm/xe/xe_drm_ras: Rename ras to drm_ras in xe_device Riana Tauro
2026-08-25  6:46   ` sashiko-bot
2026-08-28 15:13   ` Rodrigo Vivi
2026-08-25  6:36 ` [RFC PATCH 2/5] drm/xe/xe_ras: Handle page offline requests for device memory ecc errors Riana Tauro
2026-08-25  6:49   ` sashiko-bot
2026-08-25  6:36 ` [PATCH 3/5] drm/xe/xe_ras: Add support to query page offline queue and list Riana Tauro
2026-08-25  6:50   ` sashiko-bot
2026-08-25  6:36 ` [PATCH 4/5] drm/xe/xe_ras: Add function to get maximum pages firmware can store Riana Tauro
2026-08-25  6:36 ` [PATCH 5/5] drm/xe/xe_ras: Track offlined pages by firmware to avoid duplicates Riana Tauro
2026-08-25  6:52   ` sashiko-bot
2026-08-25  9:19 ` ✓ CI.KUnit: success for Add support to handle memory double-bit ecc errors Patchwork
2026-08-25  9:57 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-25 14:29 ` ✗ Xe.CI.FULL: " Patchwork
2026-08-28 15:15 ` [PATCH 0/5] " Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox