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 6d136b260bb3..7380f782cd14 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
| @@ -476,6 +476,14 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev, | |||
| 476 | if (domain == AMDGPU_GEM_DOMAIN_CPU) | 476 | if (domain == AMDGPU_GEM_DOMAIN_CPU) |
| 477 | goto error_unreserve; | 477 | goto error_unreserve; |
| 478 | } | 478 | } |
| 479 | list_for_each_entry(entry, &duplicates, head) { | ||
| 480 | domain = amdgpu_mem_type_to_domain(entry->bo->mem.mem_type); | ||
| 481 | /* if anything is swapped out don't swap it in here, | ||
| 482 | just abort and wait for the next CS */ | ||
| 483 | if (domain == AMDGPU_GEM_DOMAIN_CPU) | ||
| 484 | goto error_unreserve; | ||
| 485 | } | ||
| 486 | |||
| 479 | r = amdgpu_vm_update_page_directory(adev, bo_va->vm); | 487 | r = amdgpu_vm_update_page_directory(adev, bo_va->vm); |
| 480 | if (r) | 488 | if (r) |
| 481 | goto error_unreserve; | 489 | goto error_unreserve; |
