summaryrefslogtreecommitdiffstats
path: root/import/chips
diff options
context:
space:
mode:
authorSunil.Kumar <skumar8j@in.ibm.com>2016-05-12 09:36:32 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-07-12 23:51:23 -0400
commit1e030279b6c8d782981a83222fd7dd9c2f6f7fc9 (patch)
tree99f27a3b34d30719ba1e8ab70afc3a3136179067 /import/chips
parent4a71729b2eb3e8b819830b2b16f3798c82d27148 (diff)
downloadtalos-sbe-1e030279b6c8d782981a83222fd7dd9c2f6f7fc9.tar.gz
talos-sbe-1e030279b6c8d782981a83222fd7dd9c2f6f7fc9.zip
Level 2 HWP p9_sbe_nest_initf
Change-Id: I8271b798266f5f938231f177d1b7b45bdce1642a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24438 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24955 Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/chips')
-rw-r--r--import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.C80
-rw-r--r--import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.H21
2 files changed, 76 insertions, 25 deletions
diff --git a/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.C b/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.C
index 01b34056..6c6128ff 100644
--- a/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.C
+++ b/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.C
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2015 */
+/* COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -19,28 +19,82 @@
//------------------------------------------------------------------------------
/// @file p9_sbe_nest_initf.C
///
-/// @brief proc_sbe_nest_initf
-// *!
-// *! OWNER NAME : Abhishek Agarwal Email: abagarw8@in.ibm.com
-// *! BACKUP NAME : Email:
+/// @brief Scan rings for Nest and Mc chiplets
//------------------------------------------------------------------------------
-// *HWP HWP Owner : Abhishek Agarwal <abagarw8@in.ibm.com>
-// *HWP FW Owner : Brian Silver <bsilver@us.ibm.com>
-// *HWP Team : Perv
-// *HWP Level : 1
-// *HWP Consumed by : SBE
+// *HWP HW Owner : Abhishek Agarwal <abagarw8@in.ibm.com>
+// *HWP HW Backup Owner : Srinivas V Naga <srinivan@in.ibm.com>
+// *HWP FW Owner : Sunil Kumar <skumar8j@in.ibm.com>
+// *HWP Team : Perv
+// *HWP Level : 2
+// *HWP Consumed by : SBE
//------------------------------------------------------------------------------
//## auto_generated
#include "p9_sbe_nest_initf.H"
+#include "p9_perv_scom_addresses.H"
+#include "p9_perv_scom_addresses_fld.H"
+
fapi2::ReturnCode p9_sbe_nest_initf(const
fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip)
{
- FAPI_DBG("p9_sbe_nest_initf: Entering ...");
+ FAPI_INF("Entering ...");
+ uint8_t l_attr_chip_unit_pos = 0; //actual value is read in FAPI_ATTR_GET below
+ fapi2::buffer<uint64_t> l_data64;
+ l_data64.setBit<PERV_1_CPLT_CTRL0_TC_UNIT_DETERMINISTIC_TEST_ENABLE_DC>();
+
+ for( auto l_chplt_trgt : i_target_chip.getChildren<fapi2::TARGET_TYPE_PERV>
+ ( fapi2::TARGET_STATE_FUNCTIONAL))
+ {
+ FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_UNIT_POS, l_chplt_trgt, l_attr_chip_unit_pos));
+
+ if ((l_attr_chip_unit_pos == 0x02))/* N0 Chiplet */
+ {
+ FAPI_DBG("Scan N0 chiplet rings");
+ FAPI_TRY(fapi2::putRing(i_target_chip, n0_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n0_nx_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n0_cxa0_fure));
+ }
+
+ if ((l_attr_chip_unit_pos == 0x03))/* N1 Chiplet */
+ {
+ FAPI_DBG("Scan N1 chiplet rings");
+ FAPI_TRY(fapi2::putRing(i_target_chip, n1_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n1_ioo0_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n1_ioo1_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n1_mcs23_fure));
+ }
+
+ if ((l_attr_chip_unit_pos == 0x04))/* N2 Chiplet */
+ {
+ FAPI_DBG("Scan N2 chiplet rings");
+ FAPI_TRY(fapi2::putRing(i_target_chip, n2_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n2_cxa1_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n2_psi_fure));
+ }
+
+ if ((l_attr_chip_unit_pos == 0x05))/* N3 Chiplet */
+ {
+ FAPI_DBG("Scan N3 chiplet rings");
+ FAPI_TRY(fapi2::putRing(i_target_chip, n3_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n3_mcs01_fure));
+ FAPI_TRY(fapi2::putRing(i_target_chip, n3_np_fure));
+ }
+ }
- FAPI_DBG("p9_sbe_nest_initf: Exiting ...");
+ for( auto l_chplt_trgt : i_target_chip.getChildren<fapi2::TARGET_TYPE_MCBIST>
+ (fapi2::TARGET_STATE_FUNCTIONAL))
+ {
+ FAPI_DBG("Scan MC chiplet rings");
+ FAPI_TRY(fapi2::putRing(l_chplt_trgt, mc_fure));
+ FAPI_TRY(fapi2::putScom(l_chplt_trgt, PERV_CPLT_CTRL0_OR, l_data64));
+ FAPI_TRY(fapi2::putRing(l_chplt_trgt, mc_iom01_fure));
+ FAPI_TRY(fapi2::putRing(l_chplt_trgt, mc_iom23_fure));
+ FAPI_TRY(fapi2::putScom(l_chplt_trgt, PERV_CPLT_CTRL0_OR, l_data64));
+ }
- return fapi2::FAPI2_RC_SUCCESS;
+ FAPI_INF("Exiting ...");
+fapi_try_exit:
+ return fapi2::current_err;
}
diff --git a/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.H b/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.H
index 8d54480d..22b59050 100644
--- a/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.H
+++ b/import/chips/p9/procedures/hwp/perv/p9_sbe_nest_initf.H
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2015 */
+/* COPYRIGHT 2015,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -17,21 +17,18 @@
/* */
/* IBM_PROLOG_END_TAG */
//------------------------------------------------------------------------------
-/// @file p9_sbe_nest_initf.H
+/// @file p9_sbe_nest_initf.C
///
-/// @brief proc_sbe_nest_initf
-// *!
-// *! OWNER NAME : Abhishek Agarwal Email: abagarw8@in.ibm.com
-// *! BACKUP NAME : Email:
+/// @brief Scan rings for Nest and Mc chiplets
//------------------------------------------------------------------------------
-// *HWP HWP Owner : Abhishek Agarwal <abagarw8@in.ibm.com>
-// *HWP FW Owner : Brian Silver <bsilver@us.ibm.com>
-// *HWP Team : Perv
-// *HWP Level : 1
-// *HWP Consumed by : SBE
+// *HWP HW Owner : Abhishek Agarwal <abagarw8@in.ibm.com>
+// *HWP HW Backup Owner : Srinivas V Naga <srinivan@in.ibm.com>
+// *HWP FW Owner : Sunil Kumar <skumar8j@in.ibm.com>
+// *HWP Team : Perv
+// *HWP Level : 2
+// *HWP Consumed by : SBE
//------------------------------------------------------------------------------
-
#ifndef _P9_SBE_NEST_INITF_H_
#define _P9_SBE_NEST_INITF_H_
OpenPOWER on IntegriCloud