From d5aaf91a7ae17cc608f23835a99e415e648c42ff Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Wed, 30 Jul 2014 16:37:02 -0700 Subject: [PATCH] samus_pd: increase stack size for pd tasks Increase stack size to account for pd communication errors. With lots of pd communication errors, I see a max stack usage of 520 bytes, which is larger than the old stack size of 488 and was causing stack overflows. BUG=none BRANCH=none TEST=load onto samus and generate pd errors by plugging in an unpowered zinger (samus sends source cap every 100ms, but no response). measure task usage. Change-Id: Iab2b0f781cb39d8e1ea906de48bd5b37e229d291 Signed-off-by: Alec Berg Reviewed-on: https://chromium-review.googlesource.com/210580 Reviewed-by: Vincent Palatin --- board/samus_pd/ec.tasklist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/samus_pd/ec.tasklist b/board/samus_pd/ec.tasklist index 366f8a54a4..e6aff54b6d 100644 --- a/board/samus_pd/ec.tasklist +++ b/board/samus_pd/ec.tasklist @@ -20,5 +20,5 @@ TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \ TASK_NOTEST(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \ TASK_ALWAYS(CONSOLE, console_task, NULL, TASK_STACK_SIZE) \ - TASK_ALWAYS(PD_C0, pd_task, NULL, TASK_STACK_SIZE) \ - TASK_ALWAYS(PD_C1, pd_task, NULL, TASK_STACK_SIZE) + TASK_ALWAYS(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) \ + TASK_ALWAYS(PD_C1, pd_task, NULL, LARGER_TASK_STACK_SIZE)