diff options
author | Christian König <christian.koenig@amd.com> | 2015-07-20 14:09:40 (GMT) |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 20:50:16 (GMT) |
commit | 7f8a5290f5b6c14dd1d295e2508e0dd193a9fda5 (patch) | |
tree | 37e4c06727d2fedee6bf2db35f1f8c77ae2aba08 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | fc8fa5e428ae937f79a36ccbe303fa871ffbbbf7 (diff) | |
download | linux-7f8a5290f5b6c14dd1d295e2508e0dd193a9fda5.tar.xz |
drm/amdgpu: rework vm_grab_id interface
This makes assigning VM IDs independent from the use of VM IDs.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 95d5334..f3ac9d8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c @@ -165,9 +165,7 @@ int amdgpu_ib_schedule(struct amdgpu_device *adev, unsigned num_ibs, if (vm) { /* grab a vm id if necessary */ - struct amdgpu_fence *vm_id_fence = NULL; - vm_id_fence = amdgpu_vm_grab_id(ibs->ring, ibs->vm); - r = amdgpu_sync_fence(adev, &ibs->sync, &vm_id_fence->base); + r = amdgpu_vm_grab_id(ibs->vm, ibs->ring, &ibs->sync); if (r) { amdgpu_ring_unlock_undo(ring); return r; |