#
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 ...
|
#
ba3ee9ae |
| 06-Jan-2021 |
Matt Spinler <spinler@us.ibm.com> |
monitor: Fill in EpowPowerOff action
This action does the following:
1) Starts a service mode timer, which would allow the system to be serviced before anything happens. 2) On the expiration of
monitor: Fill in EpowPowerOff action
This action does the following:
1) Starts a service mode timer, which would allow the system to be serviced before anything happens. 2) On the expiration of that timer, it will: a) Set the thermal fault alert D-Bus property. This will be used to send an EPOW alert to the host on IBM systems. b) Start the meltdown timer. 3) On the expiration of the meltdown timer, a hard power off will occur. This timer cannot be canceled even if fans start behaving.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I9434699b816b23b68c6d9d1e97283b4ab9befe4f
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 ...
|