diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2015-02-19 19:13:17 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-25 08:46:01 -0600 |
commit | d8695b5f685e0ed2de669892e8f33eb1164ca364 (patch) | |
tree | 1f2cb637f78c2229506bbe47b53a23f5e88fa165 /src/usr/ipmi/ipmidcmi.C | |
parent | db33d79e8497b59a0add7c74be2f2251f4cd0c1e (diff) | |
download | talos-hostboot-d8695b5f685e0ed2de669892e8f33eb1164ca364.tar.gz talos-hostboot-d8695b5f685e0ed2de669892e8f33eb1164ca364.zip |
Updates to support serverwiz2 sensor format
Change-Id: I2518f6e78197f8dc329641e38264a7878060509d
Depends-on: I09c95f470ca4748eeed568b71dc1c8b6e1c3ab76
RTC:124008
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15853
Tested-by: Jenkins Server
Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/ipmi/ipmidcmi.C')
-rw-r--r-- | src/usr/ipmi/ipmidcmi.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/ipmi/ipmidcmi.C b/src/usr/ipmi/ipmidcmi.C index 6372cdf67..c32962fcc 100644 --- a/src/usr/ipmi/ipmidcmi.C +++ b/src/usr/ipmi/ipmidcmi.C @@ -89,6 +89,13 @@ namespace SENSOR TRACFCOMP(g_trac_ipmi,"Power limit is %d watts",o_powerLimit); TRACFCOMP(g_trac_ipmi,"Power limit is %s", ((cc) ? "not active": "active")); + // $TODO RTC:124093 de-rating factor for the power limit will + // be stored in a sensor, which is not defined currently so + // hardcode it at 90% efficency per power team suggestion + + // derate the power limit to 90% of the input power + o_powerLimit = ( static_cast<uint32_t>(o_powerLimit) * 9 )/10; + // the completion code also tells us if the limit is active if(l_cc == POWER_LIMIT_ACTIVE ) { @@ -108,6 +115,10 @@ namespace SENSOR * @userdata1 BMC IPMI Completion code. * @devdesc Request to get power limit information * failed + * @custdesc The DCMI command to retrieve the power limit + * data from the BMC has failed, the user + * defined power limit cannot be applied. + * */ l_err = new ERRORLOG::ErrlEntry( |