watchdog: make the device time out at open_deadline when open_timeout is used
[linux-2.6-microblaze.git] / Documentation / watchdog / hpwdt.txt
1 Last reviewed: 08/20/2018
2
3                      HPE iLO NMI Watchdog Driver
4                    for iLO based ProLiant Servers
5
6  The HPE iLO NMI Watchdog driver is a kernel module that provides basic
7  watchdog functionality and handler for the iLO "Generate NMI to System"
8  virtual button.
9
10  All references to iLO in this document imply it also works on iLO2 and all
11  subsequent generations.
12
13  Watchdog functionality is enabled like any other common watchdog driver. That
14  is, an application needs to be started that kicks off the watchdog timer. A
15  basic application exists in tools/testing/selftests/watchdog/ named
16  watchdog-test.c. Simply compile the C file and kick it off. If the system
17  gets into a bad state and hangs, the HPE ProLiant iLO timer register will
18  not be updated in a timely fashion and a hardware system reset (also known as
19  an Automatic Server Recovery (ASR)) event will occur.
20
21  The hpwdt driver also has the following module parameters:
22
23  soft_margin - allows the user to set the watchdog timer value.
24                Default value is 30 seconds.
25  timeout     - an alias of soft_margin.
26  pretimeout  - allows the user to set the watchdog pretimeout value.
27                This is the number of seconds before timeout when an
28                NMI is delivered to the system. Setting the value to
29                zero disables the pretimeout NMI.
30                Default value is 9 seconds.
31  nowayout    - basic watchdog parameter that does not allow the timer to
32                be restarted or an impending ASR to be escaped.
33                Default value is set when compiling the kernel. If it is set
34                to "Y", then there is no way of disabling the watchdog once
35                it has been started.
36  kdumptimeout  Minimum timeout in seconds to apply upon receipt of an NMI
37                before calling panic. (-1) disables the watchdog.  When value
38                is > 0, the timer is reprogrammed with the greater of
39                value or current timeout value.
40
41  NOTE: More information about watchdog drivers in general, including the ioctl
42        interface to /dev/watchdog can be found in
43        Documentation/watchdog/watchdog-api.txt and Documentation/IPMI.txt.
44
45  Due to limitations in the iLO hardware, the NMI pretimeout if enabled,
46  can only be set to 9 seconds.  Attempts to set pretimeout to other
47  non-zero values will be rounded, possibly to zero.  Users should verify
48  the pretimeout value after attempting to set pretimeout or timeout.
49
50  Upon receipt of an NMI from the iLO, the hpwdt driver will initiate a
51  panic. This is to allow for a crash dump to be collected.  It is incumbent
52  upon the user to have properly configured the system for kdump.
53
54  The default Linux kernel behavior upon panic is to print a kernel tombstone
55  and loop forever.  This is generally not what a watchdog user wants.
56
57  For those wishing to learn more please see:
58         Documentation/kdump/kdump.txt
59         Documentation/admin-guide/kernel-parameters.txt (panic=)
60         Your Linux Distribution specific documentation.
61
62  If the hpwdt does not receive the NMI associated with an expiring timer,
63  the iLO will proceed to reset the system at timeout if the timer hasn't
64  been updated.
65
66 --
67
68  The HPE iLO NMI Watchdog Driver and documentation were originally developed
69  by Tom Mingarelli.
70