watchdog - v2.6.38-rc1
Subsystems (2)
Hi Linus,
I still have a couple of new drivers under review (da9052_wdt, intel_scu_watchdog, jz4740_wdt and dw_wdt), but I thought it was best to sent you allready the following patches and new drivers.
Please pull from 'master' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
or if master.kernel.org hasn't synced up yet:
master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog.git
This will update the following files:
arch/m68k/include/asm/m548xgpt.h | 2 drivers/watchdog/Kconfig | 56 +++- drivers/watchdog/Makefile | 6 drivers/watchdog/alim1535_wdt.c | 2 drivers/watchdog/alim7101_wdt.c | 2 drivers/watchdog/ath79_wdt.c | 305 +++++++++++++++++++++++ drivers/watchdog/booke_wdt.c | 35 ++ drivers/watchdog/f71808e_wdt.c | 78 ++++- drivers/watchdog/iTCO_wdt.c | 12 drivers/watchdog/ks8695_wdt.c | 2 drivers/watchdog/m548x_wdt.c | 227 +++++++++++++++++ drivers/watchdog/nv_tco.c | 512 +++++++++++++++++++++++++++++++++++++++ drivers/watchdog/nv_tco.h | 64 ++++ drivers/watchdog/sp5100_tco.c | 480 ++++++++++++++++++++++++++++++++++++ drivers/watchdog/sp5100_tco.h | 41 +++ drivers/watchdog/w83627hf_wdt.c | 8 16 files changed, 1798 insertions(+), 34 deletions(-)
with these Changes:
Author: Philippe De Muyter <[email protected]> Date: Wed Nov 3 15:07:28 2010 +0100
watchdog: Add MCF548x watchdog driver.
Add watchdog driver for MCF548x.
Author: Gabor Juhos <[email protected]> Date: Tue Jan 4 21:28:19 2011 +0100
watchdog: add driver for the Atheros AR71XX/AR724X/AR913X SoCs
This patch adds a driver for the built-in hardware watchdog device of the Atheros AR71XX/AR724X/AR913X SoCs.
Author: Mike Waychison <[email protected]> Date: Mon Oct 25 17:58:05 2010 -0700
watchdog: Add TCO support for nVidia chipsets
This driver adds support for /dev/watchdog for boards using either the MCP51 or MCP55 chipsets. These are also known as the nForce 430 and nForce 550. This driver is likely to work on other chipsets as well, though those are the only two that have been tested.
Author: Priyanka Gupta <[email protected]> Date: Mon Oct 25 17:58:04 2010 -0700
watchdog: Add support for sp5100 chipset TCO
This driver adds /dev/watchdog support for the AMD sp5100 aka SB7x0 chipsets.
It follows the same conventions found in other /dev/watchdog drivers.
Author: Lutz Ballaschke <[email protected]> Date: Wed Jan 12 01:09:02 2011 +0100
watchdog: f71808e_wdt: add F71862FG, F71869 to Kconfig
Update Kconfig with the additional Fintek hardware that we support.
Author: Seth Heasley <[email protected]> Date: Fri Jan 7 17:11:08 2011 -0800
watchdog: iTCO_wdt: TCO Watchdog patch for Intel DH89xxCC PCH
This patch adds the DeviceIDs for TCO Watchdog on the Intel DH89xxCC PCH.
Author: Wim Van Sebroeck <[email protected]> Date: Fri Dec 31 14:10:45 2010 +0000
watchdog: iTCO_wdt: TCO Watchdog patch for Intel NM10 DeviceIDs
This patch adds the Intel NM10 DeviceIDs for iTCO Watchdog.
Author: Yegor Yefremov <[email protected]> Date: Tue Dec 14 16:29:31 2010 +0100
watchdog: ks8695_wdt: include mach/hardware.h instead of mach/timex.h.
ks8695_wdt needs KS8695_CLOCK_RATE, which is defined in mach/hardware.h, which is pulled in by the include of mach/timex.h, but the latter is going away, so just include mach/hardware.h directly.
Author: Randy Vinson <[email protected]> Date: Mon Dec 6 14:02:23 2010 -0700
watchdog: Propagate Book E WDT period changes to all cores
When the watchdog period is changed, it needs to be propagated to all cores in addition to the core that performed the change.
Author: Timur Tabi <[email protected]> Date: Fri Dec 3 10:51:43 2010 -0600
watchdog: add CONFIG_WATCHDOG_NOWAYOUT support to PowerPC Book-E watchdog driver
Normally, the watchdog is disabled when dev/watchdog is closed, but if CONFIG_WATCHDOG_NOWAYOUT is defined, then it means that the watchdog should remain enabled. So we should disable it only if CONFIG_WATCHDOG_NOWAYOUT is not defined.
Also ensure that /dev/watchdog is only opened by one process at a time. That way, a second process can't accidentally disable the watchdog while the first process has it open. There shouldn't be any need for more than one process to open /dev/watchdog anyway.
Author: Namhyung Kim <[email protected]> Date: Wed Dec 8 01:27:36 2010 +0900
watchdog: alim7101_wdt: fix compiler warning on alim7101_pci_tbl
Annotate alim7101_pci_tbl as '__used' to fix following warning:
CC drivers/watchdog/alim7101_wdt.o
drivers/watchdog/alim7101_wdt.c:433: warning: ‘alim7101_pci_tbl’ defined but not used
Author: Namhyung Kim <[email protected]> Date: Wed Dec 8 01:27:35 2010 +0900
watchdog: alim1535_wdt: fix compiler warning on ali_pci_tbl
Annotate ali_pci_tbl as '__used' to fix following warning:
CC drivers/watchdog/alim1535_wdt.o
drivers/watchdog/alim1535_wdt.c:304: warning: ‘ali_pci_tbl’ defined but not used
Author: Herman Morsink Vollenbroek <[email protected]> Date: Mon Dec 6 21:24:56 2010 +0100
watchdog: Fix reboot on W83627ehf chipset.
The watchdog driver for the SUPERIO chip winbond w83627ehf does not work. If you open /dev/watchdog and write a character to /dev/watchdog then the watchdog will be triggered. However the watchdog will not trigger the hardware RESET after the timeout, because the watchdog has never been enabled.
Author: Benny Loenstrup Ammitzboell <[email protected]> Date: Thu Nov 11 16:08:41 2010 +0100
watchdog: Add watchdog support for W83627DHG chip
The following adds watchdog support for the Winbond W83627DHG chip. I have tested it on a PQ7-M102XL (Intel Atom) board.
Author: Michel Arboi <[email protected]> Date: Mon Dec 6 20:53:45 2010 +0100
watchdog: f71808e_wdt: Add Fintek F71869 watchdog
Add Fintek f71869 as a supported watchdog device.
Author: Lutz Ballaschke <[email protected]> Date: Sun Sep 26 16:25:35 2010 +0200
watchdog: add f71862fg support
Watchdog support for Fintek F71862fg Super-I/O added.
Two different hardware reset pins of the F71862fg chip can be configured by an additional module parameter.
Author: Lutz Ballaschke <[email protected]> Date: Sun Sep 26 16:38:20 2010 +0200
watchdog: clean-up f71808e_wdt.c
Cleaned up and replaced some magic numbers by constants.
The Changes can also be looked at on:
http://www.kernel.org/git/?p=linux/kernel/git/wim/linux-2.6-watchdog.git;a=summary
For completeness, I added the overal diff below.
Greetings,
Wim.
================================================================================
arch/m68k/include/asm/m548xgpt.h +2 -0
@@ -59,11 +59,13 @@#define MCF_GPT_GMS_GPIO_INPUT (0x00000000)#define MCF_GPT_GMS_GPIO_OUTLO (0x00000020)#define MCF_GPT_GMS_GPIO_OUTHI (0x00000030) +#define MCF_GPT_GMS_GPIO_MASK (0x00000030)#define MCF_GPT_GMS_TMS_DISABLE (0x00000000)#define MCF_GPT_GMS_TMS_INCAPT (0x00000001)#define MCF_GPT_GMS_TMS_OUTCAPT (0x00000002)#define MCF_GPT_GMS_TMS_PWM (0x00000003)#define MCF_GPT_GMS_TMS_GPIO (0x00000004) +#define MCF_GPT_GMS_TMS_MASK (0x00000007)/* Bit definitions and macros for MCF_GPT_GCIR */ #define MCF_GPT_GCIR_CNT (x) (((x)&0x0000FFFF)<<0)
drivers/watchdog/Kconfig +49 -7
94 lines not on this page · raw message
drivers/watchdog/Makefile +4 -2
@@ -68,6 +68,7 @@ obj-$(CONFIG_ADVANTECH_WDT) += advantechwdt.o obj-$(CONFIG_ALIM1535_WDT) += alim1535_wdt.o obj-$(CONFIG_ALIM7101_WDT) += alim7101_wdt.o obj-$(CONFIG_F71808E_WDT) += f71808e_wdt.o +obj-$(CONFIG_SP5100_TCO) += sp5100_tco.o obj-$(CONFIG_GEODE_WDT) += geodewdt.o obj-$(CONFIG_SC520_WDT) += sc520_wdt.o obj-$(CONFIG_SBC_FITPC2_WATCHDOG) += sbc_fitpc2_wdt.o
@@ -86,6 +87,7 @@ obj-$(CONFIG_HP_WATCHDOG) += hpwdt.o obj-$(CONFIG_SC1200_WDT) += sc1200wdt.o obj-$(CONFIG_SCx200_WDT) += scx200_wdt.o obj-$(CONFIG_PC87413_WDT) += pc87413_wdt.o +obj-$(CONFIG_NV_TCO) += nv_tco.o obj-$(CONFIG_RDC321X_WDT) += rdc321x_wdt.o obj-$(CONFIG_60XX_WDT) += sbc60xxwdt.o obj-$(CONFIG_SBC8360_WDT) += sbc8360.o
@@ -104,10 +106,10 @@ obj-$(CONFIG_SBC_EPX_C3_WATCHDOG) += sbc_epx_c3.o # M32R Architecture # M68K Architecture - -# M68KNOMMU Architecture +obj-$(CONFIG_M548x_WATCHDOG) += m548x_wdt.o # MIPS Architecture +obj-$(CONFIG_ATH79_WDT) += ath79_wdt.o obj-$(CONFIG_BCM47XX_WDT) += bcm47xx_wdt.o obj-$(CONFIG_BCM63XX_WDT) += bcm63xx_wdt.o obj-$(CONFIG_RC32434_WDT) += rc32434_wdt.o
drivers/watchdog/alim1535_wdt.c +1 -1
@@ -301,7 +301,7 @@ static int ali_notify_sys(struct notifier_block *this,* want to register another driver on the same PCI id. */ -static struct pci_device_id ali_pci_tbl[] = { +static struct pci_device_id ali_pci_tbl[]__used = { {PCI_VENDOR_ID_AL ,0x1533 ,PCI_ANY_ID ,PCI_ANY_ID ,}, {PCI_VENDOR_ID_AL ,0x1535 ,PCI_ANY_ID ,PCI_ANY_ID ,}, {0 , },
drivers/watchdog/alim7101_wdt.c +1 -1
@@ -430,7 +430,7 @@ err_out:module_init (alim7101_wdt_init);module_exit (alim7101_wdt_unload); -static struct pci_device_id alim7101_pci_tbl[]__devinitdata = { +static struct pci_device_id alim7101_pci_tbl[]__devinitdata __used = { {PCI_DEVICE (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M1533 ) }, {PCI_DEVICE (PCI_VENDOR_ID_AL ,PCI_DEVICE_ID_AL_M7101 ) }, { }
drivers/watchdog/ath79_wdt.c new file +305 -0
305 lines not on this page · raw message
drivers/watchdog/booke_wdt.c +33 -2
@@ -85,6 +85,22 @@ static unsigned int sec_to_period(unsigned int secs)return 0 ; } +static void __booke_wdt_set (void *data) +{ +u32 val; + + val =mfspr (SPRN_TCR ); + val &= ~WDTP_MASK ; + val |=WDTP (booke_wdt_period); + +mtspr (SPRN_TCR , val); +} + +static void booke_wdt_set (void ) +{ +on_each_cpu (__booke_wdt_set,NULL ,0 ); +} +static void __booke_wdt_ping (void *data) {mtspr (SPRN_TSR ,TSR_ENW |TSR_WIS );
@@ -181,8 +197,7 @@ static long booke_wdt_ioctl(struct file *file,#else booke_wdt_period = tmp;#endif -mtspr (SPRN_TCR , (mfspr (SPRN_TCR ) & ~WDTP_MASK ) | -WDTP (booke_wdt_period)); +booke_wdt_set ();return 0 ;case WDIOC_GETTIMEOUT :return put_user (booke_wdt_period, p);
@@ -193,8 +208,15 @@ static long booke_wdt_ioctl(struct file *file,return 0 ; } +/* wdt_is_active stores wether or not the /dev/watchdog device is opened */ +static unsigned long wdt_is_active; +static int booke_wdt_open (struct inode *inode,struct file *file) { +/* /dev/watchdog can only be opened once */ +if (test_and_set_bit (0 , &wdt_is_active)) +return -EBUSY ; +spin_lock (&booke_wdt_lock);if (booke_wdt_enabled ==0 ) { booke_wdt_enabled =1 ;
@@ -210,8 +232,17 @@ static int booke_wdt_open(struct inode *inode, struct file *file)static int booke_wdt_release (struct inode *inode,struct file *file) { +#ifndef CONFIG_WATCHDOG_NOWAYOUT +/* Normally, the watchdog is disabled when /dev/watchdog is closed, but +* if CONFIG_WATCHDOG_NOWAYOUT is defined, then it means that the +* watchdog should remain enabled. So we disable it only if +* CONFIG_WATCHDOG_NOWAYOUT is not defined. +*/ on_each_cpu (__booke_wdt_disable,NULL ,0 ); booke_wdt_enabled =0 ; +#endif + +clear_bit (0 , &wdt_is_active);return 0 ; }
drivers/watchdog/f71808e_wdt.c +63 -15
153 lines not on this page · raw message
drivers/watchdog/iTCO_wdt.c +10 -2
@@ -1,7 +1,7 @@/* * intel TCO Watchdog Driver * -* (c) Copyright 2006-2009 Wim Van Sebroeck <[email protected]>. +* (c) Copyright 2006-2010 Wim Van Sebroeck <[email protected]>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License
@@ -26,13 +26,15 @@* document number 301473-002, 301474-026: 82801F (ICH6) * document number 313082-001, 313075-006: 631xESB, 632xESB * document number 307013-003, 307014-024: 82801G (ICH7) +* document number 322896-001, 322897-001: NM10 * document number 313056-003, 313057-017: 82801H (ICH8) * document number 316972-004, 316973-012: 82801I (ICH9) * document number 319973-002, 319974-002: 82801J (ICH10) * document number 322169-001, 322170-003: 5 Series, 3400 Series (PCH) * document number 320066-003, 320257-008: EP80597 (IICH) -* document number TBD : Cougar Point (CPT) +* document number 324645-001, 324646-001: Cougar Point (CPT) * document number TBD : Patsburg (PBG) +* document number TBD : DH89xxCC */ /*
@@ -85,6 +87,7 @@ enum iTCO_chipsets {TCO_ICH7DH ,/* ICH7DH */ TCO_ICH7M ,/* ICH7-M & ICH7-U */ TCO_ICH7MDH ,/* ICH7-M DH */ +TCO_NM10 ,/* NM10 */ TCO_ICH8 ,/* ICH8 & ICH8R */ TCO_ICH8DH ,/* ICH8DH */ TCO_ICH8DO, /* ICH8DO */
@@ -149,6 +152,7 @@ enum iTCO_chipsets {TCO_CPT31 ,/* Cougar Point */ TCO_PBG1 ,/* Patsburg */ TCO_PBG2 ,/* Patsburg */ + TCO_DH89XXCC, /* DH89xxCC */ }; static struct {
@@ -174,6 +178,7 @@ static struct { {"ICH7DH", 2}, {"ICH7-M or ICH7-U", 2}, {"ICH7-M DH", 2}, + {"NM10", 2}, {"ICH8 or ICH8R", 2}, {"ICH8DH", 2}, {"ICH8DO", 2},
@@ -238,6 +243,7 @@ static struct { {"Cougar Point", 2}, {"Patsburg", 2}, {"Patsburg", 2}, + {"DH89xxCC", 2}, {NULL, 0} };
@@ -291,6 +297,7 @@ static struct pci_device_id iTCO_wdt_pci_tbl[] = { { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH7_30, TCO_ICH7DH)}, { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH7_1, TCO_ICH7M)}, { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH7_31, TCO_ICH7MDH)}, + { ITCO_PCI_DEVICE(0x27bc, TCO_NM10)}, { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH8_0, TCO_ICH8)}, { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH8_2, TCO_ICH8DH)}, { ITCO_PCI_DEVICE(PCI_DEVICE_ID_INTEL_ICH8_3, TCO_ICH8DO)},
@@ -355,6 +362,7 @@ static struct pci_device_id iTCO_wdt_pci_tbl[] = { { ITCO_PCI_DEVICE(0x1c5f, TCO_CPT31)}, { ITCO_PCI_DEVICE(0x1d40, TCO_PBG1)}, { ITCO_PCI_DEVICE(0x1d41, TCO_PBG2)}, + { ITCO_PCI_DEVICE(0x2310, TCO_DH89XXCC)}, { 0, }, /* End of list */ };MODULE_DEVICE_TABLE (pci, iTCO_wdt_pci_tbl);
drivers/watchdog/ks8695_wdt.c +1 -1
@@ -21,7 +21,7 @@#include <linux/watchdog.h> #include <linux/io.h> #include <linux/uaccess.h> -#include <mach/timex.h> +#include <mach/hardware.h> #include <mach/regs-timer.h> #define WDT_DEFAULT_TIME 5/* seconds */
drivers/watchdog/m548x_wdt.c new file +227 -0
227 lines not on this page · raw message
drivers/watchdog/nv_tco.c new file +512 -0
512 lines not on this page · raw message
drivers/watchdog/nv_tco.h new file +64 -0
64 lines not on this page · raw message
drivers/watchdog/sp5100_tco.c new file +480 -0
480 lines not on this page · raw message
drivers/watchdog/sp5100_tco.h new file +41 -0
41 lines not on this page · raw message
drivers/watchdog/w83627hf_wdt.c +5 -3
@@ -42,7 +42,7 @@#include <asm/system.h> -#define WATCHDOG_NAME "w83627hf/thf/hg WDT" +#define WATCHDOG_NAME "w83627hf/thf/hg/dhg WDT"#define PFX WATCHDOG_NAME ": "#define WATCHDOG_TIMEOUT 60/* 60 sec default timeout */
@@ -89,7 +89,7 @@ static void w83627hf_select_wd_register(void) c = ((inb_p (WDT_EFDR ) &0xf7 ) |0x04 );/* select WDT0 */ outb_p (0x2b ,WDT_EFER );outb_p (c,WDT_EFDR );/* set GPIO3 to WDT0 */ - }else if (c ==0x88 ) {/* W83627EHF */ + }else if (c ==0x88 || c ==0xa0 ) {/* W83627EHF / W83627DHG */ outb_p (0x2d ,WDT_EFER );/* select GPIO5 */ c =inb_p (WDT_EFDR ) & ~0x01 ;/* PIN77 -> WDT0# */ outb_p (0x2d ,WDT_EFER );
@@ -129,6 +129,8 @@ static void w83627hf_init(void) t =inb_p (WDT_EFDR );/* read CRF5 */ t &= ~0x0C ;/* set second mode & disable keyboard turning off watchdog */ + t |=0x02 ;/* enable the WDTO# output low pulse +to the KBRST# pin (PIN60) */ outb_p (t,WDT_EFDR );/* Write back to CRF5 */ outb_p (0xF7 ,WDT_EFER );/* Select CRF7 */
@@ -321,7 +323,7 @@ static int __init wdt_init(void) {int ret; -printk (KERN_INFO "WDT driver for the Winbond(TM) W83627HF/THF/HG Super I/O chip initialising.\n" ); +printk (KERN_INFO "WDT driver for the Winbond(TM) W83627HF/THF/HG/DHG Super I/O chip initialising.\n" );if (wdt_set_heartbeat (timeout)) {wdt_set_heartbeat (WATCHDOG_TIMEOUT );