Page MenuHomeFreeBSD

dwwdt: make it actually useful
ClosedPublic

Authored by avg on Dec 17 2021, 11:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 2:52 AM
Unknown Object (File)
Sun, Nov 17, 2:52 PM
Unknown Object (File)
Fri, Nov 15, 9:29 AM
Unknown Object (File)
Thu, Nov 14, 11:55 PM
Unknown Object (File)
Tue, Nov 12, 7:11 PM
Unknown Object (File)
Tue, Nov 12, 1:58 PM
Unknown Object (File)
Tue, Nov 12, 9:07 AM
Unknown Object (File)
Mon, Nov 11, 6:58 PM
Subscribers

Details

Summary

Flip dwwdt_prevent_restart to false. What's the use of a watchdog if it
does not restart a hung system?

Add a knob for panic-ing on the first timeout, resetting on the second
one. This can be useful if interrupts can still work, otherwise a reset
recovers 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 first
timeout enabled, but it took no action on it. Only the second timeout
could be configured to reset the system. So, the hardware timeout was
set to a half of the user requested timeout. But now,we can take a
corrective action on the first timeout, so we use the user requested
timeout.

While here, define boolean sysctl-s as such.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable