Skip to content

Commit

Permalink
Fix clearing CME_FLAGS to use EX target instead of EQ target
Browse files Browse the repository at this point in the history
Change-Id: Ifb86d69e71994c3a1b286e910c1729bde21bb515
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35189
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com>
Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35197
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
vanderp authored and dcrowell77 committed Feb 2, 2017
1 parent e2f9771 commit 0ad2529
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/import/chips/p9/procedures/hwp/pm/p9_pm_corequad_init.C
Expand Up @@ -210,12 +210,6 @@ fapi2::ReturnCode pm_corequad_init(
FAPI_TRY(fapi2::putScom(l_quad_chplt, l_address, l_data64),
"ERROR: Failed to restore the QUAD PPM Error Mask");

// Clear CME Flags
FAPI_INF("Clear CME Flags");
l_data64.flush<1>();
l_address = EQ_CME_SCOM_FLAGS_CLEAR;
FAPI_TRY(fapi2::putScom(l_quad_chplt, l_address, l_data64),
"ERROR: Failed to reset CME Flags");

auto l_exChiplets = l_quad_chplt.getChildren<fapi2::TARGET_TYPE_EX>
(fapi2::TARGET_STATE_FUNCTIONAL);
Expand All @@ -231,6 +225,15 @@ fapi2::ReturnCode pm_corequad_init(
l_ex_chplt);
FAPI_DBG("EX number = %d", l_chpltNumber);

// Clear CME Flags
FAPI_INF("Clear CME Flags");
l_data64.flush<1>();
// SCOM1 is the CLEAR address
l_address = EX_CME_SCOM_FLAGS_SCOM1;
FAPI_TRY(fapi2::putScom(l_ex_chplt, l_address, l_data64),
"ERROR: Failed to reset CME Flags");


// Setup / Clear CME SRAM Scrub
// Set bit 1 : SRAM SCRUB enable
// Clear bits 47 - 59: SRAM SCRUB index
Expand Down

0 comments on commit 0ad2529

Please sign in to comment.