#
cb356d48 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9029cc722e7712633c15436bd3868d8c3209f567
show more ...
|
#
f8ae7a5e |
| 05-Mar-2021 |
Matthew Barth <msbarth@us.ibm.com> |
control: Split JSON and YAML based binaries
Effectively split the binary built for JSON based configurations from YAML based configurations. Since each will have objects of the same name, this split
control: Split JSON and YAML based binaries
Effectively split the binary built for JSON based configurations from YAML based configurations. Since each will have objects of the same name, this split is necessary in order to keep the functional differences apart while keeping the same object names since the JSON based objects that are created will eventually replace the others.
Change-Id: I937606781fbfa5d23607f81c0fd445289f2bd036 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
06764946 |
| 04-Mar-2021 |
Matthew Barth <msbarth@us.ibm.com> |
control: Create manager object for JSON configs
Begin to transition to separate JSON vs YAMl source objects by creating a manager object that will contain all the cached data to be used across all e
control: Create manager object for JSON configs
Begin to transition to separate JSON vs YAMl source objects by creating a manager object that will contain all the cached data to be used across all events & zones of a system. This will remove the issue in the YAML based source where the zone objects contained the cache and essentially restricted a system to having a single zone object.
Also, include parsing of any configured profiles of the system on the manager object. These profiles will be used to determine which configurations are to be used on a system given the active state of any profiles configured.
Change-Id: I817210f8bb763f03b922651192231529bc48a306 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
d87f89f8 |
| 30-Jul-2020 |
Matthew Barth <msbarth@us.ibm.com> |
control: JSON parsing compile framework
Add the enabling framework of use of JSON config files for fan control.
Tested: Compile passes when `--enable-json` configure flag given Compile pass
control: JSON parsing compile framework
Add the enabling framework of use of JSON config files for fan control.
Tested: Compile passes when `--enable-json` configure flag given Compile passes without enabling JSON No functional change when not using JSON
Change-Id: Ic70bfc63ad74cb79559ed839784cd214df403cb2 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
3e1bb274 |
| 26-May-2020 |
Matthew Barth <msbarth@us.ibm.com> |
control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512 Signed-off-by: Ma
control: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: Ic9d621d7c5647bde0a92c5f17938c99deeca0512 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|
#
93af4194 |
| 18-Jan-2019 |
Matthew Barth <msbarth@us.ibm.com> |
Add thermal control interface to zone objects
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 confi
Add thermal control interface to zone objects
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>
show more ...
|
#
1cfc2f11 |
| 19-Oct-2018 |
William A. Kennington III <wak@google.com> |
Switch sd_event loops to sdeventplus
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
Switch sd_event loops to sdeventplus
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>
show more ...
|
#
2029106a |
| 09-May-2018 |
Matthew Barth <msbarth@us.ibm.com> |
Use shared callMethod function in control manager
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
Use shared callMethod function in control manager
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>
show more ...
|
#
8600d9a0 |
| 23-Jun-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Timer to decrease fan speeds
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 incr
Timer to decrease fan speeds
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>
show more ...
|
#
14184131 |
| 19-May-2017 |
Matthew Barth <msbarth@us.ibm.com> |
Only setup set speed events when not init mode
Change-Id: Ia6987295a3eb4e23b9d6ae13a383e440386572de Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
|
#
ee7f6428 |
| 09-May-2017 |
Matt Spinler <spinler@us.ibm.com> |
Add modes to phosphor-fan-control
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 t
Add modes to phosphor-fan-control
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>
show more ...
|
#
57352a31 |
| 10-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fan control: Fill in Manager class
Create Zone objects for the fan zones defined in the definition data that meet all conditions.
Change-Id: I9c29be93716cd137f1c714355a0bd2a1c93271cd Signed-off-by:
Fan control: Fill in Manager class
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>
show more ...
|
#
e10416ec |
| 10-Apr-2017 |
Matt Spinler <spinler@us.ibm.com> |
Fan control: Add Manager class and fan data
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
Fan control: Add Manager class and fan data
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>
show more ...
|