diff options
author | Soma BhanuTej <soma.bhanu@in.ibm.com> | 2018-02-01 03:30:20 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-03-02 01:17:32 -0500 |
commit | ace2c563f607cd1aabf3b0daa82bc9112135e35d (patch) | |
tree | 9d8d92c7f64f1fd42cc6d25d043de84445aa62aa /src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C | |
parent | 2b432b15cbe828715645dc069e81b66c1a51a4f4 (diff) | |
download | talos-sbe-ace2c563f607cd1aabf3b0daa82bc9112135e35d.tar.gz talos-sbe-ace2c563f607cd1aabf3b0daa82bc9112135e35d.zip |
Axone support to TP stopclocks
Change-Id: I0960ec588156f3df3f863b6c5fa41bbed95e089e
RTC: 183048
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53139
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Dev-Ready: Soma Bhanutej <soma.bhanu@in.ibm.com>
Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com>
Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-by: NAGENDRA K. GURRAM <nagendra.g@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53152
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C b/src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C index 83e5dbd1..c506afea 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_common_stopclocks.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -59,20 +59,28 @@ enum P9_common_stopclocks_Private_Constants /// --Clear abstclk muxsel & Set syncclk_muxsel /// /// @param[in] i_target_chiplet Reference to TARGET_TYPE_PERV target +/// @param[in] i_regions Input clock regions /// @return FAPI2_RC_SUCCESS if success, else error code. fapi2::ReturnCode p9_common_stopclocks_cplt_ctrl_action_function( - const fapi2::Target<fapi2::TARGET_TYPE_PERV>& i_target_chiplet) + const fapi2::Target<fapi2::TARGET_TYPE_PERV>& i_target_chiplet, fapi2::buffer<uint64_t> i_regions) { // Local variable and constant definition fapi2::buffer <uint16_t> l_cplt_ctrl_init; fapi2::buffer<uint16_t> l_attr_pg; + fapi2::buffer<uint16_t> l_regions; fapi2::buffer<uint64_t> l_data64; + FAPI_INF("Entering p9_common_stopclocks_cplt_ctrl_action_function..."); FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_PG, i_target_chiplet, l_attr_pg)); l_attr_pg.invert(); - l_attr_pg.extractToRight<4, 11>(l_cplt_ctrl_init); + FAPI_DBG("Masking with regions bits enabled : %#018lX ", i_regions); + i_regions.extractToRight<53, 11>(l_regions); + l_regions = (l_attr_pg >> 1) & l_regions; + FAPI_DBG("Effective l_regions : %#06lX", l_regions); + + l_regions.extractToRight<5, 11>(l_cplt_ctrl_init); FAPI_DBG("Raise partial good fences"); //Setting CPLT_CTRL1 register value |