Have xe_vm and xe_exec_queue take references to xef
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 6 repliesIn review
- v34 patches 0 repliesSuperseded
- v24 patches 9 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 5 patches | 18 replies | Superseded |
v2 from the cover letter
- Include review comments from v1
- Squash patch 3 and 5 from v1 to add Fixes/Closes tags
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/xe: Move part of xe_file cleanup to a helperdrivers/ | +18 | 0 replies | |
| 2/4 | drm/xe: Add ref counting for xe_filedrivers/ drivers/ drivers/ | +37 | 0 replies | |
| 3/4 | drm/xe: Take a ref to xe file when user creates a VMdrivers/ | +5 | 0 replies | |
| 4/4 | drm/xe: Fix use after free when client stats are captureddrivers/ drivers/ drivers/ | +13 | 3 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost | Lucas De Marchi |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | |
| 3/4 | R-b | R-b |
| 4/4 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/4] Have xe_vm and xe_exec_queue take references to xef
Just posting the revision that will be pushed for reference. This rev only has documentation changes compared to v2, so will not run CI on this.
-----xe_file_close triggers an asynchronous queue cleanup and then frees up the xef object. Since queue cleanup flushes all pending jobs and the KMD stores client usage stats into the xef object after jobs are flushed, we see a use-after-free for the xef object. Resolve this by taking a reference to xef from xe_exec_queue.
Issue: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1908
The series adds xef refcounting and ensures all consumers of xef take a ref to it.
v2:
- Include review comments from v1
- Squash patch 3 and 5 from v1 to add Fixes/Closes tags
v3:
- kernel-doc fixes (Lucas, Matt)
v4: Rebase to drm-tip
Note: Patches 1 - 3 can be merged independently
Umesh Nerlige Ramappa (4):
drm/xe: Move part of xe_file cleanup to a helper drm/xe: Add ref counting for xe_file
drm/xe: Take a ref to xe file when user creates a VM drm/xe: Fix use after free when client stats are captured
drivers/gpu/drm/xe/xe_device.c | 58 +++++++++++++++++++----- drivers/gpu/drm/xe/xe_device.h | 3 ++ drivers/gpu/drm/xe/xe_device_types.h | 3 ++ drivers/gpu/drm/xe/xe_drm_client.c | 5 +- drivers/gpu/drm/xe/xe_exec_queue.c | 10 +++- drivers/gpu/drm/xe/xe_exec_queue_types.h | 7 ++- drivers/gpu/drm/xe/xe_vm.c | 6 ++- 7 files changed, 71 insertions(+), 21 deletions(-)
Signature · 1 line
2.38.1