From 5351daa3654973d841686f861b2296a8cd315439 Mon Sep 17 00:00:00 2001 From: Claus Michael Olsen Date: Mon, 31 Oct 2016 22:40:51 -0500 Subject: xip_customize: Updated to make non-configured chiplets not good. Change-Id: I43788d81370fcdfe5c5986000d0f0abd8f4ba85e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32053 Tested-by: PPE CI Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Sachin Gupta Reviewed-by: Michael S. Floyd Reviewed-by: Prachi Gupta Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32067 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- .../chips/p9/procedures/hwp/customize/p9_xip_customize.C | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/import/chips/p9/procedures/hwp/customize') diff --git a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C index fbef441fe..3ec0bb2b2 100644 --- a/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C +++ b/src/import/chips/p9/procedures/hwp/customize/p9_xip_customize.C @@ -79,8 +79,17 @@ fapi2::ReturnCode writePG( const fapi2::Target& i_proc_target, void* i_image) { + const uint8_t IMG_PG_ENTRIES = 64; + const uint16_t DEFAULT_PG_VAL = 0xffff; + FAPI_DBG ("writePG Entering..."); - const uint8_t IMG_PG_ENTRIES = 64; + + // Make all chiplets "not good". + for (auto l_pg_idx = 0; l_pg_idx < IMG_PG_ENTRIES; l_pg_idx++) + { + FAPI_TRY( p9_xip_set_element(i_image, "ATTR_PG", l_pg_idx, DEFAULT_PG_VAL), + "Error (1) from p9_xip_set_element (idx %d)", l_pg_idx ); + } for (auto l_perv_tgt : i_proc_target.getChildren()) { @@ -104,7 +113,7 @@ fapi2::ReturnCode writePG( // Update the image FAPI_TRY( p9_xip_set_element(i_image, "ATTR_PG", l_pg_idx, l_pg_data), - "Error from p9_xip_set_element (idx %d)", l_pg_idx ); + "Error (2) from p9_xip_set_element (idx %d)", l_pg_idx ); FAPI_DBG("Write value of pg_data[%d] = %08X", l_pg_idx, l_pg_data); } -- cgit v1.2.1