summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2017-02-07 12:09:19 -0600
committerZane C. Shelley <zshelle@us.ibm.com>2017-02-10 13:22:39 -0500
commit593259005e02dae1a78a0bb088878fe62b910e6d (patch)
tree2ec2e1add4e008a8269878ac9619bfdcbe47b40c /src
parentca06545bc2b11266ffd7db859e78b693adb7f959 (diff)
downloadtalos-hostboot-593259005e02dae1a78a0bb088878fe62b910e6d.tar.gz
talos-hostboot-593259005e02dae1a78a0bb088878fe62b910e6d.zip
PRD: allow getTargetPosition() on SYS target
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>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/prdfTargetServices.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/common/plat/prdfTargetServices.C b/src/usr/diag/prdf/common/plat/prdfTargetServices.C
index 760df4dce..1b5193328 100755
--- a/src/usr/diag/prdf/common/plat/prdfTargetServices.C
+++ b/src/usr/diag/prdf/common/plat/prdfTargetServices.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016 */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -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;
OpenPOWER on IntegriCloud