Re: [PATCH v3] watchdog: Add hrtimer-based pretimeout feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/1/21 11:55 PM, Jiri Slaby wrote:
On 03. 02. 21, 21:11, Curtis Klein wrote:
This adds the option to use a hrtimer to generate a watchdog pretimeout
event for hardware watchdogs that do not natively support watchdog
pretimeouts.

With this enabled, all watchdogs will appear to have pretimeout support
in userspace. If no pretimeout value is set, there will be no change in
the watchdog's behavior.

Hi,

on my Dell Latitude 7280, CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT=y causes all reboot, kexec, suspend to panic. Disabling that option makes it all work again. Provided it happens very late in the process, I don't know how to grab some logs...

Any ideas?


AFAICS the timer does not stop on reboot. I think we'll need to augment the code
to do that.

Guenter

...
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -73,6 +73,14 @@ config WATCHDOG_SYSFS
        Say Y here if you want to enable watchdog device status read through
        sysfs attributes.
+config WATCHDOG_HRTIMER_PRETIMEOUT
+    bool "Enable watchdog hrtimer-based pretimeouts"
+    help
+      Enable this if you want to use a hrtimer timer based pretimeout for
+      watchdogs that do not natively support pretimeout support. Be aware
+      that because this pretimeout functionality uses hrtimers, it may not
+      be able to fire before the actual watchdog fires in some situations.

thanks,




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux