diff options
author | Christian König <christian.koenig@amd.com> | 2015-07-20 16:09:40 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:16 -0400 |
commit | 7f8a5290f5b6c14dd1d295e2508e0dd193a9fda5 (patch) | |
tree | 37e4c06727d2fedee6bf2db35f1f8c77ae2aba08 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | fc8fa5e428ae937f79a36ccbe303fa871ffbbbf7 (diff) | |
download | lwn-7f8a5290f5b6c14dd1d295e2508e0dd193a9fda5.tar.gz lwn-7f8a5290f5b6c14dd1d295e2508e0dd193a9fda5.zip |
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.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 4e8124749f9f..9f47b3e013c7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -2294,8 +2294,8 @@ void amdgpu_vm_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm); struct amdgpu_bo_list_entry *amdgpu_vm_get_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm, struct list_head *head); -struct amdgpu_fence *amdgpu_vm_grab_id(struct amdgpu_ring *ring, - struct amdgpu_vm *vm); +int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, + struct amdgpu_sync *sync); void amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_vm *vm, struct amdgpu_fence *updates); |