diff options
author | Stephen Glancy <sglancy@us.ibm.com> | 2019-05-14 16:41:07 -0400 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-06-04 08:29:42 -0500 |
commit | 2acc85787f4b9166e11a9e12ba244cbacb2f71ec (patch) | |
tree | a1c1bda969efae33c547b1630537329b1a7d152e /src/import/generic | |
parent | 19394bc52406397f343dbcc1c2ffa4a8d65d959d (diff) | |
download | talos-hostboot-2acc85787f4b9166e11a9e12ba244cbacb2f71ec.tar.gz talos-hostboot-2acc85787f4b9166e11a9e12ba244cbacb2f71ec.zip |
Updates the explorer draminit for 07MAY19 spec
Change-Id: Icda444adbb903ecce82ea99b5110430e951e1716
git-coreq:hostboot:Icda444adbb903ecce82ea99b5110430e951e1716
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77400
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>
Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@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/77749
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/generic')
-rw-r--r-- | src/import/generic/memory/lib/mss_generic_attribute_getters.H | 20 | ||||
-rw-r--r-- | src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml | 12 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/import/generic/memory/lib/mss_generic_attribute_getters.H b/src/import/generic/memory/lib/mss_generic_attribute_getters.H index f26d39723..97fa34867 100644 --- a/src/import/generic/memory/lib/mss_generic_attribute_getters.H +++ b/src/import/generic/memory/lib/mss_generic_attribute_getters.H @@ -2553,6 +2553,26 @@ fapi_try_exit: } /// +/// @brief ATTR_MEM_EFF_DRAM_MDS getter +/// @param[in] const ref to the TARGET_TYPE_MEM_PORT +/// @param[out] uint8_t& reference to store the value +/// @note Generated by gen_accessors.pl generate_mc_port_params +/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK +/// @note Controls if the given target has an MDS (managed DRAM solution) +/// +inline fapi2::ReturnCode get_dram_mds(const fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>& i_target, uint8_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_MEM_EFF_DRAM_MDS, i_target, o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed getting ATTR_MEM_EFF_DRAM_MDS: 0x%lx (target: %s)", + uint64_t(fapi2::current_err), mss::c_str(i_target)); + return fapi2::current_err; +} + +/// /// @brief ATTR_MEM_EFF_NUM_MASTER_RANKS_PER_DIMM getter /// @param[in] const ref to the TARGET_TYPE_DIMM /// @param[out] uint8_t& reference to store the value diff --git a/src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml b/src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml index 60cf77d35..8e7b12bbf 100644 --- a/src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml +++ b/src/import/generic/procedures/xml/attribute_info/generic_memory_eff_attributes.xml @@ -752,6 +752,18 @@ </attribute> <attribute> + <id>ATTR_MEM_EFF_DRAM_MDS</id> + <targetType>TARGET_TYPE_MEM_PORT</targetType> + <description> + Controls if the given target has an MDS (managed DRAM solution) + </description> + <initToZero></initToZero> + <valueType>uint8</valueType> + <writeable/> + <mssAccessorName>dram_mds</mssAccessorName> + </attribute> + + <attribute> <id>ATTR_MEM_EFF_NUM_MASTER_RANKS_PER_DIMM</id> <targetType>TARGET_TYPE_MEM_PORT</targetType> <description> |