<p>Marshall Dawson <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://review.coreboot.org/29406">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">NOT_FOR_MERGE soc/amd/stoneridge: Add DRAM check for s3<br><br>Allocate cbmem space to store DRAM check data during S3.  Verify the<br>the data is unchanged during the resume.  Due to where the save and<br>verify steps are placed, the test cannot capture 100% of potential<br>memory corruption causes in coreboot.<br><br>The ranges to verify are determined by the coreboot tables that are<br>constructed at the end of POST.  If a failure occurs within RAM available<br>to the OS, the test reports "ERROR" to force suspend_stress_test to<br>stop.  Otherwise, the mismatch is reported as "FYI", e.g. in memory<br>owned by coreboot.<br><br>The granularity of blocks to check within each range is configurable,<br>and defaults to 1MB.  The size of data stored for each block is 32 bits.<br>Both parameters may be changed if desired.<br><br>CAUTION: This test must not be deployed in a shipping system.  It<br>         disables TSEG, and its protections, in order to allow the<br>         performance to be at an acceptable level.<br>TODO:    Add the capability of checking DRAM above 4GB.<br><br>TEST=Suspend and resume grunt.  Verify mismatch with induced error.<br>BUG=b:118157730<br><br>Change-Id: I375dd7ea9a3ab8992f1616126bcbd9724e4fc9a0<br>Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com><br>---<br>M src/soc/amd/common/block/pi/amd_resume_final.c<br>M src/soc/amd/stoneyridge/Kconfig<br>M src/soc/amd/stoneyridge/Makefile.inc<br>M src/soc/amd/stoneyridge/finalize.c<br>M src/soc/amd/stoneyridge/include/soc/iomap.h<br>A src/soc/amd/stoneyridge/include/soc/s3test_util.h<br>A src/soc/amd/stoneyridge/s3test_util.c<br>M src/soc/amd/stoneyridge/smihandler.c<br>8 files changed, 431 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/06/29406/2</pre><p>To view, visit <a href="https://review.coreboot.org/29406">change 29406</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/29406"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I375dd7ea9a3ab8992f1616126bcbd9724e4fc9a0 </div>
<div style="display:none"> Gerrit-Change-Number: 29406 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com> </div>
<div style="display:none"> Gerrit-CC: build bot (Jenkins) <no-reply@coreboot.org> </div>