summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2021-09-09 12:02:44 -0600
committerCommit Bot <commit-bot@chromium.org>2021-09-10 16:43:34 +0000
commit164576c108c66d9caeaefd28565e7a467c3dfb74 (patch)
tree40ea4449c4312028133a526ce5e8c6b10095d156
parentfcfa01cb1156d179a335c895020663bb880548a2 (diff)
downloadchrome-ec-164576c108c66d9caeaefd28565e7a467c3dfb74.tar.gz
zephyr: herobrine_npcx9: adjust ~75% stack sizes
There is still more tuning that needs to happen as development continues but this is an initial stab leaving some values the same as they are for NPCX7 when there was doubt. kernel stacks 21-09-09 12:14:06.481 0x200c0e20 PD_INT_C1 (real size 736): unused 496 usage 240 / 736 (32 %) 21-09-09 12:14:06.487 0x200c0d00 PD_INT_C0 (real size 736): unused 496 usage 240 / 736 (32 %) 21-09-09 12:14:06.493 0x200c0be0 PD_C1 (real size 1184): unused 464 usage 720 / 1184 (60 %) 21-09-09 12:14:06.500 0x200c0ac0 PD_C0 (real size 1184): unused 448 usage 736 / 1184 (62 %) 21-09-09 12:14:06.506 0x200c09a0 KEYSCAN (real size 704): unused 184 usage 520 / 704 (73 %) 21-09-09 12:14:06.513 0x200c0880 HOSTCMD (real size 704): unused 112 usage 592 / 704 (84 %) 21-09-09 12:14:06.519 0x200c0760 MOTIONSENSE (real size 816): unused 244 usage 572 / 816 (70 %) 21-09-09 12:14:06.525 0x200c0640 CHIPSET (real size 688): unused 176 usage 512 / 688 (74 %) 21-09-09 12:14:06.532 0x200c0520 CHARGER (real size 752): unused 192 usage 560 / 752 (74 %) 21-09-09 12:14:06.538 0x200c0400 USB_CHG_P1 (real size 544): unused 144 usage 400 / 544 (73 %) 21-09-09 12:14:06.544 0x200c02e0 USB_CHG_P0 (real size 544): unused 120 usage 424 / 544 (77 %) 21-09-09 12:14:06.551 0x200c01c0 HOOKS (real size 672): unused 448 usage 224 / 672 (33 %) 21-09-09 12:14:06.560 0x200c7a60 sysworkq (real size 800): unused 200 usage 600 / 800 (75 %) 21-09-09 12:14:06.564 0x200c67d0 shell_uart (real size 1536): unused 832 usage 704 / 1536 (45 %) 21-09-09 12:14:06.571 0x200c78f0 idle 00 (real size 192): unused 80 usage 112 / 192 (58 %) 21-09-09 12:14:06.577 0x200c79a8 main (real size 1024): unused 448 usage 576 / 1024 (56 %) 21-09-09 12:14:06.583 0x200cc2c8 IRQ 00 (real size 1024): unused 620 usage 404 / 1024 (39 %) BUG=b:199328071 BRANCH=none TEST=ec console command 'kernel stacks' Signed-off-by: Denis Brockus <dbrockus@google.com> Change-Id: I47a02a3554e066dda87c91a2335f7e89ab0e4100 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3152316 Tested-by: Denis Brockus <dbrockus@chromium.org> Auto-Submit: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
-rw-r--r--zephyr/Kconfig.stacks52
1 files changed, 52 insertions, 0 deletions
diff --git a/zephyr/Kconfig.stacks b/zephyr/Kconfig.stacks
index 0efe1c008d..8df0ca23f1 100644
--- a/zephyr/Kconfig.stacks
+++ b/zephyr/Kconfig.stacks
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+##############################################################################
if SOC_SERIES_NPCX7
# Zephyr internal stack sizes
@@ -57,3 +58,54 @@ config TASK_USB_CHG_STACK_SIZE
default 544
endif # SOC_SERIES_NPCX7
+##############################################################################
+
+
+##############################################################################
+if SOC_SERIES_NPCX9
+
+# Zephyr internal stack sizes
+
+config IDLE_STACK_SIZE
+ default 192
+
+config ISR_STACK_SIZE
+ default 1024
+
+config SHELL_STACK_SIZE
+ default 1536
+
+config SYSTEM_WORKQUEUE_STACK_SIZE
+ default 800
+
+# Chromium EC stack sizes
+
+config TASK_CHARGER_STACK_SIZE
+ default 750
+
+config TASK_CHIPSET_STACK_SIZE
+ default 684
+
+config TASK_HOOKS_STACK_SIZE
+ default 672
+
+config TASK_HOSTCMD_STACK_SIZE
+ default 700
+
+config TASK_KEYSCAN_STACK_SIZE
+ default 700
+
+config TASK_MOTIONSENSE_STACK_SIZE
+ default 812
+
+config TASK_PD_STACK_SIZE
+ default 1184
+
+config TASK_PD_INT_STACK_SIZE
+ default 736
+
+config TASK_USB_CHG_STACK_SIZE
+ default 544
+
+endif # SOC_SERIES_NPCX9
+##############################################################################