aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/occ.c9
-rw-r--r--include/fsp-elog.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 17fca93..d54e206 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -64,6 +64,10 @@ DEFINE_LOG_ENTRY(OPAL_RC_OCC_PSTATE_INIT, OPAL_PLATFORM_ERR_EVT, OPAL_OCC,
OPAL_CEC_HARDWARE, OPAL_INFO,
OPAL_NA, NULL);
+DEFINE_LOG_ENTRY(OPAL_RC_OCC_TIMEOUT, OPAL_PLATFORM_ERR_EVT, OPAL_OCC,
+ OPAL_CEC_HARDWARE, OPAL_UNRECOVERABLE_ERR_GENERAL,
+ OPAL_NA, NULL);
+
/* Check each chip's HOMER/Sapphire area for PState valid bit */
static bool wait_for_all_occ_init(void)
{
@@ -269,8 +273,9 @@ void occ_pstates_init(void)
/* Wait for all OCC to boot up */
if(!wait_for_all_occ_init()) {
- log_simple_error(&e_info(OPAL_RC_OCC_PSTATE_INIT),
- "OCC: All OCC did not init. Timed Out\n");
+ log_simple_error(&e_info(OPAL_RC_OCC_TIMEOUT),
+ "OCC: Initialization on all chips did not complete"
+ "(timed out)\n");
return;
}
diff --git a/include/fsp-elog.h b/include/fsp-elog.h
index a171063..fa76219 100644
--- a/include/fsp-elog.h
+++ b/include/fsp-elog.h
@@ -130,6 +130,7 @@ enum opal_reasoncode {
OPAL_RC_OCC_RESET = OPAL_OC | 0x10,
OPAL_RC_OCC_LOAD = OPAL_OC | 0x11,
OPAL_RC_OCC_PSTATE_INIT = OPAL_OC | 0x12,
+ OPAL_RC_OCC_TIMEOUT = OPAL_OC | 0x13,
/* RTC */
OPAL_RC_RTC_READ = OPAL_RT | 0x10,
OPAL_RC_RTC_TOD = OPAL_RT | 0x11,