]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/nmi: Add new NMI queues to deal with IO_CHK and SERR
authorMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 9 Aug 2012 15:14:24 +0000 (08:14 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 13 Aug 2012 13:00:30 +0000 (06:00 -0700)
commitc41ad91b6c205af786ca456fa5cf70f16b359636
tree5254732908fe8ca7553733beba51a5bfd1864b6f
parent0059dfb0432b900d0229b7060b91b472c135b944
x86/nmi: Add new NMI queues to deal with IO_CHK and SERR

In discussions with Thomas Mingarelli about hpwdt, he explained
to me some issues they were some when using their virtual NMI
button to test the hpwdt driver.

It turns out the virtual NMI button used on HP's machines do no
send unknown NMIs but instead send IO_CHK NMIs.  The way the
kernel code is written, the hpwdt driver can not register itself
against that type of NMI and therefore can not successfully
capture system information before panic'ing.

To solve this I created two new NMI queues to allow driver to
register against the IO_CHK and SERR NMIs.  Or in the hpwdt all
three (if you include unknown NMIs too).

The change is straightforward and just mimics what the unknown
NMI does.

Reported-and-tested-by: Thomas Mingarelli <thomas.mingarelli@hp.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/1333051877-15755-3-git-send-email-dzickus@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Conflicts:

arch/x86/kernel/nmi.c
drivers/watchdog/hpwdt.c
arch/x86/include/asm/nmi.h
arch/x86/kernel/nmi.c
drivers/watchdog/hpwdt.c