diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-06-14 14:12:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-07 03:24:29 -0400 |
commit | 2492142224e3cc7f83f19cdebdadf5cc54fb2956 (patch) | |
tree | 93ee364d018d699858374f307db96ca4c69f8cd9 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 1da69dd8b2c60a11e112844dd4e9636a913a99a0 (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
311 | #define NV_MM_DEFAULT_KERNEL_SIZE (1ULL << 32) | 311 | #define NV_MM_DEFAULT_KERNEL_SIZE (1ULL << 32) |
312 | 312 | ||
313 | /* | 313 | /* |
314 | * When not using unified address spaces the bottom 16GB of the space are used | 314 | * When not using unified address spaces, the bottom 56GB of the space are used |
315 | * for small pages and the remaining high memory is used for large pages. | 315 | * for small pages, and the remaining high memory is used for large pages. |
316 | */ | 316 | */ |
317 | static inline u64 __nv_gmmu_va_small_page_limit(void) | 317 | static inline u64 __nv_gmmu_va_small_page_limit(void) |
318 | { | 318 | { |
319 | return ((u64)SZ_1G * 16); | 319 | return ((u64)SZ_1G * 56); |
320 | } | 320 | } |
321 | 321 | ||
322 | enum gmmu_pgsz_gk20a __get_pte_size_fixed_map(struct vm_gk20a *vm, | 322 | enum gmmu_pgsz_gk20a __get_pte_size_fixed_map(struct vm_gk20a *vm, |