From c8448c3a09aef319e9669fc1003b9fa6f79ebe5d Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Thu, 26 Jul 2018 12:22:43 -0500 Subject: Deconfig EC/EX/EQ at runtime Applied the normal parent/child rules for EC/EX/EQ logic to be done in the runtime deconfig logic. After applying the deconfig logic, then reset the PM for the parent proc of the EX/EX/EQ. To facilitate the code changes, modified the return value of the TARGETING::getParent(...) call. It no longer returns a const * Target, considering 5 times out of 7 of it's usage, users were just staic_cast(ing) away the const. Clear out the HB reset attribute in the mpipl path. Modify PRD logic to use runtime deconfig call in malfunction alert path. CMVC-Prereq: 1066157 Change-Id: If81f2f15c6e84bf2adb6fd66c1321b8f1ddf1a86 CQ: SW443157 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64873 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Roland Veloz Reviewed-by: Daniel M. Crowell --- src/include/usr/hwas/common/deconfigGard.H | 8 ++++---- src/include/usr/targeting/common/utilFilter.H | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/include/usr') diff --git a/src/include/usr/hwas/common/deconfigGard.H b/src/include/usr/hwas/common/deconfigGard.H index 4ff7d0a83..fe1d20b0a 100644 --- a/src/include/usr/hwas/common/deconfigGard.H +++ b/src/include/usr/hwas/common/deconfigGard.H @@ -488,7 +488,7 @@ public: * * NOTE: Currently only core targets are supported * - * @param[in] i_pTarget const pointer to the core target to deconfigure + * @param[in] i_pTarget pointer to the target to deconfigure * @param[in] i_deconfigureAction Deconfigure options - * FULLY_AT_RUNTIME * @param[in] i_deconfigErrl - error log assocated with this deconfig @@ -500,7 +500,7 @@ public: * @return errlHndl_t. Error log handle. */ errlHndl_t deconfigureTargetAtRuntime( - TARGETING::ConstTargetHandle_t const i_pTarget, + TARGETING::TargetHandle_t i_pTarget, const DeconfigureFlags i_deconfigureAction, const errlHndl_t i_deconfigErrl); @@ -515,7 +515,7 @@ public: * child targets. Any errors deconfiguring targets are committed and * the function continues. The only errors returned are usage errors. * - * @param[in] i_pTarget const pointer to Target to deconfigure. + * @param[in] i_pTarget pointer to Target to deconfigure. * @param[in] i_deconfigureAction Deconfigure options - * FULLY_AT_RUNTIME * @param[in] i_deconfigErrl - error log assocated with this deconfig @@ -529,7 +529,7 @@ public: #ifdef __HOSTBOOT_RUNTIME errlHndl_t platDeconfigureTargetAtRuntime( - TARGETING::ConstTargetHandle_t const i_pTarget, + TARGETING::TargetHandle_t i_pTarget, const DeconfigureFlags i_deconfigureAction, const errlHndl_t i_deconfigErrl); #endif diff --git a/src/include/usr/targeting/common/utilFilter.H b/src/include/usr/targeting/common/utilFilter.H index 4771edace..880b4869d 100644 --- a/src/include/usr/targeting/common/utilFilter.H +++ b/src/include/usr/targeting/common/utilFilter.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2016 */ +/* Contributors Listed Below - COPYRIGHT 2012,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -300,7 +300,7 @@ const Target * getParentChip( const Target * i_pChiplet ); * * @return Parent target pointer or NULL if error */ -const Target * getParent( const Target * i_unit , TARGETING::TYPE &i_pType); +Target * getParent( const Target * i_unit , TARGETING::TYPE &i_pType); /** * @brief return the EX target of the specified input core chiplet -- cgit v1.2.1