diff options
author | Christian König <christian.koenig@amd.com> | 2017-05-23 12:35:22 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-07-25 16:30:16 -0400 |
commit | 6be7adb37d9bd8af02e53feb72c35e9624165889 (patch) | |
tree | b13029992c662926220fcf863b67fa75e0d45de5 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | 07306b4f5f7a8ba6a9de96420d3524dcc8698b00 (diff) |
drm/amdgpu: increase fragmentation size for Vega10 v2
The fragment bits work differently for Vega10 compared to previous generations.
Increase the fragment size to 2MB for now to better handle that.
v2: handle the hardware setup as well
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-and-tested-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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 3441ec58c823..c4f5d1ff042e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -51,7 +51,9 @@ struct amdgpu_bo_list_entry; | |||
51 | #define AMDGPU_VM_PTB_ALIGN_SIZE 32768 | 51 | #define AMDGPU_VM_PTB_ALIGN_SIZE 32768 |
52 | 52 | ||
53 | /* LOG2 number of continuous pages for the fragment field */ | 53 | /* LOG2 number of continuous pages for the fragment field */ |
54 | #define AMDGPU_LOG2_PAGES_PER_FRAG 4 | 54 | #define AMDGPU_LOG2_PAGES_PER_FRAG(adev) \ |
55 | ((adev)->asic_type < CHIP_VEGA10 ? 4 : \ | ||
56 | (adev)->vm_manager.block_size) | ||
55 | 57 | ||
56 | #define AMDGPU_PTE_VALID (1ULL << 0) | 58 | #define AMDGPU_PTE_VALID (1ULL << 0) |
57 | #define AMDGPU_PTE_SYSTEM (1ULL << 1) | 59 | #define AMDGPU_PTE_SYSTEM (1ULL << 1) |