diff options
author | Caleb Palmer <cnpalmer@us.ibm.com> | 2019-02-22 08:51:53 -0600 |
---|---|---|
committer | Zane C. Shelley <zshelle@us.ibm.com> | 2019-02-22 13:27:50 -0600 |
commit | 0fd6d39f64cdaf778f177df57e7e79f27d353e88 (patch) | |
tree | e787cfeadc969d778c58687b6de8a6258e60a182 /src | |
parent | 670a4d60cf403e9586470f7634e826e735422644 (diff) | |
download | talos-hostboot-0fd6d39f64cdaf778f177df57e7e79f27d353e88.tar.gz talos-hostboot-0fd6d39f64cdaf778f177df57e7e79f27d353e88.zip |
PRD: MPIPL Make sure PRD is initialized in startScrub
Change-Id: I4bf8e460c4087ada07112aedb7c990d497f8234b
CQ: SW457994
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72336
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/diag/prdf/prdfMain_ipl.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/prdfMain_ipl.C b/src/usr/diag/prdf/prdfMain_ipl.C index b6959e00f..b73356575 100644 --- a/src/usr/diag/prdf/prdfMain_ipl.C +++ b/src/usr/diag/prdf/prdfMain_ipl.C @@ -128,6 +128,19 @@ errlHndl_t startScrub( const TargetHandle_t i_trgt ) do { + // Will need the chip and system objects initialized for several parts + // of this function and sub-functions. If this is MPIPL we may not be + // initialized yet. + if ( (false == g_initialized) || (nullptr == systemPtr) ) + { + o_errl = noLock_initialize(); + if ( nullptr != o_errl ) + { + PRDF_ERR( PRDF_FUNC "Failed to initialize PRD" ); + break; + } + } + // Get the PRD chip object. ExtensibleChip * chip = (ExtensibleChip *)systemPtr->GetChip(i_trgt); if ( nullptr == chip ) |