Skip to content

Commit

Permalink
Add part callout for the Backup Power Module
Browse files Browse the repository at this point in the history
Callouts were previously added for the NVDIMM controller
and the BPM cable.  This callout handles the BPM itself.

Change-Id: I4ad680a1434ed7d3680f14f6081e456c07239c36
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75254
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
cvswen authored and wghoffa committed Apr 3, 2019
1 parent 25c1b41 commit 201a39f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/include/usr/hwas/common/hwasCallout.H
Expand Up @@ -223,8 +223,9 @@ enum partTypeEnum
PCI_REF_CLOCK = 11,
// @TODO 195920 Remove SMP_CABLE once HWSV code no longer references it
SMP_CABLE = 12, //Target is SMPGROUP
BPM_CABLE_PART_TYPE = 13, //Backup Power Module for NVDIMM
NV_CONTROLLER_PART_TYPE = 14,
BPM_CABLE_PART_TYPE = 13, //Backup Power Module Cable for NVDIMM
NV_CONTROLLER_PART_TYPE = 14, //Controller for NVDIMM
BPM_PART_TYPE = 15, //Backup Power Module for NVDIMM
};

enum sensorTypeEnum
Expand Down
2 changes: 1 addition & 1 deletion src/usr/diag/prdf/plat/mem/prdfP9Mca.C
Expand Up @@ -349,7 +349,7 @@ uint32_t __addBpmCallout( TargetHandle_t i_dimm,
break;
}

mainErrl->addPartCallout( i_dimm, HWAS::BPM_CABLE_PART_TYPE,
mainErrl->addPartCallout( i_dimm, HWAS::BPM_PART_TYPE,
i_priority );

}while(0);
Expand Down
1 change: 1 addition & 0 deletions src/usr/errl/plugins/errludcallout.H
Expand Up @@ -151,6 +151,7 @@ case HWAS::_type: i_parser.PrintString( "Part Type", #_type); break;
case_PART_TYPE(SMP_CABLE)
case_PART_TYPE(BPM_CABLE_PART_TYPE)
case_PART_TYPE(NV_CONTROLLER_PART_TYPE)
case_PART_TYPE(BPM_PART_TYPE)

default:
i_parser.PrintNumber( "Part Type", "UNKNOWN: 0x%X",
Expand Down
1 change: 1 addition & 0 deletions src/usr/errldisplay/errldisplay.C
Expand Up @@ -299,6 +299,7 @@ case HWAS::_type: CONSOLE::displayf(NULL, " Part Type : %s", #_t
case_PART_TYPE(SPIVID_SLAVE_PART_TYPE)
case_PART_TYPE(BPM_CABLE_PART_TYPE)
case_PART_TYPE(NV_CONTROLLER_PART_TYPE)
case_PART_TYPE(BPM_PART_TYPE)
default:
CONSOLE::displayf(NULL, " Part Type : UNKNOWN 0x%X",
callout->partType);
Expand Down
3 changes: 3 additions & 0 deletions src/usr/isteps/nvdimm/nvdimm.C
Expand Up @@ -710,6 +710,9 @@ errlHndl_t nvdimmSetESPolicy(Target* i_nvdimm)

// Failure setting the energy source policy could mean error on the
// battery or even the cabling
l_err->addPartCallout( i_nvdimm,
HWAS::BPM_PART_TYPE,
HWAS::SRCI_PRIORITY_HIGH);
l_err->addPartCallout( i_nvdimm,
HWAS::BPM_CABLE_PART_TYPE,
HWAS::SRCI_PRIORITY_HIGH);
Expand Down
3 changes: 3 additions & 0 deletions src/usr/isteps/nvdimm/runtime/nvdimm_rt.C
Expand Up @@ -315,6 +315,9 @@ errlHndl_t nvdimmCheckArmSuccess(TARGETING::Target *i_nvdimm)
l_err->addPartCallout( i_nvdimm,
HWAS::NV_CONTROLLER_PART_TYPE,
HWAS::SRCI_PRIORITY_HIGH);
l_err->addPartCallout( i_nvdimm,
HWAS::BPM_PART_TYPE,
HWAS::SRCI_PRIORITY_MED);
l_err->addPartCallout( i_nvdimm,
HWAS::BPM_CABLE_PART_TYPE,
HWAS::SRCI_PRIORITY_MED);
Expand Down

0 comments on commit 201a39f

Please sign in to comment.