Skip to content

Commit

Permalink
PRD: allow getTargetPosition() on SYS target
Browse files Browse the repository at this point in the history
The concept of a system position does not exist, however, we want
to allow generic code to get the target position for any target.
So we will add this special case.

Change-Id: I6327c935bed754126bb382e3092e24f981c6fab8
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36049
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36076
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed Feb 10, 2017
1 parent ca06545 commit 5932590
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/usr/diag/prdf/common/plat/prdfTargetServices.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -1157,6 +1157,13 @@ uint32_t getTargetPosition( TARGETING::TargetHandle_t i_target )
break;
}

case CLASS_SYS: // system
// The concept of a system position does not exist, however, we want
// to allow generic code to get the target position for any target.
// So we will add this special case.
o_pos = 0;
break;

case CLASS_LOGICAL_CARD: // DIMMs
o_pos = i_target->getAttr<ATTR_FAPI_POS>();
break;
Expand Down

0 comments on commit 5932590

Please sign in to comment.