From d5b2ac0e5d5decac55e7ed4be989e3d57a45c35e Mon Sep 17 00:00:00 2001 From: Jayanth Othayoth Date: Mon, 27 Mar 2017 08:19:18 -0500 Subject: Add Sensor Reading Support for Power Supply Derating Change-Id: I0eb106c37c33db01937ec61dd5553b5799651633 Signed-off-by: Jayanth Othayoth --- ipmisensor.cpp | 4 +++- sensorhandler.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ipmisensor.cpp b/ipmisensor.cpp index 64fe0a7..981859d 100644 --- a/ipmisensor.cpp +++ b/ipmisensor.cpp @@ -179,6 +179,8 @@ lookup_t g_ipmidbuslookup[] = { {0xe9, 0x01, set_sensor_dbus_state_simple, "setValue", "Enabled", ""}, // OCC Active 1 // Turbo Allowed {0xda, 0x00, set_sensor_dbus_state_simple, "setValue", "False", ""}, + // Power Supply Derating + {0xb4, 0x00, set_sensor_dbus_state_simple, "setValue", "", ""}, {0x07, 0x07, set_sensor_dbus_state_simple, "setPresent", "True", "False"}, {0x07, 0x08, set_sensor_dbus_state_simple, "setFault", "True", "False"}, {0x0C, 0x06, set_sensor_dbus_state_simple, "setPresent", "True", "False"}, @@ -200,7 +202,7 @@ lookup_t g_ipmidbuslookup[] = { {0x12, 0x02, set_sensor_dbus_state_system_event, "setValue", "", ""}, {0x12, 0x03, set_sensor_dbus_state_system_event, "setValue", "", ""}, {0x12, 0x04, set_sensor_dbus_state_system_event, "setValue", "", ""}, - {0xD8, 0x00, set_sensor_dbus_state_simple, "setValue", "Disabled", ""}, + {0xD8, 0x00, set_sensor_dbus_state_simple, "setValue", "Disabled", ""}, {0xFF, 0xFF, NULL, "", "", ""} }; diff --git a/sensorhandler.cpp b/sensorhandler.cpp index 121f1f0..38f84d4 100644 --- a/sensorhandler.cpp +++ b/sensorhandler.cpp @@ -42,6 +42,7 @@ sensorTypemap_t g_SensorTypeMap[] = { {0xC2, 0x6F, "PowerCap"}, {0xD8, 0x03, "PowerSupplyRedundancy"}, {0xDA, 0x03, "TurboAllowed"}, + {0xB4, 0x6F, "PowerSupplyDerating"}, {0xFF, 0x00, ""}, }; -- cgit v1.2.1