From 2dfa772925a662889b873422c9787a572edd38f4 Mon Sep 17 00:00:00 2001 From: Shelton Leung Date: Thu, 15 Jun 2017 17:07:44 -0500 Subject: [PATCH] disable clearing mdi on remote cp_m for performance Change-Id: I6a813c58ac84e9a678cb76c5346d91bbad7b8da0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41938 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: LUKE MURRAY Reviewed-by: Joseph J. McGill Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41941 Reviewed-by: Hostboot Team Tested-by: Jenkins OP Build CI Reviewed-by: Daniel M. Crowell --- src/import/chips/p9/initfiles/p9n.mca.scom.initfile | 6 ++++++ src/import/chips/p9/procedures/hwp/initfiles/p9n_mca_scom.C | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/import/chips/p9/initfiles/p9n.mca.scom.initfile b/src/import/chips/p9/initfiles/p9n.mca.scom.initfile index ca633d96397..e12ea9ceb89 100644 --- a/src/import/chips/p9/initfiles/p9n.mca.scom.initfile +++ b/src/import/chips/p9/initfiles/p9n.mca.scom.initfile @@ -1097,6 +1097,12 @@ ispy MC01.PORT0.ATCL.CL.CLSCOM.MCBUSYQ_BUSY_COUNTER_THRESHOLD2 [when=S && ATTR_C 64; } +# Performance request: disable clearing of MDI on remte cp_m +espy MC01.PORT0.ATCL.CL.CLSCOM.MCPERF3_ENABLE_CP_M_MDI0_LOCAL_ONLY [when=S && ATTR_CHIP_EC_FEATURE_NEW_MC_DD2_SETTINGS] { + spyv; + ON; +} + ################# # DD2 WORKAROUNDS ################# diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9n_mca_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9n_mca_scom.C index f3d96b0bb1d..373400b864f 100644 --- a/src/import/chips/p9/procedures/hwp/initfiles/p9n_mca_scom.C +++ b/src/import/chips/p9/procedures/hwp/initfiles/p9n_mca_scom.C @@ -384,6 +384,8 @@ fapi2::ReturnCode p9n_mca_scom(const fapi2::Target& TGT0 FAPI_TRY(fapi2::getScom( TGT0, 0x501082bull, l_scom_buffer )); l_scom_buffer.insert<45, 1, 63, uint64_t>(literal_0x8 ); + constexpr auto l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF3_ENABLE_CP_M_MDI0_LOCAL_ONLY_ON = 0x1; + l_scom_buffer.insert<43, 1, 63, uint64_t>(l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF3_ENABLE_CP_M_MDI0_LOCAL_ONLY_ON ); constexpr auto l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF3_DISABLE_WRTO_IG_ON = 0x1; l_scom_buffer.insert<44, 1, 63, uint64_t>(l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF3_DISABLE_WRTO_IG_ON ); constexpr auto l_MC01_PORT0_ATCL_CL_CLSCOM_MCPERF3_ENABLE_AMO_MSI_RMW_ONLY_ON = 0x1;