<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27235">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/google/octopus: Enable logging of EC wake sources in S0ix<br><br>This change adds GSMI callback elog_gsmi_cb_mainboard_log_wake_source<br>to enable logging of EC wake events in S0ix.<br><br>BUG=b:79449585<br>TEST=Verified that S0ix entry/exit events are added to eventlog:<br><br>=========== Lid open ================<br>62 | 2018-06-25 14:02:36 | S0ix Enter<br>63 | 2018-06-25 14:02:56 | S0ix Exit<br>64 | 2018-06-25 14:03:26 | Wake Source | GPE # | 15<br>65 | 2018-06-25 14:03:32 | Wake Source | GPE # | 65<br>66 | 2018-06-25 14:03:37 | EC Event | Lid Open<br><br>Change-Id: Icc8cd3624966ff66d2cf189871e452cf650cec40<br>Signed-off-by: Furquan Shaikh <furquan@google.com><br>---<br>M src/mainboard/google/octopus/smihandler.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/27235/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/google/octopus/smihandler.c b/src/mainboard/google/octopus/smihandler.c</span><br><span>index ecd41ae..27928ee 100644</span><br><span>--- a/src/mainboard/google/octopus/smihandler.c</span><br><span>+++ b/src/mainboard/google/octopus/smihandler.c</span><br><span>@@ -16,7 +16,9 @@</span><br><span> #include <arch/acpi.h></span><br><span> #include <baseboard/variants.h></span><br><span> #include <cpu/x86/smm.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <ec/google/chromeec/ec.h></span><br><span> #include <ec/google/chromeec/smm.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <elog.h></span><br><span> #include <intelblocks/smihandler.h></span><br><span> #include <soc/pm.h></span><br><span> #include <soc/gpio.h></span><br><span>@@ -52,3 +54,9 @@</span><br><span> {</span><br><span>        chromeec_smi_process_events();</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+void elog_gsmi_cb_mainboard_log_wake_source(void)</span><br><span style="color: hsl(120, 100%, 40%);">+{</span><br><span style="color: hsl(120, 100%, 40%);">+   google_chromeec_log_events(MAINBOARD_EC_LOG_EVENTS |</span><br><span style="color: hsl(120, 100%, 40%);">+                                  MAINBOARD_EC_S0IX_WAKE_EVENTS);</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27235">change 27235</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27235"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Icc8cd3624966ff66d2cf189871e452cf650cec40 </div>
<div style="display:none"> Gerrit-Change-Number: 27235 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>