summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-02-22 14:26:46 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-22 23:11:45 +0000
commit726a61234639435ae17f018458b328ef9698196b (patch)
treea6beb22d4190545cb585566dd708f6749a55a3dd
parentada973720283439def6d728b653b5e8bcd6b4116 (diff)
downloadchrome-ec-726a61234639435ae17f018458b328ef9698196b.tar.gz
volteer: Increase Zephry stack sizes
Increase the CHG_RAMP, KEYPROTO, and KEYSCAN stacks for Zephyr v2.5 support. Current stack usage with Zephyr v2.5: PD_INT_C1 (real size 1280): unused 1016 usage 264 / 1280 (20 %) PD_INT_C0 (real size 1280): unused 1016 usage 264 / 1280 (20 %) PD_C1 (real size 1024): unused 336 usage 688 / 1024 (67 %) PD_C0 (real size 1024): unused 400 usage 624 / 1024 (60 %) KEYSCAN (real size 768): unused 192 usage 576 / 768 (75 %) POWERBTN (real size 1024): unused 464 usage 560 / 1024 (54 %) KEYPROTO (real size 768): unused 200 usage 568 / 768 (73 %) HOSTCMD (real size 1024): unused 384 usage 640 / 1024 (62 %) HOOKS (real size 1024): unused 744 usage 280 / 1024 (27 %) MOTIONSENSE (real size 4096): unused 3448 usage 648 / 4096 (15 %) CHIPSET (real size 1024): unused 448 usage 576 / 1024 (56 %) CHARGER (real size 1024): unused 432 usage 592 / 1024 (57 %) USB_CHG_P1 (real size 1280): unused 848 usage 432 / 1280 (33 %) USB_CHG_P0 (real size 1280): unused 864 usage 416 / 1280 (32 %) CHG_RAMP (real size 768): unused 224 usage 544 / 768 (70 %) workqueue (real size 1024): unused 384 usage 640 / 1024 (62 %) shell_uart (real size 2048): unused 1080 usage 968 / 2048 (47 %) idle 00 (real size 320): unused 248 usage 72 / 320 (22 %) IRQ 00 (real size 2048): unused 1336 usage 712 / 2048 (34 %) BUG=b:180409973 BRANCH=none TEST=zmake testall TEST=Boot Zephyr EC on Volteer, verify AP boots. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I5208616bc798085079956f4642a918d83138ccac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2713557 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--zephyr/Kconfig.tasks10
1 files changed, 5 insertions, 5 deletions
diff --git a/zephyr/Kconfig.tasks b/zephyr/Kconfig.tasks
index bd10d35259..c86f67409a 100644
--- a/zephyr/Kconfig.tasks
+++ b/zephyr/Kconfig.tasks
@@ -40,7 +40,7 @@ if HAS_TASK_CHG_RAMP
config TASK_CHG_RAMP_STACK_SIZE
hex "Stack size"
- default 0x200 # EC uses TASK_STACK_SIZE which is 512 for npcx
+ default 0x300 # EC uses TASK_STACK_SIZE which is 512 for npcx
help
The stack size of the charger task.
@@ -120,7 +120,7 @@ if HAS_TASK_KEYPROTO
config TASK_KEYPROTO_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x300
help
The stack size of the keyproto task.
@@ -139,7 +139,7 @@ if HAS_TASK_KEYSCAN
config TASK_KEYSCAN_STACK_SIZE
hex "Stack size"
- default 0x200
+ default 0x300
help
The stack size of the keyscan task.
@@ -235,7 +235,7 @@ if HAS_TASK_PD_INT_C0
config TASK_PD_INT_STACK_SIZE
hex "Stack size"
- default 0x400
+ default 0x500
help
The stack size of the PD_Cn_INT tasks.
@@ -273,7 +273,7 @@ if HAS_TASK_USB_CHG_P0
config TASK_USB_CHG_STACK_SIZE
hex "(all ports) task stack size"
- default 0x400 # EC uses VENTI_TASK_STACK_SIZE which is 896
+ default 0x500 # EC uses VENTI_TASK_STACK_SIZE which is 896
help
The stack size of the USB charger task. If there are multiple tasks,
each one gets the same stack size.