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 <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1502432
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Alex Waterman
2017-06-14 11:12:59 -07:00
committed by mobile promotions
parent 1da69dd8b2
commit 2492142224

View File

@@ -311,12 +311,12 @@ static inline int bar1_aperture_size_mb_gk20a(void)
#define NV_MM_DEFAULT_KERNEL_SIZE (1ULL << 32) #define NV_MM_DEFAULT_KERNEL_SIZE (1ULL << 32)
/* /*
* When not using unified address spaces the bottom 16GB of the space are used * 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. * for small pages, and the remaining high memory is used for large pages.
*/ */
static inline u64 __nv_gmmu_va_small_page_limit(void) 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, enum gmmu_pgsz_gk20a __get_pte_size_fixed_map(struct vm_gk20a *vm,