From 2acc85787f4b9166e11a9e12ba244cbacb2f71ec Mon Sep 17 00:00:00 2001 From: Stephen Glancy Date: Tue, 14 May 2019 16:41:07 -0400 Subject: 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 Tested-by: Jenkins Server Reviewed-by: Louis Stermole Reviewed-by: Mark Pizzutillo Reviewed-by: ANDRE A. MARIN Tested-by: Hostboot CI Tested-by: HWSV CI Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77749 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- .../memory/lib/mss_generic_attribute_getters.H | 20 ++++++++++++++++++++ .../attribute_info/generic_memory_eff_attributes.xml | 12 ++++++++++++ 2 files changed, 32 insertions(+) (limited to 'src/import/generic') 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 @@ -2552,6 +2552,26 @@ fapi_try_exit: return fapi2::current_err; } +/// +/// @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& 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 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 @@ -751,6 +751,18 @@ dram_cl + + ATTR_MEM_EFF_DRAM_MDS + TARGET_TYPE_MEM_PORT + + Controls if the given target has an MDS (managed DRAM solution) + + + uint8 + + dram_mds + + ATTR_MEM_EFF_NUM_MASTER_RANKS_PER_DIMM TARGET_TYPE_MEM_PORT -- cgit v1.2.1