linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Wolfram Sang <wsa@the-dreams.de>,
	Linux Watchdog Mailing List <linux-watchdog@vger.kernel.org>,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs
Date: Mon, 4 Apr 2016 10:52:39 -0700	[thread overview]
Message-ID: <20160404175239.GA24667@roeck-us.net> (raw)
In-Reply-To: <CAMuHMdUb1ORUygOmFBE7RCe3vBxk60AEdSg+UgHBty6GfFHmEQ@mail.gmail.com>

On Mon, Apr 04, 2016 at 07:02:45PM +0200, Geert Uytterhoeven wrote:
> Hi Günter,
> 
> On Mon, Apr 4, 2016 at 5:25 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> > On Mon, Apr 04, 2016 at 05:21:44PM +0200, Geert Uytterhoeven wrote:
> >> On Mon, Apr 4, 2016 at 4:59 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> >> >> My Salvator-X reboots after timeout from "cat > /dev/watchdog0", but
> >> >> it doesn't reboot through "reboot" or "reboot -f"?
> >> >
> >> > That sadly doesn't work on Gen3. From the RFC v5 cover letter:
> >>
> >> > ===
> >> >
> >> > * drop restart_handler since ARM64 uses PSCI firmware resets which do
> >> >   not call restart handlers
> >> >
> >> > The last point was quite a bummer to me because plain reboot was the
> >> > reason I wrote this driver ;) Well, so is life...
> >>
> >> That's indeed silly. Can't we have it as a low-priority restart handler, to
> >
> > Yes, it is. It defeats the purpose of restart handlers. PSCI reset should have
> > been implemented as a high priority restart handler.
> 
> Unfortunately that won't work: psci_sys_reset() doesn't return on failure.
> 
You mean it just hangs ? That is bad. If that is the case, it is not reliable
and thus should be a low priority (or at best medium priority) restart handler
(which can be replaced with a working higher priority one).

> We can still clear arm_pm_restart in platform code, though ;-)
> 
I had originally planned to replace arm_pm_restart() completely with restart
handlers. Maybe I should revive the effort ?

Guenter

  reply	other threads:[~2016-04-04 17:52 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
     [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 [this message]
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=20160404175239.GA24667@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=geert@linux-m68k.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --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).