drm/amdgpu: use scheduler dependencies for UVD msgs
authorChristian König <christian.koenig@amd.com>
Thu, 29 Sep 2022 11:57:34 +0000 (13:57 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 3 Nov 2022 11:45:20 +0000 (12:45 +0100)
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
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c

index 8baddf79635b521546ab23e0d382cf8fca9bd79c..e00bb654e24b0c1443a5ccdcdfcb2269078b29fd 100644 (file)
@@ -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;