Skip to content

Commit

Permalink
PRD: MPIPL Make sure PRD is initialized in startScrub
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cnpalmer authored and zane131 committed Feb 22, 2019
1 parent 670a4d6 commit 0fd6d39
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/usr/diag/prdf/prdfMain_ipl.C
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 0fd6d39

Please sign in to comment.