]> Git Repo - linux.git/commitdiff
drm/amdkfd: reserve a fence slot while locking the BO
authorChristian König <[email protected]>
Fri, 20 Oct 2023 12:28:56 +0000 (14:28 +0200)
committerChristian König <[email protected]>
Mon, 23 Oct 2023 12:48:47 +0000 (14:48 +0200)
Looks like the KFD still needs this.

Signed-off-by: Christian König <[email protected]>
Fixes: 8abc1eb2987a ("drm/amdkfd: switch over to using drm_exec v3")
Acked-by: Alex Deucher <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 7d6daf8d2bfaf8c19695304f2150bffc80d45b65..e036011137aa220f3078d8aea82f0c10684b2dbb 100644 (file)
@@ -1103,7 +1103,7 @@ static int reserve_bo_and_vm(struct kgd_mem *mem,
                if (unlikely(ret))
                        goto error;
 
-               ret = drm_exec_lock_obj(&ctx->exec, &bo->tbo.base);
+               ret = drm_exec_prepare_obj(&ctx->exec, &bo->tbo.base, 1);
                drm_exec_retry_on_contention(&ctx->exec);
                if (unlikely(ret))
                        goto error;
This page took 0.061338 seconds and 4 git commands to generate.