diff options
author | Andre Marin <aamarin@us.ibm.com> | 2016-05-19 11:14:08 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-19 16:28:58 -0400 |
commit | 7aef891ed820618d49373e863caecbcbef30fcdd (patch) | |
tree | fc48836e1ae04eb4d34631822fc14658f465827b /src | |
parent | aa4e2320ea2e88799c01708f1081780ba7d01bfb (diff) | |
download | talos-hostboot-7aef891ed820618d49373e863caecbcbef30fcdd.tar.gz talos-hostboot-7aef891ed820618d49373e863caecbcbef30fcdd.zip |
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 <bwieman@us.ibm.com>
Tested-by: Hostboot CI
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24815
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H | 44 |
1 files 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 @@ -19586,26 +19586,6 @@ fapi_try_exit: } /// -/// @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<fapi2::TARGET_TYPE_SYSTEM>(), 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 /// @note Generated by gen_accessors.pl generateParameters (SYSTEM A) @@ -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<fapi2::TARGET_TYPE_SYSTEM>(), 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 |