summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2016-06-02 06:28:57 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-10 14:46:49 -0400
commit3d485fbdab55175f716253b4fe4c52835c93a5a0 (patch)
tree1a36d89d454e170b69d0b93e921033d1e1512722 /src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C
parent0c34e40e9061b3431e294931659dc67c8f340130 (diff)
downloadtalos-hostboot-3d485fbdab55175f716253b4fe4c52835c93a5a0.tar.gz
talos-hostboot-3d485fbdab55175f716253b4fe4c52835c93a5a0.zip
Add memdiags scrub capability
Change-Id: I1f42c836a8fc4ff3ca31401ec53f2a3aeda77513 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25376 Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25377 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C
index 7971d2248..7f1a08b6b 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/mcbist.C
@@ -213,17 +213,14 @@ fapi2::ReturnCode execute( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target,
bool l_poll_result = false;
poll_parameters l_poll_parameters;
- FAPI_TRY( i_program.clear_errors(i_target) );
+ FAPI_TRY( clear_errors(i_target) );
- // Slam the subtests in to the mcbist registers
- FAPI_TRY( load_mcbmr(i_target, i_program) );
+ // Slam the address generator config
+ FAPI_TRY( load_addr_gen(i_target, i_program) );
// Slam the parameters in to the mcbist parameter register
FAPI_TRY( load_mcbparm(i_target, i_program) );
- // Slam the address generator config
- FAPI_TRY( load_addr_gen(i_target, i_program) );
-
// Slam the configured address maps down
FAPI_TRY( load_mcbamr( i_target, i_program) );
@@ -233,6 +230,16 @@ fapi2::ReturnCode execute( const fapi2::Target<TARGET_TYPE_MCBIST>& i_target,
// Slam the control register down
FAPI_TRY( load_control( i_target, i_program) );
+ // Load the patterns and any associated bits for random, etc
+ FAPI_TRY( load_pattern( i_target, i_program) );
+
+ // Load the thresholds
+ FAPI_TRY( load_thresholds( i_target, i_program) );
+
+ // Slam the subtests in to the mcbist registers
+ // Always do this last so the action file triggers see the other bits set
+ FAPI_TRY( load_mcbmr(i_target, i_program) );
+
// Start the engine, and then poll for completion
FAPI_TRY(start_stop(i_target, mss::START));
OpenPOWER on IntegriCloud