From a5d19110fd5dad891f8fe20c260fb7fb23051822 Mon Sep 17 00:00:00 2001 From: Matt Derksen Date: Wed, 13 Sep 2017 08:58:27 -0500 Subject: Fix parent of OBUS_BRICK - remove OPTICS_CONFIG_MODE from obus brick targets - remove FAPI_POS from cumulus obus bricks Change-Id: I7248bcf39526378fa5b8322a331beeeb33d4d2a4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46141 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes Reviewed-by: Prachi Gupta Reviewed-by: Daniel M. Crowell --- src/usr/hwas/test/hwas1test.H | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/usr/hwas/test') diff --git a/src/usr/hwas/test/hwas1test.H b/src/usr/hwas/test/hwas1test.H index 4b1e9ccd0..b11dcfad3 100644 --- a/src/usr/hwas/test/hwas1test.H +++ b/src/usr/hwas/test/hwas1test.H @@ -1652,14 +1652,19 @@ public: case TYPE_OBUS_BRICK: { //Two cases here: - //OBRICK==SMP --> Target should be present regardless of PG - //OBRICK!=SMP --> Target should follow PG + //OBUS==SMP --> Target should be present regardless of PG + //OBUS!=SMP --> Target should follow PG //marking PG bad pgData[VPD_CP00_PG_N3_INDEX] |= (uint16_t)VPD_CP00_PG_N3_NPU; + // get parent OBUS and check OPTICS_CONFIG_MODE + auto obusType = TARGETING::TYPE_OBUS; + TARGETING::Target* l_obus_ptr = + const_cast( + getParent(pDesc, obusType)); ATTR_OPTICS_CONFIG_MODE_type config_mode = - pDesc->getAttr(); + l_obus_ptr->getAttr(); if (OPTICS_CONFIG_MODE_SMP == config_mode) { -- cgit v1.2.1