diff options
author | Christian König <christian.koenig@amd.com> | 2022-09-29 13:57:34 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-11-03 12:45:20 +0100 |
commit | 46e0270c71d33e9764dd5c69bfbca7b581cec1c7 (patch) | |
tree | 1cd50abd061e872b28441b317d241da9a60c2cad /drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |
parent | drm/amdgpu: use scheduler dependencies for VM updates (diff) | |
download | linux-46e0270c71d33e9764dd5c69bfbca7b581cec1c7.tar.xz linux-46e0270c71d33e9764dd5c69bfbca7b581cec1c7.zip |
drm/amdgpu: use scheduler dependencies for UVD msgs
Instead of putting that into the job sync object.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-10-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 8baddf79635b..e00bb654e24b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c @@ -1177,9 +1177,9 @@ static int amdgpu_uvd_send_msg(struct amdgpu_ring *ring, struct amdgpu_bo *bo, if (r) goto err_free; } else { - r = amdgpu_sync_resv(adev, &job->sync, bo->tbo.base.resv, - AMDGPU_SYNC_ALWAYS, - AMDGPU_FENCE_OWNER_UNDEFINED); + r = drm_sched_job_add_resv_dependencies(&job->base, + bo->tbo.base.resv, + DMA_RESV_USAGE_KERNEL); if (r) goto err_free; |