summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/hwp/cache
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2016-07-23 06:54:00 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-08-16 12:50:41 -0400
commit1859c5618995f8c67984373152e5902b9dcc4387 (patch)
treec08e028339a0682e2622f8fdb67dfdcbadd3e61c /import/chips/p9/procedures/hwp/cache
parent07c9917070c47b025e4dccca01834c75a4d0d134 (diff)
downloadtalos-sbe-1859c5618995f8c67984373152e5902b9dcc4387.tar.gz
talos-sbe-1859c5618995f8c67984373152e5902b9dcc4387.zip
scan HWP updates
tested via Cronus platform putring implementation p9_sbe_attr_setup p9_setup_sbe_config adjust mailbox write/read logic to properly handle cache contained mode p9_sbe_gptr_time_initf remove unused MC mc_iom[01|23]_time rings add OBUS1/2 scans add PCI pci[0|1|2]_pll_gptr rings add N2 n2_psi_gptr ring p9_sbe_repr_initf remove unused MC mc_iom[01|23]_repr rings add OBUS1/2 scans p9_sbe_nest_initf skip MC iom[01|23]_fure scans which require DETERMINISTIC_TEST_EN p9_sbe_io_initf skip PCI pci[0|1|2]_fure scans which require DETERMINISTIC_TEST_EN remove DETERMINISTIC_TEST_EN application for XB p9_hcd_cache_initf remove explicit initfile invocation/ring caching in wrapper correct putring targeting add EX ex_l2_mode ring scan p9_hcd_core_initf remove explicit initfile invocation/ring caching in wrapper add EC ec_mode ring scan add DBG/ERR trace for all putRing calls remove unused *gptr_time_repr_initf HWPs and wrappers Change-Id: If2e0944c9881cb9d1abc471691bf0242db67ae3f Original-Change-Id: If1f8e9f5b327a6ab4f9b5271c53616ad20163b93 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27400 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Kevin F. Reick <reick@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28322 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/hwp/cache')
-rw-r--r--import/chips/p9/procedures/hwp/cache/p9_hcd_cache_chiplet_l3_dcc_setup.C4
-rw-r--r--import/chips/p9/procedures/hwp/cache/p9_hcd_cache_initf.C108
2 files changed, 22 insertions, 90 deletions
diff --git a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_chiplet_l3_dcc_setup.C b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_chiplet_l3_dcc_setup.C
index 96a21ba1..0cf09244 100644
--- a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_chiplet_l3_dcc_setup.C
+++ b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_chiplet_l3_dcc_setup.C
@@ -51,7 +51,9 @@ fapi2::ReturnCode p9_hcd_cache_chiplet_l3_dcc_setup(const
uint8_t l_read_attr = 0;
FAPI_DBG("Entering ...");
- FAPI_TRY(fapi2::putRing(i_target_chiplet, eq_ana_bndy_l3dcc_bucket_26, fapi2::RING_MODE_SET_PULSE_NSL));
+ FAPI_DBG("Scan eq_ana_bndy_l3dcc_bucket_26 ring");
+ FAPI_TRY(fapi2::putRing(i_target_chiplet, eq_ana_bndy_l3dcc_bucket_26, fapi2::RING_MODE_SET_PULSE_NSL),
+ "Error from putRing (eq_ana_bndy_l3dcc_bucket_26)");
FAPI_DBG("Drop L3 DCC bypass");
//Setting NET_CTRL1 register value
diff --git a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_initf.C b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_initf.C
index 4616a3f1..3eb56747 100644
--- a/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_initf.C
+++ b/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_initf.C
@@ -49,20 +49,6 @@
#include "p9_hcd_cache_initf.H"
-#ifdef P9_HCD_STOP_SKIP_SCAN
- #ifndef __PPE__
- #include <p9_core_common_scan.H>
- #include <p9_cme_scan.H>
- #include <p9_l2_scan.H>
- #include <p9_l3_scan.H>
- #include <p9_ncu_scan.H>
- #endif
-#endif
-
-//------------------------------------------------------------------------------
-// Constant Definitions
-//------------------------------------------------------------------------------
-
//------------------------------------------------------------------------------
// Procedure: EX (non-core) scan init
//------------------------------------------------------------------------------
@@ -73,86 +59,30 @@ p9_hcd_cache_initf(
{
FAPI_INF(">>p9_hcd_cache_initf");
-#ifndef P9_HCD_STOP_SKIP_SCAN
-
- FAPI_DBG("Scanning Cache FUNC Rings");
- FAPI_TRY(fapi2::putRing(i_target, EQ_FURE,
- fapi2::RING_MODE_HEADER_CHECK));
-
- FAPI_DBG("Scanning EX L3 FUNC Rings");
- FAPI_TRY(fapi2::putRing(i_target, EX_L3_FURE,
- fapi2::RING_MODE_HEADER_CHECK));
-
- FAPI_DBG("Scanning EX L2 FUNC Rings");
- FAPI_TRY(fapi2::putRing(i_target, EX_L2_FURE,
- fapi2::RING_MODE_HEADER_CHECK));
-
- FAPI_DBG("Scanning EX L3 Refresh FUNC Rings");
- FAPI_TRY(fapi2::putRing(i_target, EX_L3_REFR_FURE,
- fapi2::RING_MODE_HEADER_CHECK));
-
- FAPI_DBG("Scanning Cache Analog FUNC Rings");
- FAPI_TRY(fapi2::putRing(i_target, EQ_ANA_FUNC,
- fapi2::RING_MODE_HEADER_CHECK));
-fapi_try_exit:
-#else
-#ifndef __PPE__
- fapi2::Target<fapi2::TARGET_TYPE_SYSTEM> FAPI_SYSTEM;
- auto l_ex_targets = i_target.getChildren<fapi2::TARGET_TYPE_EX>();
- fapi2::ReturnCode l_rc;
-
- FAPI_EXEC_HWP(l_rc, p9_cme_scan, i_target, FAPI_SYSTEM);
+ FAPI_DBG("Scan eq_fure ring");
+ FAPI_TRY(fapi2::putRing(i_target, eq_fure),
+ "Error from putRing (eq_fure)");
+ FAPI_DBG("Scan eq_ana_func ring");
+ FAPI_TRY(fapi2::putRing(i_target, eq_ana_func),
+ "Error from putRing (eq_ana_func)");
- if (l_rc)
+ for (auto l_ex_target : i_target.getChildren<fapi2::TARGET_TYPE_EX>())
{
- FAPI_ERR("Error from p9_cme_scan (p9.cme.scan.initfile)");
- fapi2::current_err = l_rc;
- goto fapi_try_exit;
- }
-
- // process configured child EX chiplets
- for (auto l_iter = l_ex_targets.begin(); l_iter != l_ex_targets.end(); l_iter++)
- {
- FAPI_EXEC_HWP(l_rc, p9_core_common_scan, *l_iter, FAPI_SYSTEM);
-
- if (l_rc)
- {
- FAPI_ERR("Error from p9_core_common_scan (p9.core.common.scan.initfile)");
- fapi2::current_err = l_rc;
- goto fapi_try_exit;
- }
-
- FAPI_EXEC_HWP(l_rc, p9_l3_scan, *l_iter, FAPI_SYSTEM);
-
- if (l_rc)
- {
- FAPI_ERR("Error from p9_l3_scan (p9.l3.scan.initfile)");
- fapi2::current_err = l_rc;
- goto fapi_try_exit;
- }
-
- FAPI_EXEC_HWP(l_rc, p9_l2_scan, *l_iter, FAPI_SYSTEM);
-
- if (l_rc)
- {
- FAPI_ERR("Error from p9_l2_scan (p9.l2.scan.initfile)");
- fapi2::current_err = l_rc;
- goto fapi_try_exit;
- }
-
- FAPI_EXEC_HWP(l_rc, p9_ncu_scan, *l_iter, FAPI_SYSTEM);
-
- if (l_rc)
- {
- FAPI_ERR("Error from p9_ncu_scan (p9.ncu.scan.initfile)");
- fapi2::current_err = l_rc;
- goto fapi_try_exit;
- }
+ FAPI_DBG("Scan ex_l2_fure ring");
+ FAPI_TRY(fapi2::putRing(l_ex_target, ex_l2_fure),
+ "Error from putRing (ex_l2_fure)");
+ FAPI_DBG("Scan ex_l2_mode ring");
+ FAPI_TRY(fapi2::putRing(l_ex_target, ex_l2_mode),
+ "Error from putRing (ex_l2_mode)");
+ FAPI_DBG("Scan ex_l3_fure ring");
+ FAPI_TRY(fapi2::putRing(l_ex_target, ex_l3_fure),
+ "Error from putRing (ex_l3_fure)");
+ FAPI_DBG("Scan ex_l3_refr_fure ring");
+ FAPI_TRY(fapi2::putRing(l_ex_target, ex_l3_refr_fure),
+ "Error from putRing (ex_l3_refr_fure)");
}
fapi_try_exit:
-#endif
-#endif
FAPI_INF("<<p9_hcd_cache_initf");
return fapi2::current_err;
}
OpenPOWER on IntegriCloud