summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbolan.wang <bolan.wang@bitland.com.cn>2017-01-03 22:08:24 -0500
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-01-13 01:06:35 +0000
commit2fdee9c7712c0e60370ca60f748b0adfe31c3369 (patch)
tree2d1049d9a863ba9de0b781b617f7034d8b70c3c0
parent2b5f1df40455cf22dc3c1a37ae82ab518abfffe1 (diff)
downloadchrome-ec-2fdee9c7712c0e60370ca60f748b0adfe31c3369.tar.gz
pbody:increment the stack size of HOSTCMD task
The stack size of HOSTCMD task maybe too small, sometime cause stack overflow and system reboot. Define the CONFIG_REPLACE_LOADER_WITH_BSS_SLOW for more ram space and set the stack size of HOSTCMD to LARGER_TASK_STACK_SIZE. BUG=none BRANCH=firmware-glados-7820.B TEST=build and burn the board check the random reboot issue is not occur. Signed-off-by:bolan.wang <bolan.wang@bitland.com.cn> Change-Id: I8aaf55f56ee03547d9659e513687aa19a57572a6 Reviewed-on: https://chromium-review.googlesource.com/424654 Reviewed-by: Shawn N <shawnn@chromium.org> Commit-Queue: wang vanillan <bolan.wang@bitland.com.cn> Tested-by: wang vanillan <bolan.wang@bitland.com.cn>
-rw-r--r--board/pbody/board.h6
-rw-r--r--board/pbody/ec.tasklist2
2 files changed, 7 insertions, 1 deletions
diff --git a/board/pbody/board.h b/board/pbody/board.h
index e8d81fb6af..26c3a4a08e 100644
--- a/board/pbody/board.h
+++ b/board/pbody/board.h
@@ -180,6 +180,12 @@
#undef DEFERRABLE_MAX_COUNT
#define DEFERRABLE_MAX_COUNT 17
+/*
+ * Define for more ram space.
+ * There is open issue chromium:606035.
+ */
+#define CONFIG_REPLACE_LOADER_WITH_BSS_SLOW
+
#ifndef __ASSEMBLER__
#include "gpio_signal.h"
diff --git a/board/pbody/ec.tasklist b/board/pbody/ec.tasklist
index 17d6489c56..1efc0d80a1 100644
--- a/board/pbody/ec.tasklist
+++ b/board/pbody/ec.tasklist
@@ -25,7 +25,7 @@
TASK_NOTEST(CHIPSET, chipset_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(KEYPROTO, keyboard_protocol_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(PDCMD, pd_command_task, NULL, TASK_STACK_SIZE) \
- TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \
+ TASK_ALWAYS(HOSTCMD, host_command_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(CONSOLE, console_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_ALWAYS(POWERBTN, power_button_task, NULL, LARGER_TASK_STACK_SIZE) \
TASK_NOTEST(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \