hpwdt.txt 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. Last reviewed: 06/02/2009
  2. HP iLO2 NMI Watchdog Driver
  3. NMI sourcing for iLO2 based ProLiant Servers
  4. Documentation and Driver by
  5. Thomas Mingarelli <thomas.mingarelli@hp.com>
  6. The HP iLO2 NMI Watchdog driver is a kernel module that provides basic
  7. watchdog functionality and the added benefit of NMI sourcing. Both the
  8. watchdog functionality and the NMI sourcing capability need to be enabled
  9. by the user. Remember that the two modes are not dependent on one another.
  10. A user can have the NMI sourcing without the watchdog timer and vice-versa.
  11. Watchdog functionality is enabled like any other common watchdog driver. That
  12. is, an application needs to be started that kicks off the watchdog timer. A
  13. basic application exists in the Documentation/watchdog/src directory called
  14. watchdog-test.c. Simply compile the C file and kick it off. If the system
  15. gets into a bad state and hangs, the HP ProLiant iLO 2 timer register will
  16. not be updated in a timely fashion and a hardware system reset (also known as
  17. an Automatic Server Recovery (ASR)) event will occur.
  18. The hpwdt driver also has four (4) module parameters. They are the following:
  19. soft_margin - allows the user to set the watchdog timer value
  20. allow_kdump - allows the user to save off a kernel dump image after an NMI
  21. nowayout - basic watchdog parameter that does not allow the timer to
  22. be restarted or an impending ASR to be escaped.
  23. priority - determines whether or not the hpwdt driver is first on the
  24. die_notify list to handle NMIs or last. The default value
  25. for this module parameter is 0 or LAST. If the user wants to
  26. enable NMI sourcing then reload the hpwdt driver with
  27. priority=1 (and boot with nmi_watchdog=0).
  28. NOTE: More information about watchdog drivers in general, including the ioctl
  29. interface to /dev/watchdog can be found in
  30. Documentation/watchdog/watchdog-api.txt and Documentation/IPMI.txt.
  31. The priority parameter was introduced due to other kernel software that relied
  32. on handling NMIs (like oprofile). Keeping hpwdt's priority at 0 (or LAST)
  33. enables the users of NMIs for non critical events to be work as expected.
  34. The NMI sourcing capability is disabled by default due to the inability to
  35. distinguish between "NMI Watchdog Ticks" and "HW generated NMI events" in the
  36. Linux kernel. What this means is that the hpwdt nmi handler code is called
  37. each time the NMI signal fires off. This could amount to several thousands of
  38. NMIs in a matter of seconds. If a user sees the Linux kernel's "dazed and
  39. confused" message in the logs or if the system gets into a hung state, then
  40. the hpwdt driver can be reloaded with the "priority" module parameter set
  41. (priority=1).
  42. 1. If the kernel has not been booted with nmi_watchdog turned off then
  43. edit /boot/grub/menu.lst and place the nmi_watchdog=0 at the end of the
  44. currently booting kernel line.
  45. 2. reboot the sever
  46. 3. Once the system comes up perform a rmmod hpwdt
  47. 4. insmod /lib/modules/`uname -r`/kernel/drivers/char/watchdog/hpwdt.ko priority=1
  48. Now, the hpwdt can successfully receive and source the NMI and provide a log
  49. message that details the reason for the NMI (as determined by the HP BIOS).
  50. Below is a list of NMIs the HP BIOS understands along with the associated
  51. code (reason):
  52. No source found 00h
  53. Uncorrectable Memory Error 01h
  54. ASR NMI 1Bh
  55. PCI Parity Error 20h
  56. NMI Button Press 27h
  57. SB_BUS_NMI 28h
  58. ILO Doorbell NMI 29h
  59. ILO IOP NMI 2Ah
  60. ILO Watchdog NMI 2Bh
  61. Proc Throt NMI 2Ch
  62. Front Side Bus NMI 2Dh
  63. PCI Express Error 2Fh
  64. DMA controller NMI 30h
  65. Hypertransport/CSI Error 31h
  66. -- Tom Mingarelli
  67. (thomas.mingarelli@hp.com)