diff options
author | Ben Gass <bgass@us.ibm.com> | 2015-11-18 17:20:05 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-10-05 11:29:59 -0400 |
commit | 32b2ffd4c007f6760eecf3806903c79138558f1a (patch) | |
tree | 5e226bdc06430bd42b2131880b8e4fe1e91c36d0 /src/import/chips/p9/procedures/hwp/nest | |
parent | 2df39d4470d25ca795b8c4d515db5c5cc4d46def (diff) | |
download | talos-hostboot-32b2ffd4c007f6760eecf3806903c79138558f1a.tar.gz talos-hostboot-32b2ffd4c007f6760eecf3806903c79138558f1a.zip |
Add wrapper fix bug
The check for core or ex target was not working
for ex targets. I think == should work for it.
Only accept EX targets
Change-Id: I2670f6a8971380dbbda6d79aa54c97170e254221
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22189
Tested-by: Jenkins Server
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47175
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>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/nest')
-rwxr-xr-x | src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.C | 44 | ||||
-rwxr-xr-x | src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.H | 9 |
2 files changed, 7 insertions, 46 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.C b/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.C index 83abe6664..b8fc6bd1f 100755 --- a/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.C @@ -80,20 +80,6 @@ enum //------------------------------------------------------------------------------ /// -/// @brief l2_flush: Utility subroutine to start flush and check the status -/// @param[in] i_target Ex target -/// @param[in] i_purgeData Structure having values for MEM, CGC, BANK -/// passed by the user -/// @return FAPI2_RC_SUCCESS if purge operation was started, -/// RC_P9_L2_FLUSH_PURGE_REQ_OUTSTANDING if a prior purge -/// operation has not yet completed -/// else FAPI getscom/putscom return code for failing operation -//------------------------------------------------------------------------------ -fapi2::ReturnCode l2_flush(const fapi2::Target<fapi2::TARGET_TYPE_EX>& i_target, - const p9core::purgeData_t& i_purgeData); - -//------------------------------------------------------------------------------ -/// /// @brief l2_flush_start: Utility subroutine to initiate L2 cache flush /// via purge engine /// @param[in] i_target Ex target @@ -235,8 +221,9 @@ fapi_try_exit: //------------------------------------------------------------------------------ // Hardware Procedure //------------------------------------------------------------------------------ -fapi2::ReturnCode l2_flush(const fapi2::Target<fapi2::TARGET_TYPE_EX>& i_target, - const p9core::purgeData_t& i_purgeData) +fapi2::ReturnCode p9_l2_flush(const fapi2::Target < fapi2::TARGET_TYPE_EX > + & i_target, + const p9core::purgeData_t& i_purgeData) { FAPI_DBG("i_purgeData.iv_cmdType: 0x%x", i_purgeData.iv_cmdType); FAPI_DBG("i_purgeData.iv_cmdMem : 0x%x", i_purgeData.iv_cmdMem); @@ -278,28 +265,3 @@ fapi_try_exit: return fapi2::current_err; } -fapi2::ReturnCode p9_l2_flush(const fapi2::Target < fapi2::TARGET_TYPE_CORE - | fapi2::TARGET_TYPE_EX > - &i_target, - const p9core::purgeData_t& i_purgeData) -{ - FAPI_IMP("p9_l2_flush, Core|Ex 0x%lx: Enter", i_target.get()); - - fapi2::Target<fapi2::TARGET_TYPE_EX> l_exTarget; - - if(i_target.getType() & fapi2::TARGET_TYPE_CORE) - { - l_exTarget = i_target.getParent<fapi2::TARGET_TYPE_EX>(); - } - else - { - // We got an Ex target. - l_exTarget = i_target.get(); - } - - FAPI_TRY(l2_flush(l_exTarget, i_purgeData)); - -fapi_try_exit: - FAPI_IMP("p9_l2_flush, Core: Exit"); - return fapi2::current_err; -} diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.H b/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.H index 4a17219fb..05175495c 100755 --- a/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.H +++ b/src/import/chips/p9/procedures/hwp/nest/p9_l2_flush.H @@ -92,7 +92,7 @@ struct purgeData_t //------------------------------------------------------------------------------ typedef fapi2::ReturnCode (*p9_l2_flush_FP_t) -(const fapi2::Target < fapi2::TARGET_TYPE_CORE | fapi2::TARGET_TYPE_EX > &i_target, +(const fapi2::Target < fapi2::TARGET_TYPE_EX >& i_target, const p9core::purgeData_t& i_purgeData); extern "C" @@ -100,7 +100,7 @@ extern "C" /// /// @brief p9_l2_flush HWP to flush entire content of L2 cache via purge engine -/// @param[in] i_target Core target or Ex target +/// @param[in] i_target Ex target /// @param[in] i_purgeData Specifies a particular purge type /// @return: FAPI2_RC_SUCCESS if purge operation completes successfully, /// RC_P9_L2_FLUSH_UNKNOWN_PLATFORM @@ -113,9 +113,8 @@ extern "C" /// if purge operation reports error, /// else FAPI getscom/putscom return code for failing operation /// - fapi2::ReturnCode p9_l2_flush(const fapi2::Target < fapi2::TARGET_TYPE_CORE - | fapi2::TARGET_TYPE_EX > - &i_target, + fapi2::ReturnCode p9_l2_flush(const fapi2::Target < fapi2::TARGET_TYPE_EX > + & i_target, const p9core::purgeData_t& i_purgeData); } // end of extern C |