New/Updated drivers: Intel TCO Timer/Watchdog driver backported from Linux Kernel Ver. 2.6.29.2
PATCH 1/1 New/Updated drivers: Intel TCO Timer/Watchdog driver backported from Linux Kernel Ver. 2.6.29.2
# HG changeset patch
# User [email protected] # Date 1259015859 -3600
# Node ID 0ee2f293ec4c52c01fdbc65f8e274e52c9ba3cc2 # Parent 1db1bb63824b25f97d127449faeb3a56f1272c97 Intel TCO Timer/Watchdog driver backported from Linux Kernel Ver. 2.6.29.2
Signed-off-by Daniel Kiper <[email protected]>
buildconfigs/linux-defconfig_xen_x86_32 +2 -1
@@ -1900,7 +1900,8 @@ CONFIG_IBMASR=m CONFIG_IBMASR=m CONFIG_WAFER_WDT=m CONFIG_I6300ESB_WDT=m -CONFIG_I8XX_TCO=m +CONFIG_ITCO_WDT=m +CONFIG_ITCO_VENDOR_SUPPORT=y CONFIG_SC1200_WDT=m CONFIG_SCx200_WDT=m CONFIG_60XX_WDT=m
buildconfigs/linux-defconfig_xen_x86_64 +2 -1
@@ -1778,7 +1778,8 @@ CONFIG_IBMASR=m CONFIG_IBMASR=m CONFIG_WAFER_WDT=m CONFIG_I6300ESB_WDT=m -CONFIG_I8XX_TCO=m +CONFIG_ITCO_WDT=m +CONFIG_ITCO_VENDOR_SUPPORT=y CONFIG_SC1200_WDT=m CONFIG_60XX_WDT=m CONFIG_SBC8360_WDT=m
drivers/char/watchdog/Kconfig +19 -8
@@ -280,15 +280,18 @@ config I6300ESB_WDT To compile this driver as a module, choose M here: the module will be called i6300esb. -config I8XX_TCO - tristate "Intel i8xx TCO Timer/Watchdog" +config ITCO_WDT + tristate "Intel TCO Timer/Watchdog" depends on WATCHDOG && (X86 || IA64) && PCI ---help--- - Hardware driver for the TCO timer built into the Intel 82801 - I/O Controller Hub family. The TCO (Total Cost of Ownership) - timer is a watchdog timer that will reboot the machine after - its second expiration. The expiration time can be configured - with the "heartbeat" parameter. + Hardware driver for the intel TCO timer based watchdog devices. + These drivers are included in the Intel 82801 I/O Controller + Hub family (from ICH0 up to ICH10) and in the Intel 63xxESB + controller hub. + + The TCO (Total Cost of Ownership) timer is a watchdog timer + that will reboot the machine after its second expiration. The + expiration time can be configured with the "heartbeat" parameter. On some motherboards the driver may fail to reset the chipset's NO_REBOOT flag which prevents the watchdog from rebooting the
@@ -296,7 +299,15 @@ config I8XX_TCO "failed to reset NO_REBOOT flag, reboot disabled by hardware". To compile this driver as a module, choose M here: the - module will be called i8xx_tco. + module will be called iTCO_wdt. + +config ITCO_VENDOR_SUPPORT + bool "Intel TCO Timer/Watchdog Specific Vendor Support" + depends on ITCO_WDT + ---help--- + Add vendor specific support to the intel TCO timer based watchdog + devices. At this moment we only have additional support for some + SuperMicro Inc. motherboards. config SC1200_WDT tristate "National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog"
drivers/char/watchdog/Makefile +4 -1
@@ -44,7 +44,10 @@ obj-$(CONFIG_IBMASR) += ibmasr.o obj-$(CONFIG_IBMASR) += ibmasr.o obj-$(CONFIG_WAFER_WDT) += wafer5823wdt.o obj-$(CONFIG_I6300ESB_WDT) += i6300esb.o -obj-$(CONFIG_I8XX_TCO) += i8xx_tco.o +obj-$(CONFIG_ITCO_WDT) += iTCO_wdt.o +ifeq ($(CONFIG_ITCO_VENDOR_SUPPORT),y) +obj-$(CONFIG_ITCO_WDT) += iTCO_vendor_support.o +endif obj-$(CONFIG_SC1200_WDT) += sc1200wdt.o obj-$(CONFIG_SCx200_WDT) += scx200_wdt.o obj-$(CONFIG_60XX_WDT) += sbc60xxwdt.o
drivers/char/watchdog/iTCO_vendor.h new file +15 -0
@@ -0,0 +1,15 @@ +/* iTCO Vendor Specific Support hooks */ +#ifdef CONFIG_ITCO_VENDOR_SUPPORT +extern void iTCO_vendor_pre_start (unsigned long ,unsigned int ); +extern void iTCO_vendor_pre_stop (unsigned long ); +extern void iTCO_vendor_pre_keepalive (unsigned long ,unsigned int ); +extern void iTCO_vendor_pre_set_heartbeat (unsigned int ); +extern int iTCO_vendor_check_noreboot_on (void ); +#else +#define iTCO_vendor_pre_start (acpibase, heartbeat) {} +#define iTCO_vendor_pre_stop (acpibase) {} +#define iTCO_vendor_pre_keepalive (acpibase, heartbeat) {} +#define iTCO_vendor_pre_set_heartbeat (heartbeat) {} +#define iTCO_vendor_check_noreboot_on () 1 +/* 1=check noreboot; 0=don't check */ +#endif
drivers/char/watchdog/iTCO_vendor_support.c new file +312 -0
312 lines not on this page · raw message
drivers/char/watchdog/iTCO_wdt.c new file +857 -0
857 lines not on this page · raw message
drivers/char/watchdog/i8xx_tco.c deleted +0 -566
566 lines not on this page · raw message
drivers/char/watchdog/i8xx_tco.h deleted +0 -42
42 lines not on this page · raw message