summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C')
-rw-r--r--src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C b/src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C
new file mode 100644
index 000000000..241d835f2
--- /dev/null
+++ b/src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C
@@ -0,0 +1,76 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/diag/prdf/plat/mem/prdfP9McbistDomain.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+
+/**
+ * @file prdfP9McbistDomain.C
+ * @brief chip Plug-in code for mcbist domain
+ */
+
+#include <prdfP9McbistDomain.H>
+
+// Framework includes
+#include <prdfExtensibleChip.H>
+#include <prdfPlatServices.H>
+#include <prdfTrace.H>
+#include <prdfMemBgScrub.H>
+
+using namespace TARGETING;
+
+namespace PRDF
+{
+
+using namespace PlatServices;
+
+int32_t McbistDomain::startScrub()
+{
+ #define PRDF_FUNC "[McbistDomain::startScrub] "
+
+ PRDF_ENTER( PRDF_FUNC );
+
+ int32_t o_rc = SUCCESS;
+
+ // Iterate all MCBISTs in the domain.
+ for ( uint32_t i = 0; i < GetSize(); ++i )
+ {
+ RuleChip * mcbistChip = LookUp(i);
+
+ // Start background scrub
+ int32_t l_rc = PRDF::startInitialBgScrub<TYPE_MCBIST>(mcbistChip);
+ if ( SUCCESS != l_rc )
+ {
+ PRDF_ERR( PRDF_FUNC "startInitialBgScrub() failed: "
+ "MCBIST=0x%08x", mcbistChip->GetId() );
+ o_rc = FAIL; continue; // Keep going.
+ }
+ }
+
+ PRDF_EXIT( PRDF_FUNC "prdf: McbistDomain::startScrub exit" );
+
+ return o_rc;
+
+ #undef PRDF_FUNC
+}
+
+} // end namespace PRDF
OpenPOWER on IntegriCloud