diff options
author | Jacob Harvey <jlharvey@us.ibm.com> | 2017-04-12 18:05:15 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-04-27 09:16:34 -0400 |
commit | 6f8455bced213e8612cc89d7403726beda2d8d05 (patch) | |
tree | e8aacbd38fdaac0b140b844da0403497abf3e15e /src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C | |
parent | d9fa670675bf2870ff8a37f865e50e98a5ede39c (diff) | |
download | talos-hostboot-6f8455bced213e8612cc89d7403726beda2d8d05.tar.gz talos-hostboot-6f8455bced213e8612cc89d7403726beda2d8d05.zip |
Fix eff_config_thermal's powerlimit check SW386095
Change-Id: I2817e43ee8e7780832141b72f4457e2b26033c5f
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39187
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Michael D. Pardeik <pardeik@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39188
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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C index 766e60375..4c1ca1cff 100644 --- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_thermal.C @@ -41,6 +41,7 @@ #include <lib/power_thermal/decoder.H> #include <lib/dimm/kind.H> #include <lib/utils/count_dimm.H> +#include <lib/shared/mss_const.H> #include <mss.H> extern "C" { @@ -156,13 +157,13 @@ extern "C" FAPI_INF("Starting bulk_pwr"); //get the thermal limits, done per dimm and set to worst case for the slot and port throttles //Bulk_pwr sets the general, all purpose ATTR_MSS_MEM_THROTTLED_N_COMMANDS_PER_SLOT, _PER_PORT, and MAXPOWER ATTRs - FAPI_EXEC_HWP(l_rc, p9_mss_bulk_pwr_throttles, i_targets, POWER); + FAPI_EXEC_HWP(l_rc, p9_mss_bulk_pwr_throttles, i_targets, mss::throttle_type::POWER); FAPI_TRY(l_rc, "Failed running p9_mss_bulk_pwr_throttles"); //Set runtime throttles to worst case between ATTR_MSS_MEM_THROTTLED_N_COMMANDS_PER_SLOT //and ATTR_MSS_MEM_RUNTIME_THROTTLED_N_COMMANDS_PER_SLOT and the _PORT equivalents also FAPI_INF("Starting update"); - FAPI_TRY( mss::power_thermal::update_runtime_throttles (i_targets)); + FAPI_TRY( mss::power_thermal::update_runtime_throttles (i_targets) ); FAPI_INF("finished update"); //Set VDDR+VPP power curve values @@ -192,10 +193,10 @@ extern "C" } //Run thermal throttles with the VDDR+VPP power curves - FAPI_EXEC_HWP(l_rc, p9_mss_bulk_pwr_throttles, i_targets, THERMAL); + FAPI_EXEC_HWP(l_rc, p9_mss_bulk_pwr_throttles, i_targets, mss::throttle_type::THERMAL); FAPI_TRY(l_rc, "Failed running p9_mss_bulk_pwr_throttles with THERMAL throttling in p9_mss_eff_config_thermal"); //Update everything to worst case - FAPI_TRY( mss::power_thermal::update_runtime_throttles (i_targets)); + FAPI_TRY( mss::power_thermal::update_runtime_throttles (i_targets) ); //Done FAPI_INF( "End effective config thermal"); |