summaryrefslogtreecommitdiffstats
path: root/src/import/generic/memory
diff options
context:
space:
mode:
authorStephen Glancy <sglancy@us.ibm.com>2017-09-07 16:38:20 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2017-11-01 15:35:48 -0400
commitd110f5634137d979a14eb4b0b5e9c803aa413a7d (patch)
treea3e42f46c649143f381435a8a43f00efc71714dd /src/import/generic/memory
parent6f456343a42a3def8d14637b2f8ffc90832ee563 (diff)
downloadtalos-hostboot-d110f5634137d979a14eb4b0b5e9c803aa413a7d.tar.gz
talos-hostboot-d110f5634137d979a14eb4b0b5e9c803aa413a7d.zip
Adds in broadcast support for memdiags
Change-Id: I168b8a285a0e8509c8cf92e170ec3d1ea8607e6b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46032 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Dev-Ready: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46037 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/generic/memory')
-rw-r--r--src/import/generic/memory/lib/utils/pos.H16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/import/generic/memory/lib/utils/pos.H b/src/import/generic/memory/lib/utils/pos.H
index 478b44448..3dfbb5679 100644
--- a/src/import/generic/memory/lib/utils/pos.H
+++ b/src/import/generic/memory/lib/utils/pos.H
@@ -80,6 +80,7 @@ class posTraits<fapi2::TARGET_TYPE_DIMM>
DIMMS_PER_PORT = 2,
DIMMS_PER_MCS = PORTS_PER_MCS * DIMMS_PER_PORT,
MCS_PER_PROC = MC_PER_MODULE * MCS_PER_MC,
+ DIMMS_PER_MCBIST = PORTS_PER_MCBIST * DIMMS_PER_PORT,
};
};
@@ -231,7 +232,7 @@ relative_pos<fapi2::TARGET_TYPE_MCS>(const fapi2::Target<fapi2::TARGET_TYPE_DIMM
}
///
-/// @brief Return a DIMM's relative position from an MCS
+/// @brief Return a DIMM's relative position from an MCA
/// @param[in] i_target a target representing the target in question
/// @return The position relative to chiplet R
///
@@ -244,6 +245,19 @@ relative_pos<fapi2::TARGET_TYPE_MCA>(const fapi2::Target<fapi2::TARGET_TYPE_DIMM
}
///
+/// @brief Return a DIMM's relative position from an MCBIST
+/// @param[in] i_target a target representing the target in question
+/// @return The position relative to chiplet R
+///
+template<>
+inline posTraits<fapi2::TARGET_TYPE_DIMM>::pos_type
+relative_pos<fapi2::TARGET_TYPE_MCBIST>(const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_target)
+{
+ typedef posTraits<fapi2::TARGET_TYPE_DIMM> TT;
+ return pos(i_target) % TT::DIMMS_PER_MCBIST;
+}
+
+///
/// @brief Return an MCS's relative position from a processor
/// @param[in] i_target a target representing the target in question
/// @return The position relative to chiplet R
OpenPOWER on IntegriCloud