diff options
author | Christian König <christian.koenig@amd.com> | 2020-10-12 13:09:36 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-26 13:27:14 -0400 |
commit | ce9a6cad3e3afea552c191e5c833b56f7b1bb4f0 (patch) | |
tree | 1e2e0368a003046aff02b768f5e6d05a18922166 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | 34c0631bbd9d731d1330b0f3cee2c4bcfb92be5e (diff) | |
download | linux-ce9a6cad3e3afea552c191e5c833b56f7b1bb4f0.tar.gz linux-ce9a6cad3e3afea552c191e5c833b56f7b1bb4f0.tar.bz2 linux-ce9a6cad3e3afea552c191e5c833b56f7b1bb4f0.zip |
drm/amdgpu: increase the reserved VM size to 2MB
Ideally this should be a multiple of the VM block size.
2MB should at least fit for Vega/Navi.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Madhav Chauhan <madhav.chauhan@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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 929d7cb92dc0..496e1ed1577d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h @@ -115,8 +115,8 @@ struct amdgpu_bo_list_entry; #define AMDGPU_MMHUB_0 1 #define AMDGPU_MMHUB_1 2 -/* hardcode that limit for now */ -#define AMDGPU_VA_RESERVED_SIZE (1ULL << 20) +/* Reserve 2MB at top/bottom of address space for kernel use */ +#define AMDGPU_VA_RESERVED_SIZE (2ULL << 20) /* max vmids dedicated for process */ #define AMDGPU_VM_MAX_RESERVED_VMID 1 |