[coreboot-gerrit] Change in coreboot[master]: mb/google/octopus: Enable logging of EC wake sources in S0ix

Furquan Shaikh (Code Review) gerrit at coreboot.org
Mon Jun 25 23:32:57 CEST 2018


Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/27235


Change subject: mb/google/octopus: Enable logging of EC wake sources in S0ix
......................................................................

mb/google/octopus: Enable logging of EC wake sources in S0ix

This change adds GSMI callback elog_gsmi_cb_mainboard_log_wake_source
to enable logging of EC wake events in S0ix.

BUG=b:79449585
TEST=Verified that S0ix entry/exit events are added to eventlog:

=========== Lid open ================
62 | 2018-06-25 14:02:36 | S0ix Enter
63 | 2018-06-25 14:02:56 | S0ix Exit
64 | 2018-06-25 14:03:26 | Wake Source | GPE # | 15
65 | 2018-06-25 14:03:32 | Wake Source | GPE # | 65
66 | 2018-06-25 14:03:37 | EC Event | Lid Open

Change-Id: Icc8cd3624966ff66d2cf189871e452cf650cec40
Signed-off-by: Furquan Shaikh <furquan at google.com>
---
M src/mainboard/google/octopus/smihandler.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/27235/1

diff --git a/src/mainboard/google/octopus/smihandler.c b/src/mainboard/google/octopus/smihandler.c
index ecd41ae..27928ee 100644
--- a/src/mainboard/google/octopus/smihandler.c
+++ b/src/mainboard/google/octopus/smihandler.c
@@ -16,7 +16,9 @@
 #include <arch/acpi.h>
 #include <baseboard/variants.h>
 #include <cpu/x86/smm.h>
+#include <ec/google/chromeec/ec.h>
 #include <ec/google/chromeec/smm.h>
+#include <elog.h>
 #include <intelblocks/smihandler.h>
 #include <soc/pm.h>
 #include <soc/gpio.h>
@@ -52,3 +54,9 @@
 {
 	chromeec_smi_process_events();
 }
+
+void elog_gsmi_cb_mainboard_log_wake_source(void)
+{
+	google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS |
+					MAINBOARD_EC_S0IX_WAKE_EVENTS);
+}

-- 
To view, visit https://review.coreboot.org/27235
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc8cd3624966ff66d2cf189871e452cf650cec40
Gerrit-Change-Number: 27235
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180625/682a5918/attachment.html>


More information about the coreboot-gerrit mailing list