diff options
author | Christian König <christian.koenig@amd.com> | 2017-11-23 06:57:18 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:48:30 -0500 |
commit | f3368128bacece315aa0384b54b7da9e6f0909cd (patch) | |
tree | 7b2654fc54b4847362c5b3281bb7512f155fe73f /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | 341b759e642a847c3a88401db4263dec9f36d552 (diff) |
drm/amdgpu: move validation of the VM size into the VM code
This moves validation of the VM size parameter into amdgpu_vm_adjust_size().
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 54e540d5e8d7..43ea131dd411 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -325,7 +325,8 @@ struct amdgpu_bo_va_mapping *amdgpu_vm_bo_lookup_mapping(struct amdgpu_vm *vm, | |||
325 | void amdgpu_vm_bo_rmv(struct amdgpu_device *adev, | 325 | void amdgpu_vm_bo_rmv(struct amdgpu_device *adev, |
326 | struct amdgpu_bo_va *bo_va); | 326 | struct amdgpu_bo_va *bo_va); |
327 | void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, | 327 | void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, |
328 | uint32_t fragment_size_default, unsigned max_level); | 328 | uint32_t fragment_size_default, unsigned max_level, |
329 | unsigned max_bits); | ||
329 | int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); | 330 | int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); |
330 | bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, | 331 | bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, |
331 | struct amdgpu_job *job); | 332 | struct amdgpu_job *job); |