From 9238aa539fafcad96df20dde6a75059f90517f41 Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Fri, 14 Oct 2022 13:23:28 -0700 Subject: Prism: Increase console buffer size to 4096 This patch increases the console buffer size to 4096 bytes so that the host can read more messages for debugging. HOOKS task RAM is reduced in half since Prism doesn't need to support complex hooks. Before: 3288 bytes in RAM still available on prism RW Task Ready Name Events Time (s) StkUsed 0 R << idle >> 00000000 1723.816181 144/256 1 HOOKS 00000000 0.112402 528/2048 2 RGBKBD 00000000 0.000123 168/2048 3 HOSTCMD 00000000 0.000009 208/768 4 R CONSOLE 00000000 0.058197 376/1024 After: 472 bytes in RAM still available on prism RW Task Ready Name Events Time (s) StkUsed 0 R << idle >> 00000000 956.595198 144/256 1 HOOKS 00000000 0.064036 528/1024 2 RGBKBD 00000000 0.000124 168/2048 3 HOSTCMD 00000000 0.000009 208/1024 4 R CONSOLE 00000000 0.029240 376/1024 BUG=b:247611061,b:233404167 BRANCH=None TEST=Vell Signed-off-by: Daisuke Nojiri Change-Id: I9858be681f6d724f7fb82176aca17d7d67b98458 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3956543 Reviewed-by: Keith Short --- board/prism/board.h | 4 ++++ board/prism/ec.tasklist | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/board/prism/board.h b/board/prism/board.h index 9cca111ba2..49a08d73e2 100644 --- a/board/prism/board.h +++ b/board/prism/board.h @@ -102,6 +102,10 @@ #undef CONFIG_UART_CONSOLE #define CONFIG_UART_CONSOLE 1 +#undef CONFIG_UART_TX_BUF_SIZE +/* Has to be power of two */ +#define CONFIG_UART_TX_BUF_SIZE 4096 + /* Optional features */ #define CONFIG_LOW_POWER_IDLE #define CONFIG_LTO diff --git a/board/prism/ec.tasklist b/board/prism/ec.tasklist index aaf9b15a5e..501be4a1db 100644 --- a/board/prism/ec.tasklist +++ b/board/prism/ec.tasklist @@ -8,7 +8,7 @@ */ #define CONFIG_TASK_LIST \ TASK_ALWAYS_RO(RWSIG, rwsig_task, NULL, 1280) \ - TASK_ALWAYS (HOOKS, hook_task, NULL, 2048) \ + TASK_ALWAYS (HOOKS, hook_task, NULL, 1024) \ TASK_ALWAYS_RW(RGBKBD, rgbkbd_task, NULL, 2048) \ - TASK_ALWAYS_RW(HOSTCMD, host_command_task, NULL, VENTI_TASK_STACK_SIZE) \ + TASK_ALWAYS_RW(HOSTCMD, host_command_task, NULL, 1024) \ TASK_ALWAYS (CONSOLE, console_task, NULL, 1024) -- cgit v1.2.1