From 5dddd1788345907e1f6dd2c544d31b84026320fb Mon Sep 17 00:00:00 2001 From: Yue Du Date: Fri, 24 Jun 2016 23:58:31 -0500 Subject: CORE/CACHE: add Level1 cache/l2/core stopclocks procedures Change-Id: I9c7bc5470e09fa456a68b59122be4ab94a6e8e12 Original-Change-Id: Id407ffa51ea9a7fb9a0056a7faaf1e33e4433e50 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26276 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Soma Bhanutej Reviewed-by: Gregory S. Still Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27581 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- .../procedures/hwp/cache/p9_hcd_cache_stopclocks.C | 60 ++++++++++++++++++++++ .../procedures/hwp/cache/p9_hcd_cache_stopclocks.H | 60 ++++++++++++++++++++++ .../hwp/cache/p9_hcd_cache_stopclocks.mk | 22 ++++++++ 3 files changed, 142 insertions(+) create mode 100644 src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C create mode 100644 src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.H create mode 100644 src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.mk (limited to 'src/import/chips/p9/procedures/hwp/cache') 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 000000000..1215b2143 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C @@ -0,0 +1,60 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015,2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// +/// @file p9_hcd_cache_stopclocks.C +/// @brief Quad Clock Stop +/// +/// Procedure Summary: + +// *HWP HWP Owner : David Du +// *HWP Backup HWP Owner : Greg Still +// *HWP FW Owner : Sangeetha T S +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ + +#include +#include +#include +#include "p9_hcd_cache_stopclocks.H" + +//------------------------------------------------------------------------------ +// Constant Definitions +//------------------------------------------------------------------------------ + +//------------------------------------------------------------------------------ +// Procedure: Quad Clock Stop +//------------------------------------------------------------------------------ + +fapi2::ReturnCode +p9_hcd_cache_stopclocks( + const fapi2::Target& 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("< +// *HWP Backup HWP Owner : Greg Still +// *HWP FW Owner : Sangeetha T S +// *HWP Team : PM +// *HWP Consumed by : HB:PREV +// *HWP Level : 2 + +#ifndef __P9_HCD_CACHE_STOPCLOCKS_H__ +#define __P9_HCD_CACHE_STOPCLOCKS_H__ + +#include +#include + +/// @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&, + 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& 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_cache_stopclocks.mk b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.mk new file mode 100644 index 000000000..23c8c23f7 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.mk @@ -0,0 +1,22 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015,2016 +# [+] International Business Machines Corp. +# +# +# The source code for this program is not published or otherwise +# divested of its trade secrets, irrespective of what has been +# deposited with the U.S. Copyright Office. +# +# IBM_PROLOG_END_TAG +PROCEDURE=p9_hcd_cache_stopclocks +$(call ADD_MODULE_SRCDIR,$(PROCEDURE),$(ROOTPATH)/chips/p9/procedures/hwp/lib) +OBJS+=p9_hcd_cache_stopclocks.o +$(call BUILD_PROCEDURE) -- cgit v1.2.1