mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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
(cherry picked from commit 2492142224)
Reviewed-on: https://git-master.nvidia.com/r/1535948
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
9960fb7954
commit
7ef4c5955c
@@ -449,12 +449,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,
|
||||||
|
|||||||
Reference in New Issue
Block a user