diff options
author | Yue Du <daviddu@us.ibm.com> | 2016-06-24 23:58:31 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-09-20 03:08:43 -0400 |
commit | 76a267ec31ac0d32dfec5ece5be304fef6932b2e (patch) | |
tree | af23c7b32a2d4af70a1071739bf0e85ca0fbfd4f /src/import | |
parent | bcce27ba9b2da5717e4ff82484fc810642d6ee90 (diff) | |
download | talos-sbe-76a267ec31ac0d32dfec5ece5be304fef6932b2e.tar.gz talos-sbe-76a267ec31ac0d32dfec5ece5be304fef6932b2e.zip |
CORE/CACHE: add Level1 cache/l2/core stopclocks procedures
Change-Id: I7fbeb38d364730ccf308b62e139b3fce40642750
Original-Change-Id: Id407ffa51ea9a7fb9a0056a7faaf1e33e4433e50
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26276
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Soma Bhanutej <soma.bhanu@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29918
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import')
6 files changed, 381 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C new file mode 100644 index 00000000..ae8fc391 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C @@ -0,0 +1,66 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_cache_stopclocks.C +/// @brief Quad Clock Stop +/// +/// Procedure Summary: + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ + +#include <p9_misc_scom_addresses.H> +#include <p9_quad_scom_addresses.H> +#include <p9_hcd_common.H> +#include "p9_hcd_cache_stopclocks.H" + +//------------------------------------------------------------------------------ +// Constant Definitions +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Procedure: Quad Clock Stop +//------------------------------------------------------------------------------ + +fapi2::ReturnCode +p9_hcd_cache_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_target, + const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS i_select_regions, + const p9hcd::P9_HCD_EX_CTRL_CONSTANTS i_select_ex) +{ + FAPI_INF(">>p9_hcd_cache_stopclocks"); + + FAPI_INF("<<p9_hcd_cache_stopclocks"); + return fapi2::FAPI2_RC_SUCCESS; +} + diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.H b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.H new file mode 100644 index 00000000..d3a56cba --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.H @@ -0,0 +1,66 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.H $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_cache_stopclocks.H +/// @brief Quad Clock Stop +/// + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +#ifndef __P9_HCD_CACHE_STOPCLOCKS_H__ +#define __P9_HCD_CACHE_STOPCLOCKS_H__ + +#include <fapi2.H> +#include <p9_hcd_common.H> + +/// @typedef p9_hcd_cache_stopclocks_FP_t +/// function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_hcd_cache_stopclocks_FP_t) ( + const fapi2::Target<fapi2::TARGET_TYPE_EQ>&, + const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS, + const p9hcd::P9_HCD_EX_CTRL_CONSTANTS); + +extern "C" +{ + +/// @brief Quad Clock Stop +/// @param [in] i_target TARGET_TYPE_EQ target +/// @param [in] i_skip_regions select clk regions to skip on stopclocks +/// @param [in] i_skip_ex select ex, odd and/or even, to skip on stopclocks +/// @return FAPI2_RC_SUCCESS if success, else error code + fapi2::ReturnCode + p9_hcd_cache_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_target, + const p9hcd::P9_HCD_CLK_CTRL_CONSTANTS i_select_regions, + const p9hcd::P9_HCD_EX_CTRL_CONSTANTS i_select_ex); + +} + +#endif // __P9_HCD_CACHE_STOPCLOCKS_H__ diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.C b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.C new file mode 100644 index 00000000..e4e5dec1 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.C @@ -0,0 +1,64 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.C $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_l2_stopclocks.C +/// @brief Quad Clock Stop +/// +/// Procedure Summary: + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ + +#include <p9_misc_scom_addresses.H> +#include <p9_quad_scom_addresses.H> +#include <p9_hcd_common.H> +#include "p9_hcd_l2_stopclocks.H" + +//------------------------------------------------------------------------------ +// Constant Definitions +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Procedure: Quad Clock Stop +//------------------------------------------------------------------------------ + +fapi2::ReturnCode +p9_hcd_l2_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_EX>& i_target) +{ + FAPI_INF(">>p9_hcd_l2_stopclocks"); + + FAPI_INF("<<p9_hcd_l2_stopclocks"); + return fapi2::FAPI2_RC_SUCCESS; +} + diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.H b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.H new file mode 100644 index 00000000..917fbe1f --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.H @@ -0,0 +1,59 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/cache/p9_hcd_l2_stopclocks.H $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_l2_stopclocks.H +/// @brief Quad Clock Stop +/// + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +#ifndef __P9_HCD_CACHE_STOPCLOCKS_H__ +#define __P9_HCD_CACHE_STOPCLOCKS_H__ + +#include <fapi2.H> + +/// @typedef p9_hcd_l2_stopclocks_FP_t +/// function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_hcd_l2_stopclocks_FP_t) ( + const fapi2::Target<fapi2::TARGET_TYPE_EX>&); + +extern "C" +{ + +/// @brief Quad Clock Stop +/// @param [in] i_target TARGET_TYPE_EQ target +/// @return FAPI2_RC_SUCCESS if success, else error code + fapi2::ReturnCode + p9_hcd_l2_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_EX>& i_target); + +} + +#endif // __P9_HCD_CACHE_STOPCLOCKS_H__ diff --git a/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.C b/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.C new file mode 100644 index 00000000..11104282 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.C @@ -0,0 +1,67 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.C $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_core_stopclocks.C +/// @brief Core Clock Stop +/// +/// Procedure Summary: + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ + +#include <p9_misc_scom_addresses.H> +#include <p9_quad_scom_addresses.H> +#include <p9_hcd_common.H> +#include "p9_hcd_core_stopclocks.H" + +//------------------------------------------------------------------------------ +// Constant Definitions +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Procedure: Core Clock Stop +//------------------------------------------------------------------------------ + +fapi2::ReturnCode +p9_hcd_core_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_target) +{ + FAPI_INF(">>p9_hcd_core_stopclocks"); + + FAPI_INF("<<p9_hcd_core_stopclocks"); + return fapi2::FAPI2_RC_SUCCESS; +} + + + + diff --git a/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.H b/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.H new file mode 100644 index 00000000..08638b23 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.H @@ -0,0 +1,59 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/import/chips/p9/procedures/hwp/core/p9_hcd_core_stopclocks.H $ */ +/* */ +/* OpenPOWER sbe Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_core_stopclocks.H +/// @brief Core Clock Stop +/// + +// *HWP HWP Owner : David Du <daviddu@us.ibm.com> +// *HWP Backup HWP Owner : Greg Still <stillgs@us.ibm.com> +// *HWP FW Owner : Sangeetha T S <sangeet2@in.ibm.com> +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +#ifndef __P9_HCD_CORE_STOPCLOCKS_H__ +#define __P9_HCD_CORE_STOPCLOCKS_H__ + +#include <fapi2.H> + +/// @typedef p9_hcd_core_stopclocks_FP_t +/// function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_hcd_core_stopclocks_FP_t) ( + const fapi2::Target<fapi2::TARGET_TYPE_CORE>&); + +extern "C" +{ + +/// @brief Quad Clock Stop +/// @param [in] i_target TARGET_TYPE_EX target +/// @return FAPI2_RC_SUCCESS if success, else error code + fapi2::ReturnCode + p9_hcd_core_stopclocks( + const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_target); + +} + +#endif // __P9_HCD_CORE_STOPCLOCKS_H__ |