[PATCH 09/13] drm/amdgpu: use scheduler depenencies for UVD msgs
Luben Tuikov
luben.tuikov at amd.com
Mon Oct 24 05:53:39 UTC 2022
Title: "dependencies".
Regards,
Luben
On 2022-10-14 04:46, Christian König wrote:
> Instead of putting that into the job sync object.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 6 +++---
> 1 file 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;
>
More information about the dri-devel
mailing list