All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Zickus <dzickus@redhat.com>
To: Alejandro Cabrera <acabrera@udio.cujae.edu.cu>
Cc: linux-watchdog@vger.kernel.org
Subject: Re: watchdogs and kdump
Date: Fri, 28 Oct 2011 12:22:43 -0400	[thread overview]
Message-ID: <20111028162243.GX3452@redhat.com> (raw)
In-Reply-To: <4EAAD492.3000908@udio.cujae.edu.cu>

On Fri, Oct 28, 2011 at 12:13:06PM -0400, Alejandro Cabrera wrote:
> On 10/28/2011 11:48 AM, Don Zickus wrote:
> >On Fri, Oct 28, 2011 at 11:46:30AM -0400, Alejandro Cabrera wrote:
> >>Hi
> >>
> >>I dont know kjump :), but seeing it's description I think that you
> >>could use a temporal thread executed in the context of kdump that
> >>ping the watchdog at certain intervals like watchdogd does at
> >>user-space.
> >Sure.  Add something like watchdogd isn't difficult.  My problem is
> >getting enough time to boot the second kernel to run that daemon.
> >Depending on when the watchdog was last kicked, the machine may reboot
> >while trying to initialize the cpu in the second kernel. :-(
> 
> You can create the daemon in kdump before the second kernel boots
> and manage that daemon as a kdump thread.

Unfortunately, you can't do that as only one kernel runs at any given
time.  When the first kernel panics, it does some quick and dirty
shutdowns of platform specific chips, forces all the cpus into a halt
state and then longjmps into the second kernel.

Cheers,
Don

> 
> While the second kernel is booting kdump will act as the owner of
> the watchdog device and when the second kernel is stable, kdump
> passes the control  of it to the watchdog kernel device driver.
> If is not problem, that two threads (kdump daemon and second kernel
> watchdog driver) access to the device simultaneously and without
> sync (I think IMMO that for pinging the watchdog it is not a issue)
> you can bypass the part that second kernel wdt drivers waits a
> notification from kdump to start working with the watchdog device.
> 
> Regards
> Alejandro
> 
> 
> Participe en Universidad 2012, del 13 al 17 de febrero de 2012.
> Habana, Cuba: http://www.congresouniversidad.cu
> Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
> 
> Participe en el Segundo Congreso Medio Ambiente Construido y
> Desarrollo Sustentable (MACDES 2011) del 6 al 9 de diciembre de
> 2011, Hotel Nacional, Habana, Cuba: http://macdes.cujae.edu.cu

      reply	other threads:[~2011-10-28 16:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 20:30 watchdogs and kdump Don Zickus
2011-10-27 20:30 ` Don Zickus
2011-10-27 21:43 ` Pádraig Brady
2011-10-27 21:43   ` Pádraig Brady
2011-10-28 13:39   ` Don Zickus
2011-10-28 13:39     ` Don Zickus
2012-01-21 18:21   ` kdump not working Intel S5520UR motherboards with Xeon processor Prashant Dinkar Kharche
2012-01-23 15:18     ` Don Zickus
2011-10-28 15:46 ` watchdogs and kdump Alejandro Cabrera
2011-10-28 15:48   ` Don Zickus
2011-10-28 16:13     ` Alejandro Cabrera
2011-10-28 16:22       ` Don Zickus [this message]

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=20111028162243.GX3452@redhat.com \
    --to=dzickus@redhat.com \
    --cc=acabrera@udio.cujae.edu.cu \
    --cc=linux-watchdog@vger.kernel.org \
    /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.