Skip to content

Commit

Permalink
EKB: HWP Fail Isolation Fapi Hooks
Browse files Browse the repository at this point in the history
Change-Id: I67a30a6a5bf0af4db40d85ec6406481dd286bb75
RTC: 178331
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45165
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45184
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
Brian Stegmiller authored and dcrowell77 committed Sep 19, 2017
1 parent 046a265 commit c6d0374
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
21 changes: 20 additions & 1 deletion src/import/hwpf/fapi2/include/utils.H
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -128,7 +128,26 @@ void createPlatLog(
fapi2::ReturnCode& io_rc,
fapi2::errlSeverity_t i_sev = fapi2::FAPI2_ERRL_SEV_UNRECOVERABLE
);

///
/// @brief Associate an error to PRD PLID
///
/// @param[in] i_target Reference to target
/// @param[in,out] io_rc Reference to ReturnCode
/// @param[in] i_sev Fapi error log severity defaulted to unrecoverable
/// @param[in] i_unitTestError - flag to log error which does not cause a unit
/// test to fail.
///
/// @note Implemented by platform code
///
void log_related_error(
const Target<TARGET_TYPE_ALL>& i_target,
fapi2::ReturnCode& io_rc,
const fapi2::errlSeverity_t i_sev = fapi2::FAPI2_ERRL_SEV_UNRECOVERABLE,
const bool i_unitTestError = false );

#endif // __PPE__

///
/// @brief Delay this thread. Hostboot will use the nanoseconds parameter
/// and make a syscall to nanosleep. While in the syscall, the hostboot
Expand Down
21 changes: 0 additions & 21 deletions src/usr/fapi2/test/fapi2VerifyPrdAttrTest.C
Expand Up @@ -32,27 +32,6 @@
#include "fapi2TestUtils.H"
#include <utils.H>

// NOTE: This testcase does run successfully
// when enabling fapi test library.
//
// However, log_related_error(..) has to have
// a prototype defined for this to compile..
// That will eventually be true when
// the EKB changes show up in utils.H
#if 1
namespace fapi2
{
void log_related_error(
const Target<TARGET_TYPE_ALL>& i_target,
fapi2::ReturnCode& io_rc,
const fapi2::errlSeverity_t i_sev = fapi2::FAPI2_ERRL_SEV_UNRECOVERABLE,
const bool i_unitTestError = false );
}
#else
#include <utils.H>
#endif



// Used to generate a FAPI RC -- don't care how or why
fapi2::ReturnCode verifyPrd_get_fapi2_error(void)
Expand Down

0 comments on commit c6d0374

Please sign in to comment.