summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-03-28 11:07:23 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-04-07 00:05:56 -0700
commit60ca132916e0705ad29ada1ff23b9f940648f3b3 (patch)
treee4b57ff9abc1af9ed6aa07c8659105c148a0e179
parentd105ac0f77ef4608dc5c67c7687b64a4680a12a3 (diff)
downloadchrome-ec-60ca132916e0705ad29ada1ff23b9f940648f3b3.tar.gz
poppy: Increase console buffer size to 4096 bytes
Increase the size from 1024 to 4096 to reduce the likelihood of overflows. To make space for the larger buffer, we reduce CONFIG_ACCEL_FIFO to 512 entries (from 1024 entries: saves 4096 bytes of RAM). grep shared_mem_buf build/lux/RW/ec.RW.smap Before this patch: 200c74e0 D __shared_mem_buf After this patch: 200c70e0 D __shared_mem_buf (we saved 1024 bytes of RAM) BRANCH=poppy BUG=b:77159941 TEST=Flash lux, see that we do not lose EC logs in /var/log/cros_ec.log. Change-Id: I320c370369364b280e59f490a86f057fbb502da3 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/983080 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--board/poppy/board.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/poppy/board.h b/board/poppy/board.h
index d865890b11..d054b1af8f 100644
--- a/board/poppy/board.h
+++ b/board/poppy/board.h
@@ -132,7 +132,7 @@
#define CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ 100000
/* FIFO size is in power of 2. */
-#define CONFIG_ACCEL_FIFO 1024
+#define CONFIG_ACCEL_FIFO 512
/* Depends on how fast the AP boots and typical ODRs */
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3)
@@ -140,6 +140,9 @@
#define CONFIG_TABLET_MODE
#define CONFIG_TABLET_MODE_SWITCH
+#undef CONFIG_UART_TX_BUF_SIZE
+#define CONFIG_UART_TX_BUF_SIZE 4096
+
/* USB */
#define CONFIG_USB_CHARGER
#define CONFIG_USB_PD_ALT_MODE