Skip to content

Commit

Permalink
Add L1 procedures for p9a and makefiles
Browse files Browse the repository at this point in the history
Change-Id: I9f56a57f85a1b970bb17adde474ff6f89dc3c19d
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69155
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71844
Tested-by: Jenkins OP Build CI <op-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>
  • Loading branch information
aamarin authored and crgeddes committed Feb 14, 2019
1 parent 8b4a6f1 commit 4da49bc
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.C
Original file line number Diff line number Diff line change
Expand Up @@ -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 <aamarin@us.ibm.com>
// *HWP HWP Backup: Louis Stermole <stermole@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB

// fapi2
#include <p9a_mss_eff_config.H>


///
/// @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<fapi2::TARGET_TYPE_MEM_PORT>& i_target )
{
return fapi2::FAPI2_RC_SUCCESS;
}
32 changes: 32 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_eff_config.H
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stermole@us.ibm.com>
// *HWP HWP Backup: Andre A. Marin <aamarin@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB

#ifndef P9A_MSS_EFF_CONFIG_H_
#define P9A_MSS_EFF_CONFIG_H_

#include <fapi2.H>
#include <vector>

typedef fapi2::ReturnCode (*p9a_mss_eff_config_FP_t) (const fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>&);

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<fapi2::TARGET_TYPE_MEM_PORT>& i_target );

}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -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 <aamarin@us.ibm.com>
// *HWP HWP Backup: Michael Pardeik <pardeik@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB

// fapi2
#include <p9a_mss_eff_config_thermal.H>

///
/// @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<fapi2::TARGET_TYPE_MEM_PORT> >&
i_targets )
{
return fapi2::FAPI2_RC_SUCCESS;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 <aamarin@us.ibm.com>
// *HWP HWP Backup: Michael Pardeik <pardeik@us.ibm.com>
// *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 <fapi2.H>
#include <vector>

typedef fapi2::ReturnCode (*p9a_mss_eff_config_thermal_FP_t) (const std::vector
<fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>>&);

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<fapi2::TARGET_TYPE_MEM_PORT> >&
i_targets );

}

#endif
23 changes: 23 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.C
Original file line number Diff line number Diff line change
Expand Up @@ -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 <aamarin@us.ibm.com>
// *HWP HWP Backup: Louis Stermole <stermole@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB

// fapi2
#include <p9a_mss_freq.H>

///
/// @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<fapi2::TARGET_TYPE_MEM_PORT>& i_target )
{
return fapi2::FAPI2_RC_SUCCESS;
}
32 changes: 32 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_freq.H
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stermole@us.ibm.com>
// *HWP HWP Backup: Andre A. Marin <aamarin@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB

#ifndef P9A_MSS_FREQ_H_
#define P9A_MSS_FREQ_H_

#include <fapi2.H>
#include <vector>

typedef fapi2::ReturnCode (*p9a_mss_freq_FP_t) (const fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>&);

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<fapi2::TARGET_TYPE_MEM_PORT>& i_target );

}

#endif
22 changes: 22 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.C
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stermole@us.ibm.com>
// *HWP HWP Backup: Andre A. Marin <aamarin@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 3
// *HWP Consumed by: FSP:HB

#include <p9a_mss_volt.H>

///
/// @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<fapi2::TARGET_TYPE_MEM_PORT> >& i_targets )
{
return fapi2::FAPI2_RC_SUCCESS;
} // p9_mss_volt
31 changes: 31 additions & 0 deletions src/import/chips/p9a/procedures/hwp/memory/p9a_mss_volt.H
Original file line number Diff line number Diff line change
Expand Up @@ -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 <stermole@us.ibm.com>
// *HWP HWP Backup: Andre A. Marin <aamarin@us.ibm.com>
// *HWP Team: Memory
// *HWP Level: 3
// *HWP Consumed by: FSP:HB

#ifndef P9A_MSS_VOLT_H_
#define P9A_MSS_VOLT_H_

#include <fapi2.H>
#include <vector>

typedef fapi2::ReturnCode (*p9a_mss_volt_FP_t) (const std::vector <fapi2::Target<fapi2::TARGET_TYPE_MEM_PORT>>&);

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<fapi2::TARGET_TYPE_MEM_PORT> >& i_targets );
}

#endif

0 comments on commit 4da49bc

Please sign in to comment.