diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 1e3a36c90d38..75481cf3348f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -1789,9 +1789,11 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev, | |||
1789 | return r; | 1789 | return r; |
1790 | 1790 | ||
1791 | /* Wait for any BO move to be completed */ | 1791 | /* Wait for any BO move to be completed */ |
1792 | r = dma_fence_wait(exclusive, true); | 1792 | if (exclusive) { |
1793 | if (unlikely(r)) | 1793 | r = dma_fence_wait(exclusive, true); |
1794 | return r; | 1794 | if (unlikely(r)) |
1795 | return r; | ||
1796 | } | ||
1795 | 1797 | ||
1796 | params.func = amdgpu_vm_cpu_set_ptes; | 1798 | params.func = amdgpu_vm_cpu_set_ptes; |
1797 | params.pages_addr = pages_addr; | 1799 | params.pages_addr = pages_addr; |