mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Reduce BAR1 kernel size
Reduce the BAR1 size in the kernel to match the reserved size in the DTB. This caused problems for the buddy allocator since the allocator can sometimes allocate from higher memory before lower memory in the managed space. This would cause the kernel to access unmapped memory. Change-Id: I70b72ef5bb4db01253e5087757051ef852e99bc6 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/740726 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Terje Bergstrom
parent
8d6fe0f2ef
commit
4d405809a9
@@ -326,7 +326,7 @@ int gk20a_mm_init(struct mm_gk20a *mm);
|
||||
|
||||
static inline int bar1_aperture_size_mb_gk20a(void)
|
||||
{
|
||||
return 128; /*TBD read this from fuses?*/
|
||||
return 16; /* 16MB is more than enough atm. */
|
||||
}
|
||||
/* max address bits */
|
||||
static inline int max_physaddr_bits_gk20a(void)
|
||||
|
||||
Reference in New Issue
Block a user