linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: "fixed-term.Oleksij.Rempel" <fixed-term.Oleksij.Rempel@de.bosch.com>
Cc: Wolfram Sang <wsa@the-dreams.de>,
	Oleksij Rempel <linux@rempel-privat.de>,
	dirk.behme@de.bosch.com, linux-watchdog@vger.kernel.org
Subject: Re: [PATCH v2 1/4] watchdog: renesas-wdt: add driver
Date: Tue, 5 Apr 2016 11:47:27 -0700	[thread overview]
Message-ID: <20160405184727.GA5862@roeck-us.net> (raw)
In-Reply-To: <57035A6A.3020601@de.bosch.com>

On Tue, Apr 05, 2016 at 08:25:46AM +0200, fixed-term.Oleksij.Rempel wrote:
> 
> 
> On 04.04.2016 16:08, Guenter Roeck wrote:
> > On Mon, Apr 04, 2016 at 02:36:54PM +0200, Wolfram Sang wrote:
> >>
> >>> we are using it. So it should be implemented in this driver as well,
> >>> if it is not supported by HW, then we will need to use second timer or
> >>> watchdog for pretimeout interrupt.
> >>
> >> As I said, I have no task like this assigned (and no personal interest,
> >> too). So, you'd need to do it yourself, hire me, or request this feature
> >> from Renesas (and hope that they pass the task to me ;)).
> >>
> > Sorry, I lost the context here. 
> > 
> >>> Please correct me if i'm wrong - module parameter is a way to ignore
> >>> kernel config. For same purpose, to disable wdt at runtime "magic 'V'"
> >>> should be used.
> >>
> >> I have to admit that I don't have a specific use-case, I just did
> >> general support as requested. So, I followed the style that basically
> >> every other watchdog driver has this parameter.
> >>
> > I don't understand this one. Unless I am missing something, the module
> > parameter is standard, and magic close by writing 'V' is supported.
> > What is the problem ?
> 
> Sorry it was more about our internal requirements, which are fallowing:
> - WDT is always on. there should be no option to disable it.
> - WDTs can fail, it is proven fact. In our case, worst scenario, failed
> WDT will kill a car battery. This is why we use many watchdogs in one
> system. So, using differently configured WDTs of one SoC is valid use
> case. From this point, module options are kind of sweet but useless or
> harmful.

No one _has_ to use the module parameter. That doesn't mean that it must
not be there - someone else may want it for some reason.

> - pretimout interrupt is not optional - not any more. Some issues are
> wary hard or impossible to reproduce. Pretimout interrupt helped us to
> debug some of them. If WDT hardware can't provide one, we will need to
> mix two watchdogs (one for reset and other for interrupt) or wdt with
> some other hw timer.

Adding pretimeout support should be easy with a follow-up patch.

> 
> May be this requirements can be passed to upstream as well :)

Keep in mind that a specific use case does not and should not mandate
driver implementation details. The driver can support both module parameter
and pretimeout, but none of those has to be used in a specific application.
Important is that the kernel _supports_ your use case, which should be no
problem.

Thanks,
Guenter

  parent reply	other threads:[~2016-04-05 18:47 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-01 11:56 [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs Wolfram Sang
2016-04-01 11:56 ` [PATCH v2 1/4] watchdog: renesas-wdt: add driver Wolfram Sang
     [not found]   ` <57010C13.7040007@rempel-privat.de>
     [not found]     ` <20160404104508.GA1383@katana>
     [not found]       ` <57025C5A.2060704@de.bosch.com>
2016-04-04 12:36         ` Wolfram Sang
2016-04-04 14:08           ` Guenter Roeck
     [not found]             ` <57035A6A.3020601@de.bosch.com>
2016-04-05 18:47               ` Guenter Roeck [this message]
     [not found]                 ` <5704A10C.10701@de.bosch.com>
2016-04-06 15:36                   ` Guenter Roeck
2016-04-01 11:56 ` [PATCH v2 2/4] arm64: dts: r8a7795: Add RWDT node Wolfram Sang
2016-04-04  8:41   ` Geert Uytterhoeven
2016-04-04 14:00   ` Guenter Roeck
2016-04-04 14:06     ` Wolfram Sang
2016-05-18  9:38     ` Wolfram Sang
2016-05-20  4:13       ` Simon Horman
2016-04-01 11:56 ` [PATCH v2 3/4] arm64: dts: salvator-x: Enable watchdog timer Wolfram Sang
2016-04-04  8:44   ` Geert Uytterhoeven
2016-04-04 14:01   ` Guenter Roeck
2016-05-18  9:39     ` Wolfram Sang
2016-05-20  4:13       ` Simon Horman
2016-04-01 11:56 ` [PATCH v2 4/4] arm64: defconfig: enable Renesas Watchdog Timer Wolfram Sang
2016-04-04  8:45   ` Geert Uytterhoeven
2016-04-04 14:05   ` Guenter Roeck
2016-04-04 14:51 ` [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs Geert Uytterhoeven
2016-04-04 14:59   ` Wolfram Sang
2016-04-04 15:21     ` Geert Uytterhoeven
2016-04-04 15:23       ` Wolfram Sang
2016-04-04 15:25       ` Guenter Roeck
2016-04-04 17:02         ` Geert Uytterhoeven
2016-04-04 17:52           ` Guenter Roeck
2016-04-04 18:14             ` Geert Uytterhoeven
2016-04-04 18:23               ` Guenter Roeck
2016-04-04 19:12               ` Wolfram Sang
2016-05-14 16:45 ` Wim Van Sebroeck

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=20160405184727.GA5862@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=dirk.behme@de.bosch.com \
    --cc=fixed-term.Oleksij.Rempel@de.bosch.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@rempel-privat.de \
    --cc=wsa@the-dreams.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).