Skip to content

Commit 4984fc5

Browse files
drm/amdkfd: reserve a fence slot while locking the BO
Looks like the KFD still needs this. Signed-off-by: Christian König <christian.koenig@amd.com> Fixes: 8abc1eb ("drm/amdkfd: switch over to using drm_exec v3") Acked-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231020123306.43978-1-christian.koenig@amd.com
1 parent d3df66f commit 4984fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ static int reserve_bo_and_vm(struct kgd_mem *mem,
11031103
if (unlikely(ret))
11041104
goto error;
11051105

1106-
ret = drm_exec_lock_obj(&ctx->exec, &bo->tbo.base);
1106+
ret = drm_exec_prepare_obj(&ctx->exec, &bo->tbo.base, 1);
11071107
drm_exec_retry_on_contention(&ctx->exec);
11081108
if (unlikely(ret))
11091109
goto error;

0 commit comments

Comments
 (0)