#
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 ...
|
#
477b13bd |
| 11-Jul-2022 |
Mike Capps <mikepcapps@gmail.com> |
monitor,sensor-monitor: catch exceptions when creating BMC dumps
catch and log exceptions thrown when creating BMC dumps
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I986ca3e51302016
monitor,sensor-monitor: catch exceptions when creating BMC dumps
catch and log exceptions thrown when creating BMC dumps
Signed-off-by: Mike Capps <mikepcapps@gmail.com> Change-Id: I986ca3e51302016886ca8ae571054a5b4260a093
show more ...
|
#
683a96c6 |
| 27-Apr-2022 |
Mike Capps <mikepcapps@gmail.com> |
monitor: Capture BMC dumps on fan/ambient shutdowns
When fan-monitor or sensor-monitor generates an EPOW, this change creates a BMC dump after the system is powered off and all error logs are create
monitor: Capture BMC dumps on fan/ambient shutdowns
When fan-monitor or sensor-monitor generates an EPOW, this change creates a BMC dump after the system is powered off and all error logs are created.
Change-Id: Iacdd2d2b388e79988e2536d52497f0e697e1d444 Signed-off-by: Mike Capps <mikepcapps@gmail.com>
show more ...
|
#
bb449c1c |
| 14-Jun-2021 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Shut down if no readings at power on
If there are no tach sensors on D-Bus when the power state changes to on, then create an event log and shut down the system. This is done because in th
monitor: Shut down if no readings at power on
If there are no tach sensors on D-Bus when the power state changes to on, then create an event log and shut down the system. This is done because in this case the code is not able to know the fan state - if there are any present or spinning.
The most likely reason there are no sensors (aside from a glaring error in the config file) is because the fan controller device driver failed its probe and was unable to detect it, maybe because the device didn't have power or there was an I2C problem. To aid in root cause analysis if this were to occur in the field, the code adds the following FFDC (First Failure Data Capture) to the event log:
* All of the loaded hwmon drivers, taken from /sys/class/hwmon/*/name * Failure related lines in dmesg, which is where driver errors would show up.
Tested: Unbound the fan device driver and then powered on the system. Also disabled I2C to the fan controller device in simulation and tried a power on.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ic0b80d67ec79c9401f59324fe1134ff12084112a
show more ...
|
#
69b0cf08 |
| 14-Oct-2020 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Create PowerOffAction class hierarchy
The PowerOffAction base class and its derived classes will be used to power off a system due to fan failures.
There are 3 types of power offs: 1. Hard
monitor: Create PowerOffAction class hierarchy
The PowerOffAction base class and its derived classes will be used to power off a system due to fan failures.
There are 3 types of power offs: 1. HardPowerOff - Do a hard power off after a delay 2. SoftPowerOff - Do a soft power off after a delay 3. EpowPowerOff - This isn't fully defined yet, but it will involve powering off after setting an early power off warning somehow and then waiting through 2 delays.
The code that makes the D-Bus calls to do the power offs is in a standalone class so that it can be be mocked in testcases.
This code also makes use of the Logger class for logging, so this commit brings that in as a singleton.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I83118963df4ec0b4f89619572f6935329eec3adb
show more ...
|