Watchdog: Add LogTimeout property in watchdog
Add the LogTimeout property in watchdog yaml.
This property is used for configuring whether an event
will be logged on watchdog expiration.
Tested:
No log bit is set to true :
ipmitool raw 0x06 0x24 0x84 0x00 0x00 0x3e 0x64 0x00
No log bit is set to false :
ipmitool raw 0x06 0x24 0x04 0x00 0x00 0x3e 0x64 0x00
Reset watchdog timer :
ipmitool mc watchdog reset
If the LogTimeout property is true, the event will be logged
on watchdog expiration.
We can use 'ipmitool sel elist' to check the system event log.
1 | 01/26/23 | 00:21:21 PST | Watchdog2 host0 | Timer expired | Asserted
If the LogTimeout property is false, the event will not be
logged when the watchdog expires.
Related-Commit-Id: 67727
Related-Commit-Id: 67728
Change-Id: I278b8bb3eec1951ba505ab53527826aef075a05f
Signed-off-by: Tim Chao <Tim.Chao@quantatw.com>
diff --git a/yaml/xyz/openbmc_project/State/Watchdog.interface.yaml b/yaml/xyz/openbmc_project/State/Watchdog.interface.yaml
index 8c7dee1..ae9cf9d 100644
--- a/yaml/xyz/openbmc_project/State/Watchdog.interface.yaml
+++ b/yaml/xyz/openbmc_project/State/Watchdog.interface.yaml
@@ -28,6 +28,12 @@
description: >
The watchdog is enabled or not.
default: false
+ - name: LogTimeout
+ type: boolean
+ description: >
+ This property is used for configuring whether an event will be logged
+ on watchdog expiration.
+ default: true
- name: ExpireAction
type: enum[self.Action]
description: >