#
61b73296 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I152f141a5e8343b92b5ce81d3ca16eec77b5606b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
808d7fe8 |
| 13-Jun-2022 |
Mike Capps <mikepcapps@gmail.com> |
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review
meson support: remove code warnings 1
This commit contains code changes necessary to support the increased warning level from Meson builds. Most changes are for unused variables.
To keep the review size manageable, this commit contains only monitor and presence changes (and top-level json_config.hpp).
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I7280b512c54e8d5aeba3300764a239f3dcbab14d
show more ...
|
#
a35a890b |
| 10-Jun-2021 |
Mike Capps <mikepcapps@gmail.com> |
presence: detect and report GPIO exceptions on startup
To address issue ibm2982, we will now catch exceptions when creating the GPIO presence sensor and substitute it with a nullary sensor that alwa
presence: detect and report GPIO exceptions on startup
To address issue ibm2982, we will now catch exceptions when creating the GPIO presence sensor and substitute it with a nullary sensor that always reports non-present. This will give proper error logging for the basic failure scenario of disconnected hardware. Currently this scenario causes a core dump and subsequent investigation.
Additionally, an OpenBMC event log has been created using the label xyz.openbmc_project.Fan.Presence.Error.GPIODeviceUnavailable
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: Ib25fb27ed4a0a23aae667beb1e7708ada7ea7d65
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>
|
#
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 ...
|