Skip to content

Attempt to fixup reset, wedge, unload corner cases

Zhanjun Dong intel-xe stable 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest7 patches 7 repliesIn review
  2. v87 patches 2 repliesSuperseded
  3. v77 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v66 patches0 repliesSuperseded
v56 patches0 repliesSuperseded
v45 patches4 repliesSuperseded
v36 patches7 repliesSuperseded

Changes in v9 from the cover letter

- Limit 1 author per patch to avoid confusion in git bisect

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/xe: Always kill exec queues in xe_guc_submit_pause_abortdrivers/gpu/drm/xe/xe_guc_submit.c+1 -20 replies
2/7drm/xe: Forcefully tear down exec queues in GuC submit finidrivers/gpu/drm/xe/xe_guc.c drivers/gpu/drm/xe/xe_guc.h drivers/gpu/drm/xe/xe_guc_submit.c+63 -123 replies
3/7drm/xe: Trigger queue cleanup if not in wedged mode 2drivers/gpu/drm/xe/xe_guc_submit.c+22 -133 replies
4/7drm/xe: Use XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET enum instead of magic numberdrivers/gpu/drm/xe/xe_guc_submit.c+4 -30 replies
5/7drm/xe/guc: Ensure CT state transitions via STOP before DISABLEDdrivers/gpu/drm/xe/xe_guc_ct.c+1 -00 replies
6/7drm/xe/uc: Drop xe_guc_sanitize in favor of managed cleanupdrivers/gpu/drm/xe/xe_uc.c+7 -151 reply
7/7drm/xe: Open-code GGTT MMIO access protectiondrivers/gpu/drm/xe/xe_ggtt.c+9 -60 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchStuart SummersMatthew BrostZhanjun Dong
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v9 thread

Cover letter [PATCH v9 0/7] Attempt to fixup reset, wedge, unload corner cases

We have several bug reports [1], [2], [3] describing failures in reset, wedge, and unload corner cases where memory is not properly freed or fences fail to signal. This patch attempts to address the issue by forcefully killing any remaining queues on driver unload and wedging the device if not in mode 2.

Zhanjun Dong

[1] https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5466
[2] https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5530
[3] https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/6029

---
History started from v2 (v1 not found):
v9:
- Limit 1 author per patch to avoid confusion in git bisect
v8:
- Bug fix for Assertion xe_guc_read_stopped(guc) == 1 failed
- Add kernel-doc (Michal)
- Rename function __xe_guc_submit_reset_prepare (Michal)
- Remove empty errout: block, change goto to return (Michal)
v7:
- Add "Open-code GGTT MMIO access protection" and rebase with baseline changes
v6:
- Split guc_submit_fini into 2 parts, device related by devm and software only part by drmm
v5:
- Removed redundant xe_guc_ct_stop() and __xe_guc_submit_reset_prepare() calls (Michal and Matthew)
- Split patch 3 into 2 patches(new #3 and #4), #3 is for fixes old patch purpose, #4 add as separate commit uses the enum for better code maintainability (Matthew)
v4:
- Make guc_submit_fini a devm managed action
- Squash patch 2 with 6 from v3
- Commit message update (Matthew)
v3:
- Add patch 3-6 in series
- For "Trigger queue cleanup if not in wedged mode 2":
Add guc_ct_stop and reset prepare in patch of:
Sync with baseline changes

Matthew Brost (2):
drm/xe: Always kill exec queues in xe_guc_submit_pause_abort drm/xe: Open-code GGTT MMIO access protection

Zhanjun Dong (5):
drm/xe: Forcefully tear down exec queues in GuC submit fini drm/xe: Trigger queue cleanup if not in wedged mode 2 drm/xe: Use XE_WEDGED_MODE_UPON_ANY_HANG_NO_RESET enum instead of
magic number
drm/xe/guc: Ensure CT state transitions via STOP before DISABLED drm/xe/uc: Drop xe_guc_sanitize in favor of managed cleanup

 drivers/gpu/drm/xe/xe_ggtt.c       | 15 +++---
 drivers/gpu/drm/xe/xe_guc.c        | 26 ++++++++-
 drivers/gpu/drm/xe/xe_guc.h        |  1 +
 drivers/gpu/drm/xe/xe_guc_ct.c     |  1 +
 drivers/gpu/drm/xe/xe_guc_submit.c | 87 +++++++++++++++++++++---------
 drivers/gpu/drm/xe/xe_uc.c         | 22 +++-----
 6 files changed, 104 insertions(+), 48 deletions(-)
Signature · 1 line
2.34.1