From 4da49bc35fa2b408393a0718942eaf86a418f37b Mon Sep 17 00:00:00 2001 From: Andre Marin Date: Tue, 27 Nov 2018 13:21:51 -0600 Subject: Add L1 procedures for p9a and makefiles Change-Id: I9f56a57f85a1b970bb17adde474ff6f89dc3c19d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69155 Tested-by: Jenkins Server Reviewed-by: Louis Stermole Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71844 Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes --- .../p9a/procedures/hwp/memory/p9a_mss_eff_config.C | 24 +++++++++++++++ .../p9a/procedures/hwp/memory/p9a_mss_eff_config.H | 32 ++++++++++++++++++++ .../hwp/memory/p9a_mss_eff_config_thermal.C | 25 ++++++++++++++++ .../hwp/memory/p9a_mss_eff_config_thermal.H | 35 ++++++++++++++++++++++ .../chips/p9a/procedures/hwp/memory/p9a_mss_freq.C | 23 ++++++++++++++ .../chips/p9a/procedures/hwp/memory/p9a_mss_freq.H | 32 ++++++++++++++++++++ .../chips/p9a/procedures/hwp/memory/p9a_mss_volt.C | 22 ++++++++++++++ .../chips/p9a/procedures/hwp/memory/p9a_mss_volt.H | 31 +++++++++++++++++++ 8 files changed, 224 insertions(+) (limited to 'src/import/chips/p9a') diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.C b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.C index dbeade5c7..cfa7b80b3 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.C +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.C @@ -22,3 +22,27 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_eff_config.C +/// @brief Command and Control for the memory subsystem - populate attributes +/// +// *HWP HWP Owner: Andre Marin +// *HWP HWP Backup: Louis Stermole +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +// fapi2 +#include + + +/// +/// @brief Configure the attributes for each controller +/// @param[in] i_target port target +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9a_mss_eff_config( const fapi2::Target& i_target ) +{ + return fapi2::FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.H b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.H index 0f2565844..528dc2af0 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.H +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.H @@ -22,3 +22,35 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_eff_config.H +/// @brief Command and Control for the memory subsystem - populate attributes +/// +// *HWP HWP Owner: Louis Stermole +// *HWP HWP Backup: Andre A. Marin +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#ifndef P9A_MSS_EFF_CONFIG_H_ +#define P9A_MSS_EFF_CONFIG_H_ + +#include +#include + +typedef fapi2::ReturnCode (*p9a_mss_eff_config_FP_t) (const fapi2::Target&); + +extern "C" +{ + + /// + /// @brief Configure the attributes for each controller + /// @param[in] i_target port target + /// @return FAPI2_RC_SUCCESS iff ok + /// + fapi2::ReturnCode p9a_mss_eff_config( const fapi2::Target& i_target ); + +} + +#endif diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.C b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.C index 1e49f77cc..989fed6ab 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.C +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.C @@ -22,3 +22,28 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_eff_config_thermal.C +/// @brief Perform thermal calculations as part of the effective configuration +/// +// *HWP HWP Owner: Andre A. Marin +// *HWP HWP Backup: Michael Pardeik +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +// fapi2 +#include + +/// +/// @brief Perform thermal calculations as part of the effective configuration +/// @param[in] i_targets vector of ports (e.g., MEM_PORT) all on the same VDDR domain +/// @return FAPI2_RC_SUCCESS iff ok +/// @note sets ATTR_MSS_MEM_WATT_TARGET, ATTR_MSS_RUNTIME_MEM_THROTTLED_N_COMMANDS_PER_PORT and _PER_SLOT, and ATTR_MSS_PORT_MAXPOWER +/// +fapi2::ReturnCode p9a_mss_eff_config_thermal( const std::vector< fapi2::Target >& + i_targets ) +{ + return fapi2::FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.H b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.H index 9eed3d56f..c54c11787 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.H +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config_thermal.H @@ -22,3 +22,38 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_eff_config_thermal.H +/// @brief Perform thermal calculations as part of the effective configuration +/// +// *HWP HWP Owner: Andre A. Marin +// *HWP HWP Backup: Michael Pardeik +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#ifndef P9A_MSS_EFF_CONFIG_THERMAL_H_ +#define P9A_MSS_EFF_CONFIG_THERMAL_H_ + +#include +#include + +typedef fapi2::ReturnCode (*p9a_mss_eff_config_thermal_FP_t) (const std::vector + >&); + +extern "C" +{ + + /// + /// @brief Perform thermal calculations as part of the effective configuration + /// @param[in] i_targets vector of ports (e.g., MEM_PORT) all on the same VDDR domain + /// @return FAPI2_RC_SUCCESS iff ok + /// @note sets ATTR_MSS_MEM_WATT_TARGET, ATTR_MSS_RUNTIME_MEM_THROTTLED_N_COMMANDS_PER_PORT and _PER_SLOT, and ATTR_MSS_PORT_MAXPOWER + /// + fapi2::ReturnCode p9a_mss_eff_config_thermal( const std::vector< fapi2::Target >& + i_targets ); + +} + +#endif diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.C b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.C index e8bd5dcdd..f0a06de0b 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.C +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.C @@ -22,3 +22,26 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_freq.C +/// @brief Calculate and save off DIMM frequencies +/// +// *HWP HWP Owner: Andre Marin +// *HWP HWP Backup: Louis Stermole +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +// fapi2 +#include + +/// +/// @brief Calculate and save off DIMM frequencies +/// @param[in] i_target port target +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9a_mss_freq( const fapi2::Target& i_target ) +{ + return fapi2::FAPI2_RC_SUCCESS; +} diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.H b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.H index 6ef3131e4..179292a80 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.H +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.H @@ -22,3 +22,35 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_freq.H +/// @brief Calculate and save off DIMM frequencies +/// +// *HWP HWP Owner: Louis Stermole +// *HWP HWP Backup: Andre A. Marin +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#ifndef P9A_MSS_FREQ_H_ +#define P9A_MSS_FREQ_H_ + +#include +#include + +typedef fapi2::ReturnCode (*p9a_mss_freq_FP_t) (const fapi2::Target&); + +extern "C" +{ + + /// + /// @brief Calculate and save off DIMM frequencies + /// @param[in] i_target port target + /// @return FAPI2_RC_SUCCESS iff ok + /// + fapi2::ReturnCode p9a_mss_freq( const fapi2::Target& i_target ); + +} + +#endif diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.C b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.C index 14411d27a..6644edf95 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.C +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.C @@ -22,3 +22,25 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_volt.C +/// @brief Calculate and save off rail voltages +/// +// *HWP HWP Owner: Louis Stermole +// *HWP HWP Backup: Andre A. Marin +// *HWP Team: Memory +// *HWP Level: 3 +// *HWP Consumed by: FSP:HB + +#include + +/// +/// @brief Calculate and save off rail voltages +/// @param[in] i_targets vector of ports (e.g., MEM_PORT) +/// @return FAPI2_RC_SUCCESS iff ok +/// +fapi2::ReturnCode p9a_mss_volt( const std::vector< fapi2::Target >& i_targets ) +{ + return fapi2::FAPI2_RC_SUCCESS; +} // p9_mss_volt diff --git a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.H b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.H index a3acfade0..0eb038484 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.H +++ b/src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.H @@ -22,3 +22,34 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file p9a_mss_volt.H +/// @brief Calculate and save off rail voltages +/// +// *HWP HWP Owner: Louis Stermole +// *HWP HWP Backup: Andre A. Marin +// *HWP Team: Memory +// *HWP Level: 3 +// *HWP Consumed by: FSP:HB + +#ifndef P9A_MSS_VOLT_H_ +#define P9A_MSS_VOLT_H_ + +#include +#include + +typedef fapi2::ReturnCode (*p9a_mss_volt_FP_t) (const std::vector >&); + +extern "C" +{ + + /// + /// @brief Calculate and save off rail voltages + /// @param[in] i_targets vector of ports (e.g., MEM_PORT) + /// @return FAPI2_RC_SUCCESS iff ok + /// + fapi2::ReturnCode p9a_mss_volt( const std::vector< fapi2::Target >& i_targets ); +} + +#endif -- cgit v1.2.1