diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2018-08-06 15:14:26 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-08-08 12:42:45 -0500 |
commit | 3cb9eb102386c50d0e7b7b67f64b702097b7eb16 (patch) | |
tree | 38b431040c7f80e42b7575133988aba8ed3caf12 /src | |
parent | 6ff0b982dfd3b9c64cb3c67a8a5f50fdf7783857 (diff) | |
download | talos-hostboot-3cb9eb102386c50d0e7b7b67f64b702097b7eb16.tar.gz talos-hostboot-3cb9eb102386c50d0e7b7b67f64b702097b7eb16.zip |
Add MC target to subsystem table
The MC target was new for the cumulus chip and the subsystem
table was not updated to map it to the memory subsystem
Change-Id: I85a43ee268a4d708325a34b71afa62bb33ea4e2b
CQ:SW441003
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63984
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: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/errl/errlentry_consts.H | 1 | ||||
-rw-r--r-- | src/usr/errl/test/errltest.H | 33 |
2 files changed, 33 insertions, 1 deletions
diff --git a/src/usr/errl/errlentry_consts.H b/src/usr/errl/errlentry_consts.H index f8c9f82f5..2577cb196 100644 --- a/src/usr/errl/errlentry_consts.H +++ b/src/usr/errl/errlentry_consts.H @@ -99,6 +99,7 @@ const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] = { TARGETING::TYPE_PEC , EPUB_IO_PHB }, { TARGETING::TYPE_PHB , EPUB_IO_PHB }, { TARGETING::TYPE_TPM , EPUB_CEC_HDW_SUBSYS }, + { TARGETING::TYPE_MC , EPUB_MEMORY_SUBSYS }, }; struct epubBusTypeToSub_t diff --git a/src/usr/errl/test/errltest.H b/src/usr/errl/test/errltest.H index 4fa789b53..00a5f90f6 100644 --- a/src/usr/errl/test/errltest.H +++ b/src/usr/errl/test/errltest.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2017 */ +/* Contributors Listed Below - COPYRIGHT 2011,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -1173,6 +1173,37 @@ public: } } + /** + * @brief Verify subsystem mapping + * + * Simple test for now that targets test for TYPE_MC related defect + * Can be expanded on later if time permits + */ + void testErrl_verifySubsystem(void) + { + errlHndl_t l_err = nullptr; + l_err = new ERRORLOG::ErrlEntry( + ERRORLOG::ERRL_SEV_INFORMATIONAL, + ERRORLOG::ERRL_TEST_MOD_ID, + ERRORLOG::ERRL_TEST_REASON_CODE, + 0x494E464F, //INFO + 0); + // Simple test for now to verify correct subsys comes back + // for MC target type + epubSubSystem_t l_subsys = l_err->getSubSystem(TARGETING::TYPE_MC); + if(l_subsys != EPUB_MEMORY_SUBSYS) + { + TS_FAIL( "Incorrect subsystem type returned for TYPE_MC" ); + } + else + { + TS_INFO( "Correct subsystem type returned for TYPE_MC!" ); + } + // Delete the log + delete l_err; + l_err = NULL; + } + }; |