diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index f6ea4b43a60c..9c253c535d26 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -477,6 +477,14 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev, | |||
477 | if (domain == AMDGPU_GEM_DOMAIN_CPU) | 477 | if (domain == AMDGPU_GEM_DOMAIN_CPU) |
478 | goto error_unreserve; | 478 | goto error_unreserve; |
479 | } | 479 | } |
480 | list_for_each_entry(entry, &duplicates, head) { | ||
481 | domain = amdgpu_mem_type_to_domain(entry->bo->mem.mem_type); | ||
482 | /* if anything is swapped out don't swap it in here, | ||
483 | just abort and wait for the next CS */ | ||
484 | if (domain == AMDGPU_GEM_DOMAIN_CPU) | ||
485 | goto error_unreserve; | ||
486 | } | ||
487 | |||
480 | r = amdgpu_vm_update_page_directory(adev, bo_va->vm); | 488 | r = amdgpu_vm_update_page_directory(adev, bo_va->vm); |
481 | if (r) | 489 | if (r) |
482 | goto error_unreserve; | 490 | goto error_unreserve; |