Skip to content

Commit d1628cd

Browse files
ChristianKoenigAMDgregkh
authored andcommitted
drm/amdgpu: increase the reserved VM size to 2MB
commit 55bb919 upstream. 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> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent adff3a8 commit d1628cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ struct amdgpu_bo_list_entry;
105105
#define AMDGPU_MMHUB_0 1
106106
#define AMDGPU_MMHUB_1 2
107107

108-
/* hardcode that limit for now */
109-
#define AMDGPU_VA_RESERVED_SIZE (1ULL << 20)
108+
/* Reserve 2MB at top/bottom of address space for kernel use */
109+
#define AMDGPU_VA_RESERVED_SIZE (2ULL << 20)
110110

111111
/* max vmids dedicated for process */
112112
#define AMDGPU_VM_MAX_RESERVED_VMID 1

0 commit comments

Comments
 (0)