mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
drm/amdkfd: handle duplicate BOs in reserve_bo_and_cond_vms
From Lang Yu 3194771798ef256af75577a0a8a2e8ce45726c78 in linux-6.6.y/6.6.34 2a705f3e49d20b59cd9e5cc3061b2d92ebe1e5f0 in mainline linux
This commit is contained in:
parent
4c132849be
commit
32069374fc
@ -1135,7 +1135,8 @@ static int reserve_bo_and_cond_vms(struct kgd_mem *mem,
|
||||
int ret;
|
||||
|
||||
ctx->sync = &mem->sync;
|
||||
drm_exec_init(&ctx->exec, DRM_EXEC_INTERRUPTIBLE_WAIT);
|
||||
drm_exec_init(&ctx->exec, DRM_EXEC_INTERRUPTIBLE_WAIT |
|
||||
DRM_EXEC_IGNORE_DUPLICATES);
|
||||
drm_exec_until_all_locked(&ctx->exec) {
|
||||
ctx->n_vms = 0;
|
||||
list_for_each_entry(entry, &mem->attachments, list) {
|
||||
|
Loading…
Reference in New Issue
Block a user