Skip to content

Commit a10ef71

Browse files
aamarincrgeddes
authored andcommitted
Add mss throttle files L1
Change-Id: If916a66e8660c0c389e097495a1321f4358ea9af Original-Change-Id: I4a8a83151b3287a38235db11cd298900119aed35 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22149 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31931 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
1 parent 5ec2936 commit a10ef71

File tree

2 files changed

+109
-0
lines changed

2 files changed

+109
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* IBM_PROLOG_BEGIN_TAG */
2+
/* This is an automatically generated prolog. */
3+
/* */
4+
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_throttle_mem.C $ */
5+
/* */
6+
/* OpenPOWER HostBoot Project */
7+
/* */
8+
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
9+
/* [+] International Business Machines Corp. */
10+
/* */
11+
/* */
12+
/* Licensed under the Apache License, Version 2.0 (the "License"); */
13+
/* you may not use this file except in compliance with the License. */
14+
/* You may obtain a copy of the License at */
15+
/* */
16+
/* http://www.apache.org/licenses/LICENSE-2.0 */
17+
/* */
18+
/* Unless required by applicable law or agreed to in writing, software */
19+
/* distributed under the License is distributed on an "AS IS" BASIS, */
20+
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
21+
/* implied. See the License for the specific language governing */
22+
/* permissions and limitations under the License. */
23+
/* */
24+
/* IBM_PROLOG_END_TAG */
25+
26+
///
27+
/// @file p9_mss_throttle_mem.C
28+
/// @brief Write the runtime memory throttle settings from attributes to scom registers
29+
///
30+
// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com>
31+
// *HWP HWP Backup: Brian Silver <bsilver@us.ibm.com>
32+
// *HWP Team: Memory
33+
// *HWP Level: 1
34+
// *HWP Consumed by: FSP:HB
35+
36+
#include <fapi2.H>
37+
#include <p9_mss_thermal_throttle_mem.H>
38+
39+
using fapi2::TARGET_TYPE_MCS;
40+
41+
extern "C"
42+
{
43+
44+
///
45+
/// @brief Write the runtime memory throttle settings from attributes to scom registers
46+
/// @param[in] i_target the controller target
47+
/// @return FAPI2_RC_SUCCESS iff ok
48+
///
49+
fapi2::ReturnCode p9_mss_throttle_mem( const fapi2::Target<TARGET_TYPE_MCS>& i_target )
50+
{
51+
FAPI_INF("Start throttle mem");
52+
FAPI_INF("End throttle mem");
53+
54+
return fapi2::FAPI2_RC_SUCCESS;
55+
}
56+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/* IBM_PROLOG_BEGIN_TAG */
2+
/* This is an automatically generated prolog. */
3+
/* */
4+
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_throttle_mem.H $ */
5+
/* */
6+
/* OpenPOWER HostBoot Project */
7+
/* */
8+
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
9+
/* [+] International Business Machines Corp. */
10+
/* */
11+
/* */
12+
/* Licensed under the Apache License, Version 2.0 (the "License"); */
13+
/* you may not use this file except in compliance with the License. */
14+
/* You may obtain a copy of the License at */
15+
/* */
16+
/* http://www.apache.org/licenses/LICENSE-2.0 */
17+
/* */
18+
/* Unless required by applicable law or agreed to in writing, software */
19+
/* distributed under the License is distributed on an "AS IS" BASIS, */
20+
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
21+
/* implied. See the License for the specific language governing */
22+
/* permissions and limitations under the License. */
23+
/* */
24+
/* IBM_PROLOG_END_TAG */
25+
26+
///
27+
/// @file p9_mss_throttle_mem.H
28+
/// @brief Write the runtime memory throttle settings from attributes to scom registers
29+
///
30+
// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com>
31+
// *HWP HWP Backup: Brian Silver <bsilver@us.ibm.com>
32+
// *HWP Team: Memory
33+
// *HWP Level: 1
34+
// *HWP Consumed by: FSP:HB
35+
36+
#ifndef __P9_MSS_THROTTLE_MEM__
37+
#define __P9_MSS_THROTTLE_MEM__
38+
39+
#include <fapi2.H>
40+
41+
typedef fapi2::ReturnCode (*p9_mss_throttle_mem_FP_t) (const fapi2::Target<fapi2::TARGET_TYPE_MCS>&);
42+
43+
extern "C"
44+
{
45+
///
46+
/// @brief Write the runtime memory throttle settings from attributes to scom registers
47+
/// @param[in] i_target the controller target
48+
/// @return FAPI2_RC_SUCCESS iff ok
49+
///
50+
fapi2::ReturnCode p9_mss_throttle_mem( const fapi2::Target<fapi2::TARGET_TYPE_MCS>& i_target );
51+
}
52+
53+
#endif

0 commit comments

Comments
 (0)