Skip to content

Commit 4d05669

Browse files
stermoledcrowell77
authored andcommitted
Move Explorer UNIT_TOP FIR unmasks into exp_omi_setup
Change-Id: Ie7317fe9b883f6939ecde6249a502b93a122ef34 CQ:SW498960 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/100872 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Sneha Kadam <sneha.kadam@ibm.com> Dev-Ready: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Amita Banchhor <amita.banchhor@ibm.com> Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com> Reviewed-by: Edgar R Cordero <ecordero@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/100903 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: Daniel M Crowell <dcrowell@us.ibm.com>
1 parent b6d5234 commit 4d05669

File tree

1 file changed

+19
-20
lines changed
  • src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir

1 file changed

+19
-20
lines changed

src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/fir/exp_unmask.C

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,6 @@ fapi2::ReturnCode after_mc_omi_init<mss::mc_type::EXPLORER>(const fapi2::Target<
261261
fapi2::ReturnCode l_rc3 = fapi2::FAPI2_RC_SUCCESS;
262262
fapi2::ReturnCode l_rc4 = fapi2::FAPI2_RC_SUCCESS;
263263

264-
fapi2::buffer<uint64_t> l_global_fir_mask_reg;
265-
fapi2::buffer<uint64_t> l_global_spa_attn_reg;
266-
267264
mss::fir::reg<EXPLR_MMIO_MFIR> l_exp_mmio_mfir_reg(i_target, l_rc1);
268265
mss::fir::reg<EXPLR_TLXT_TLXFIRQ> l_exp_tlxt_fir_reg(i_target, l_rc2);
269266
mss::fir::reg<EXPLR_TP_MB_UNIT_TOP_LOCAL_FIR> l_exp_local_fir_reg(i_target, l_rc3);
@@ -278,23 +275,6 @@ fapi2::ReturnCode after_mc_omi_init<mss::mc_type::EXPLORER>(const fapi2::Target<
278275
FAPI_TRY(l_rc4, "for target %s unable to create fir::reg for EXPLR_DLX_MC_OMI_FIR_REG 0x%0x",
279276
mss::c_str(i_target), EXPLR_DLX_MC_OMI_FIR_REG);
280277

281-
// Pull global fir mask state and unmask bits per spec
282-
FAPI_TRY(fapi2::getScom(i_target, EXPLR_TP_MB_UNIT_TOP_FIR_MASK, l_global_fir_mask_reg));
283-
l_global_fir_mask_reg.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN0>()
284-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN3>()
285-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN4>()
286-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN7>()
287-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN8>()
288-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN9>()
289-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN11>()
290-
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN12>();
291-
FAPI_TRY(fapi2::putScom(i_target, EXPLR_TP_MB_UNIT_TOP_FIR_MASK, l_global_fir_mask_reg));
292-
293-
// Pull global special attn state and unmask bits per spec
294-
FAPI_TRY(fapi2::getScom(i_target, EXPLR_TP_MB_UNIT_TOP_SPA_MASK, l_global_spa_attn_reg));
295-
l_global_spa_attn_reg.clearBit<EXPLR_TP_MB_UNIT_TOP_SPATTN_IN5>();
296-
FAPI_TRY(fapi2::putScom(i_target, EXPLR_TP_MB_UNIT_TOP_SPA_MASK, l_global_spa_attn_reg));
297-
298278
// Setup MMIO MFIR unmasks per spec
299279
FAPI_TRY(l_exp_mmio_mfir_reg.recoverable_error<EXPLR_MMIO_MFIR_SCOM_ERR>()
300280
.checkstop<EXPLR_MMIO_MFIR_FSM_PERR>()
@@ -425,6 +405,8 @@ fapi2::ReturnCode after_mc_omi_setup<mss::mc_type::EXPLORER>( const fapi2::Targe
425405
constexpr uint64_t MASK_ALL = ~0ull;
426406

427407
fapi2::buffer<uint64_t> l_dl0_error_mask;
408+
fapi2::buffer<uint64_t> l_global_fir_mask_reg;
409+
fapi2::buffer<uint64_t> l_global_spa_attn_reg;
428410

429411
fapi2::ReturnCode l_rc1 = fapi2::FAPI2_RC_SUCCESS;
430412
fapi2::ReturnCode l_rc2 = fapi2::FAPI2_RC_SUCCESS;
@@ -499,6 +481,23 @@ fapi2::ReturnCode after_mc_omi_setup<mss::mc_type::EXPLORER>( const fapi2::Targe
499481
.clearBit<EXPLR_DLX_DL0_ERROR_MASK_14>();
500482
FAPI_TRY(fapi2::putScom(i_target, EXPLR_DLX_DL0_ERROR_MASK, l_dl0_error_mask));
501483

484+
// Pull global fir mask state and unmask bits per spec
485+
FAPI_TRY(fapi2::getScom(i_target, EXPLR_TP_MB_UNIT_TOP_FIR_MASK, l_global_fir_mask_reg));
486+
l_global_fir_mask_reg.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN0>()
487+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN3>()
488+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN4>()
489+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN7>()
490+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN8>()
491+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN9>()
492+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN11>()
493+
.clearBit<EXPLR_TP_MB_UNIT_TOP_XFIR_IN12>();
494+
FAPI_TRY(fapi2::putScom(i_target, EXPLR_TP_MB_UNIT_TOP_FIR_MASK, l_global_fir_mask_reg));
495+
496+
// Pull global special attn state and unmask bits per spec
497+
FAPI_TRY(fapi2::getScom(i_target, EXPLR_TP_MB_UNIT_TOP_SPA_MASK, l_global_spa_attn_reg));
498+
l_global_spa_attn_reg.clearBit<EXPLR_TP_MB_UNIT_TOP_SPATTN_IN5>();
499+
FAPI_TRY(fapi2::putScom(i_target, EXPLR_TP_MB_UNIT_TOP_SPA_MASK, l_global_spa_attn_reg));
500+
502501
return fapi2::FAPI2_RC_SUCCESS;
503502

504503
fapi_try_exit:

0 commit comments

Comments
 (0)