summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/prdfMain.C
diff options
context:
space:
mode:
authorChris Phan <cphan@us.ibm.com>2014-02-14 15:31:56 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-27 11:10:18 -0600
commitd5157a46fc961a7a64c96d49710c219f82d42d0e (patch)
treea0689a40a1d2422dfaee27582862598131ad7b9a /src/usr/diag/prdf/prdfMain.C
parentc777035d25311342a522b5232cbc333e2e028d87 (diff)
downloadtalos-hostboot-d5157a46fc961a7a64c96d49710c219f82d42d0e.tar.gz
talos-hostboot-d5157a46fc961a7a64c96d49710c219f82d42d0e.zip
PRD: call refresh() before hostboot startScrub()
Since the last refresh is in istep10 host_prd_hwreconfig, it may be good to call it again here at istep16 mss_scrub to remove any non-functional MBAs from PRD system model. Change-Id: I1a8d89fbeb46f35194bbecae8dbb1e4f6e7b0d28 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8865 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9153
Diffstat (limited to 'src/usr/diag/prdf/prdfMain.C')
-rwxr-xr-xsrc/usr/diag/prdf/prdfMain.C17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/usr/diag/prdf/prdfMain.C b/src/usr/diag/prdf/prdfMain.C
index e5f29fbe9..2a7283fa5 100755
--- a/src/usr/diag/prdf/prdfMain.C
+++ b/src/usr/diag/prdf/prdfMain.C
@@ -1,11 +1,11 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: ./prdfMain.C $ */
+/* $Source: src/usr/diag/prdf/prdfMain.C $ */
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2002,2013 */
+/* COPYRIGHT International Business Machines Corp. 2002,2014 */
/* */
/* p1 */
/* */
@@ -117,6 +117,17 @@ errlHndl_t startScrub()
do
{
+ // Since the last refresh is in istep10 host_prd_hwreconfig,
+ // it may be good to call it again here at istep16 mss_scrub
+ // to remove any non-functional MBAs from PRD system model.
+ o_errl = refresh();
+ // This shouldn't return any error but if it does, break out
+ if(NULL != o_errl)
+ {
+ PRDF_ERR( PRDF_FUNC"refresh() failed" );
+ break;
+ }
+
// This is run in Hostboot so there should only be one node.
TargetHandleList list = getFunctionalTargetList( TYPE_NODE );
if ( 1 != list.size() )
@@ -141,7 +152,7 @@ errlHndl_t startScrub()
} while (0);
- if ( SUCCESS != l_rc )
+ if (( SUCCESS != l_rc ) && (NULL == o_errl))
{
// Get user data
uint64_t ud12 = PRDF_GET_UINT64_FROM_UINT32( nodeId, __LINE__ );
OpenPOWER on IntegriCloud