From d5a261b3aa266ff8a780b66569175aef96d0a95a Mon Sep 17 00:00:00 2001 From: Vasant Hegde Date: Thu, 9 Oct 2014 16:02:14 +0530 Subject: OCC: Change OCC timeout elog severity Presently we are logging informational event if OCC timeout happens during boot. Change the severity to Unrecoverable Error. Also updated the elog description. Sample Output: |------------------------------------------------------------------------------| | Entry Id Commit Time SubSystem Committed by | | Platform Id State Event Severity Ascii Str | |------------------------------------------------------------------------------| | 0x53A530C8 10/09/2014 10:13:06 CEC Hardware Subsystem OC | | 0xB0000001 Sent to Hypervisor Unrecoverable Error BB82C013 | |------------------------------------------------------------------------------| Signed-off-by: Vasant Hegde Acked-by: Deepthi Dharwar Signed-off-by: Stewart Smith --- hw/occ.c | 9 +++++++-- include/fsp-elog.h | 1 + 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, -- cgit v1.1