From ee0683d79ed4efa54f79e56326336d71bb6bb969 Mon Sep 17 00:00:00 2001 From: Anusha Reddy Rangareddygari Date: Wed, 7 Jun 2017 08:43:47 -0400 Subject: dcc skew adjust procedure update new attributes to support disabling of dccadj and skewadj functionality Change-Id: I4f23b8800a87a3d0d9ce0a0fadfa99e2de03d3f6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41470 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: YUE DU Reviewed-by: SRINIVAS V. POLISETTY Reviewed-by: PARVATHI RACHAKONDA Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41473 Tested-by: FSP CI Jenkins Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Dean Sanner --- .../hwp/memory/lib/mss_attribute_accessors.H | 42 ++++++++++++++++++++++ .../xml/attribute_info/pervasive_attributes.xml | 24 +++++++++++++ .../fapi2/xml/attribute_info/hb_temp_defaults.xml | 8 +++++ .../targeting/common/xmltohb/attribute_types.xml | 36 +++++++++++++++++++ src/usr/targeting/common/xmltohb/target_types.xml | 2 ++ 5 files changed, 112 insertions(+) (limited to 'src') 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 cfda1ab5f..553d5e0b7 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 @@ -28667,6 +28667,48 @@ fapi_try_exit: return fapi2::current_err; } +/// +/// @brief ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE 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 To allow for selective enablement for lab testing To allow skew function to be +/// enabled/disabled. +/// +inline fapi2::ReturnCode system_corecache_skewadj_disable(uint8_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE, fapi2::Target(), + o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed accessing ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE: 0x%lx (system target)", + uint64_t(fapi2::current_err)); + return fapi2::current_err; +} + +/// +/// @brief ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE 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 To allow for selective enablement for lab testing To allow dcadj function to be +/// enabled/disabled. +/// +inline fapi2::ReturnCode system_corecache_dcadj_disable(uint8_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE, fapi2::Target(), + o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed accessing ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE: 0x%lx (system target)", + uint64_t(fapi2::current_err)); + return fapi2::current_err; +} + } diff --git a/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml index 1e2aebdf6..8ca7cc446 100755 --- a/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/pervasive_attributes.xml @@ -743,4 +743,28 @@ + + ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE + TARGET_TYPE_SYSTEM + To allow for selective enablement for lab testing + To allow skew function to be enabled/disabled. + uint8 + FALSE = 0x0,TRUE = 0x1 + + + + + + + ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE + TARGET_TYPE_SYSTEM + To allow for selective enablement for lab testing + To allow dcadj function to be enabled/disabled. + uint8 + FALSE = 0x0,TRUE = 0x1 + + + + + diff --git a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml index 04a2a5907..2cfe10087 100644 --- a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml +++ b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml @@ -325,6 +325,14 @@ ATTR_IO_O_MFG_MIN_EYE_WIDTH 0x00 + + ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE + 0x0 + + + ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE + 0x0 + -- cgit v1.2.3