From 6b72e2618482554e40ce0bb8c379ff94dadbcc91 Mon Sep 17 00:00:00 2001 From: spashabk-in Date: Mon, 19 Dec 2016 03:25:48 -0600 Subject: Modify signature of p9_stopclocks Since PPE doesn't comprehensively support more than 8 args, modifying the signature of p9_stopcocks Change-Id: I2838207a575184daa2c6c5cc4924257186f7d596 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34037 Tested-by: Jenkins Server Reviewed-by: RAJA DAS Reviewed-by: SRINIVAS V. POLISETTY Dev-Ready: Sangram Alapati Reviewed-by: Joseph J. McGill Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34920 Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- .../chips/p9/procedures/hwp/perv/p9_stopclocks.C | 83 +++++++++++----------- 1 file changed, 43 insertions(+), 40 deletions(-) (limited to 'src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.C') diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.C b/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.C index 6d454b63..a4aff4f9 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_stopclocks.C @@ -54,32 +54,24 @@ //------------------------------------------------------------------------------ // Function definition: p9_stopclocks // parameters: i_target => chip target -// i_stop_nest_clks => True to stop NEST chiplet clocks (should default TRUE) -// i_stop_mc_clks => True to stop MC chiplet clocks (should default TRUE) -// i_stop_xbus_clks => True to stop XBUS chiplet clocks (should default TRUE) -// i_stop_obus_clks => True to stop OBUS chiplet clocks (should default TRUE) -// i_stop_pcie_clks => True to stop PCIE chiplet clocks (should default TRUE) -// i_stop_tp_clks => True to stop PERVASIVE (TP) chiplet clocks all except PIB/NET (should default FALSE) -// i_stop_pib_clks => True to stop PERVASIVE (TP) chiplet PIB/NET clocks (should default FALSE) -// i_stop_vitl_clks => True to stop PERVASIVE VITL clocks (should default FALSE) -// i_stop_cache_clks => True to stop CACHE chiplet clocks (should default TRUE) -// i_stop_core_clks => True to stop CORE chiplet clocks (should default TRUE) +// i_flags => flags as per the following definition +// i_flags.stop_nest_clks => True to stop NEST chiplet clocks (should default TRUE) +// i_flags.stop_mc_clks => True to stop MC chiplet clocks (should default TRUE) +// i_flags.stop_xbus_clks => True to stop XBUS chiplet clocks (should default TRUE) +// i_flags.stop_obus_clks => True to stop OBUS chiplet clocks (should default TRUE) +// i_flags.stop_pcie_clks => True to stop PCIE chiplet clocks (should default TRUE) +// i_flags.stop_tp_clks => True to stop PERVASIVE (TP) chiplet clocks all except PIB/NET (should default FALSE) +// i_flags.stop_pib_clks => True to stop PERVASIVE (TP) chiplet PIB/NET clocks (should default FALSE) +// i_flags.stop_vitl_clks => True to stop PERVASIVE VITL clocks (should default FALSE) +// i_flags.stop_cache_clks => True to stop CACHE chiplet clocks (should default TRUE) +// i_flags.stop_core_clks => True to stop CORE chiplet clocks (should default TRUE) // i_eq_clk_regions => EQ chiplet clock regions of which clocks should be stopped (default ALL_BUT_PLL_REFR) // i_ex_select => EX chiplet selected for clocks stop (default BOTH_EX) // returns: FAPI_RC_SUCCESS if operation was successful, else error //------------------------------------------------------------------------------ fapi2::ReturnCode p9_stopclocks(const fapi2::Target& i_target_chip, - const bool i_stop_nest_clks, - const bool i_stop_mc_clks, - const bool i_stop_xbus_clks, - const bool i_stop_obus_clks, - const bool i_stop_pcie_clks, - const bool i_stop_tp_clks, - const bool i_stop_pib_clks, - const bool i_stop_vitl_clks, - const bool i_stop_cache_clks, - const bool i_stop_core_clks, + const p9_stopclocks_flags& i_flags, const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS i_eq_clk_regions, const p9hcd::P9_HCD_EX_CTRL_CONSTANTS i_ex_select) { @@ -116,11 +108,20 @@ fapi2::ReturnCode p9_stopclocks(const fapi2::Target(fapi2::TARGET_STATE_FUNCTIONAL)) { @@ -309,7 +311,7 @@ fapi2::ReturnCode p9_stopclocks(const fapi2::Target(fapi2::TARGET_STATE_FUNCTIONAL)) { @@ -320,11 +322,11 @@ fapi2::ReturnCode p9_stopclocks(const fapi2::Target Skipping VITAL Stopclocks..! <--"); -- cgit v1.2.1