Skip to content

Commit

Permalink
p9_fastarray: Raise CTRL_CC_SDIS_DC_N during dump
Browse files Browse the repository at this point in the history
This needs to be 1 on both DD1 and DD2 during dumping lest we dump
incorrect data for some arrays (most notably the ERAT CAMs).

Change-Id: Idad18701b136b9398c9cc25dd8d9fc37fac31c5c
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40077
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: James N. Klazynski <jklazyns@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40094
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
  • Loading branch information
fenkes-ibm authored and sgupta2m committed Jun 2, 2017
1 parent 210c80e commit 2d99c88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ fapi2::ReturnCode p9_sbe_fastarray_cleanup(
FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_OPCG_CAPT1, l_buf), "Failed to clear OPCG_CAPT1");
FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_OPCG_CAPT2, l_buf), "Failed to clear OPCG_CAPT2");

/* Clear CC_SDIS_DC_N */
l_buf.flush<0>().setBit<PERV_1_CPLT_CONF0_CTRL_CC_SDIS_DC_N>();
FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_CPLT_CONF0_CLEAR, l_buf), "Failed to clear CC_SDIS_DC_N");

return fapi2::FAPI2_RC_SUCCESS;

fapi_try_exit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ fapi2::ReturnCode p9_sbe_fastarray_setup(
.insertFromRight<PERV_1_OPCG_CAPT2_SEQ_13_01EVEN, PERV_1_OPCG_CAPT2_SEQ_13_01EVEN_LEN>(0x1C);
FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_OPCG_CAPT2, buf), "Failed to set up OPCG_CAPT2");

/* Assert CC_SDIS_DC_N, some arrays don't dump right if we don't set this */
buf.flush<0>().setBit<PERV_1_CPLT_CONF0_CTRL_CC_SDIS_DC_N>();
FAPI_TRY(fapi2::putScom(i_target_chiplet, PERV_CPLT_CONF0_OR, buf), "Failed to set CC_SDIS_DC_N");

return fapi2::FAPI2_RC_SUCCESS;

fapi_try_exit:
Expand Down

0 comments on commit 2d99c88

Please sign in to comment.