Skip to content

Commit

Permalink
PRD: add getConnectedChild() support from proc to membuf
Browse files Browse the repository at this point in the history
Change-Id: I473d7734ec751b4b123184b244206fe8028458e5
CQ: SW429054
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58767
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58812
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed May 16, 2018
1 parent 09035bf commit bc2d498
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/usr/diag/prdf/common/plat/prdfTargetServices.C
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,22 @@ TargetHandle_t getConnectedChild( TargetHandle_t i_target, TYPE i_connType,
(i_connPos == (miPos % MAX_DMI_PER_MI));
} );
}
else if ( TYPE_PROC == trgtType && TYPE_MEMBUF == i_connType )
{
// Get the interim DMI target.
TargetHandle_t trgt = getConnectedChild( i_target, TYPE_DMI,
i_connPos );
if ( nullptr != trgt )
{
// Get the the MEMBUF connected to the DMI target.
trgt = getConnectedChild( trgt, TYPE_MEMBUF, 0 );
}

if ( nullptr == trgt )
{
itr = list.end(); // just in case it is not found
}
}
else if ( TYPE_DMI == trgtType && TYPE_MEMBUF == i_connType )
{
// There is only one MEMBUF per DMI in the list.
Expand Down

0 comments on commit bc2d498

Please sign in to comment.