drm/amdgpu: increase reserved VRAM size to 8MB
authorLikun Gao <Likun.Gao@amd.com>
Wed, 25 Nov 2020 13:03:01 +0000 (21:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 20:58:30 +0000 (15:58 -0500)
4MB reserved VRAM size which used for page tables was not enough for
some condition, increase it to 8MB to reduce page table contention.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index ca2344beed8132f55524daf26385340405fa241b..976a12e5a8b92fcaa1232ae85f9781c1ecb1c462 100644 (file)
@@ -107,7 +107,7 @@ struct amdgpu_bo_list_entry;
 #define AMDGPU_VM_FAULT_STOP_ALWAYS    2
 
 /* Reserve 4MB VRAM for page tables */
-#define AMDGPU_VM_RESERVED_VRAM                (4ULL << 20)
+#define AMDGPU_VM_RESERVED_VRAM                (8ULL << 20)
 
 /* max number of VMHUB */
 #define AMDGPU_MAX_VMHUBS                      3