RFC drm/sched: Avoid memory leaks by canceling job-by-job
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/sched: Avoid memory leaks with cancel_job() callbackdrivers/ include/ | +30 | 5 replies | |
| 2/6 | drm/sched/tests: Implement cancel_job()drivers/ drivers/ | +25 | 0 replies | |
| 3/6 | drm/sched: Warn if pending list is not emptydrivers/ | +3 | 0 replies | |
| 4/6 | drm/nouveau: Make fence container helper usable driver-widedrivers/ drivers/ | +13 | 0 replies | |
| 5/6 | drm/nouveau: Add new callback for scheduler teardowndrivers/ drivers/ drivers/ | +30 | 0 replies | |
| 6/6 | drm/nouveau: Remove waitque for sched teardowndrivers/ drivers/ drivers/ | +14 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Tvrtko Ursulin |
|---|---|
| 1/6 | A-b |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/6] drm/sched: Avoid memory leaks by canceling job-by-job
An alternative version to [1], based on Tvrtko's suggestion from [2].
I tested this for Nouveau. Works.
I'm having, however, bigger problems properly porting the unit tests and have seen various explosions. In the process I noticed that some things in the unit tests aren't right and a bit of a larger rework will be necessary (for example, the timedout job callback must signal the timedout fence, remove it from the list and so on).
Anyways. Please comment on the general idea.
@Tvrtko: As briefly brainstormed about on IRC, if you'd be willing to take care of the unit tests patch, I could remove that one (and, maaaaybe, the warning print patch) from the series and we could merge this RFC's successor version %N once it's ready. What do you think?
P.
[1] https://lore.kernel.org/dri-devel/[email protected]/
[2] https://lore.kernel.org/dri-devel/[email protected]/
Philipp Stanner (6):
drm/sched: Avoid memory leaks with cancel_job() callback drm/sched/tests: Implement cancel_job() drm/sched: Warn if pending list is not empty drm/nouveau: Make fence container helper usable driver-wide drm/nouveau: Add new callback for scheduler teardown drm/nouveau: Remove waitque for sched teardown
drivers/gpu/drm/nouveau/nouveau_fence.c | 35 +++++---- drivers/gpu/drm/nouveau/nouveau_fence.h | 7 ++ drivers/gpu/drm/nouveau/nouveau_sched.c | 35 +++++---- drivers/gpu/drm/nouveau/nouveau_sched.h | 9 +-- drivers/gpu/drm/nouveau/nouveau_uvmm.c | 8 +-- drivers/gpu/drm/scheduler/sched_main.c | 37 ++++++---- .../gpu/drm/scheduler/tests/mock_scheduler.c | 71 +++++++------------ drivers/gpu/drm/scheduler/tests/sched_tests.h | 4 +- include/drm/gpu_scheduler.h | 9 +++ 9 files changed, 115 insertions(+), 100 deletions(-)
Signature · 1 line
2.49.0