771659fc | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Remove static systemd match callbacks
Replace static systemd match callback wrappers with lamba methods.
Change-Id: Ib8471478824d87483a60f527d29aa2d35ccb833f Signed-off-by: Brad Bishop <br
monitor: Remove static systemd match callbacks
Replace static systemd match callback wrappers with lamba methods.
Change-Id: Ib8471478824d87483a60f527d29aa2d35ccb833f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
78b58456 | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Use sdbusplus::bus::match::rules
Change-Id: I96ed7de07acfc864c497a0130c3e5afab579d21d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
fa0766e3 | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Do not allow TachSensor move
TachSensor uses the this pointer as the systemd callback context for signal callbacks, which doesn't work with move semantics.
Change-Id: I5e58fec9a7edfc457103
monitor: Do not allow TachSensor move
TachSensor uses the this pointer as the systemd callback context for signal callbacks, which doesn't work with move semantics.
Change-Id: I5e58fec9a7edfc457103d8a36f6076d90246f4f0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
edaeb31c | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Allow missing sensors
Don't count sensors that don't exist as nonfunctional. Let some other application decide if missing sensors are a problem or not.
Change-Id: Ie3d438c92df16bfd86ddc86
monitor: Allow missing sensors
Don't count sensors that don't exist as nonfunctional. Let some other application decide if missing sensors are a problem or not.
Change-Id: Ie3d438c92df16bfd86ddc86db8a9dd143bf2cfb0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
d7999b7c | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Remove getService
Remove getService from tach_sensor as it is no longer used.
Change-Id: I568afb502379e05e85685d279033ab198c3cc91f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> |
2a58e2ce | 30-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Use common wrapper methods
Replace the implementation of readProperty with a call to the common property accessor in sdbusplus.hpp.
Change-Id: Ic4ba75bad7458a99f3e29c9235e1a54ae62286fe Sig
monitor: Use common wrapper methods
Replace the implementation of readProperty with a call to the common property accessor in sdbusplus.hpp.
Change-Id: Ic4ba75bad7458a99f3e29c9235e1a54ae62286fe Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
ce75b511 | 26-Jul-2017 |
Matt Spinler <spinler@us.ibm.com> |
fan-monitor: Capture more data on failure
When a fan gets set to nonfunctional, it is useful to know how fast the rotor was actually going and what the expected speed was.
Change-Id: I760d6fa7d1930
fan-monitor: Capture more data on failure
When a fan gets set to nonfunctional, it is useful to know how fast the rotor was actually going and what the expected speed was.
Change-Id: I760d6fa7d193038f9740d241bf4d4d0039020f64 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
8e942504 | 10-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
monitor: Avoid Target interface for mapper queries
Avoid asking the mapper for the Target interface on sensors that do not have it.
Change-Id: I43f61c98291cc15d7daf43d2b01c6b7fa4edfa62 |
618027ab | 26-Jun-2017 |
Dinesh Chinari <chinari@us.ibm.com> |
phosphor-fan-presence elog error exception.
Implemented elog exception for phosphor fan presence, replacing runtime_errors.
Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3 Signed-off-by: Dines
phosphor-fan-presence elog error exception.
Implemented elog exception for phosphor fan presence, replacing runtime_errors.
Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3 Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
show more ...
|
a5763ff8 | 14-Jun-2017 |
Matt Spinler <spinler@us.ibm.com> |
fan-monitor: use sd_notify(READY=1)
After the fans have initialized their Functional inventory property, send systemd the READY notification. If the service which runs this application is of type =
fan-monitor: use sd_notify(READY=1)
After the fans have initialized their Functional inventory property, send systemd the READY notification. If the service which runs this application is of type = notify, then systemd will hold off starting any dependent services until this is sent.
In our case, we want phosphor-fan-control --control to not be started until this notification is done.
Change-Id: Iec87418ce308aa9ca81a47c20039ade7e8fe66c3 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
84201119 | 12-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Move Fan objects back to heap
Turns out that with the objects on the stack, some of them were corrupt in the callbacks.
Change-Id: Ifd4179839d4e05fdb1f05e417093cb14cec3addc Signed-off-by: Matt Spin
Move Fan objects back to heap
Turns out that with the objects on the stack, some of them were corrupt in the callbacks.
Change-Id: Ifd4179839d4e05fdb1f05e417093cb14cec3addc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
e824f985 | 11-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Use unique_ptr for sd_event object wrapper
Convert the sd_event object wrapper from a shared_ptr to a unique_ptr. Requires a new header file.
Change-Id: I868a9e88ed93878c2e0bb12e58f8d3a604510da0 S
Use unique_ptr for sd_event object wrapper
Convert the sd_event object wrapper from a shared_ptr to a unique_ptr. Requires a new header file.
Change-Id: I868a9e88ed93878c2e0bb12e58f8d3a604510da0 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
14321846 | 28-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Generate data from yaml during build
Run the python script to generate fan_zone_defs.cpp
Change-Id: I242aa4246a277509ddbcf1c62fec96782a48b37b Signed-off-by: Matt Spinler <spinler@us.ibm.com> |
85be2e70 | 28-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Python script to generate monitor data
Generate the data structures from yaml data.
Change-Id: I8e21fa099f9365b8c8c7d2227c4debc263601b72 Signed-off-by: Matt Spinler <spinler@us.ibm.com> |
b1e18514 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add inventory update support
Set a fan's Functional property to false when it has been out of spec for too long. When it is back in spec, set it back to functional.
Change-Id: I264129479c58fd296df
Add inventory update support
Set a fan's Functional property to false when it has been out of spec for too long. When it is back in spec, set it back to functional.
Change-Id: I264129479c58fd296df7c3a1d3d42f5d7aa7b60b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
a4c8f1f5 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add timer start/stop support
In Fan's tachChanged handler, start up the timer for a sensor if it is running too slow. If it is within spec, stop the timer if running and make the sensor functional
Add timer start/stop support
In Fan's tachChanged handler, start up the timer for a sensor if it is running too slow. If it is within spec, stop the timer if running and make the sensor functional again if necessary.
Change-Id: Ib18de2b69942d334da0cb8cd4cc4de8a2784efab Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
c36168a1 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fill in main() function
Create the Fan objects, and start the dbus/event loop.
Change-Id: I7c6a60bb5d2c20578b529e7e5f3dc13f50e55dd7 Signed-off-by: Matt Spinler <spinler@us.ibm.com> |
a9406a77 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add Timer support to TachSensor
Add a Timer object to the TachSensor class
Change-Id: I419b5712de9e8e94f2a08de84d13170e44c33c7a Signed-off-by: Matt Spinler <spinler@us.ibm.com> |
ebaae611 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add dbus support to TachSensor
TachSensor will match on properties changed signals for the Value and Target properties. When these occur, it will load in those properties and then tell the Fan class
Add dbus support to TachSensor
TachSensor will match on properties changed signals for the Value and Target properties. When these occur, it will load in those properties and then tell the Fan class there was a change.
Also, TachSensor will read in the Target property during construction so it will have a valid value to check against right away.
Change-Id: I2dc2cacf5804826c6b0e0ea91196cbdaa4d5b893 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
abf8da36 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fan and TachSensor class introduction
A Fan object has one or more TachSensor objects.
The TachSensor class is used to keep track of the the actual and expected speeds. It only tracks expected spe
Fan and TachSensor class introduction
A Fan object has one or more TachSensor objects.
The TachSensor class is used to keep track of the the actual and expected speeds. It only tracks expected speeds if the _hasTarget attribute is true.
Future commits will add more functionality.
Change-Id: I9bb5fac39f25c5c31c18457ebedf82838fcf6641 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
35b156b7 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fan monitor data
This commit contains the data that will be used by the monitor code.
The generated.cpp file will later be generated during the build by a python script.
Change-Id: I4dc4552ae8e58c
Fan monitor data
This commit contains the data that will be used by the monitor code.
The generated.cpp file will later be generated during the build by a python script.
Change-Id: I4dc4552ae8e58cd27478416888dd3363e7c2bf3f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
e567dd24 | 27-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
phosphor-fan-monitor framework
This application will monitor the actual speeds of fans (via their sensors) and compare them to their expected speeds. If a fan is too slow for too long, it will have
phosphor-fan-monitor framework
This application will monitor the actual speeds of fans (via their sensors) and compare them to their expected speeds. If a fan is too slow for too long, it will have its Functional property in the inventory set to false. If it starts working again, the property will be set back to true.
It will use configuration data to say which fans to check and which values to use for various timeout and deviation parameters.
Change-Id: Ic61613018a758727835b70f2df0ecd1bf12e8256 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|