From 2c3e6ed587baba4f941476e06fecc26cd359db7e Mon Sep 17 00:00:00 2001 From: Louis Stermole Date: Mon, 10 Jun 2019 11:31:11 -0400 Subject: Add reset of explorer outbound doorbell before running new cmd Change-Id: If961df554c58952e9d9652fe4174bc15e94c6584 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78654 Reviewed-by: Mark Pizzutillo Reviewed-by: RYAN P. KING Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78675 Reviewed-by: Daniel M. Crowell Tested-by: Daniel M. Crowell --- src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/import/chips/ocmb/explorer/procedures/hwp') diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C index 4d2f89ffe..5e140b120 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_inband.C @@ -309,6 +309,9 @@ fapi2::ReturnCode putCMD( FAPI_DBG("Clearing the inbound doorbell..."); FAPI_TRY(fapi2::putScom(i_target, EXPLR_MMIO_MDBELLC, l_scom), "Failed to clear inbound doorbell register"); + // Clear the response doorbell, just in case the last response didn't get cleared + FAPI_TRY(clear_outbound_doorbell(i_target)); + // Set the command FAPI_DBG("Writing the command..."); FAPI_TRY(fapi2::putMMIO(i_target, EXPLR_IB_CMD_ADDR, BUFFER_TRANSACTION_SIZE, l_data), -- cgit v1.2.1