Skip to content

drm/xe/vram: decay-based reinstatement of soft-offlined VRAM pages

Tejas Upadhyay intel-xe 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 0 repliesNew
  2. v23 patches 7 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe/vram: add decay-based reinstatement of soft-offlined VRAM pagesdrivers/gpu/drm/xe/xe_configfs.c drivers/gpu/drm/xe/xe_configfs.h drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +1 more+150 -20 replies
2/3drm/xe/vram: don't let firmware-confirmed permanent bad pages decay back indrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_ras.c drivers/gpu/drm/xe/xe_ttm_vram_mgr.c +1 more+22 -90 replies
3/3drm/xe/vram: stop decay worker from rescheduling itself foreverdrivers/gpu/drm/xe/xe_ttm_vram_mgr.c+10 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH V3 0/3] drm/xe/vram: decay-based reinstatement of soft-offlined VRAM pages

The existing bad-page flow soft-offlines a VRAM page on the first HW report and promotes it to a permanent (hard) retirement on the second report at the same address. Once soft-offlined, a page stays reserved forever, which over-punishes a single transient DBE caused by a one-off environmental disturbance -- the page remains unusable until the next reboot/probe even if it never faults again.

This series adds a per-VRAM-manager decay timer so a SOFT-offlined page is automatically reinstated after a configurable window (default 24h) of no further reports at that address, configurable via configfs (bad_page_decay_secs, 0 disables). HARD-offlined pages -- i.e. pages that have faulted a second time, or that are reloaded from firmware's non-volatile permanent list at probe -- are never eligible for decay and remain permanently retired, as before.

Patch 1 introduces the core feature. Patches 2 and 3 are fixes for two issues found during internal review before this series was ever posted:

- Patch 2 : Pages reloaded from firmware's permanent list at boot were being created as SOFT instead of HARD, making already-confirmed-bad memory silently eligible for reinstatement once the decay window elapsed.

- Patch 3 : The decay GC worker rescheduled itself unconditionally, so once started it never went idle even after every tracked page had decayed away or been promoted to HARD.

IGT coverage:
https://patchwork.freedesktop.org/patch/765064/

Tejas Upadhyay (3):
drm/xe/vram: add decay-based reinstatement of soft-offlined VRAM pages drm/xe/vram: don't let firmware-confirmed permanent bad pages decay
back in
drm/xe/vram: stop decay worker from rescheduling itself forever

 drivers/gpu/drm/xe/xe_configfs.c           |  55 +++++++++++
 drivers/gpu/drm/xe/xe_configfs.h           |   1 +
 drivers/gpu/drm/xe/xe_debugfs.c            |   2 +-
 drivers/gpu/drm/xe/xe_ras.c                |   7 +-
 drivers/gpu/drm/xe/xe_ttm_vram_mgr.c       | 101 +++++++++++++++++++--
 drivers/gpu/drm/xe/xe_ttm_vram_mgr.h       |   2 +-
 drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h |  16 ++++
 7 files changed, 175 insertions(+), 9 deletions(-)
Signature · 1 line
2.52.0