From: Don Zickus <dzickus@redhat.com>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org
Subject: Re: [PATCH 4/4] watchdog: provide watchdog_reconfigure() for arch watchdogs
Date: Fri, 26 May 2017 10:21:53 -0400 [thread overview]
Message-ID: <20170526142153.wmalzlgbdwutomdj@redhat.com> (raw)
In-Reply-To: <20170526103909.04f7710c@roar.ozlabs.ibm.com>
On Fri, May 26, 2017 at 10:39:09AM +1000, Nicholas Piggin wrote:
> On Thu, 25 May 2017 10:08:33 -0400
> Don Zickus <dzickus@redhat.com> wrote:
>
> > On Thu, May 25, 2017 at 06:28:56PM +1000, Nicholas Piggin wrote:
> > > After reconfiguring watchdog sysctls etc., architecture specific
> > > watchdogs may not get all their parameters updated.
> > >
> > > watchdog_reconfigure() can be implemented to pull the new values
> > > in and set the arch NMI watchdog.
> >
> > I understand the reason for this patch and I don't have any real objection
> > on how it was implemented within the constraints of all the current logic.
> >
> > I just wonder if the current logic should be adjusted to make the hardlockup
> > detector, namely the perf implementation more separate so it can handle what
> > you would like more cleanly.
> >
> > The watchdog_nmi_reconfigure is sort of hackish, but it is hard to fault you
> > based on how things are designed. I am going to poke at it a little bit,
> > but I will probably not find time to do much and accept what you have for
> > now.
>
> I actually agree with you. These patches are basically an initial bridge
> to get us to decoupling hld-perf from hld-arch, but the code could
> definitely use several more passes to clean things up.
Makes sense. :-)
>
> One thing we want to be mindful of is some watchdogs are very light weight,
> minimal, and some may not even want to call C code (at least from the NMI
Agreed.
> and touch-watchdog paths). But having said that, it may not be a bad idea
> to have implementations provide a watchdog driver struct with some of the
> methods and reconfiguration they support. E.g., suspend/resume, stop/start
> on CPUs, adjust timeouts, etc.).
Hehe. I was hoping to avoid doing that, but it may lead there over time.
>
> I didn't want to go the whole hog and over-engineer something that doesn't
> work though, so I'm hoping we can get the powerpc watchdog in, and then
> keep working on the apis.
Agreed.
>
> Let me know what you think after you poke at it though.
I will.
Cheers,
Don
next prev parent reply other threads:[~2017-05-26 14:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 8:28 [PATCH 0/4][V2] Improve watchdog config " Nicholas Piggin
2017-05-25 8:28 ` [PATCH 1/4] watchdog: remove unused declaration Nicholas Piggin
2017-05-25 8:28 ` [PATCH 2/4] watchdog: introduce arch_touch_nmi_watchdog() Nicholas Piggin
2017-05-25 13:55 ` Don Zickus
2017-05-26 0:31 ` Nicholas Piggin
2017-05-26 14:05 ` Don Zickus
2017-05-25 8:28 ` [PATCH 3/4] watchdog: split out config options Nicholas Piggin
2017-05-25 11:30 ` kbuild test robot
2017-05-25 12:09 ` kbuild test robot
2017-05-25 8:28 ` [PATCH 4/4] watchdog: provide watchdog_reconfigure() for arch watchdogs Nicholas Piggin
2017-05-25 14:08 ` Don Zickus
2017-05-26 0:39 ` Nicholas Piggin
2017-05-26 14:21 ` Don Zickus [this message]
2017-05-30 1:26 [PATCH 0/4][V3] Improve watchdog config " Nicholas Piggin
2017-05-30 1:26 ` [PATCH 4/4] watchdog: Provide watchdog_reconfigure() " Nicholas Piggin
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=20170526142153.wmalzlgbdwutomdj@redhat.com \
--to=dzickus@redhat.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@gmail.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®