From 4d405809a9d97efeadd7c33bce4ecf0470c386f2 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 4 Feb 2015 12:41:19 -0800 Subject: 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 Reviewed-on: http://git-master/r/740726 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/mm_gk20a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a') 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); 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) -- cgit v1.2.2