Skip to content

drm/panthor: Scheduler fixes for termination failure and timeouts

Boris Brezillon dri-devel 3 versions – Applied

Status from this message: Queued to drm-misc-next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 1 replyApplied
  2. v72 patches 7 repliesSuperseded
  3. v62 patches 1 replySuperseded

Changes in v8 from the cover letter

- Don't touch drm_gpu_scheduler::timeout

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/2drm/panthor: Make the timeout per-queue instead of per-jobdrivers/gpu/drm/panthor/panthor_sched.c+201 -800 replies
2/2drm/panthor: Reset queue slots if termination failsdrivers/gpu/drm/panthor/panthor_sched.c+12 -20 replies

Reviews trailers per patch

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

PatchSteven PriceLiviu DudauAdrián Larumbe
1/2R-b R-b R-b
2/2R-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 v8 thread

Cover letter [PATCH v8 0/2] drm/panthor: Scheduler fixes for termination failure and timeouts

This patch series includes previously attempted patches to fix panthor scheduler issues with spurious timeouts and issues when a termination failed which would lead to a race condition.

Timeout recovery has been tested with some IGT tests issuing jobs with infinite loops [1]. It's certainly not enough to claim that everything works as it should, but that's still more testing than we had so far ;-).

[1]https://gitlab.freedesktop.org/bbrezillon/igt-gpu-tools/-/commit/15c3ee220808a437a76638bd21fedfb4498a434f

Changes in v8:
- Don't touch drm_gpu_scheduler::timeout

Changes in v7:
- Add Steve's R-b
- Use the local group variable when we can

Changes in v6:
- Re-order changes
- Dropped the Fixes tag on one patch
- Cover UAF situation when the timeout work is pending/running at group destruction time
Changes in v5:
- Swiched to a patch series to make sure the patch which addresses the bug is added as a requirement on the scheduler patch.
Changes in v4:
- Moved code related to a timeout bug to a separate patch as this was not relevant to this change.
Changes in v3:
- Moved to a patch series to make sure this bug fix happens before the changes to the scheduler
Changes in v2:
- Fixed syntax error

Ashley Smith (2):
drm/panthor: Make the timeout per-queue instead of per-job drm/panthor: Reset queue slots if termination fails

 drivers/gpu/drm/panthor/panthor_sched.c | 295 +++++++++++++++++-------
 1 file changed, 213 insertions(+), 82 deletions(-)
Signature · 1 line
2.51.1