[coreboot-gerrit] Patch set updated for coreboot: 8bce88f samus: Log EC panics to eventlog

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Fri Apr 10 03:26:12 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9508

-gerrit

commit 8bce88f01405b201203ae357e7718fda6ad5ada9
Author: Shawn Nematbakhsh <shawnn at chromium.org>
Date:   Mon Feb 23 15:14:54 2015 -0800

    samus: Log EC panics to eventlog
    
    Log the new EC panic host event.
    
    BUG=chrome-os-partner:36985
    TEST=Manual on Samus. Trigger EC panic, verify that "Panic Reset in
    previous boot" is seen in /var/log/eventlog.
    BRANCH=Samus
    
    Change-Id: If59c522bd06f308a7ee6c5ff69ea427fcea361c9
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: dae4eb50b3607c5141a77fce6709107283f5dc36
    Original-Signed-off-by: Shawn Nematbakhsh <shawnn at chromium.org>
    Original-Change-Id: I89b358a81a962fd463101d84b6bcf3b0a12830c7
    Original-Reviewed-on: https://chromium-review.googlesource.com/252391
    Original-Reviewed-by: Duncan Laurie <dlaurie at chromium.org>
    Original-Reviewed-by: Alec Berg <alecaberg at chromium.org>
---
 src/ec/google/chromeec/ec_commands.h | 3 +++
 src/mainboard/google/samus/ec.h      | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/ec/google/chromeec/ec_commands.h b/src/ec/google/chromeec/ec_commands.h
index bd94281..725a652 100644
--- a/src/ec/google/chromeec/ec_commands.h
+++ b/src/ec/google/chromeec/ec_commands.h
@@ -278,6 +278,9 @@ enum host_event_code {
 	/* Battery Status flags have changed */
 	EC_HOST_EVENT_BATTERY_STATUS = 23,
 
+	/* EC encountered a panic, triggering an reset */
+	EC_HOST_EVENT_PANIC = 24,
+
 	/*
 	 * The high bit of the event mask is not used as a host event code.  If
 	 * it reads back as set, then the entire event mask should be
diff --git a/src/mainboard/google/samus/ec.h b/src/mainboard/google/samus/ec.h
index 1ba1677..9b932ac 100644
--- a/src/mainboard/google/samus/ec.h
+++ b/src/mainboard/google/samus/ec.h
@@ -57,7 +57,8 @@
 /* Log EC wake events plus EC shutdown events */
 #define MAINBOARD_EC_LOG_EVENTS \
 	(EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_SHUTDOWN) |\
-	 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN))
+	 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN) |\
+	 EC_HOST_EVENT_MASK(EC_HOST_EVENT_PANIC))
 
 #ifndef __ACPI__
 extern void mainboard_ec_init(void);



More information about the coreboot-gerrit mailing list