diff options
| author | Christian König <[email protected]> | 2016-03-03 09:50:01 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-03-08 16:01:45 +0000 |
| commit | a8bd1bec7c68dd5082012bcdd1d765e65b3ee05c (patch) | |
| tree | ceb9f1aecab8c166b8a228ea4070597e3211c048 /drivers/gpu | |
| parent | drm/amdgpu: Clear HDP_MISC_CNTL.HDP_FLUSH_INVALIDATE_CACHE (diff) | |
| download | kernel-a8bd1bec7c68dd5082012bcdd1d765e65b3ee05c.tar.gz kernel-a8bd1bec7c68dd5082012bcdd1d765e65b3ee05c.zip | |
drm/amdgpu: sync to the active user on reusing a VMID
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index d9dc8bea5e98..364db7c45c67 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -188,6 +188,13 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, if (!is_later && owner == (long)id && pd_addr == id->pd_gpu_addr) { + r = amdgpu_sync_fence(ring->adev, sync, + id->mgr_id->active); + if (r) { + mutex_unlock(&adev->vm_manager.lock); + return r; + } + fence_put(id->mgr_id->active); id->mgr_id->active = fence_get(fence); |
