From 7364f2447d187b1b7dfff42403db051c4fc7e4e4 Mon Sep 17 00:00:00 2001 From: Bill Hoffa Date: Wed, 30 Jan 2019 09:49:50 -0600 Subject: Initialize and test alt-master PNOR access in all boots - Update to istep 10 (call_host_slave_sbe_update) to validate the alternate master pnor chip in all boots (no-op for systems with only one pnor chip) - Updates to pnor callout logic to callout as a PNOR part for several of the error paths Change-Id: I9218f9a14496444288ea7985e1fb080c25f7f201 RTC: 200449 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71489 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- src/usr/errl/errlentry.C | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'src/usr/errl') diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C index 99271a8da..370df7091 100644 --- a/src/usr/errl/errlentry.C +++ b/src/usr/errl/errlentry.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2018 */ +/* Contributors Listed Below - COPYRIGHT 2011,2019 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* */ @@ -2004,6 +2004,33 @@ std::vector ErrlEntry::getUDSections(compId_t i_compId, return copy_vector; } +void ErrlEntry::removeDeconfigure() +{ + //Loop through each section of the errorlog + for(auto & section : iv_SectionVector) + { + if (section->compId() == ERRL_COMP_ID && section->subSect() == ERRORLOG::ERRL_UDT_CALLOUT) + { + //Looking at hwasCallout.H only the HW, CLOCK, and PART Callouts have deconfigure entries, + // so only update those to ensure the ErrorType is GARD_NULL + if (reinterpret_cast(section->iv_pData)->type == HWAS::HW_CALLOUT) + { + reinterpret_cast(section->iv_pData)->gardErrorType = HWAS::GARD_NULL; + reinterpret_cast(section->iv_pData)->deconfigState = HWAS::NO_DECONFIG; + } + else if (reinterpret_cast(section->iv_pData)->type == HWAS::CLOCK_CALLOUT) + { + reinterpret_cast(section->iv_pData)->clkGardErrorType = HWAS::GARD_NULL; + reinterpret_cast(section->iv_pData)->clkDeconfigState = HWAS::NO_DECONFIG; + } + else if (reinterpret_cast(section->iv_pData)->type == HWAS::PART_CALLOUT) + { + reinterpret_cast(section->iv_pData)->partGardErrorType = HWAS::GARD_NULL; + reinterpret_cast(section->iv_pData)->partDeconfigState = HWAS::NO_DECONFIG; + } + } + } +} void ErrlEntry::removeDuplicateTraces() { -- cgit v1.2.1