diff options
author | Alex Waterman <alexw@nvidia.com> | 2015-02-04 15:41:19 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-05-11 11:51:08 -0400 |
commit | 4d405809a9d97efeadd7c33bce4ecf0470c386f2 (patch) | |
tree | 5984b2362260d79fe3f5e0fc2b8bde859bd9c4ae /drivers/gpu/nvgpu | |
parent | 8d6fe0f2ef2d52c077263a0621d05953b19320ff (diff) |
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>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h index 8d1dba66..24309abc 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |||
@@ -326,7 +326,7 @@ int gk20a_mm_init(struct mm_gk20a *mm); | |||
326 | 326 | ||
327 | static inline int bar1_aperture_size_mb_gk20a(void) | 327 | static inline int bar1_aperture_size_mb_gk20a(void) |
328 | { | 328 | { |
329 | return 128; /*TBD read this from fuses?*/ | 329 | return 16; /* 16MB is more than enough atm. */ |
330 | } | 330 | } |
331 | /* max address bits */ | 331 | /* max address bits */ |
332 | static inline int max_physaddr_bits_gk20a(void) | 332 | static inline int max_physaddr_bits_gk20a(void) |