diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2018-03-02 13:27:37 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-03-07 16:50:29 -0500 |
commit | fdbf7156982e6b32facd6e30b7e84475e47f1392 (patch) | |
tree | 0955b0d6774b3d50d7ee0958dcf86da9c7d6cd5a /src/include | |
parent | d9cde7352d62d66ac7331f1506febf77206192ab (diff) | |
download | talos-hostboot-fdbf7156982e6b32facd6e30b7e84475e47f1392.tar.gz talos-hostboot-fdbf7156982e6b32facd6e30b7e84475e47f1392.zip |
HBRT: Fix targeting to work on multi-node
- Set MULTINODE_AWARE to true for HBRT so
our targeting iterators jump over nodes
when iterating over targets
- Add error checking when invalid node id
is passed in
Change-Id: I7cf4c7ff4bf06fd637935aeb9152f432dc9c0fde
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55146
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
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>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/targeting/common/util.H | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H index 9877a5803..edc67b79e 100644 --- a/src/include/usr/targeting/common/util.H +++ b/src/include/usr/targeting/common/util.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2017 */ +/* Contributors Listed Below - COPYRIGHT 2012,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -69,11 +69,14 @@ namespace PLAT */ namespace PROPERTIES { -#ifdef __HOSTBOOT_MODULE +#if defined(__HOSTBOOT_RUNTIME) //HBRT only + static const bool MULTINODE_AWARE = true; +#elif defined(__HOSTBOOT_MODULE) //HB IPL only static const bool MULTINODE_AWARE = false; -#else +#else //FSP only static const bool MULTINODE_AWARE = true; #endif + } } |