Commit 4984fc57 authored by Christian König's avatar Christian König

drm/amdkfd: reserve a fence slot while locking the BO

Looks like the KFD still needs this.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Fixes: 8abc1eb2 ("drm/amdkfd: switch over to using drm_exec v3")
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Acked-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231020123306.43978-1-christian.koenig@amd.com
parent d3df66fd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment