diff options
| author | Dave Airlie <[email protected]> | 2022-11-25 00:55:23 +0000 |
|---|---|---|
| committer | Dave Airlie <[email protected]> | 2022-11-25 00:55:23 +0000 |
| commit | e57702069b26b8601a33fdc0c9bbe40c6bb9c72f (patch) | |
| tree | 7f84041e91046cdc8cb6d1328322d5cbb4e33965 /drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |
| parent | Merge tag 'drm-intel-fixes-2022-11-24' of git://anongit.freedesktop.org/drm/d... (diff) | |
| parent | drm/amdgpu/vcn: re-use original vcn0 doorbell value (diff) | |
| download | kernel-e57702069b26b8601a33fdc0c9bbe40c6bb9c72f.tar.gz kernel-e57702069b26b8601a33fdc0c9bbe40c6bb9c72f.zip | |
Merge tag 'amd-drm-fixes-6.1-2022-11-23' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.1-2022-11-23:
amdgpu:
- DCN 3.1.4 fixes
- DP MST DSC deadlock fixes
- HMM userptr fixes
- Fix Aldebaran CU occupancy reporting
- GFX11 fixes
- PSP suspend/resume fix
- DCE12 KASAN fix
- DCN 3.2.x fixes
- Rotated cursor fix
- SMU 13.x fix
- DELL platform suspend/resume fixes
- VCN4 SR-IOV fix
- Display regression fix for polled connectors
Signed-off-by: Dave Airlie <[email protected]>
From: Alex Deucher <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_job.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index abb99cff8b4b..adac650cf544 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c @@ -169,7 +169,11 @@ static void amdgpu_job_free_cb(struct drm_sched_job *s_job) amdgpu_sync_free(&job->sync); amdgpu_sync_free(&job->sched_sync); - dma_fence_put(&job->hw_fence); + /* only put the hw fence if has embedded fence */ + if (!job->hw_fence.ops) + kfree(job); + else + dma_fence_put(&job->hw_fence); } void amdgpu_job_set_gang_leader(struct amdgpu_job *job, |
