summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2TestUtils.H
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2018-11-08 11:06:47 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-11-27 13:03:37 -0600
commit63a9aa53dcf3c7ddcff756e694ddcff246b5c9f2 (patch)
tree7a4c94c123a50f14d945f6af235733b235214ca5 /src/usr/fapi2/test/fapi2TestUtils.H
parent896f7a9abffa5ece17107e1f653c620d72a82628 (diff)
downloadtalos-hostboot-63a9aa53dcf3c7ddcff756e694ddcff246b5c9f2.tar.gz
talos-hostboot-63a9aa53dcf3c7ddcff756e694ddcff246b5c9f2.zip
Define Parent/Child Relationship for OMIC/OMI targets
This commit puts in the plumbing to have xmltohb.pl look for ATTR_OMIC_PARENT attributes on the OMI targets and with the value of that attribute define a bi-directional relationship between the given OMI target and its defined OMIC parent. Each target in the binary will have pointers to its associated parent/child. When getChildren<OMI> or getParent<OMIC> is called in the FAPI2 api for a OMIC or OMI target respectively, then the Hostboot platform implementation of these functions will route to the new getParentOmicTargetsByState and getChildOmiTargetsByState functions that were defined to perform lookups in the targeting binary for this relationship. Change-Id: I8cd901864a700c9fe575dfa0916d5e78760a7b0c RTC: 172969 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68541 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/test/fapi2TestUtils.H')
-rw-r--r--src/usr/fapi2/test/fapi2TestUtils.H5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2TestUtils.H b/src/usr/fapi2/test/fapi2TestUtils.H
index 2d51330c2..cb88a1d6e 100644
--- a/src/usr/fapi2/test/fapi2TestUtils.H
+++ b/src/usr/fapi2/test/fapi2TestUtils.H
@@ -53,6 +53,11 @@
#define OCMB_PER_OMI 1
#define MEM_PORT_PER_OCMB 1
+// Note that OMIC can either have 2 or 3 child OMI
+// targets. There are 3 OMIC targets per MC, OMIC0
+// and OMIC1 have 3 children, OMIC2 has 2 children
+#define MAX_OMI_PER_OMIC 3
+
#define SIMULATED_GOOD_CORES 4
// non-core and non-cache chiplet ids
OpenPOWER on IntegriCloud