From 7aef891ed820618d49373e863caecbcbef30fcdd Mon Sep 17 00:00:00 2001 From: Andre Marin Date: Thu, 19 May 2016 11:14:08 -0500 Subject: Fix MSS attribute file for cas latency type. Added dependencies. Change-Id: I3d8538d51ec86e315d87a5ee5ebf7f4fc60e18a7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24814 Tested-by: Jenkins Server Dev-Ready: Brent Wieman Tested-by: Hostboot CI Reviewed-by: Brian R. Silver Reviewed-by: Prachi Gupta Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24815 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- .../hwp/memory/lib/mss_attribute_accessors.H | 44 ++++++++++++---------- 1 file changed, 24 insertions(+), 20 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 ba5ee9f29..e84ae92f3 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 @@ -19585,26 +19585,6 @@ fapi_try_exit: return fapi2::current_err; } -/// -/// @brief ATTR_MEM_IN_SYNCH_MODE getter -/// @param[out] uint8_t& reference to store the value -/// @note Generated by gen_accessors.pl generateParameters (SYSTEM) -/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK -/// @note Run the memory clocks in synchronous mode with the nest -/// clocks. -/// -inline fapi2::ReturnCode mem_in_synch_mode(uint8_t& o_value) -{ - - FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_MEM_IN_SYNCH_MODE, fapi2::Target(), o_value) ); - return fapi2::current_err; - -fapi_try_exit: - FAPI_ERR("failed accessing ATTR_MEM_IN_SYNCH_MODE: 0x%lx (system target)", - uint64_t(fapi2::current_err)); - return fapi2::current_err; -} - /// /// @brief ATTR_MAX_ALLOWED_DIMM_FREQ getter /// @param[out] uint32_t* memory to store the value @@ -19630,6 +19610,30 @@ fapi_try_exit: return fapi2::current_err; } +/// +/// @brief ATTR_REQUIRED_SYNCH_MODE getter +/// @param[out] uint8_t& reference to store the value +/// @note Generated by gen_accessors.pl generateParameters (SYSTEM) +/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK +/// @note Specify the system policy to enforce synchronous mode between memory and nest. +/// This drives the value of ATTR_MEM_IN_SYNCH_MODE. UNDETERMINED : Run +/// synchronously if the dimm and nest freq matches ALWAYS : Require matching +/// frequencies and deconfigure memory that does not match the nest NEVER : Do not +/// run synchronously, even if the frequencies +/// match +/// +inline fapi2::ReturnCode required_synch_mode(uint8_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_REQUIRED_SYNCH_MODE, fapi2::Target(), o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed accessing ATTR_REQUIRED_SYNCH_MODE: 0x%lx (system target)", + uint64_t(fapi2::current_err)); + return fapi2::current_err; +} + /// /// @brief ATTR_EFF_DRAM_GEN getter -- cgit v1.2.1