Fix DRM scheduler layering violations in Xe
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v9 Latest posting 2/27 patches 0 repliesNew
- v9 posting 1/22 patches 0 repliesSuperseded
- v82 patches 0 repliesSuperseded
Earlier versions · 7
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 9 patches | 17 replies | Superseded | |
| v6 | 8 patches | 1 reply | Superseded | |
| v5 | 8 patches | 1 reply | Superseded | |
| v4 | 8 patches | 13 replies | Superseded | |
| v3 | 7 patches | 19 replies | Superseded | |
| v2 RFC | 4 patches | 2 replies | Superseded | |
| v1 RFC | 4 patches | 6 replies | Superseded |
Changes in v9 from the cover letter
- CI rerun
Patches in v9 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | drm/xe: Add dedicated message lockdrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 2/7 | drm/xe: Stop abusing DRM scheduler internalsdrivers/ drivers/ drivers/ +3 more | +26 | 0 replies | |
| 3/7 | drm/xe: Only toggle scheduling in TDR if GuC is runningdrivers/ | +2 | 0 replies | |
| 4/7 | drm/xe: Do not deregister queues in TDRdrivers/ | +10 | 0 replies | |
| 5/7 | drm/xe: Remove special casing for LR queues in submissiondrivers/ drivers/ drivers/ | +11 | 0 replies | |
| 6/7 | drm/xe: Disable timestamp WA on VFsdrivers/ | +3 | 0 replies | |
| 7/7 | drm/xe: Avoid toggling schedule state to check LRC timestamp in TDRdrivers/ drivers/ drivers/ +3 more | +78 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Niranjana Vishwanathapura | Philipp Stanner | Umesh Nerlige Ramappa |
|---|---|---|---|
| 1/7 | R-b | A-b | |
| 2/7 | R-b | ||
| 3/7 | R-b | ||
| 4/7 | R-b | ||
| 5/7 | R-b | ||
| 6/7 | R-b | ||
| 7/7 | R-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.
Cover letter [PATCH v9 0/7] Fix DRM scheduler layering violations in Xe
At XDC, we discussed that drivers should avoid accessing DRM scheduler internals, misusing DRM scheduler locks, and adopt a well-defined pending job list iterator. This series proposes the necessary changes to the DRM scheduler to bring Xe in line with that agreement and updates Xe to use the new DRM scheduler API.
While here, cleanup LR queue handling and simplify GuC state machine in Xe too. Also rework LRC timestamp sampling to avoid scheduling toggle.
v2:
- Fix checkpatch / naming issues
v3:
- Only allow pending job list iterator to be called on stopped schedulers
- Cleanup LR queue handling / fix a few misselanous Xe scheduler issues
v4:
- Address Niranjana's feedback
- Add patch to avoid toggling scheduler state in the TDR
v5:
- Rebase
- Fixup LRC timeout check (Umesh)
v6:
- Fix VF bugs (Testing)
v7:
- Disable timestamp WA on VF
v9:
- CI rerun
Matt
Matthew Brost (7):
drm/xe: Add dedicated message lock
drm/xe: Stop abusing DRM scheduler internals
drm/xe: Only toggle scheduling in TDR if GuC is running drm/xe: Do not deregister queues in TDR
drm/xe: Remove special casing for LR queues in submission drm/xe: Disable timestamp WA on VFs
drm/xe: Avoid toggling schedule state to check LRC timestamp in TDR
drivers/gpu/drm/xe/xe_gpu_scheduler.c | 9 +- drivers/gpu/drm/xe/xe_gpu_scheduler.h | 37 +- drivers/gpu/drm/xe/xe_gpu_scheduler_types.h | 2 + drivers/gpu/drm/xe/xe_guc_exec_queue_types.h | 2 - drivers/gpu/drm/xe/xe_guc_submit.c | 366 +++---------------- drivers/gpu/drm/xe/xe_guc_submit_types.h | 11 - drivers/gpu/drm/xe/xe_hw_fence.c | 16 - drivers/gpu/drm/xe/xe_hw_fence.h | 2 - drivers/gpu/drm/xe/xe_lrc.c | 45 ++- drivers/gpu/drm/xe/xe_lrc.h | 3 +- drivers/gpu/drm/xe/xe_ring_ops.c | 25 +- drivers/gpu/drm/xe/xe_sched_job.c | 1 + drivers/gpu/drm/xe/xe_sched_job_types.h | 2 + drivers/gpu/drm/xe/xe_trace.h | 5 - 14 files changed, 128 insertions(+), 398 deletions(-)
Signature · 1 line
2.34.1