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/usr/hwas/test/hwas1test.H | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/usr/hwas/test') diff --git a/src/usr/hwas/test/hwas1test.H b/src/usr/hwas/test/hwas1test.H index b11dcfad3..fa9cbb3ab 100644 --- a/src/usr/hwas/test/hwas1test.H +++ b/src/usr/hwas/test/hwas1test.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* Contributors Listed Below - COPYRIGHT 2011,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -1660,9 +1660,7 @@ public: // get parent OBUS and check OPTICS_CONFIG_MODE auto obusType = TARGETING::TYPE_OBUS; - TARGETING::Target* l_obus_ptr = - const_cast( - getParent(pDesc, obusType)); + TARGETING::Target* l_obus_ptr = getParent(pDesc, obusType); ATTR_OPTICS_CONFIG_MODE_type config_mode = l_obus_ptr->getAttr(); -- cgit v1.2.1