aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2014-10-09 16:02:14 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-10-10 15:42:00 +1100
commitd5a261b3aa266ff8a780b66569175aef96d0a95a (patch)
tree521b3d1e0398750438e46c20d661844d96bcd58b
parentcdbca5395253f162cdd6ca2de6482b9bd9230bb7 (diff)
downloadskiboot-d5a261b3aa266ff8a780b66569175aef96d0a95a.zip
skiboot-d5a261b3aa266ff8a780b66569175aef96d0a95a.tar.gz
skiboot-d5a261b3aa266ff8a780b66569175aef96d0a95a.tar.bz2
OCC: Change OCC timeout elog severityskiboot-2.1.1-fw810.20-1
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 <hegdevasant@linux.vnet.ibm.com> Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-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,