diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2018-08-10 14:06:45 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-08-15 09:50:22 -0500 |
commit | 725cc4974d8cf455dcab5ef35f01ffede108a73c (patch) | |
tree | 3eb78717535290fad88dffc302db13a99053f311 /src/usr | |
parent | 74bdfc62ed5b2561b1414d3fe38c18c79a3b7882 (diff) | |
download | talos-hostboot-725cc4974d8cf455dcab5ef35f01ffede108a73c.tar.gz talos-hostboot-725cc4974d8cf455dcab5ef35f01ffede108a73c.zip |
Add SMPGROUP target to subsystem table
Ensure SMP errors are mapped to approriate subsystem when error
logs are created.
Change-Id: Ic9fc83d13d33d89c21a5f10326632be3573aa832
CQ:SW441336
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64273
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/errl/errlentry_consts.H | 2 | ||||
-rw-r--r-- | src/usr/errl/test/errltest.H | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry_consts.H b/src/usr/errl/errlentry_consts.H index 2577cb196..4fea8b042 100644 --- a/src/usr/errl/errlentry_consts.H +++ b/src/usr/errl/errlentry_consts.H @@ -77,6 +77,7 @@ struct epubTargetTypeToSub_t const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] = { // This list must be kept sorted by TYPE + // Look at generated file attributeenums.H to see order { TARGETING::TYPE_NODE , EPUB_CEC_HDW_SUBSYS }, { TARGETING::TYPE_DIMM , EPUB_MEMORY_DIMM }, { TARGETING::TYPE_MEMBUF , EPUB_MEMORY_SUBSYS }, @@ -100,6 +101,7 @@ const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] = { TARGETING::TYPE_PHB , EPUB_IO_PHB }, { TARGETING::TYPE_TPM , EPUB_CEC_HDW_SUBSYS }, { TARGETING::TYPE_MC , EPUB_MEMORY_SUBSYS }, + { TARGETING::TYPE_SMPGROUP , EPUB_CEC_HDW_SUBSYS }, }; struct epubBusTypeToSub_t diff --git a/src/usr/errl/test/errltest.H b/src/usr/errl/test/errltest.H index 00a5f90f6..ff5df6b65 100644 --- a/src/usr/errl/test/errltest.H +++ b/src/usr/errl/test/errltest.H @@ -1176,7 +1176,7 @@ public: /** * @brief Verify subsystem mapping * - * Simple test for now that targets test for TYPE_MC related defect + * Simple test for now that targets test for defects in this area * Can be expanded on later if time permits */ void testErrl_verifySubsystem(void) @@ -1199,6 +1199,16 @@ public: { TS_INFO( "Correct subsystem type returned for TYPE_MC!" ); } + + l_subsys = l_err->getSubSystem(TARGETING::TYPE_SMPGROUP); + if(l_subsys != EPUB_CEC_HDW_SUBSYS) + { + TS_FAIL( "Incorrect subsystem type returned for TYPE_SMPGROUP" ); + } + else + { + TS_INFO( "Correct subsystem type returned for TYPE_SMPGROUP!" ); + } // Delete the log delete l_err; l_err = NULL; |