summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-09-17 23:12:26 -0700
committerCommit Bot <commit-bot@chromium.org>2021-09-22 01:05:58 +0000
commit2a50b0f2e43c718d8d90f03cf42bd543f84c61e0 (patch)
tree037242d82ca4e891d79c4366c76626f9f47a61a0
parent8de594d466d276ca5d8ab617687ed11302041cc2 (diff)
downloadchrome-ec-2a50b0f2e43c718d8d90f03cf42bd543f84c61e0.tar.gz
byra: Disable ACPI messages on EC console by default
When using sensors a lot of messages are sent, overwhelming the EC console port. BUG=none BRANCH=master TEST=When running "tast run <ip hardware.SensorIioserviceHard", check the EC console is not overflown with message like: 21-09-17 23:01:41.981 [444.007624 ACPI query = 27] 21-09-17 23:01:42.053 [444.086884 event set 0x0000000004000000] 21-09-17 23:01:42.057 [444.087864 event clear 0x0000000004000000] Change-Id: I825831d83ce468d719b4303abadec4e2e0a0d1af Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3170173 Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--baseboard/brya/baseboard.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/baseboard/brya/baseboard.h b/baseboard/brya/baseboard.h
index 18554bb07a..757b504d16 100644
--- a/baseboard/brya/baseboard.h
+++ b/baseboard/brya/baseboard.h
@@ -9,9 +9,12 @@
#define __CROS_EC_BASEBOARD_H
/*
- * By default, enable all console messages excepted HC
+ * By default, enable all console messages excepted HC, ACPI and event:
+ * The sensor stack is generating a lot of activity.
*/
-#define CC_DEFAULT (CC_ALL & ~(BIT(CC_HOSTCMD)))
+#define CC_DEFAULT (CC_ALL & ~(CC_MASK(CC_EVENTS) | CC_MASK(CC_LPC)))
+#undef CONFIG_HOSTCMD_DEBUG_MODE
+#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF
/* NPCX9 config */
#define NPCX9_PWM1_SEL 1 /* GPIO C2 is used as PWM1. */