diff options
author | Christian König <christian.koenig@amd.com> | 2017-11-04 11:51:44 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 12:47:21 -0500 |
commit | fdd5faaa08f891153ac4fd8cedace6d95bed0968 (patch) | |
tree | b342a5442fab53bd1b44366d070932fca7e13f1d /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | c47b41a79ab5e8faec9aea6c4a06c4d1e4d1132f (diff) |
drm/amdgpu: cleanup vm_size handling
It's pointless to have the same value twice, just always use max_pfn.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index bae77353447b..e8f8896d18db 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -221,7 +221,6 @@ struct amdgpu_vm_manager { | |||
221 | 221 | ||
222 | uint64_t max_pfn; | 222 | uint64_t max_pfn; |
223 | uint32_t num_level; | 223 | uint32_t num_level; |
224 | uint64_t vm_size; | ||
225 | uint32_t block_size; | 224 | uint32_t block_size; |
226 | uint32_t fragment_size; | 225 | uint32_t fragment_size; |
227 | /* vram base address for page table entry */ | 226 | /* vram base address for page table entry */ |
@@ -313,9 +312,9 @@ struct amdgpu_bo_va_mapping *amdgpu_vm_bo_lookup_mapping(struct amdgpu_vm *vm, | |||
313 | void amdgpu_vm_bo_rmv(struct amdgpu_device *adev, | 312 | void amdgpu_vm_bo_rmv(struct amdgpu_device *adev, |
314 | struct amdgpu_bo_va *bo_va); | 313 | struct amdgpu_bo_va *bo_va); |
315 | void amdgpu_vm_set_fragment_size(struct amdgpu_device *adev, | 314 | void amdgpu_vm_set_fragment_size(struct amdgpu_device *adev, |
316 | uint32_t fragment_size_default); | 315 | uint32_t fragment_size_default); |
317 | void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint64_t vm_size, | 316 | void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t vm_size, |
318 | uint32_t fragment_size_default); | 317 | uint32_t fragment_size_default); |
319 | int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); | 318 | int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); |
320 | bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, | 319 | bool amdgpu_vm_need_pipeline_sync(struct amdgpu_ring *ring, |
321 | struct amdgpu_job *job); | 320 | struct amdgpu_job *job); |