diff options
author | Dave Airlie <airlied@redhat.com> | 2015-12-23 17:08:47 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-12-23 17:08:47 -0500 |
commit | 20f8e032e6dc7053ab803f488e2a8839cd2f69a6 (patch) | |
tree | 406b662934bffa205d90e9435bf96af7dc1a0cb0 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | ade1ba7346070709856d7e38f8d1a77b7aa710aa (diff) | |
parent | 5b726e06d6e8309e5c9ef4109a32caf27c71dfc8 (diff) |
Backmerge drm-fixes merge into Linus's tree into drm-next.
This merges '5b726e06d6e8309e5c9ef4109a32caf27c71dfc8' into drm-next
Just to resolve some merges to make Daniel's life easier.
Signed-off-by: DAve Airlie <airlied@redhat.com>
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; |