From 35f894ab4986da2cec7bf323b3f815738cfd0e2c Mon Sep 17 00:00:00 2001 From: Joachim Fenkes Date: Mon, 19 Sep 2016 10:15:21 +0200 Subject: Add initfiles for trace default setup - Stop trace on xstop+recov for core, cache, nest - Stop trace on xstop for all other chiplets - Synchronous start/stop of nest trace via N3 - Set up fabric compression mask so we're not swamped with bogus entries - Set up PIB trace compression to only look for valid bit Change-Id: I7b983f45784e425cb2ac786cd9da23de7dec682d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29884 Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Joseph J. McGill Reviewed-by: Kevin F. Reick Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30333 Reviewed-by: Hostboot Team Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- .../chips/p9/procedures/hwp/nest/p9_sbe_scominit.C | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/import/chips/p9/procedures/hwp') diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_sbe_scominit.C b/src/import/chips/p9/procedures/hwp/nest/p9_sbe_scominit.C index d67f981a..77ec558b 100644 --- a/src/import/chips/p9/procedures/hwp/nest/p9_sbe_scominit.C +++ b/src/import/chips/p9/procedures/hwp/nest/p9_sbe_scominit.C @@ -429,6 +429,31 @@ p9_sbe_scominit(const fapi2::Target& i_target) } } + // configure PCI tracing logic + { + for (auto l_chplt_target : i_target.getChildren + (static_cast(fapi2::TARGET_FILTER_ALL_PCI), + fapi2::TARGET_STATE_FUNCTIONAL)) + { + fapi2::buffer l_dbg_mode_reg; + fapi2::buffer l_dbg_trace_mode_reg_2; + + FAPI_TRY(fapi2::getScom(l_chplt_target, PERV_DBG_MODE_REG, l_dbg_mode_reg), + "Error from getScom (PERV_DBG_MODE_REG)"); + l_dbg_mode_reg.setBit(); + l_dbg_mode_reg.clearBit(); + l_dbg_mode_reg.clearBit(); + FAPI_TRY(fapi2::putScom(l_chplt_target, PERV_DBG_MODE_REG, l_dbg_mode_reg), + "Error from putScom (PERV_DBG_MODE_REG)"); + + FAPI_TRY(fapi2::getScom(l_chplt_target, PERV_DBG_TRACE_MODE_REG_2, l_dbg_trace_mode_reg_2), + "Error from getScom (PERV_DBG_TRACE_MODE_REG_2)"); + l_dbg_trace_mode_reg_2.setBit(); + FAPI_TRY(fapi2::putScom(l_chplt_target, PERV_DBG_TRACE_MODE_REG_2, l_dbg_trace_mode_reg_2), + "Error from putScom (PERV_DBG_TRACE_MODE_REG_2)"); + } + } + fapi_try_exit: FAPI_DBG("Exiting ..."); return fapi2::current_err; -- cgit v1.2.1