config: Ensure sane minimum heap sizes across boards
authorJulius Werner <jwerner@chromium.org>
Fri, 20 May 2016 22:15:53 +0000 (15:15 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 24 May 2016 17:18:59 +0000 (10:18 -0700)
While some boards use the standard 32MB heap size, some explicitly limit
it to lower values. (I'm not quite sure if all of those are really
deliberate or just the result of copy&paste.) Keeping the heap small has
a little boot time benefit (for zeroing out less memory), but overdoing
it runs the risk of OOM issues. The advent of CBFS-based imagery seems
to have increased our memory requirements by a bit (with the
memory-mapped vbgfx.bin alone taking over 1MB), so that a 6MB heap on a
board that already needs 4MB to mirror the SPI flash is dangerously
close to exhaustion. This patch increases all those heaps to 8MB which
ought to be enough for anybody.

BRANCH=None
BUG=chrome-os-partner:52554
TEST=I can keep cycling through firmware languages for several minutes
without any bugs or crashes, despite a small memory leak.

Change-Id: Iac42867d4ab14a61247a37449c2cd59a52d84bdd
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/346216
Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
board/daisy/defconfig
board/elm/defconfig
board/nyan/defconfig
board/nyan_big/defconfig
board/nyan_blaze/defconfig
board/oak/defconfig
board/rush/defconfig

index 8c66fb3..6361ce6 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_BOARD="daisy"
 # Image
 CONFIG_BASE_ADDRESS=0x43000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x42000000
 
 # Vboot
index d17bba8..2b66ca4 100644 (file)
@@ -9,7 +9,7 @@ CONFIG_BOARD_DIR="oak"
 # Image
 CONFIG_BASE_ADDRESS=0x48000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x45000000
 
 # Vboot
index cdd26b6..e3abcfe 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_BOARD="nyan"
 # Image
 CONFIG_BASE_ADDRESS=0x83000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x81000000
 
 # Vboot
index fe056b1..be8ad86 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_BOARD="nyan_big"
 # Image
 CONFIG_BASE_ADDRESS=0x83000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x81000000
 
 # Vboot
index 1ac2c33..4cade0f 100644 (file)
@@ -7,7 +7,7 @@ CONFIG_BOARD="nyan_blaze"
 # Image
 CONFIG_BASE_ADDRESS=0x83000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x81000000
 
 # Vboot
index 6661c1d..b41a6b9 100644 (file)
@@ -9,7 +9,7 @@ CONFIG_BOARD_ID_ADJUSTMENT=0
 # Image
 CONFIG_BASE_ADDRESS=0x48000000
 CONFIG_FMAP_OFFSET=0x00100000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x45000000
 
 # Vboot
index d38fe6b..25a7015 100644 (file)
@@ -8,7 +8,7 @@ CONFIG_BOARD="rush"
 # Image
 CONFIG_BASE_ADDRESS=0x83000000
 CONFIG_FMAP_OFFSET=0x00200000
-CONFIG_HEAP_SIZE=0x00600000
+CONFIG_HEAP_SIZE=0x00800000
 CONFIG_KERNEL_START=0x81000000
 
 # Vboot