stm32: Define a larger task size for HOST_CMD

The current largest task size is not big enough,
we get stack overflow after one or several calibration requests.

BRANCH=smaug
BUG=chrome-os-partner:45570
TEST=After the change a loop of calibrate does not crash the EC.

Change-Id: I9681a890eddf274ab496e8ca6249c7ebca5edab5
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/301215
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Gwendal Grignou
2015-09-20 13:58:56 -07:00
committed by chrome-bot
parent 56670f5d8d
commit dbfb5c1dee
2 changed files with 6 additions and 3 deletions

View File

@@ -24,6 +24,6 @@
TASK_ALWAYS(CHARGER, charger_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(MOTIONSENSE, motion_sense_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(HOSTCMD, host_command_task, NULL, VENTI_TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(PD, pd_task, NULL, LARGER_TASK_STACK_SIZE)

View File

@@ -57,14 +57,17 @@
/* Idle task stack size */
#define IDLE_TASK_STACK_SIZE 256
/* Smaller task stack size */
#define SMALLER_TASK_STACK_SIZE 384
/* Default task stack size */
#define TASK_STACK_SIZE 488
/* Larger task stack size, for hook task */
#define LARGER_TASK_STACK_SIZE 640
/* Smaller task stack size */
#define SMALLER_TASK_STACK_SIZE 384
/* Even bigger */
#define VENTI_TASK_STACK_SIZE 768
/* Interval between HOOK_TICK notifications */
#define HOOK_TICK_INTERVAL_MS 500