summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2016-06-02 06:28:57 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-10 14:46:49 -0400
commit3d485fbdab55175f716253b4fe4c52835c93a5a0 (patch)
tree1a36d89d454e170b69d0b93e921033d1e1512722 /src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H
parent0c34e40e9061b3431e294931659dc67c8f340130 (diff)
downloadtalos-hostboot-3d485fbdab55175f716253b4fe4c52835c93a5a0.tar.gz
talos-hostboot-3d485fbdab55175f716253b4fe4c52835c93a5a0.zip
Add memdiags scrub capability
Change-Id: I1f42c836a8fc4ff3ca31401ec53f2a3aeda77513 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25376 Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25377 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H
index d9e564c62..4ab89090c 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/mcbist/settings.H
@@ -47,6 +47,7 @@ namespace mcbist
enum stop_conditions
{
NO_STOP_ON_ERROR = 0b00,
+ DONT_STOP = NO_STOP_ON_ERROR,
STOP_AFTER_ADDRESS = 0b01,
STOP_AFTER_RANK = 0b10,
STOP_AFTER_SUBTEST = 0b11,
@@ -61,7 +62,6 @@ enum end_boundary
NONE = 0,
CONTINUOUS = NONE,
NEVER = NONE,
- DONT_STOP = NONE,
MASTER_RANK = 1,
MRANK = MASTER_RANK,
SLAVE_RANK = 2,
@@ -98,6 +98,15 @@ class thresholds
iv_value(0)
{ }
+
+ ///
+ /// @brief Thresholds class ctor
+ /// @param[in] uint64_t representing the threshold register contents
+ ///
+ thresholds(const uint64_t i_value):
+ iv_value(i_value)
+ { }
+
///
/// @brief Thresholds class dtor
///
@@ -414,6 +423,7 @@ struct constraints
iv_thresholds(),
iv_pattern(NO_PATTERN),
iv_end_boundary(NONE),
+ iv_speed(LUDICROUS),
iv_start_address(0),
iv_end_address(0)
{
@@ -460,10 +470,29 @@ struct constraints
i_stop, uint64_t(i_thresholds), uint64_t(i_start_address));
}
+ ///
+ /// @brief constraints constructor
+ /// @param[in] i_stop stop conditions
+ /// @param[in] i_thresholds thresholds
+ /// @param[in] i_start_address address to start from
+ ///
+ constraints( const stop_conditions i_stop,
+ const thresholds& i_thresholds,
+ const speed i_speed,
+ const end_boundary i_end_boundary,
+ const address& i_start_address ):
+ constraints(i_stop, i_thresholds, i_start_address)
+ {
+ iv_end_boundary = i_end_boundary;
+ iv_speed = i_speed;
+ FAPI_INF("setting up constraints with end boundary %d and speed 0x%x", i_end_boundary, i_speed);
+ }
+
stop_conditions iv_stop;
thresholds iv_thresholds;
uint64_t iv_pattern;
end_boundary iv_end_boundary;
+ speed iv_speed;
mcbist::address iv_start_address;
mcbist::address iv_end_address;
};
OpenPOWER on IntegriCloud