powerpc/mm: Fix section mismatch warning
[linux-2.6-block.git] / Documentation / watchdog / mlx-wdt.txt
CommitLineData
9d489ad1
MS
1 Mellanox watchdog drivers
2 for x86 based system switches
3
4This driver provides watchdog functionality for various Mellanox
5Ethernet and Infiniband switch systems.
6
7Mellanox watchdog device is implemented in a programmable logic device.
8
9There are 2 types of HW watchdog implementations.
10
11Type 1:
12Actual HW timeout can be defined as a power of 2 msec.
13e.g. timeout 20 sec will be rounded up to 32768 msec.
14The maximum timeout period is 32 sec (32768 msec.),
15Get time-left isn't supported
16
17Type 2:
18Actual HW timeout is defined in sec. and it's the same as
19a user-defined timeout.
20Maximum timeout is 255 sec.
21Get time-left is supported.
22
23Type 1 HW watchdog implementation exist in old systems and
24all new systems have type 2 HW watchdog.
25Two types of HW implementation have also different register map.
26
27Mellanox system can have 2 watchdogs: main and auxiliary.
28Main and auxiliary watchdog devices can be enabled together
29on the same system.
30There are several actions that can be defined in the watchdog:
31system reset, start fans on full speed and increase register counter.
32The last 2 actions are performed without a system reset.
33Actions without reset are provided for auxiliary watchdog device,
34which is optional.
35Watchdog can be started during a probe, in this case it will be
36pinged by watchdog core before watchdog device will be opened by
37user space application.
38Watchdog can be initialised in nowayout way, i.e. oncse started
39it can't be stopped.
40
41This mlx-wdt driver supports both HW watchdog implementations.
42
43Watchdog driver is probed from the common mlx_platform driver.
44Mlx_platform driver provides an appropriate set of registers for
45Mellanox watchdog device, identity name (mlx-wdt-main or mlx-wdt-aux),
46initial timeout, performed action in expiration and configuration flags.
47watchdog configuration flags: nowayout and start_at_boot, hw watchdog
48version - type1 or type2.
49The driver checks during initialization if the previous system reset
50was done by the watchdog. If yes, it makes a notification about this event.
51
52Access to HW registers is performed through a generic regmap interface.