From 7383c3a4fbaff710ecbefb3e9eeeae7320d9f8b1 Mon Sep 17 00:00:00 2001 From: Marty Gloff Date: Wed, 28 Mar 2018 11:00:35 -0500 Subject: Get Hostboot Dump after Hostboot Crash When Hostboot has a TI with a PLID rather than a Reason Code (RC), HWSV does not attempt the Hostboot Dump. Thought is that happens per the design as the error log related to the PLID sent by Hostboot should already have the required information. There are instances where the error log does not have sufficient data and a dump would be beneficial. A path is being added so an error log can be flagged as needing a Hostboot dump. Change-Id: I97972308c70e7210f578fb818563bb9b0cd940b4 CQ: SW420219 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56600 CI-Ready: Daniel M. Crowell CI-Ready: Martin Gloff Reviewed-by: Matt Derksen Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Reviewed-by: Corey V. Swenson Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/kernel/terminate.C | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/terminate.C b/src/kernel/terminate.C index 52756b825..499fd96b9 100644 --- a/src/kernel/terminate.C +++ b/src/kernel/terminate.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2017 */ +/* Contributors Listed Below - COPYRIGHT 2012,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -52,7 +52,6 @@ HB_Descriptor kernel_hbDescriptor = #endif // BOOTLOADER - void terminateExecuteTI() { // Call the function that actually executes the TI code. @@ -98,3 +97,13 @@ void termModifySRC(uint8_t i_moduleID, uint32_t i_word7, uint32_t i_word8) kernel_TIDataArea.src.word7 = i_word7; kernel_TIDataArea.src.word8 = i_word8; } + +#ifndef BOOTLOADER +void termSetHbDump(void) +{ + // Set indicator flag for doing HB dump + kernel_TIDataArea.hbDumpFlag = 1; + + return; +} +#endif // BOOTLOADER -- cgit v1.2.1