Rework amdgpu HW fence refocunt and update scheduler parent fence refcount.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 0 repliesNew
- v15 patches 22 repliesSuperseded
Changes in v2 from the cover letter
Update race preventionby fixing by swithing from amdgpu_irq_get/put to enable/desable_irq (Christian) Drop refcount fix for amdgpu_job->external_hw_fence as it was causing underflow in direct submissions
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/amdgpu: Add put fence in amdgpu_fence_driver_clear_job_fencesdrivers/ | +3 | 0 replies | |
| 2/4 | drm/amdgpu: Prevent race between late signaled fences and GPU reset.drivers/ drivers/ drivers/ | +23 | 0 replies | |
| 3/4 | drm/sched: Partial revert of 'drm/sched: Keep s_fence->parent pointer'drivers/ | +10 | 0 replies | |
| 4/4 | drm/amdgpu: Follow up change to previous drm scheduler change.drivers/ drivers/ drivers/ +1 more | +29 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Christian König | Yiqing Yao |
|---|---|---|
| 1/4 | R-b | |
| 2/4 | ||
| 3/4 | T-b | |
| 4/4 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/4] Rework amdgpu HW fence refocunt and update scheduler parent fence refcount.
Yiqing raised a problem of negative fence refcount for resubmitted jobs in amdgpu and suggested a workaround in [1]. I took a look myself and discovered some deeper problems both in amdgpu and scheduler code.
Yiqing helped with testing the new code and also drew a detailed refcount and flow tracing diagram for parent (HW) fence life cycle and refcount under various cases for the proposed patchset at [2].
v2:
Update race preventionby fixing by swithing from amdgpu_irq_get/put to enable/desable_irq (Christian) Drop refcount fix for amdgpu_job->external_hw_fence as it was causing underflow in direct submissions
TODO - Follow up cleanup to totally get rid of amdgpu_job->external_hw_fence
[1] - https://lore.kernel.org/all/[email protected]/t/#r00c728fcc069b1276642c325bfa9d82bf8fa21a3
[2] - https://drive.google.com/file/d/1yEoeW6OQC9WnwmzFW6NBLhFP_jD0xcHm/view?usp=sharing
Andrey Grodzovsky (4):
drm/amdgpu: Add put fence in amdgpu_fence_driver_clear_job_fences drm/amdgpu: Prevent race between late signaled fences and GPU reset. drm/sched: Partial revert of 'drm/sched: Keep s_fence->parent pointer' drm/amdgpu: Follow up change to previous drm scheduler change.
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 31 +++++++++++++++++----- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 29 ++++++++++++++++++-- drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 4 --- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 + drivers/gpu/drm/scheduler/sched_main.c | 13 ++++++--- 6 files changed, 65 insertions(+), 15 deletions(-)
Signature · 1 line
2.25.1