summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory
diff options
context:
space:
mode:
authorAndre A. Marin <aamarin@us.ibm.com>2019-05-09 10:08:25 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-05-13 12:19:06 -0500
commitf83005325604106a140cfc3f3673165a36b93b7e (patch)
tree9e00e6e54327c648c296b9e4ae5a9b3e75f3fbce /src/import/chips/p9/procedures/hwp/memory
parentb952df368d4204b91f6374036051cfd99f1834d6 (diff)
downloadtalos-hostboot-f83005325604106a140cfc3f3673165a36b93b7e.tar.gz
talos-hostboot-f83005325604106a140cfc3f3673165a36b93b7e.zip
Added Nimbus NDVDIMM specific DIMM slot attribute
Change-Id: I4ae692f931ebaac275cd3a66783a5fceb2d6894f Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77179 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: TSUNG K YEUNG <tyeung@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77193 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')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H
index 8d6458ed3..d41445265 100644
--- a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H
+++ b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H
@@ -14142,6 +14142,31 @@ fapi_try_exit:
///
+/// @brief ATTR_MSS_MRW_NVDIMM_SLOT_POSITION getter
+/// @param[in] const ref to the TARGET_TYPE_DIMM
+/// @param[out] uint8_t& reference to store the value
+/// @note Generated by gen_accessors.pl generateParameters (PROC_CHIP)
+/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK
+/// @note The position of a dimm is based on which mca it is associated with and which
+/// drop behind that mca, with 16 dimms possible per processor socket. The formula
+/// is: [processor position with no gaps, i.e. 0,1,2,3]*16 + [mca position on this
+/// processor * 2] + [dimm location behind this
+/// mca]
+///
+inline fapi2::ReturnCode mrw_nvdimm_slot_position(const fapi2::Target<fapi2::TARGET_TYPE_DIMM>& i_target,
+ uint8_t& o_value)
+{
+
+ FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_MSS_MRW_NVDIMM_SLOT_POSITION, i_target, o_value) );
+ return fapi2::current_err;
+
+fapi_try_exit:
+ FAPI_ERR("failed accessing ATTR_MSS_MRW_NVDIMM_SLOT_POSITION: 0x%lx",
+ uint64_t(fapi2::current_err));
+ return fapi2::current_err;
+}
+
+///
/// @brief ATTR_MSS_MRW_UNSUPPORTED_RANK_CONFIG getter
/// @param[in] const ref to the fapi2::Target<fapi2::TARGET_TYPE_MCA>
/// @param[out] ref to the value uint64_t
OpenPOWER on IntegriCloud