summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2017-01-13 17:41:14 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-01-17 13:53:19 -0500
commitcebd85c46848eb5e7a4eec1624ad3c9239a64d70 (patch)
tree7fc14f1f509f675bc3adef239f42d49e369378cc /src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C
parent9210adf7289e68243ce181f24ce2dd6225228375 (diff)
downloadtalos-hostboot-cebd85c46848eb5e7a4eec1624ad3c9239a64d70.tar.gz
talos-hostboot-cebd85c46848eb5e7a4eec1624ad3c9239a64d70.zip
p9_mss_attr_update -- support CRP Lx keyword v2
Change-Id: Ibd8ab5bb2caf4dc82da25c45c756781a63563ea5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34878 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34882 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C
index 283cf49e1..6dd274c8f 100644
--- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C
+++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C
@@ -58,6 +58,7 @@ constexpr uint32_t CRP0_Lx_RECORD_SIZE_EXP = 255;
// offset of keyword version information
constexpr uint8_t Lx_VERSION_OFFSET = 0;
+constexpr uint8_t Lx_V2_VALUE = 2;
constexpr uint8_t Lx_V1_VALUE = 1;
constexpr uint8_t Lx_V0_VALUE = 0;
@@ -483,10 +484,11 @@ p9_mss_attr_update_lx_mvpd(const fapi2::Target<TARGET_TYPE_MCA>& i_target)
"Error from getMvpdField (CRP0, keyword:%d, retrieval) on target: %s",
l_keyword, mss::c_str(l_chip_target));
- // check version number. currently v0 == v1, so we check for either and make sure we
- // use the V1 offsets.
+ // check version number, currently all supported versions use the same offsets
+ // for the purpose of this HWP
FAPI_ASSERT(((l_keyword_data[Lx_VERSION_OFFSET] == Lx_V0_VALUE) ||
- (l_keyword_data[Lx_VERSION_OFFSET] == Lx_V1_VALUE)),
+ (l_keyword_data[Lx_VERSION_OFFSET] == Lx_V1_VALUE) ||
+ (l_keyword_data[Lx_VERSION_OFFSET] == Lx_V2_VALUE)),
fapi2::P9_MSS_ATTR_UPDATE_MVPD_VERSION_ERR().
set_TARGET(l_chip_target).
set_VERSION(l_keyword_data[Lx_VERSION_OFFSET]),
OpenPOWER on IntegriCloud