From: Guenter Roeck <linux@roeck-us.net>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: wim@iguana.be, marc.zyngier@arm.com,
linux-watchdog@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH V3 01/14] watchdog/mpcore_wdt: Mark it as BROKEN
Date: Tue, 18 Jun 2013 08:42:36 -0700 [thread overview]
Message-ID: <20130618154236.GA9022@roeck-us.net> (raw)
In-Reply-To: <22d22fe6eea294c5132e47b8901e094d60b0e99d.1371535242.git.viresh.kumar@linaro.org>
On Tue, Jun 18, 2013 at 08:50:25PM +0530, Viresh Kumar wrote:
> This driver was broken since ever.
>
> - 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.
>
> Was last discussed here:
>
> http://lists.infradead.org/pipermail/linux-arm-kernel/2012-April/095960.html
>
> Lets mark it broken until somebody with this hardware gets up and fixes it.
>
I must be missing something. What is the point of the remaining patches in this
case ?
Guenter
> Suggested-by: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> drivers/watchdog/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 9d03af1..c7dabe9 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -223,7 +223,7 @@ config DW_WATCHDOG
>
> config MPCORE_WATCHDOG
> tristate "MPcore watchdog"
> - depends on HAVE_ARM_TWD
> + depends on HAVE_ARM_TWD && BROKEN
> help
> Watchdog timer embedded into the MPcore system.
>
> --
> 1.7.12.rc2.18.g61b472e
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
WARNING: multiple messages have this Message-ID (diff)
From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V3 01/14] watchdog/mpcore_wdt: Mark it as BROKEN
Date: Tue, 18 Jun 2013 08:42:36 -0700 [thread overview]
Message-ID: <20130618154236.GA9022@roeck-us.net> (raw)
In-Reply-To: <22d22fe6eea294c5132e47b8901e094d60b0e99d.1371535242.git.viresh.kumar@linaro.org>
On Tue, Jun 18, 2013 at 08:50:25PM +0530, Viresh Kumar wrote:
> This driver was broken since ever.
>
> - 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.
>
> Was last discussed here:
>
> http://lists.infradead.org/pipermail/linux-arm-kernel/2012-April/095960.html
>
> Lets mark it broken until somebody with this hardware gets up and fixes it.
>
I must be missing something. What is the point of the remaining patches in this
case ?
Guenter
> Suggested-by: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
> ---
> drivers/watchdog/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
> index 9d03af1..c7dabe9 100644
> --- a/drivers/watchdog/Kconfig
> +++ b/drivers/watchdog/Kconfig
> @@ -223,7 +223,7 @@ config DW_WATCHDOG
>
> config MPCORE_WATCHDOG
> tristate "MPcore watchdog"
> - depends on HAVE_ARM_TWD
> + depends on HAVE_ARM_TWD && BROKEN
> help
> Watchdog timer embedded into the MPcore system.
>
> --
> 1.7.12.rc2.18.g61b472e
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2013-06-18 15:48 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 15:20 [PATCH V3 00/14] watchdog: ARM mpcore Improvements Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 01/14] watchdog/mpcore_wdt: Mark it as BROKEN Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:42 ` Guenter Roeck [this message]
2013-06-18 15:42 ` Guenter Roeck
2013-06-18 16:11 ` Marc Zyngier
2013-06-18 16:11 ` Marc Zyngier
2013-06-18 16:35 ` Olof Johansson
2013-06-18 16:35 ` Olof Johansson
2013-06-19 3:10 ` Viresh Kumar
2013-06-19 3:10 ` Viresh Kumar
2013-06-19 7:56 ` Marc Zyngier
2013-06-19 7:56 ` Marc Zyngier
2013-06-19 8:15 ` Viresh Kumar
2013-06-19 8:15 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 02/14] watchdog/mpcore_wdt: convert to watchdog core Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 03/14] watchdog/mpcore_wdt: Fix multiline comments Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 04/14] watchdog/mpcore_wdt: Arrange #includes in alphabetical order Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 05/14] watchdog/mpcore_wdt: Set default heartbeat in probe instead of init Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 06/14] watchdog/mpcore_wdt: convert to use module_platform_driver() Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 07/14] watchdog/mpcore_wdt: Add support for dev_pm_ops interface Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 08/14] watchdog/mpcore_wdt: disable wdt in suspend only if it is busy Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 09/14] watchdog/mpcore_wdt: replace (__raw_)readl/writel with lighter *_relaxed variants Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 10/14] watchdog/mpcore_wdt: Add support for WDIOC_GETBOOTSTATUS IOCTL Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 11/14] watchdog/mpcore_wdt: Add clock framework support Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 12/14] watchdog/mpcore_wdt: use correct clk_rate to program timeout Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 13/14] watchdog/mpcore_wdt: Start registers from 0x00 instead of 0x20 Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 15:20 ` [PATCH V3 14/14] watchdog/mpcore_wdt: Add DT probing support for ARM mpcore watchdog Viresh Kumar
2013-06-18 15:20 ` Viresh Kumar
2013-06-18 16:03 ` [PATCH V3 00/14] watchdog: ARM mpcore Improvements Russell King - ARM Linux
2013-06-18 16:03 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130618154236.GA9022@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=viresh.kumar@linaro.org \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.