diff options
author | li feng <li1.feng@intel.com> | 2016-02-05 17:14:51 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-02-08 20:25:17 -0800 |
commit | 97c341cce5afb9615b5d6122956081dc4829e19e (patch) | |
tree | 1ac310a4db067f386da118c44695a63fbab372ca | |
parent | 75142ba99a1ae8c5409716dd8f2c1c6215e4d226 (diff) | |
download | chrome-ec-97c341cce5afb9615b5d6122956081dc4829e19e.tar.gz |
kunimitsu: reduce PD log size
Before pd logging enabled, there is about 1320 bytes for
shared meory; after pd logging is enabled and reserved 512 bytes,
only around 780 bytes for shared memory. In shared_mem_acquire(),
we request 1024(ChUNK_SIZE) while 780 only available. This causes
hashing abort and could not boot to RW.
BUG=chrome-os-partner:50127
BRANCH=glados
TEST=In kunimitsu system, boot to RO and check available shared
memory is higher than 1024; system can soft sync, boot to RW.
Change-Id: Ic521a1eb95491cbe9351a800d6471449cbd7b084
Signed-off-by: li feng <li1.feng@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/326762
Commit-Ready: Li1 Feng <li1.feng@intel.com>
Tested-by: Li1 Feng <li1.feng@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | board/kunimitsu/board.h | 2 | ||||
-rw-r--r-- | board/lars/board.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/kunimitsu/board.h b/board/kunimitsu/board.h index fbf06d59ba..5603638bd1 100644 --- a/board/kunimitsu/board.h +++ b/board/kunimitsu/board.h @@ -81,7 +81,7 @@ #define CONFIG_USB_PD_CUSTOM_VDM #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_LOGGING -#define CONFIG_USB_PD_LOG_SIZE 512 +#define CONFIG_USB_PD_LOG_SIZE 128 #define CONFIG_USB_PD_PORT_COUNT 2 #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_USB_PD_TRY_SRC diff --git a/board/lars/board.h b/board/lars/board.h index 2bfe77030c..0d379da3c5 100644 --- a/board/lars/board.h +++ b/board/lars/board.h @@ -85,7 +85,7 @@ #define CONFIG_USB_PD_CUSTOM_VDM #define CONFIG_USB_PD_DUAL_ROLE #define CONFIG_USB_PD_LOGGING -#define CONFIG_USB_PD_LOG_SIZE 512 +#define CONFIG_USB_PD_LOG_SIZE 128 #define CONFIG_USB_PD_PORT_COUNT 1 #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_USB_PD_TRY_SRC |