summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9
diff options
context:
space:
mode:
authorStephen Glancy <sglancy@us.ibm.com>2016-10-29 17:12:56 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-11-15 23:40:13 -0500
commit65c1a0cb72f7daa85a7e5d37dce6c27cbf2042d7 (patch)
tree8d200005f92ab9a61017a32856ffb465929a1d90 /src/import/chips/p9
parenta633d3b4885dbec7f8633fb990b1e8bc38a9bea9 (diff)
downloadtalos-hostboot-65c1a0cb72f7daa85a7e5d37dce6c27cbf2042d7.tar.gz
talos-hostboot-65c1a0cb72f7daa85a7e5d37dce6c27cbf2042d7.zip
Added error count mode 2 to MCBIST lab
MCBIST has three modes for debugging 0-2. Mode 2 is the most similar to IBM's prior version of MCBIST. It will also be used as a starting point for the shmoo code. The print functionality is currently a starting point and very basic. Only one mode is in this commit to keep the commit size small for ease of review. Change-Id: I4849aae16d3a2607477d24ee6e388823f3f77baa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32005 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32043 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.C14
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.H3
2 files changed, 17 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.C b/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.C
index 2d8c50a5b..c4d8260f3 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.C
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.C
@@ -51,4 +51,18 @@ constexpr const uint64_t eccTraits<fapi2::TARGET_TYPE_MCA>::ERROR_VECTOR_REGS[];
constexpr const uint8_t eccTraits<fapi2::TARGET_TYPE_MCA>::symbol2galois[];
constexpr const uint8_t eccTraits<fapi2::TARGET_TYPE_MCA>::symbol2dq[];
+// Definition of the symbol error count registers
+const std::vector< uint64_t > eccTraits<fapi2::TARGET_TYPE_MCBIST>::SYMBOL_COUNT_REG =
+{
+ MCBIST_MBSSYMEC0Q,
+ MCBIST_MBSSYMEC1Q,
+ MCBIST_MBSSYMEC2Q,
+ MCBIST_MBSSYMEC3Q,
+ MCBIST_MBSSYMEC4Q,
+ MCBIST_MBSSYMEC5Q,
+ MCBIST_MBSSYMEC6Q,
+ MCBIST_MBSSYMEC7Q,
+ MCBIST_MBSSYMEC8Q,
+};
+
} // close namespace mss
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.H b/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.H
index a6ee9b49a..c78413f96 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/ecc/ecc_traits.H
@@ -268,6 +268,9 @@ class eccTraits<fapi2::TARGET_TYPE_MCBIST>
static constexpr uint64_t MODAL_SYM_COUNT7_REG = MCBIST_MBSSYMEC7Q;
static constexpr uint64_t MODAL_SYM_COUNT8_REG = MCBIST_MBSSYMEC8Q;
+ // Stores the symbol counter registers in a vector for easier access for MCBIST
+ static const std::vector<uint64_t> SYMBOL_COUNT_REG;
+
// Fields, can be any size.
enum
{
OpenPOWER on IntegriCloud