<p>Arthur Heymans has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22931">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ec/h8: Store PWRS and notify CPU on AC power plug/unplug events<br><br>PWRS is is the power source gnvs.<br><br>Notifying CPU is needed to change P- and C-states on these events.<br><br>Change-Id: I0818d10474523fb14f7ba7cfbf61166b89442083<br>Signed-off-by: Arthur Heymans <arthur@aheymans.xyz><br>---<br>M src/ec/lenovo/h8/acpi/ac.asl<br>M src/ec/lenovo/h8/acpi/ec.asl<br>2 files changed, 6 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/22931/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/ec/lenovo/h8/acpi/ac.asl b/src/ec/lenovo/h8/acpi/ac.asl</span><br><span>index 91b9d79..43b43d7 100644</span><br><span>--- a/src/ec/lenovo/h8/acpi/ac.asl</span><br><span>+++ b/src/ec/lenovo/h8/acpi/ac.asl</span><br><span>@@ -29,7 +29,10 @@</span><br><span> </span><br><span>     Method(_PSR, 0, NotSerialized)</span><br><span>       {</span><br><span style="color: hsl(0, 100%, 40%);">-               return (HPAC)</span><br><span style="color: hsl(120, 100%, 40%);">+         Store(HPAC, Local0)</span><br><span style="color: hsl(120, 100%, 40%);">+           Store(Local0, \PWRS)</span><br><span style="color: hsl(120, 100%, 40%);">+          \PNOT()</span><br><span style="color: hsl(120, 100%, 40%);">+               return (Local0)</span><br><span>      }</span><br><span> </span><br><span>        Method(_STA, 0, NotSerialized)</span><br><span>diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl</span><br><span>index 944858f..b6121aa 100644</span><br><span>--- a/src/ec/lenovo/h8/acpi/ec.asl</span><br><span>+++ b/src/ec/lenovo/h8/acpi/ec.asl</span><br><span>@@ -149,6 +149,7 @@</span><br><span>    Method(_Q26, 0, NotSerialized)</span><br><span>       {</span><br><span>            Notify (AC, 0x80)</span><br><span style="color: hsl(120, 100%, 40%);">+             \PNOT()</span><br><span>      }</span><br><span> </span><br><span>        /* AC status change: not present */</span><br><span>@@ -156,6 +157,7 @@</span><br><span>    {</span><br><span>            Notify (AC, 0x80)</span><br><span>            Store(0x50, EVNT)</span><br><span style="color: hsl(120, 100%, 40%);">+             \PNOT()</span><br><span>      }</span><br><span> </span><br><span>        Method(_Q2A, 0, NotSerialized)</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/22931">change 22931</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/22931"/><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: I0818d10474523fb14f7ba7cfbf61166b89442083 </div>
<div style="display:none"> Gerrit-Change-Number: 22931 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Arthur Heymans <arthur@aheymans.xyz> </div>