summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C
diff options
context:
space:
mode:
authorJacob Harvey <jlharvey@us.ibm.com>2016-10-13 09:29:46 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-27 11:06:51 -0400
commitee413cb5a6ae5b743582c61427ab3d9f8ec1afc7 (patch)
tree4669e9e0dbf2f2ef14faa1d8b6b621376a1182b8 /src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C
parent097b78713b5afd3a0e5ec4fbe6233237f5b2319b (diff)
downloadtalos-hostboot-ee413cb5a6ae5b743582c61427ab3d9f8ec1afc7.tar.gz
talos-hostboot-ee413cb5a6ae5b743582c61427ab3d9f8ec1afc7.zip
Started implementation of bulk_pwr_throttles
Added calc_power and calc_databus functions for throttling Added testing for those calc functions Added a set_power_attrs which decodes power curve attributes Change-Id: I2f08f846f6b19b0200b1c1df4a095cabfa9ee840 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31163 Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31259 Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C30
1 files changed, 25 insertions, 5 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C
index 65d3bd083..77cbacf5d 100644
--- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C
+++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_bulk_pwr_throttles.C
@@ -32,7 +32,7 @@
// *HWP Team: Memory
// *HWP Level: 1
// *HWP Consumed by: FSP:HB
-#include <algorithm>
+#include <vector>
#include <mss.H>
#include <fapi2.H>
@@ -62,22 +62,42 @@ extern "C"
throttle_type t)
{
FAPI_INF("Start bulk_pwr_throttles");
-
- FAPI_TRY ( mss::bulk_thermal_throttles (i_targets) );
+//To be implemented in next commit
+#if 0
//Check for THERMAL
if (t == THERMAL)
{
- FAPI_TRY ( mss::bulk_thermal_throttles (i_targets) );
+ for ( const auto& l_mcs : i_targets)
+ {
+ for (const auto& l_mca : mss::find_targets<TARGET_TYPE_MCA>(l_mcs))
+ {
+ //mss::power_thermal::throttle l_pwr_struct(l_mca);
+ //FAPI_TRY (l_pwr_struct.thermal_throttles() );
+ }
+ }
+
+ //Equalize throttles
}
//else do POWER
else
{
- FAPI_TRY ( mss::bulk_power_regulator_throttles (i_targets) );
+ for ( const auto& l_mcs : i_targets)
+ {
+ for (const auto& l_mca : mss::find_targets<TARGET_TYPE_MCA>(l_mcs))
+ {
+ //mss::power_thermal::throttle l_pwr_struct(l_mca);
+ //FAPI_TRY (l_pwr_struct.power_regulator_throttles() );
+ }
+ }
+
+ //Equalize throttles
}
+
FAPI_INF("End bulk_pwr_throttles");
fapi_try_exit:
+#endif
return fapi2::current_err;
}
} //extern C
OpenPOWER on IntegriCloud