mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wim Van Sebroeck <wim@iguana.be>
To: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Guenter Roeck <linux@roeck-us.net>, Arnd Bergmann <arnd@arndb.de>,
	dbaryshkov@gmail.com, dwmw2@infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org,
	linux-sunxi@googlegroups.com
Subject: Re: [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver
Date: Mon, 23 Jun 2014 23:30:46 +0200	[thread overview]
Message-ID: <20140623213046.GR22347@spo001.leaseweb.com> (raw)
In-Reply-To: <20140623154934.GG19730@lukather>

Hi All,

> On Mon, Jun 23, 2014 at 07:30:56AM -0700, Guenter Roeck wrote:
> > >>The patches _are_ in my watchdog-next branch and get some coverage from
> > >>both my auto-builders and from Fenguang's build robots, so while they are
> > >>not in linux-next, they are not completely in the dark either.
> > >
> > >So, this patch finally didn't make it into 3.16. Great. Now, we can't
> > >even reboot the boards.
> > >
> > >Given how it's just impossible to get something merged reliably
> > >through the watchdog tree, I guess I should just start merging the
> > >patches through mine?
> > >
> > 
> > You can not really blame Wim here.
> > 
> > In this case, I suspect the major reason for not accepting the patch
> > is that I tried to provide a clean method / API for "reset through watchdog
> > subsystem", which went nowhere, in my understanding because someone objected
> > that it would be the wrong thing to do [1] and it didn't get approval /
> > acceptance from the arm maintainers. If it is wrong to reset the board
> > from the watchdog subsystem in a clean way, it is for sure even more wrong
> > to do it as you proposed in your patch.
> > 
> > My conclusion therefore is that all board reset code should move back out
> > of the watchdog subsystem, and that we should not accept such code in the
> > future. This is not my personal preference, but I do believe that we should
> > do it in a clean way or not at all.
> 
> Well, considering that this patch isn't depending on your reboot API
> set, and that Wim never either commented on this patch, your reboot
> API patchset or your pull request to say that he was not willing to
> merge this, there's still a huge failure to communicate.
> 
> I'm fine with any technical reason, let's debate on that. But the
> point is there has been no debate at all, only silence from his side.
> 
> I have been told some patches would be merged and I merged through my
> tree some patches that were depending on this one based on that
> assumption.
> 
> And now, we have a regression.
> 
> Anyway... I guess I should just revert some commits now.
> 

To continue the discussion: I would like to add an excerpt from drivers/watchdog/alim7101_wdt.c
/*
 *      Notifier for system down
 */

static int wdt_notify_sys(struct notifier_block *this,
                                        unsigned long code, void *unused)
{
        if (code == SYS_DOWN || code == SYS_HALT)
                wdt_turnoff();

        if (code == SYS_RESTART) {
                /*
                 * Cobalt devices have no way of rebooting themselves other
                 * than getting the watchdog to pull reset, so we restart the
                 * watchdog on reboot with no heartbeat
                 */
                wdt_change(WDT_ENABLE);
                pr_info("Watchdog timer is now enabled with no heartbeat - should reboot in ~1 second\n");
        }
        return NOTIFY_DONE;
}

For some systems the watchdog is the only way to reboot... So where we should put it, is not trivial neither...

Kind regards,
Wim.


  reply	other threads:[~2014-06-23 21:37 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07  2:44 [PATCH v2 0/6] ARM: sunxi: Machine code cleanup Maxime Ripard
2014-05-07  2:44 ` [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver Maxime Ripard
2014-05-07 21:33   ` Guenter Roeck
2014-05-15  9:11     ` Maxime Ripard
2014-05-19 15:04       ` Maxime Ripard
2014-05-22 20:34         ` Maxime Ripard
2014-05-22 20:39           ` One Thousand Gnomes
2014-05-22 20:56             ` Maxime Ripard
2014-06-23 21:16             ` Wim Van Sebroeck
2014-05-22 21:12           ` Guenter Roeck
2014-05-23  8:33             ` Maxime Ripard
2014-06-23 10:31             ` Maxime Ripard
2014-06-23 14:30               ` Guenter Roeck
2014-06-23 14:42                 ` Arnd Bergmann
2014-06-23 15:16                   ` Guenter Roeck
2014-06-23 15:35                     ` Arnd Bergmann
2014-06-23 15:40                       ` Guenter Roeck
2014-06-23 15:49                 ` Maxime Ripard
2014-06-23 21:30                   ` Wim Van Sebroeck [this message]
2014-06-23 21:47                     ` Guenter Roeck
2014-06-24  9:27                       ` Arnd Bergmann
2014-06-23 21:13               ` Wim Van Sebroeck
2014-06-24 14:49                 ` Maxime Ripard
2014-06-24 16:01                   ` Guenter Roeck
2014-08-02  8:02                   ` Wim Van Sebroeck
2014-08-02 15:17                     ` Maxime Ripard
2014-08-02 15:45                     ` Guenter Roeck
2014-05-07  2:44 ` [PATCH v2 2/6] power: reset: Add Allwinner A31 reset code Maxime Ripard
2014-05-07  2:44 ` [PATCH v2 3/6] ARM: sunxi: Remove reset code from the platform Maxime Ripard
2014-05-07  2:44 ` [PATCH v2 4/6] ARM: sunxi: Remove init_machine callback Maxime Ripard
2014-05-07  2:44 ` [PATCH v2 5/6] ARM: sunxi: Add A31 reset driver to sunxi_defconfig Maxime Ripard
2014-05-07  2:44 ` [PATCH v2 6/6] ARM: multi_v7: Add Allwinner reset drivers to multi_v7_defconfig Maxime Ripard

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=20140623213046.GR22347@spo001.leaseweb.com \
    --to=wim@iguana.be \
    --cc=arnd@arndb.de \
    --cc=dbaryshkov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=maxime.ripard@free-electrons.com \
    /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

all inboxes | Powered by JetHome®