summaryrefslogtreecommitdiffstats
path: root/control/manager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add fan shutdown option to stop rotors after chassis powerdownRaptor Engineering Development Team2019-04-191-0/+9
|
* Add thermal control interface to zone objectsMatthew Barth2019-02-131-3/+16
| | | | | | | | | | | | | When in control mode, the thermal control interface and mode property are added to each zone object. The object path for each zone consists of the configured object path plus the zone number. Ex) /xyz/openbmc_project/control/thermal/0 Tested: After fan control is started in control mode, dbus interface exists Change-Id: I88578a7e0eb7c730ffaa4cfc10989e280dc1d46d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Fan control dbus busname and object pathMatthew Barth2019-02-051-0/+2
| | | | | | | | | | | | Add fan control's default dbus busname and object path to use or what's provided thru configure. The fan control manager requests the busname after all the zones are created. Tested: Found the requested busname for a zone in the busctl list Change-Id: I8ee1e9e4094dcec958e8ae81ad4299357b8f792d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* control: manager: Avoid the need for fconceptsBrad Bishop2018-11-281-1/+1
| | | | | | | | | | | Use of auto in a function parameter list is supported in c++17 but gcc8 requires enabling concepts TS support. We don't require a template anyway - just be explicit here and avoid the need for -fconcepts until such a time that other concepts TS features are required. Change-Id: Iec6205a2e4da41aeb5840dd9942778ba0f373842 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Switch sd_event loops to sdeventplusWilliam A. Kennington III2018-10-291-2/+2
| | | | | | | | | This change is mostly focused around plumbing the sdeventplus::Event object everywhere and using the member functions provided for the event. No migration to the timer utility is performed yet. Change-Id: I912ab82bc081239d3b7c3cf7c5caca6742ef9c87 Signed-off-by: William A. Kennington III <wak@google.com>
* Use shared callMethod function in control managerMatthew Barth2018-05-171-20/+8
| | | | | | | | | | | | | To better handle exit/restart of the fan control application use the shared callMethod function to call systemd's startunit on the fan control ready target. This allows the fan control application to exit and restart quickly in its allowed attempts configured in systemd. Tested: StartUnit on fan control ready target works the same Change-Id: Idce2d8831b4e8de0ef181a0849587e465419f68c Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Use shared getProperty function in control managerMatthew Barth2018-05-171-51/+7
| | | | | | | | | | | | When the manager checks a getProperty condition for fan control, it should use the shared getProperty function that now returns a DbusMethodError to better exit/restart the fan control application. Tested: Condition check functions the same Change-Id: I37f83ef4273343bd527ac149ac5eee213d0ad63d Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Timer to decrease fan speedsMatthew Barth2017-07-061-1/+2
| | | | | | | | | Create a repeating timer for decreasing fan speeds where the fan speeds in the zone are decreased when the timer expires and a decrease speed request exists with no increase request present or active. Change-Id: I419592f6f50c0ed524f8bf3ebf183854ab5ef2ea Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* phosphor-fan-presence elog error exception.Dinesh Chinari2017-06-281-4/+6
| | | | | | | | Implemented elog exception for phosphor fan presence, replacing runtime_errors. Change-Id: I70465060838b2cbaeadccf84ed5924e222ac59e3 Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* Evaluate conditions to determine zoneGunnar Mills2017-06-261-13/+93
| | | | | Change-Id: Idb825b27ecf98503ddc2405a0cafc30c644efc71 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Only setup set speed events when not init modeMatthew Barth2017-05-311-1/+1
| | | | | Change-Id: Ia6987295a3eb4e23b9d6ae13a383e440386572de Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Add modes to phosphor-fan-controlMatt Spinler2017-05-161-2/+44
| | | | | | | | | | | | | | | phosphor-fan-control can behave differently based on its command line arguments --init: Set fans to full speed, delay for a configurable amount of time to allow fans to ramp up, start the fan control ready target, and then exit. --control: Start the control algorithm. Never exits. Will be started as part of the fan control ready target. Change-Id: I453daf8cc05a5c85a19c098e1cca64cac2ad9520 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Fan control: Fill in Manager classMatt Spinler2017-04-271-1/+35
| | | | | | | | Create Zone objects for the fan zones defined in the definition data that meet all conditions. Change-Id: I9c29be93716cd137f1c714355a0bd2a1c93271cd Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Fan control: Add Manager class and fan dataMatt Spinler2017-04-261-0/+34
Create the fan manager class. Check in the fan zone data as a normal file. In a future commit this will be generated during the compile. It is required now for review and so everything compiles. Change-Id: I5733b81db80c5e072abdbffd42e335fa46c61ef8 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
OpenPOWER on IntegriCloud