#
dfddd648 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: Ica590f8613f1fb89ab1ca676ac51c1cc7e38d67f Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
fbf4703f |
| 17-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch to std::format whenever possible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib2576fb530a4d7ce238e1b0bd95b40b476ec2107
show more ...
|
#
c65d91d6 |
| 21-Apr-2021 |
Matt Spinler <spinler@us.ibm.com> |
presence: Sensor conflict checking for AnyOf
There can be more than one way to detect the presence of a fan, such as by a GPIO and by a nonzero tach reading. The AnyOf redundancy policy only requir
presence: Sensor conflict checking for AnyOf
There can be more than one way to detect the presence of a fan, such as by a GPIO and by a nonzero tach reading. The AnyOf redundancy policy only requires one of these to indicate present when determining the overall fan presence state.
This commit adds the functionality to check for the case when one of the method reports not present while another reports present. In this case, the one reporting not present will be considered the wrong one, and depending on the detection type either an information event log or just a journal trace will be created.
Only one log per method per power cycle will occur. Since one of the methods probably looks for nonzero tach readings, there is a 5 second delay after a power on is detected before a conflict check is done.
If the GPIO method is where the problem is detected, an event log is created. If it's instead the tach sensor method, then a trace will just be put in the journal because there is already code watching for and creating event logs for stopped tachs - the fan monitor code.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I72a764ecff4076d6dc40335b92d177b6b3cfa2d9
show more ...
|
#
2d2caa34 |
| 26-May-2020 |
Matthew Barth <msbarth@us.ibm.com> |
presence: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: I2fc795938e85a752ee56b54212d389c2ff296828 Signed-off-by: M
presence: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang format.
Tested: Compiled
Change-Id: I2fc795938e85a752ee56b54212d389c2ff296828 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 ...
|
#
2e9788d7 |
| 28-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
presence: Un-hardcode input device path
Allow a device path to be configured.
Change-Id: I2eabd71747b124eae96738d1332f58b96ece6dc9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
#
11083eca |
| 25-Jul-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
presence: Add sensor to redundancy policy api
Include a reference to the sensor changing state when sensor implementations ping the policy object.
This allows policy logic based on multiple sensors
presence: Add sensor to redundancy policy api
Include a reference to the sensor changing state when sensor implementations ping the policy object.
This allows policy logic based on multiple sensors, simultaneously.
Change-Id: I44cf00c7ecd220d0cc99e51ca6093bac6da7343c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
5c589487 |
| 14-Jun-2017 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
presence: Add gpio presence sensor
Add a gpio presence implementation of the PresenceSensor interface.
The gpio sensor simply maps the on off state of a gpio directly to the xyz.openbmc_project.Inv
presence: Add gpio presence sensor
Add a gpio presence implementation of the PresenceSensor interface.
The gpio sensor simply maps the on off state of a gpio directly to the xyz.openbmc_project.Inventory.Item Present property.
Change-Id: I071dd475bebb15372edb59506352746c20542eff Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|