diff options
author | Anusha Reddy Rangareddygari <anusrang@in.ibm.com> | 2017-06-07 08:43:47 -0400 |
---|---|---|
committer | Dean Sanner <dsanner@us.ibm.com> | 2017-07-11 06:31:53 -0400 |
commit | ee0683d79ed4efa54f79e56326336d71bb6bb969 (patch) | |
tree | da4e39a61c02e2f1ccb28dad52aa727483477875 /src | |
parent | f353e9afcfff4de5bec4b646bc435cee252458aa (diff) | |
download | talos-hostboot-ee0683d79ed4efa54f79e56326336d71bb6bb969.tar.gz talos-hostboot-ee0683d79ed4efa54f79e56326336d71bb6bb969.zip |
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 <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: YUE DU <daviddu@us.ibm.com>
Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com>
Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41473
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
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: Dean Sanner <dsanner@us.ibm.com>
Diffstat (limited to 'src')
5 files changed, 112 insertions, 0 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 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<fapi2::TARGET_TYPE_SYSTEM>(), + 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<fapi2::TARGET_TYPE_SYSTEM>(), + 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 @@ <writeable/> </attribute> +<attribute> + <id>ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE</id> + <targetType>TARGET_TYPE_SYSTEM</targetType> + <description>To allow for selective enablement for lab testing + To allow skew function to be enabled/disabled. </description> + <valueType>uint8</valueType> + <enum>FALSE = 0x0,TRUE = 0x1</enum> + <persistRuntime/> + <initToZero/> + <writeable/> +</attribute> + +<attribute> + <id>ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE</id> + <targetType>TARGET_TYPE_SYSTEM</targetType> + <description>To allow for selective enablement for lab testing + To allow dcadj function to be enabled/disabled. </description> + <valueType>uint8</valueType> + <enum>FALSE = 0x0,TRUE = 0x1</enum> + <persistRuntime/> + <initToZero/> + <writeable/> +</attribute> + </attributes> 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 @@ <id>ATTR_IO_O_MFG_MIN_EYE_WIDTH</id> <default>0x00</default> </attribute> + <attribute> + <id>ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE</id> + <default>0x0</default> + </attribute> + <attribute> + <id>ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE</id> + <default>0x0</default> + </attribute> <!-- ===================================================================== End of temporary definitions diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml index 682d49fbd..f4438c516 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types.xml @@ -34901,4 +34901,40 @@ Measured in GB</description> </hwpfToHbAttrMap> </attribute> +<attribute> + <id>SYSTEM_CORECACHE_SKEWADJ_DISABLE</id> + <description> + To allow for selective enablement for lab testing + To allow skew function to be enabled/disabled. + </description> + <simpleType> + <uint8_t></uint8_t> + </simpleType> + <persistency>volatile-zeroed</persistency> + <readable/> + <writeable/> + <hwpfToHbAttrMap> + <id>ATTR_SYSTEM_CORECACHE_SKEWADJ_DISABLE</id> + <macro>DIRECT</macro> + </hwpfToHbAttrMap> +</attribute> + +<attribute> + <id>SYSTEM_CORECACHE_DCADJ_DISABLE</id> + <description> + To allow for selective enablement for lab testing + To allow dcadj function to be enabled/disabled. + </description> + <simpleType> + <uint8_t></uint8_t> + </simpleType> + <persistency>volatile-zeroed</persistency> + <readable/> + <writeable/> + <hwpfToHbAttrMap> + <id>ATTR_SYSTEM_CORECACHE_DCADJ_DISABLE</id> + <macro>DIRECT</macro> + </hwpfToHbAttrMap> +</attribute> + </attributes> diff --git a/src/usr/targeting/common/xmltohb/target_types.xml b/src/usr/targeting/common/xmltohb/target_types.xml index 9b54a8951..52051199a 100755 --- a/src/usr/targeting/common/xmltohb/target_types.xml +++ b/src/usr/targeting/common/xmltohb/target_types.xml @@ -961,6 +961,8 @@ <attribute><id>PGPE_HCODE_FUNCTION_ENABLE</id></attribute> <attribute><id>PERF_24x7_INVOCATION_TIME_MS</id></attribute> <attribute><id>AUX_FUNC_INVOCATION_TIME_MS</id></attribute> + <attribute><id>SYSTEM_CORECACHE_SKEWADJ_DISABLE</id></attribute> + <attribute><id>SYSTEM_CORECACHE_DCADJ_DISABLE</id></attribute> </targetType> <!-- enc-node-power9 --> |