<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22938">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">intel/cannonlake: Perform lockdown in bootstate after MRC write<br><br>The bootstate where MRC data is written to flash is now variable.  Make<br>the lockdown procedure's timing variable too, and follow the write by<br>one state.<br><br>Change-Id: I7e8776e216e2be9ba54a97dbd79b840806e12469<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/intel/cannonlake/lockdown.c<br>1 file changed, 18 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/22938/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/intel/cannonlake/lockdown.c b/src/soc/intel/cannonlake/lockdown.c</span><br><span>index dba5901..d9f6da6 100644</span><br><span>--- a/src/soc/intel/cannonlake/lockdown.c</span><br><span>+++ b/src/soc/intel/cannonlake/lockdown.c</span><br><span>@@ -109,5 +109,21 @@</span><br><span>  pmc_lockdown_cfg(config);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-BOOT_STATE_INIT_ENTRY(BS_DEV_RESOURCES, BS_ON_EXIT, platform_lockdown_config,</span><br><span style="color: hsl(0, 100%, 40%);">-                         NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#define LOCKDOWN_BOOTSTATE (CONFIG_MRC_WRITE_BOOTSTATE + 1)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+#if LOCKDOWN_BOOTSTATE == 3</span><br><span style="color: hsl(120, 100%, 40%);">+BOOT_STATE_INIT_ENTRY(BS_DEV_RESOURCES, BS_ON_EXIT,</span><br><span style="color: hsl(120, 100%, 40%);">+                               platform_lockdown_config, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#elif LOCKDOWN_BOOTSTATE == 4</span><br><span style="color: hsl(120, 100%, 40%);">+BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_EXIT,</span><br><span style="color: hsl(120, 100%, 40%);">+                             platform_lockdown_config, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#elif LOCKDOWN_BOOTSTATE == 5</span><br><span style="color: hsl(120, 100%, 40%);">+BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_EXIT,</span><br><span style="color: hsl(120, 100%, 40%);">+                               platform_lockdown_config, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#elif LOCKDOWN_BOOTSTATE == 6</span><br><span style="color: hsl(120, 100%, 40%);">+BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_EXIT,</span><br><span style="color: hsl(120, 100%, 40%);">+                            platform_lockdown_config, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#elif LOCKDOWN_BOOTSTATE == 7</span><br><span style="color: hsl(120, 100%, 40%);">+BOOT_STATE_INIT_ENTRY(BS_OS_RESUME_CHECK, BS_ON_EXIT,</span><br><span style="color: hsl(120, 100%, 40%);">+                                platform_lockdown_config, NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/22938">change 22938</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/22938"/><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: I7e8776e216e2be9ba54a97dbd79b840806e12469 </div>
<div style="display:none"> Gerrit-Change-Number: 22938 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>