Files
infix/test/case/hardware/watchdog/test.adoc
T
Tobias Waldekranz 553d659eac test/case/hardware/watchdog: Add test
Verify that if the system encounters a hard lockup, i.e., interrupts
are no longer being serviced, then the system's watchdog will
correctly reboot it.
2025-12-16 09:34:00 +01:00

29 lines
826 B
Plaintext

=== Watchdog reset on system lockup
ifdef::topdoc[:imagesdir: {topdoc}../../test/case/hardware/watchdog]
==== Description
Verify that a system's watchdog trips and successfully reboots the
system back to a working state if a lockup occurs.
This is tested by using the Linux kernel's `test_lockup` module to
inject a hard lockup (i.e., blocking servicing of all interrupts) on
all CPU cores that lasts for twice as long as the watchdog's reported
timeout.
==== Topology
image::topology.svg[Watchdog reset on system lockup topology, align=center, scaledwidth=75%]
==== Sequence
. Set up topology and attach to target DUT
. Verify the presence of a watchdog device
. Verify the presence of the test_lockup module
. Trigger a hard lockup on all CPU cores
. Wait for the watchdog to trip
. Verify that the system reboots