diff options
author | Van Lee <vanlee@us.ibm.com> | 2012-01-09 22:21:17 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-01-12 14:54:15 -0600 |
commit | 73c0a7c9842c19f6758feb1fe7a466a7d7183a17 (patch) | |
tree | a02ee8a6823bc162ff5e8a41fef91af12449855b /src/usr/hwpf/hwp | |
parent | 47f456fec103ec096edb5e0b9fcff54acbcd3d24 (diff) | |
download | talos-hostboot-73c0a7c9842c19f6758feb1fe7a466a7d7183a17.tar.gz talos-hostboot-73c0a7c9842c19f6758feb1fe7a466a7d7183a17.zip |
HWPF Attribute Support: L2/L3 epsilon register attributes - RTC4564
Change-Id: I51f9ac55afad27ff98eac07768ed52c986c05040
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/602
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp')
-rw-r--r-- | src/usr/hwpf/hwp/L2_L3_attributes.xml | 116 | ||||
-rwxr-xr-x | src/usr/hwpf/hwp/fapiTestHwpAttr.C | 25 |
2 files changed, 141 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/L2_L3_attributes.xml b/src/usr/hwpf/hwp/L2_L3_attributes.xml new file mode 100644 index 000000000..513d1052a --- /dev/null +++ b/src/usr/hwpf/hwp/L2_L3_attributes.xml @@ -0,0 +1,116 @@ +<!-- IBM_PROLOG_BEGIN_TAG + This is an automatically generated prolog. + + $Source: src/usr/hwpf/hwp/L2_L3_attributes.xml $ + + IBM CONFIDENTIAL + + COPYRIGHT International Business Machines Corp. 2012 + + p1 + + Object Code Only (OCO) source materials + Licensed Internal Code Source Materials + IBM HostBoot Licensed Internal Code + + The source code for this program is not published or other- + wise divested of its trade secrets, irrespective of what has + been deposited with the U.S. Copyright Office. + + Origin: 30 + + IBM_PROLOG_END --> +<attributes> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L2_R_T0_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L2 tier0 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L2_R_T1_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L2 tier1 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L2_R_T2_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L2 tier2 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L2_FORCE_R_T2_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L2 force tier2 read epsilon protect (all tiers).</description> + <valueType>uint8</valueType> + <enum>OFF = 0x00, ON = 0x01</enum> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L2_W_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L2 write epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L3_R_T0_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L3 tier0 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L3_R_T1_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L3 tier1 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L3_R_T2_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L3 tier2 read epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L3_FORCE_R_T2_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L3 force tier2 read epsilon protect (all tiers).</description> + <valueType>uint8</valueType> + <enum>OFF = 0x00, ON = 0x01</enum> + <writeable/> + <persistRuntime/> + </attribute> + <!-- ********************************************************************* --> + <attribute> + <id>ATTR_L3_W_EPS</id> + <targetType>TARGET_TYPE_EX_CHIPLET</targetType> + <description>L3 write epsilon register value.</description> + <valueType>uint32</valueType> + <writeable/> + <persistRuntime/> + </attribute> +</attributes> diff --git a/src/usr/hwpf/hwp/fapiTestHwpAttr.C b/src/usr/hwpf/hwp/fapiTestHwpAttr.C index 21a9a7356..731c82720 100755 --- a/src/usr/hwpf/hwp/fapiTestHwpAttr.C +++ b/src/usr/hwpf/hwp/fapiTestHwpAttr.C @@ -95,6 +95,31 @@ fapi::ReturnCode hwpTestAttributes() } //---------------------------------------------------------------------- + // Test ATTR_L2_R_T0_EPS + //---------------------------------------------------------------------- + { + TARGETING::PredicateCTM l_pred(TARGETING::CLASS_UNIT, + TARGETING::TYPE_EX); + TARGETING::TargetRangeFilter l_filter( + TARGETING::targetService().begin(), + TARGETING::targetService().end(), &l_pred); + // Use the first EX chiplet + if (l_filter) + { + uint32_t l_tmp; + fapi::Target l_target(fapi::TARGET_TYPE_EX_CHIPLET, *l_filter); + fapi::Target * l_pTarget = &l_target; + + l_rc = FAPI_ATTR_GET(ATTR_L2_R_T0_EPS, l_pTarget, l_tmp); + if (l_rc) + { + FAPI_ERR("hwpTestAttributes: L2/L3 ATTR. Error from GET"); + break; + } + } + } + + //---------------------------------------------------------------------- // Test ATTR_SCRATCH_UINT8_1 //---------------------------------------------------------------------- { |