summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C
diff options
context:
space:
mode:
authorAnusha Reddy Rangareddygari <anusrang@in.ibm.com>2017-04-18 15:31:22 +0200
committerSachin Gupta <sgupta2m@in.ibm.com>2017-04-28 12:15:47 -0400
commite6b3b2a8b7e97465ced87200dc44b96cb7e71814 (patch)
tree6bead90d89c84dc863f7e046d0903e703634909a /src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C
parent534354add3280bec554c62ac158b3ec7fc3a68ef (diff)
downloadtalos-sbe-e6b3b2a8b7e97465ced87200dc44b96cb7e71814.tar.gz
talos-sbe-e6b3b2a8b7e97465ced87200dc44b96cb7e71814.zip
Initf proc updates
*adding iox0 region for cumulus and checking for region goodness *checking if iom regions are enabled before putring call Change-Id: Id15a2e5b8ee37703ba139348f8d293f265121760 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39365 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.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/39367 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C
index 7b9a3b3e..2de6a840 100644
--- a/src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C
+++ b/src/import/chips/p9/procedures/hwp/perv/p9_sbe_io_initf.C
@@ -47,11 +47,13 @@ fapi2::ReturnCode p9_sbe_io_initf(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH
{
FAPI_INF("p9_sbe_io_initf: Entering ...");
uint8_t l_attr_chip_unit_pos = 0;
+ fapi2::buffer<uint16_t> l_read_attr_pg;
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));
-
+ FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_PG, l_chplt_trgt, l_read_attr_pg));
+ FAPI_DBG("ATTR_PG Value : %#04lx", l_read_attr_pg);
#if 0
{
// PCIx FURE rings require deterministic scan enable
@@ -59,7 +61,7 @@ fapi2::ReturnCode p9_sbe_io_initf(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH
fapi2::buffer<uint64_t> l_data64;
l_data64.setBit<PERV_1_CPLT_CTRL0_TC_UNIT_DETERMINISTIC_TEST_ENABLE_DC>();
- if (l_attr_chip_unit_pos == 0xD)/* PCI0 Chiplet */
+ if (l_attr_chip_unit_pos == PCI0_CHIPLET_ID)/* PCI0 Chiplet */
{
FAPI_TRY(fapi2::putScom(l_target_chip, PERV_PCI0_CPLT_CTRL0_OR, l_data64));
FAPI_DBG("Scan pci0_fure ring");
@@ -68,7 +70,7 @@ fapi2::ReturnCode p9_sbe_io_initf(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH
FAPI_TRY(fapi2::putScom(l_target_chip, PERV_PCI0_CPLT_CTRL0_CLEAR, l_data64));
}
- if (l_attr_chip_unit_pos == 0xE)/* PCI1 Chiplet */
+ if (l_attr_chip_unit_pos == PCI1_CHIPLET_ID)/* PCI1 Chiplet */
{
FAPI_TRY(fapi2::putScom(l_target_chip, PERV_PCI1_CPLT_CTRL0_OR, l_data64));
FAPI_DBG("Scan pci1_fure ring");
@@ -77,7 +79,7 @@ fapi2::ReturnCode p9_sbe_io_initf(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH
FAPI_TRY(fapi2::putScom(l_target_chip, PERV_PCI1_CPLT_CTRL0_CLEAR, l_data64));
}
- if (l_attr_chip_unit_pos == 0xF)/* PCI2 Chiplet */
+ if (l_attr_chip_unit_pos == PCI2_CHIPLET_ID)/* PCI2 Chiplet */
{
FAPI_TRY(fapi2::putScom(l_target_chip, PERV_PCI2_CPLT_CTRL0_OR, l_data64));
FAPI_DBG("Scan pci2_fure ring");
@@ -118,12 +120,27 @@ fapi2::ReturnCode p9_sbe_io_initf(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CH
if (l_attr_chip_unit_pos == XB_CHIPLET_ID)/* XBUS Chiplet */
{
- FAPI_DBG("Scan xb_io1_fure ring");
- FAPI_TRY(fapi2::putRing(i_target_chip, xb_io1_fure),
- "Error from putRing (xb_io1_fure)");
- FAPI_DBG("Scan xb_io2_fure ring");
- FAPI_TRY(fapi2::putRing(i_target_chip, xb_io2_fure),
- "Error from putRing (xb_io2_fure)");
+ if (!l_read_attr_pg.getBit<5>()) // Cumulus chip - checking for iox0 region
+ {
+ FAPI_DBG("Scan xb_io0_fure ring");
+ FAPI_TRY(fapi2::putRing(i_target_chip, xb_io0_fure),
+ "Error from putRing (xb_io0_fure)");
+ }
+
+ if (!l_read_attr_pg.getBit<6>()) // checking for iox1 region
+ {
+ FAPI_DBG("Scan xb_io1_fure ring");
+ FAPI_TRY(fapi2::putRing(i_target_chip, xb_io1_fure),
+ "Error from putRing (xb_io1_fure)");
+ }
+
+ if (!l_read_attr_pg.getBit<7>()) // checking for iox2 region
+ {
+ FAPI_DBG("Scan xb_io2_fure ring");
+ FAPI_TRY(fapi2::putRing(i_target_chip, xb_io2_fure),
+ "Error from putRing (xb_io2_fure)");
+ }
+
FAPI_DBG("Scan xb_fure ring");
FAPI_TRY(fapi2::putRing(i_target_chip, xb_fure),
"Error from putRing (xb_fure)");
OpenPOWER on IntegriCloud