<p>Marshall Dawson has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22643">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">amd/stoneyridge: Define MTRR S3 structures<br><br>In subsequent S3 patches, MTRR settings will be stored in DRAM.  This<br>is a departure from other examples of AMD support, including the<br>binaryPI S3 support that was stripped out earlier.<br><br>Create structures to simplify saving and restoring the MTRR settings.<br><br>Change-Id: Ibd0dbf067e2a752636132de102028b1ebacf2343<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/common/s3_resume.h<br>1 file changed, 24 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/43/22643/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/common/s3_resume.h b/src/soc/amd/common/s3_resume.h<br>index 39a0712..3e80d72 100644<br>--- a/src/soc/amd/common/s3_resume.h<br>+++ b/src/soc/amd/common/s3_resume.h<br>@@ -16,6 +16,30 @@<br> #ifndef __S3_RESUME_H__<br> #define __S3_RESUME_H__<br> <br>+#include <cpu/x86/msr.h><br>+<br>+struct vmtrr_pair {<br>+   msr_t base;<br>+  msr_t mask;<br>+};<br>+<br>+#define MAX_VAR_MTRRS 0x20<br>+struct all_mtrrs {<br>+        msr_t sys_cfg;<br>+       msr_t _64k_00;<br>+       msr_t _16k_80;<br>+       msr_t _16k_a0;<br>+       msr_t _4k_c0;<br>+        msr_t _4k_c8;<br>+        msr_t _4k_d0;<br>+        msr_t _4k_d8;<br>+        msr_t _4k_e0;<br>+        msr_t _4k_e8;<br>+        msr_t _4k_f0;<br>+        msr_t _4k_f8;<br>+        struct vmtrr_pair vmtrr[MAX_VAR_MTRRS];<br>+};<br>+<br> void spi_SaveS3info(u32 pos, u32 size, u8 *buf, u32 len);<br> <br> #endif /* __S3_RESUME_H__ */<br></pre><p>To view, visit <a href="https://review.coreboot.org/22643">change 22643</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/22643"/><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: Ibd0dbf067e2a752636132de102028b1ebacf2343 </div>
<div style="display:none"> Gerrit-Change-Number: 22643 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>