Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2012 18:49:10 -0800
From:      Neel Natu <neelnatu@gmail.com>
To:        attilio@freebsd.org
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, Ryan Stone <rysto32@gmail.com>
Subject:   Re: stop_cpus_hard when multiple CPUs are panicking from an NMI
Message-ID:  <CAFgRE9G%2BzWj=1=335XY3-CG9UzFqDXjQe5KaMYjF-oehRdXQhQ@mail.gmail.com>
In-Reply-To: <CAJ-FndBQwO0syGpG9mSYF4tAEO8wu6vv7QKbvzQY-9uo_ZJWhA@mail.gmail.com>
References:  <CAFMmRNwb_rxYXHGtXgtcyVUJnFDx5PSeMmA_crBbeV_rtzL9Cg@mail.gmail.com> <CAJ-FndBQwO0syGpG9mSYF4tAEO8wu6vv7QKbvzQY-9uo_ZJWhA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Thu, Nov 15, 2012 at 3:41 PM, Attilio Rao <attilio@freebsd.org> wrote:
> On Thu, Nov 15, 2012 at 10:58 PM, Ryan Stone <rysto32@gmail.com> wrote:
>> At work we have some custom watchdog hardware that sends an NMI upon
>> expiry.  We've modified the kernel to panic when it receives the watchdog
>> NMI.  I've been trying the "stop_scheduler_on_panic" mode, and I've
>> discovered that when my watchdog expires, the system gets completely
>> wedged.  After some digging, I've discovered is that I have multiple CPUs
>> getting the watchdog NMI and trying to panic concurrently.  One of the CPUs
>> wins, and the rest spin forever in this code:
>
> Quick question: can you control the way your watchdog sends the NMI?
> Like only to BSP rather than broadcast, etc.

It can be done but you really want the NMI to be broadcast since the
watchdog is firing because some cpu is "hung" and you don't know which
one it is.

best
Neel

> This is tied to the very unique situation that you cannot really
> deliver the (second) NMI.
>
> Attilio
>
>
> --
> Peace can only be achieved by understanding - A. Einstein
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9G%2BzWj=1=335XY3-CG9UzFqDXjQe5KaMYjF-oehRdXQhQ>