#
b6865fdc |
| 16-Dec-2024 |
Matt Spinler <spinler@us.ibm.com> |
Remove vim mode lines
It isn't necessary to store editor settings in source files.
Change-Id: I248bb4db00e3abd93fab50d59c63e1cf48b2ee65 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
#
9bbe6026 |
| 01-Aug-2019 |
Carol Wang <wangkair@cn.ibm.com> |
Support averaging power values
Support new env variables 'AVERAGE_power* = "true"' in hwmon config file. When this env variable is set, power value is the calculated average value. Otherwise, power
Support averaging power values
Support new env variables 'AVERAGE_power* = "true"' in hwmon config file. When this env variable is set, power value is the calculated average value. Otherwise, power value is from power*_input by default. The new average of power is calculated since the last time the sensor's values were changed and read.
average = (cur_average*cur_average_interval - pre_average*pre_average_interval) / (cur_average_interval - pre_average_interval)
hwmon config example: AVERAGE_power2 = "true" AVERAGE_power3 = "true" AVERAGE_power4 = "true"
Tested: Set AVERAGE_power* in p0 OCC hwmon conf but not in p1 OCC hwmon conf, then get power sensor info with restapi to check the values. 1. The values of p0*power are all average values. 2. The values of p1*power are all input values.
Note: Delete $(CODE_COVERAGE_CPPFLAGS) in AM_CPPFLAGS in test/Makefile.am. This option will define NDEBUG during configuration, then assert in code doesn't work.
Resolves: openbmc/openbmc#3187 Signed-off-by: Carol Wang <wangkair@cn.ibm.com> Change-Id: I8d97a7b2905c79cd4f2c276b32e7f5590ffc0483
show more ...
|
#
043d3230 |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
add .clang-format
Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473 Signed-off-by: Patrick Venture <venture@google.com>
|
#
35819381 |
| 18-Apr-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Add status interface to sensors
When a fault sysfs file is present for a sensor, the OperationalStatus interface is attached to the sensor object. The functional property is initially set to the cor
Add status interface to sensors
When a fault sysfs file is present for a sensor, the OperationalStatus interface is attached to the sensor object. The functional property is initially set to the corresponding value read from the fault sysfs file when the sensor object is created. A follow-up commit will address updating the functional property based on reading the fault sysfs file during the polling interval.
Tested: OperationalStatus interface created for sensors with fault files Interface not created for sensors without fault file Functional property set to correct value from sensor's fault file
Change-Id: Id75b3711d048d4667d2173a3255512cf5482ab67 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
09791857 |
| 17-Apr-2018 |
Patrick Venture <venture@google.com> |
mainloop cleanup: moved getAttrs to hwmon namespace
Moved the code that maps a sensor type to its dbus and hwmon components from mainloop to the hwmon namespace.
Change-Id: I7963951c9484c02d17a3eb4
mainloop cleanup: moved getAttrs to hwmon namespace
Moved the code that maps a sensor type to its dbus and hwmon components from mainloop to the hwmon namespace.
Change-Id: I7963951c9484c02d17a3eb415906859609e0efd3 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
b778df0e |
| 16-Oct-2017 |
Matt Spinler <spinler@us.ibm.com> |
Only write pwm_enable if it has an env var
Some device drivers don't need pwmX_enable written, so only do it if an environment variable is present that contains the value to write.
The environment
Only write pwm_enable if it has an env var
Some device drivers don't need pwmX_enable written, so only do it if an environment variable is present that contains the value to write.
The environment variable is specified in the conf file along with the other enviroment variables and would look like: ENABLE_fan1 = "2"
Change-Id: I484ada60957cb0d2b133a69b36bf12cbaad948dc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
e49b6a03 |
| 27-Jul-2017 |
Jaghathiswari Rankappagounder Natarajan <jaghu@google.com> |
Change current label to reflect the terminology used in hwmon intf
Change-Id: I5ac1a7a8647968002ad81b600293ded019977ddc Signed-off-by: Jaghathiswari Rankappagounder Natarajan <jaghu@google.com>
|
#
0a8de645 |
| 11-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Write pwmX_enable for fans that have a fanX_target
For fans that have a fanX_target hwmon sysfs attribute, write the pwmX_enable on startup to put that fan into RPM mode, which is safe to do because
Write pwmX_enable for fans that have a fanX_target
For fans that have a fanX_target hwmon sysfs attribute, write the pwmX_enable on startup to put that fan into RPM mode, which is safe to do because this application requires that the target is written in RPMs. The write will only occur if the pwm_enable file exists.
In the future, if fans with a target need to run in pwm mode, this code will need to be updated to convert between RPM and pwm anyway and the pwm_enable value can then be different based on that.
Resolves openbmc/openbmc#1584
Change-Id: I4f6f3ac8d6651314367aaf5c51ac176220f1fba6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
bf7b7b1d |
| 07-Mar-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Create a FanSpeedObject interface
Create the FanSpeedObject target interface when the fanx_target sysfs file exists. The "xyz.openbmc_project.Control.Target" interface is on the /xyz/openbmc_project
Create a FanSpeedObject interface
Create the FanSpeedObject target interface when the fanx_target sysfs file exists. The "xyz.openbmc_project.Control.Target" interface is on the /xyz/openbmc_project/sensors/fan_tac/fan[#] object paths.
Change-Id: Ib4a099cff17cacea501b474969f292516db212b5 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
5afe21a5 |
| 06-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Detect power current and energy sensors
Change-Id: I058eb1f3093a583ef21dd4be01d3fa535131fbde Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
0fcb8b3b |
| 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add string literals for hwmon types and entries
Enable participation in constexpr.
Change-Id: I182adcf866909e3d7d44b0e4cadedda362f4ad50 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
6e8f6239 |
| 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Ignore labels
Add a label literal. Ignore labels when scanning sysfs.
Change-Id: Iab1946cc53bb5b32d9853cdca6c9b8e5ee5532e3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
26b815fa |
| 04-Jan-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Replace include guards with #pragma once
Change-Id: I16adc78d397e3239440206e8e70ebbd5e0963adb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
03476f11 |
| 19-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add Vim modelines
Change-Id: I23f30cd9be56089498089f8b12abe3f3e186b525 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
6bb97a97 |
| 19-Dec-2016 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Run astyle
Change-Id: Iba20bab3093f15339760d4f782cc6d6e89156ab0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
6292aeed |
| 06-Oct-2016 |
Matthew Barth <msbarth@us.ibm.com> |
Convert build process to autotools
Replaced the use of a manual Makefile with the use of autotools to automatically verify and generate the necessary build files. Follow the steps outlined within th
Convert build process to autotools
Replaced the use of a manual Makefile with the use of autotools to automatically verify and generate the necessary build files. Follow the steps outlined within the README.md file to build the package.
Change-Id: Ieed870c63b2bef83b3741dd22e413c25916ed408 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|