summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.tasks
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-01-28 21:37:23 +0000
committerCommit Bot <commit-bot@chromium.org>2021-01-28 23:42:09 +0000
commite627fb52f86f30de1fe1a2cd874258f658f0941f (patch)
tree50cd893b1eaae5aaa30e956f0de706fed391d86f /zephyr/Kconfig.tasks
parent5bb68e67a78ad9af85c687997f8299aa037a42f7 (diff)
downloadchrome-ec-e627fb52f86f30de1fe1a2cd874258f658f0941f.tar.gz
zephyr: increase task stacks size for few threads close to the limit
Spotted few threads close to the stack size limit: PD_INT_C0, POWERBTN, HOSTCMD and CHIPSET: uart:~$ kernel stacks 0x200c0b20 PD_INT_C1 (real size 512): unused 224 usage 288 / 512 (56 %) 0x200c0a38 PD_INT_C0 (real size 512): unused 0 usage 512 / 512 (100 %) <-- 0x200c0950 PD_C1 (real size 1024): unused 360 usage 664 / 1024 (64 %) 0x200c0868 PD_C0 (real size 1024): unused 376 usage 648 / 1024 (63 %) 0x200c0780 KEYSCAN (real size 512): unused 88 usage 424 / 512 (82 %) 0x200c0698 POWERBTN (real size 512): unused 0 usage 512 / 512 (100 %) <-- 0x200c05b0 KEYPROTO (real size 512): unused 248 usage 264 / 512 (51 %) 0x200c04c8 HOSTCMD (real size 512): unused 0 usage 512 / 512 (100 %) <-- 0x200c03e0 CHIPSET (real size 512): unused 0 usage 512 / 512 (100 %) <-- 0x200c02f8 CHARGER (real size 1024): unused 504 usage 520 / 1024 (50 %) 0x200c0210 USB_CHG_P1 (real size 1024): unused 608 usage 416 / 1024 (40 %) 0x200c0128 USB_CHG_P0 (real size 1024): unused 608 usage 416 / 1024 (40 %) 0x200c0040 CHG_RAMP (real size 512): unused 80 usage 432 / 512 (84 %) 0x200c19a8 workqueue (real size 1024): unused 536 usage 488 / 1024 (47 %) 0x200c18d8 shell_uart (real size 2048): unused 1072 usage 976 / 2048 (47 %) 0x200c1820 logging (real size 768): unused 544 usage 224 / 768 (29 %) 0x200c2ef8 idle 00 (real size 320): unused 256 usage 64 / 320 (20 %) 0x200c8c90 IRQ 00 (real size 2048): unused 1584 usage 464 / 2048 (22 %) Bringing them up to 1024 bytes, new stacks: 0x200c0a38 PD_INT_C0 (real size 1024): unused 480 usage 544 / 1024 (53 %) 0x200c0698 POWERBTN (real size 1024): unused 488 usage 536 / 1024 (52 %) 0x200c03e0 CHIPSET (real size 1024): unused 512 usage 512 / 1024 (50 %) 0x200c02f8 CHARGER (real size 1024): unused 488 usage 536 / 1024 (52 %) BUG=none BRANCH=none TEST=ran kernel stacks again, nothing at the limit Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: I8f57ddba0891fec11119814f3a40c4c544a0b092 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2657635 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.tasks')
-rw-r--r--zephyr/Kconfig.tasks8
1 files changed, 4 insertions, 4 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index 35232eb1dd..96795fbe94 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -62,7 +62,7 @@ if HAS_TASK_CHIPSET
config TASK_CHIPSET_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x400
help
The stack size of the power button task.
@@ -81,7 +81,7 @@ if HAS_TASK_HOSTCMD
config TASK_HOSTCMD_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x400
help
The size of the host-command task stack.
@@ -157,7 +157,7 @@ if HAS_TASK_POWERBTN
config TASK_POWERBTN_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x400
help
The stack size of the power-button task.
@@ -215,7 +215,7 @@ if HAS_TASK_PD_INT_C0
config TASK_PD_INT_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x400
help
The stack size of the PD_Cn_INT tasks.