summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C
diff options
context:
space:
mode:
authorMatthew Hickman <Matthew.Hickman@ibm.com>2017-02-16 13:56:11 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-03-23 23:44:40 -0400
commitf91945b31968725c0598882321139691250b4397 (patch)
treecac50fde259550d599550e0a40daf60feafc4e82 /src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C
parent1ec41a4027724912228829f0aba88c3c27c8e679 (diff)
downloadtalos-hostboot-f91945b31968725c0598882321139691250b4397.tar.gz
talos-hostboot-f91945b31968725c0598882321139691250b4397.zip
Added background scrub and unmasking firs to mss_scrub
Change-Id: I018ebb5b86c108f957b331b196b39ae48b16300b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36604 Dev-Ready: SHELTON LEUNG <sleung@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Louis Stermole <stermole@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/36609 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C
index 305130f39..4a74313b6 100644
--- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C
+++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_scrub.C
@@ -43,6 +43,7 @@
#include <lib/mcbist/memdiags.H>
#include <lib/mcbist/sim.H>
#include <lib/utils/count_dimm.H>
+#include <lib/fir/memdiags_fir.H>
using fapi2::TARGET_TYPE_MCBIST;
using fapi2::TARGET_TYPE_MCA;
@@ -116,6 +117,19 @@ fapi2::ReturnCode p9_mss_scrub( const fapi2::Target<TARGET_TYPE_MCBIST>& i_targe
fapi2::MSS_MEMDIAGS_SUPERFAST_INIT_FAILED_TO_INIT().set_TARGET(i_target),
"p9_mss_scrub (init) timedout %s", mss::c_str(i_target) );
+ // Unmask firs after memdiags and turn off FIFO mode
+ FAPI_TRY ( mss::unmask::after_memdiags( i_target ) );
+ FAPI_TRY ( mss::reset_reorder_queue_settings(i_target) );
+
+ // Start background scrub
+ FAPI_TRY ( memdiags::background_scrub( i_target,
+ mss::mcbist::stop_conditions(),
+ mss::mcbist::speed::BG_SCRUB,
+ mss::mcbist::address() ) );
+
+ // Unmask firs after background scrub is started
+ FAPI_TRY ( mss::unmask::after_background_scrub( i_target ) );
+
fapi_try_exit:
return fapi2::current_err;
}
OpenPOWER on IntegriCloud