<p>Furquan Shaikh has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22089">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/intel/skylake: Probe XHCI for wake source for Internal PME<br><br>If GPE_STS indicates that the wake source is internal PME, but none of<br>the controllers have the PME_STS bit set, then try probing individual<br>XHCI ports to see if one of those was a wake source. In some cases<br>e.g. gsmi logging with S0ix, pci_pm_resume_noirq runs before gsmi<br>callback and clears PME_STS_BIT in controller register. In such cases,<br>xhci port status might provide a better idea about the wake source.<br><br>BUG=b:67874513<br><br>Change-Id: I841bb2abccfa9bd6553c1513e88a6306b40315e4<br>Signed-off-by: Furquan Shaikh <furquan@chromium.org><br>---<br>M src/soc/intel/skylake/elog.c<br>1 file changed, 10 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/89/22089/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/skylake/elog.c b/src/soc/intel/skylake/elog.c<br>index 2be6b7b..25a9610 100644<br>--- a/src/soc/intel/skylake/elog.c<br>+++ b/src/soc/intel/skylake/elog.c<br>@@ -226,6 +226,16 @@<br>           dev_found = true;<br>     }<br> <br>+ /*<br>+    * If device is still not found, but the wake source is internal PME,<br>+         * try probing XHCI ports to see if any of the USB2/3 ports indicate<br>+  * that it was the wake source. This path would be taken in case of GSMI<br>+      * logging with S0ix where the pci_pm_resume_noirq runs and clears the<br>+        * PME_STS_BIT in controller register.<br>+        */<br>+  if (!dev_found)<br>+              dev_found = pch_xhci_update_wake_event(PCH_DEV_XHCI);<br>+<br>      if (!dev_found)<br>               elog_add_event_wake(ELOG_WAKE_SOURCE_PME_INTERNAL, 0);<br> }<br></pre><p>To view, visit <a href="https://review.coreboot.org/22089">change 22089</a>. To unsubscribe, 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/22089"/><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: I841bb2abccfa9bd6553c1513e88a6306b40315e4 </div>
<div style="display:none"> Gerrit-Change-Number: 22089 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Furquan Shaikh <furquan@google.com> </div>