<p>Martin Roth has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29367">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/stoneyridge: Fix get_cpu_count()<br><br>In commit 41baf0c3ff (soc/amd/stoneyridge: Remove dev_find_slot where<br>possible), the register being read was changed accidentally from<br>HT_DEV (Device 18h, Func 0) to NB_DEV (Device 18h, Func 5)<br><br>This doesn't return the correct value, and causes Grunt to reboot.<br><br>BUG=b:118721473<br>TEST=Boot grunt<br><br>Change-Id: I7b73358a074dd27639aafead7c8b39f0fad5685f<br>Signed-off-by: Martin Roth <martinroth@google.com><br>---<br>M src/soc/amd/stoneyridge/cpu.c<br>1 file changed, 1 insertion(+), 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/67/29367/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/amd/stoneyridge/cpu.c b/src/soc/amd/stoneyridge/cpu.c</span><br><span>index 6cb59a9..1d9804d 100644</span><br><span>--- a/src/soc/amd/stoneyridge/cpu.c</span><br><span>+++ b/src/soc/amd/stoneyridge/cpu.c</span><br><span>@@ -55,7 +55,7 @@</span><br><span> </span><br><span> static int get_cpu_count(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-        return (pci_read_config16(SOC_NB_DEV, D18F0_CPU_CNT) & CPU_CNT_MASK)</span><br><span style="color: hsl(120, 100%, 40%);">+      return (pci_read_config16(SOC_HT_DEV, D18F0_CPU_CNT) & CPU_CNT_MASK)</span><br><span>                                                                     + 1;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29367">change 29367</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/29367"/><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: I7b73358a074dd27639aafead7c8b39f0fad5685f </div>
<div style="display:none"> Gerrit-Change-Number: 29367 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Martin Roth <martinroth@google.com> </div>