From 2492142224e3cc7f83f19cdebdadf5cc54fb2956 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 14 Jun 2017 11:12:59 -0700 Subject: gpu: nvgpu: Increase small page aperture Increase the small page aperture to 56GB to facilitate easier fixed address mapping for userspace (primarily CUDA). Bug 200320732 Change-Id: I1f0aaa4f28c8a294cc880b35f26942b562396b48 Signed-off-by: Sunny He Reviewed-on: https://git-master.nvidia.com/r/1502432 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 93baa943..7b2c0dfc 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h @@ -311,12 +311,12 @@ static inline int bar1_aperture_size_mb_gk20a(void) #define NV_MM_DEFAULT_KERNEL_SIZE (1ULL << 32) /* - * When not using unified address spaces the bottom 16GB of the space are used - * for small pages and the remaining high memory is used for large pages. + * When not using unified address spaces, the bottom 56GB of the space are used + * for small pages, and the remaining high memory is used for large pages. */ static inline u64 __nv_gmmu_va_small_page_limit(void) { - return ((u64)SZ_1G * 16); + return ((u64)SZ_1G * 56); } enum gmmu_pgsz_gk20a __get_pte_size_fixed_map(struct vm_gk20a *vm, -- cgit v1.2.2