watchdog: delete mpcore_wdt driver
Subsystems (3)
PATCH 1/1 watchdog: delete mpcore_wdt driver
The only way this is usable is if a watchdog user binds to a particular CPU before opening this device, and remains bound to that user. But this doesn't fit the current watchdog model in linux.
Interrupt request doesn't use the right API: The TWD watchdog uses a per-cpu interrupt (usually interrupt #30), and the GIC configuration should flag it as such. With this setup, request_irq() should fail, and the right API is request_percpu_irq(), together with enable_percpu_irq()/disable_percpu_irq().
Nothing ensures the userspace ioctl() will end-up kicking the watchdog on the right CPU.
There are no users of this driver since a long time and it makes more sense to get rid of it as nobody is looking to fix it.
In case somebody wakes up after this has been removed and needs it, please revert this driver and pick these updates (These were never pushed to mainline):
http://comments.gmane.org/gmane.linux.ports.arm.kernel/245998
--- Documentation/watchdog/watchdog-parameters.txt | 8 - arch/arm/configs/spear13xx_defconfig | 1 - drivers/watchdog/Kconfig | 9 - drivers/watchdog/Makefile | 1 - drivers/watchdog/mpcore_wdt.c | 456 ------------------------- 5 files changed, 475 deletions(-) delete mode 100644 drivers/watchdog/mpcore_wdt.c
Documentation/watchdog/watchdog-parameters.txt +0 -8
@@ -194,14 +194,6 @@ reset: Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset nowayout: Watchdog cannot be stopped once started (default=kernel config parameter) ------------------------------------------------- -mpcore_wdt: -mpcore_margin: MPcore timer margin in seconds. - (0 < mpcore_margin < 65536, default=60) -nowayout: Watchdog cannot be stopped once started - (default=kernel config parameter) -mpcore_noboot: MPcore watchdog action, set to 1 to ignore reboots, - 0 to reboot (default=0 -------------------------------------------------- mv64x60_wdt: nowayout: Watchdog cannot be stopped once started (default=kernel config parameter)
arch/arm/configs/spear13xx_defconfig +0 -1
@@ -61,7 +61,6 @@ CONFIG_GPIO_SYSFS=y CONFIG_GPIO_PL061=y # CONFIG_HWMON is not set CONFIG_WATCHDOG=y -CONFIG_MPCORE_WATCHDOG=y # CONFIG_HID_SUPPORT is not set CONFIG_USB=y # CONFIG_USB_DEVICE_CLASS is not set
drivers/watchdog/Kconfig +0 -9
@@ -221,15 +221,6 @@ config DW_WATCHDOG To compile this driver as a module, choose M here: the module will be called dw_wdt. -config MPCORE_WATCHDOG - tristate "MPcore watchdog" - depends on HAVE_ARM_TWD - help - Watchdog timer embedded into the MPcore system. - - To compile this driver as a module, choose M here: the - module will be called mpcore_wdt. - config EP93XX_WATCHDOG tristate "EP93xx Watchdog" depends on ARCH_EP93XX
drivers/watchdog/Makefile +0 -1
@@ -41,7 +41,6 @@ obj-$(CONFIG_KS8695_WATCHDOG) += ks8695_wdt.o obj-$(CONFIG_S3C2410_WATCHDOG) += s3c2410_wdt.o obj-$(CONFIG_SA1100_WATCHDOG) += sa1100_wdt.o obj-$(CONFIG_DW_WATCHDOG) += dw_wdt.o -obj-$(CONFIG_MPCORE_WATCHDOG) += mpcore_wdt.o obj-$(CONFIG_EP93XX_WATCHDOG) += ep93xx_wdt.o obj-$(CONFIG_PNX4008_WATCHDOG) += pnx4008_wdt.o obj-$(CONFIG_IOP_WATCHDOG) += iop_wdt.o
drivers/watchdog/mpcore_wdt.c deleted +0 -456
456 lines not on this page · raw message
Signature · 1 line
1.7.12.rc2.18.g61b472e
Guenter Roeck
maintainerPATCH 1/1 watchdog: delete mpcore_wdt driver
Quoted 4 lines · Viresh Kumar
The only way this is usable is if a watchdog user binds to a particular CPU before opening this device, and remains bound to that user. But this doesn't fit the current watchdog model in linux.
Side note: not really true. The application can run on any CPU. The driver would call on_each_cpu_mask() to execute the ping on the correct/expected CPU, or on_each_cpu() if each CPU needs a ping. So this is more a matter of driver coding.
Quoted 11 lines
Interrupt request doesn't use the right API: The TWD watchdog uses a per-cpu interrupt (usually interrupt #30), and the GIC configuration should flag it as such. With this setup,
request_irq()should fail, and the right API isrequest_percpu_irq(), together with enable_percpu_irq()/disable_percpu_irq().Nothing ensures the userspace
ioctl()will end-up kicking the watchdog on the right CPU.There are no users of this driver since a long time and it makes more sense to get rid of it as nobody is looking to fix it.
Quoted 6 lines
In case somebody wakes up after this has been removed and needs it, please revert this driver and pick these updates (These were never pushed to mainline):
http://comments.gmane.org/gmane.linux.ports.arm.kernel/245998
Signed-off-by Viresh Kumar <[email protected]>
PATCH 1/1 watchdog: delete mpcore_wdt driver
Quoted 5 lines · Guenter Roeck
Quoted 1 line · Viresh Kumar
Signed-off-by Viresh Kumar <[email protected]>Acked-by Guenter Roeck <[email protected]>
Hi Wim,
Are you going to apply this patch for 3.11?
Hi Viresh,
Quoted 21 lines
The only way this is usable is if a watchdog user binds to a particular CPU before opening this device, and remains bound to that user. But this doesn't fit the current watchdog model in linux.
Interrupt request doesn't use the right API: The TWD watchdog uses a per-cpu interrupt (usually interrupt #30), and the GIC configuration should flag it as such. With this setup,
request_irq()should fail, and the right API isrequest_percpu_irq(), together with enable_percpu_irq()/disable_percpu_irq().Nothing ensures the userspace
ioctl()will end-up kicking the watchdog on the right CPU.There are no users of this driver since a long time and it makes more sense to get rid of it as nobody is looking to fix it.
In case somebody wakes up after this has been removed and needs it, please revert this driver and pick these updates (These were never pushed to mainline):
http://comments.gmane.org/gmane.linux.ports.arm.kernel/245998
Signed-off-by Viresh Kumar <[email protected]>
Quoted 8 lines
--- Documentation/watchdog/watchdog-parameters.txt | 8 - arch/arm/configs/spear13xx_defconfig | 1 - drivers/watchdog/Kconfig | 9 - drivers/watchdog/Makefile | 1 - drivers/watchdog/mpcore_wdt.c | 456 ------------------------- 5 files changed, 475 deletions(-) delete mode 100644 drivers/watchdog/mpcore_wdt.c
Added patch to linux-watchdog-next.
Kind regards,
Wim.