<p>Marc Jones has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27785">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/stoneyridge: Call AMD ALIB method with AC/DC state<br><br>AMD ALIB Function 1 accepts the AC/DC startup state. This<br>is reported to be required for AMD PSPP settings.<br><br>BUG=b:112020107<br>TEST= build test<br><br>Change-Id: Ibb6c872d84745217912956c15d6ca2e8ba387561<br>Signed-off-by: Marc Jones <marcj303@gmail.com><br>---<br>M src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl<br>1 file changed, 14 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/85/27785/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl</span><br><span>index 81964ba..2855b23 100644</span><br><span>--- a/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl</span><br><span>+++ b/src/soc/amd/stoneyridge/acpi/sb_pci0_fch.asl</span><br><span>@@ -14,6 +14,8 @@</span><br><span>  * GNU General Public License for more details.</span><br><span>  */</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+External(\_SB.ALIB, MethodObj)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* System Bus */</span><br><span> /*  _SB.PCI0 */</span><br><span> </span><br><span>@@ -138,7 +140,7 @@</span><br><span>  *  2. Get PCI Interrupt routing from ACPI VSM, this</span><br><span>  *     value is based on user choice in BIOS setup.</span><br><span>  */</span><br><span style="color: hsl(0, 100%, 40%);">-Method(_INI, 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+Method(_INI, 0, Serialized) {</span><br><span>       /* DBGO("\\_SB\\_INI\n") */</span><br><span>        /* DBGO("   DSDT.ASL code from ") */</span><br><span>       /* DBGO(__DATE__) */</span><br><span>@@ -154,6 +156,17 @@</span><br><span> </span><br><span>      /* Determine the OS we're running on */</span><br><span>  OSFL()</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* Send ALIB Function 1 the AC/DC state */</span><br><span style="color: hsl(120, 100%, 40%);">+    Name(F1BF, Buffer(0x03){})</span><br><span style="color: hsl(120, 100%, 40%);">+    CreateWordField(F1BF, 0, F1SZ)</span><br><span style="color: hsl(120, 100%, 40%);">+        CreateByteField(F1BF, 2, F1DA)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      Store(3, F1SZ)</span><br><span style="color: hsl(120, 100%, 40%);">+        Store(\PWRS, F1DA)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  \_SB.ALIB(1, F1BF)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> } /* End Method(_SB._INI) */</span><br><span> </span><br><span> Method(OSFL, 0){</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27785">change 27785</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/27785"/><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: Ibb6c872d84745217912956c15d6ca2e8ba387561 </div>
<div style="display:none"> Gerrit-Change-Number: 27785 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marc Jones <marc@marcjonesconsulting.com> </div>