dwwdt: make it actually usefulFlip dwwdt_prevent_restart to false. What's the use of a watchdog if itdoes not restart a hung system?Add a knob for panic-ing on the first timeout, resetting on t
dwwdt: make it actually usefulFlip dwwdt_prevent_restart to false. What's the use of a watchdog if itdoes not restart a hung system?Add a knob for panic-ing on the first timeout, resetting on the secondone. This can be useful if interrupts can still work, otherwise a resetrecovers a system without any aid for debugging the hang.The change also doubles the timeout that's programmed into the hardware.The previous version of the code always had the interrupt on the firsttimeout enabled, but it took no action on it. Only the second timeoutcould be configured to reset the system. So, the hardware timeout wasset to a half of the user requested timeout. But now,we can take acorrective action on the first timeout, so we use the user requestedtimeout.While here, define boolean sysctl-s as such.(cherry picked from commit ee900888c42f12f7ccf73e5a320446da4661a0e9)
show more ...
dwwdt: Add PNP info for the driver
Add driver for Synopsys Designware Watchdog timer.This driver supports some arm and arm64 boards equipped with"snps,dw-wdt"-compatible watchdog device.Tested on RK3399-based board (RockPro64).On
Add driver for Synopsys Designware Watchdog timer.This driver supports some arm and arm64 boards equipped with"snps,dw-wdt"-compatible watchdog device.Tested on RK3399-based board (RockPro64).Once started watchdog device cannot be stopped.Interrupt handler has mode to kick watchdog even when software does not do itproperly.This can be controlled via sysctl: dev.dwwdt.prevent_restart.Also - driver handles system shutdown and prevents from restart when systemis asked to reboot.Submitted by: [email protected]Differential Revision: https://reviews.freebsd.org/D26761