Skip to content

Commit

Permalink
PRD: Fix invalid getConnectedParent in getCommonVars
Browse files Browse the repository at this point in the history
Change-Id: I6d53538f155d7774bd3ae491e18c17e120de0826
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57999
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58276
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
cnpalmer authored and zane131 committed May 5, 2018
1 parent 1cc7a88 commit 02d764d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/usr/diag/prdf/common/plat/mem/prdfMemoryMru.C
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,22 @@ void MemoryMru::getCommonVars()
#define PRDF_FUNC "[MemoryMru::getCommonVars] "

TARGETING::TYPE trgtType = getTargetType( iv_target );
PRDF_ASSERT( TYPE_MCA == trgtType || TYPE_MBA == trgtType );

TargetHandle_t proc = getConnectedParent( iv_target, TYPE_PROC );
TargetHandle_t proc = nullptr;
if ( TYPE_MBA == trgtType )
{
TargetHandle_t membuf = getConnectedParent( iv_target, TYPE_MEMBUF );
proc = getConnectedParent( membuf, TYPE_PROC );
}
else if ( TYPE_MCA == trgtType )
{
proc = getConnectedParent( iv_target, TYPE_PROC );
}
else
{
PRDF_ERR( PRDF_FUNC "Invalid target type" );
PRDF_ASSERT(false);
}
TargetHandle_t node = getConnectedParent( proc, TYPE_NODE );

// If our target is an MBA, get the chnlPos from the membuf and the
Expand Down

0 comments on commit 02d764d

Please sign in to comment.