diff options
author | Tim Lin <tim2.lin@ite.corp-partner.google.com> | 2021-11-23 14:58:20 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-23 18:51:20 +0000 |
commit | 1b1f3402ad93d5ca12e94ab17548704bebd25707 (patch) | |
tree | 57008ce854c126a8e373af82c3bbc553c094d96c | |
parent | 28b5afe076e6dc917cc499211ded75599697c4f9 (diff) | |
download | chrome-ec-1b1f3402ad93d5ca12e94ab17548704bebd25707.tar.gz |
zephyr: it8xxx2: increase shell stack size
Enter the kernel threads command from the console to know that the
shell stack size is close to the limit. If the memory dump command
is executed, a kernel panic will occur.
BUG=none
BRANCH=none
TEST=zmake testall
console cmd: kernel threads: shell_uart usage:72%
: md .b 0xf0xxxx 256: test OK!
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Change-Id: Iece3a1a109144813febbf7cf19f4155226be79b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3295835
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r-- | zephyr/Kconfig.stacks | 11 | ||||
-rw-r--r-- | zephyr/boards/riscv/asurada/Kconfig.defconfig | 3 | ||||
-rw-r--r-- | zephyr/boards/riscv/it8xxx2/Kconfig.defconfig | 3 |
3 files changed, 11 insertions, 6 deletions
diff --git a/zephyr/Kconfig.stacks b/zephyr/Kconfig.stacks index 2ffe64b341..367564de7e 100644 --- a/zephyr/Kconfig.stacks +++ b/zephyr/Kconfig.stacks @@ -107,3 +107,14 @@ config TASK_USB_CHG_STACK_SIZE endif # SOC_SERIES_NPCX9 ############################################################################## + +############################################################################## +if SOC_SERIES_RISCV32_IT8XXX2 + +# Zephyr internal stack sizes + +config SHELL_STACK_SIZE + default 1560 + +endif # SOC_SERIES_RISCV32_IT8XXX2 +############################################################################## diff --git a/zephyr/boards/riscv/asurada/Kconfig.defconfig b/zephyr/boards/riscv/asurada/Kconfig.defconfig index e76e1cb2d1..463b0c30f3 100644 --- a/zephyr/boards/riscv/asurada/Kconfig.defconfig +++ b/zephyr/boards/riscv/asurada/Kconfig.defconfig @@ -15,9 +15,6 @@ config IDLE_STACK_SIZE config ISR_STACK_SIZE default 800 -config SHELL_STACK_SIZE - default 1048 - config SYSTEM_WORKQUEUE_STACK_SIZE default 1024 diff --git a/zephyr/boards/riscv/it8xxx2/Kconfig.defconfig b/zephyr/boards/riscv/it8xxx2/Kconfig.defconfig index 875969c7e4..1b1472dfe1 100644 --- a/zephyr/boards/riscv/it8xxx2/Kconfig.defconfig +++ b/zephyr/boards/riscv/it8xxx2/Kconfig.defconfig @@ -15,9 +15,6 @@ config IDLE_STACK_SIZE config ISR_STACK_SIZE default 800 -config SHELL_STACK_SIZE - default 1048 - config SYSTEM_WORKQUEUE_STACK_SIZE default 1024 |