diff options
author | Christian Geddes <crgeddes@us.ibm.com> | 2019-02-27 10:31:32 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-03-01 15:18:58 -0600 |
commit | 8ee01af225a0ac2a6de48624dfd56a3095fb9920 (patch) | |
tree | c4632c2a1b4882378a0a24040bde469530ebaaf2 /src/include/usr | |
parent | 2df122342fae6aef5c971218acfe994cd523d251 (diff) | |
download | talos-hostboot-8ee01af225a0ac2a6de48624dfd56a3095fb9920.tar.gz talos-hostboot-8ee01af225a0ac2a6de48624dfd56a3095fb9920.zip |
Allow child/parent lookups between DIMM and OCMB_CHIP targets
Some hwps are trying to use the FAPI interfaces to lookup this
relationship. We can support it so might as well allow it.
Change-Id: I4677fdcabbce9798bf068263a916eedc2ee4eb44
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72552
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/fapi2/target.H | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/usr/fapi2/target.H b/src/include/usr/fapi2/target.H index 05df61a42..7b286db87 100644 --- a/src/include/usr/fapi2/target.H +++ b/src/include/usr/fapi2/target.H @@ -462,10 +462,12 @@ inline Target<K_PARENT, M, V> Target<T_SELF, M, V>::getParent(void) const // DIMM -> MCA // DIMM -> MBA // DIMM -> MEM_PORT + // DIMM -> OCMB_CHIP static_assert(!((T_SELF == fapi2::TARGET_TYPE_DIMM) && (K_PARENT != fapi2::TARGET_TYPE_MCA) && (K_PARENT != fapi2::TARGET_TYPE_MBA) && - (K_PARENT != fapi2::TARGET_TYPE_MEM_PORT)), + (K_PARENT != fapi2::TARGET_TYPE_MEM_PORT) && + (K_PARENT != fapi2::TARGET_TYPE_OCMB_CHIP)), "improper parent of fapi2::TARGET_TYPE_DIMM"); // valid parents for PROC @@ -917,8 +919,10 @@ inline std::vector<Target<K_CHILD, M, V> > // valid children for OCMB // OCMB -> MEM_PORT + // OCMB -> DIMM static_assert(!((T_SELF == fapi2::TARGET_TYPE_OCMB_CHIP) && - (K_CHILD != fapi2::TARGET_TYPE_MEM_PORT)), + (K_CHILD != fapi2::TARGET_TYPE_MEM_PORT) && + (K_CHILD != fapi2::TARGET_TYPE_DIMM)), "improper child of fapi2::TARGET_TYPE_OCMB_CHIP"); // valid children for MEM_PORT |