From a803157e2e983de6a0ebe2b4fe9be538b6f192ff Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Tue, 10 Jan 2017 14:39:14 -0600 Subject: Add error logs tag for kernel errors so they get into KC Adding some @error tags for the critical kernel TIs so that a description ends up getting into Knowledge Center. ForwardPort: yes Change-Id: Ibe468d25a9390ab5f4285d969b9e9c838830f216 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34792 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Tested-by: Jenkins OP Build CI Reviewed-by: Matthew A. Ploetz Reviewed-by: William G. Hoffa --- src/kernel/cpumgr.C | 15 ++++++++++++--- src/kernel/exception.C | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/cpumgr.C b/src/kernel/cpumgr.C index 93248ea98..e6bf08dd9 100644 --- a/src/kernel/cpumgr.C +++ b/src/kernel/cpumgr.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2016 */ +/* Contributors Listed Below - COPYRIGHT 2010,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -487,9 +487,18 @@ void CpuManager::forceMemoryPeriodic() void CpuManager::critAssert(uint64_t i_failAddr) { + /*@ + * @errortype + * @moduleid KERNEL::MOD_KERNEL_INVALID + * @reasoncode KERNEL::RC_SHUTDOWN + * @userdata1 Failing address + * @userdata2 + * @devdesc Kernel encountered an unhandled exception. + * @custdesc Boot firmware has crashed with an internal + * error. + */ /* create SRC amd call terminate immediate*/ - - termWriteSRC(TI_CRIT_ASSERT,RC_SHUTDOWN, i_failAddr); + termWriteSRC(TI_CRIT_ASSERT,KERNEL::RC_SHUTDOWN, i_failAddr); class ExecuteCritAssert : public DeferredWork { diff --git a/src/kernel/exception.C b/src/kernel/exception.C index 2dd17e574..781e7941d 100644 --- a/src/kernel/exception.C +++ b/src/kernel/exception.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2016 */ +/* Contributors Listed Below - COPYRIGHT 2010,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -406,6 +406,16 @@ void kernel_execute_unhandled_exception() exception, t->tid, t->context.nip); MAGIC_INSTRUCTION(MAGIC_BREAK_ON_ERROR); - termWriteSRC(TI_UNHANDLED_EX, RC_UNHANDLED_EX, exception); + /*@ + * @errortype + * @moduleid KERNEL::MOD_KERNEL_INVALID + * @reasoncode KERNEL::RC_UNHANDLED_EX + * @userdata1 Exception type + * @userdata2 + * @devdesc Kernel encountered an unhandled exception. + * @custdesc Boot firmware has crashed with an internal + * error. + */ + termWriteSRC(TI_UNHANDLED_EX, KERNEL::RC_UNHANDLED_EX, exception); terminateExecuteTI(); } -- cgit v1.2.1