summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/htmgt_utility.H
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2018-12-05 11:33:45 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-14 16:43:10 -0600
commit2d59cd70dae624b16a957a1735299e12097c128a (patch)
tree3a6526739799ec9635d36ec90a0b5d11daba2ebe /src/usr/htmgt/htmgt_utility.H
parent9228e4c1f5b4da50925043987d0516ccb454f699 (diff)
downloadblackbird-hostboot-2d59cd70dae624b16a957a1735299e12097c128a.tar.gz
blackbird-hostboot-2d59cd70dae624b16a957a1735299e12097c128a.zip
HTMGT: Clear OCC reset counts after an hour
- add HTMGT/OCC data to elogs - parse HTMGT/OCC data in elogs - add reset count per OCC since last boot - remove unused legacy pstate attributes/code Change-Id: I69f9fe504af13eae86ec423a329a7bc46286f906 RTC: 202016 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69717 Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sheldon Bailey <baileysh@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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_utility.H')
-rw-r--r--src/usr/htmgt/htmgt_utility.H17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/usr/htmgt/htmgt_utility.H b/src/usr/htmgt/htmgt_utility.H
index 6b16adfd7..d1d6207d0 100644
--- a/src/usr/htmgt/htmgt_utility.H
+++ b/src/usr/htmgt/htmgt_utility.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2018 */
+/* Contributors Listed Below - COPYRIGHT 2014,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -155,11 +155,12 @@ namespace HTMGT
SUBSEC_ADDITIONAL_SRC = 0x0C,
SUBSEC_OCC_CMD_DATA = 0x0D,
SUBSEC_OCC_RSP_DATA = 0x0E,
- //SUBSEC_ELOG_TYPE_TOIF_RESET = 0x10,
+ SUBSEC_ELOG_TYPE_HTMGT_DATA = 0x10,
//SUBSEC_ELOG_TYPE_OCC_RESET = 0x11,
//SUBSEC_ELOG_TYPE_PCAP_DATA = 0x12,
//SUBSEC_ELOG_TYPE_THERMAL_DATA = 0x13,
//SUBSEC_PROC_SCOM_REGISTERS = 0x14,
+ //SUBSEC_ELOG_TYPE_OCC_TRACE = 0x15,
// 0xE0-0xEF are reserved for OCC Exceptions
};
@@ -178,12 +179,6 @@ namespace HTMGT
PASSTHRU_OCC_CFG_DATA = 0x0C,
};
- enum htmgtAttrName
- {
- ATTR_PSTATE = 0x01,
- ATTR_PSTATE_MFG = 0x02,
- ATTR_RAW = 0xFF
- };
/**
* @brief Create/Build an Error log and add HTMGT component trace
@@ -267,6 +262,12 @@ namespace HTMGT
*/
bool int_flags_set(const uint32_t i_mask);
+ /**
+ * @brief Check if OCC reset counters need to be cleared.
+ * Function is called periodically (OCC_RCOUNT_RESET_TIME)
+ *
+ */
+ void check_reset_count();
} // end namespace
#endif
OpenPOWER on IntegriCloud