diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2017-01-10 14:39:14 -0600 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-01-20 13:34:47 -0500 |
commit | a803157e2e983de6a0ebe2b4fe9be538b6f192ff (patch) | |
tree | ff97d9f3fb8fbc6df23d893c10c74c431c37badb /src/kernel | |
parent | 06e5c5eb5192aa01ac6c4868141fa7ae49547acc (diff) | |
download | talos-hostboot-a803157e2e983de6a0ebe2b4fe9be538b6f192ff.tar.gz talos-hostboot-a803157e2e983de6a0ebe2b4fe9be538b6f192ff.zip |
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 <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/cpumgr.C | 15 | ||||
-rw-r--r-- | src/kernel/exception.C | 14 |
2 files changed, 24 insertions, 5 deletions
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 <unused> + * @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 <unused> + * @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(); } |