public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Handling NMI in a kernel module
@ 2002-07-23 17:37 Isabelle, Francois
  2002-07-23 18:27 ` John Levon
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Isabelle, Francois @ 2002-07-23 17:37 UTC (permalink / raw)
  To: Linux-Ha (E-mail); +Cc: 'linux-kernel@vger.kernel.org'

Is it possible to request_nmi() the way you can request_irq() from a kernel
driver on the i386 arch?

Our hardware watchdog is dual stage and can generate NMI on first stage ,
our cPCI handle switch can also be used for Hot swap request via NMI.
I'ld like to make use of this, I noticed cpqhealth module already
implemented some nmi handling but this driver is close sourced.

Should we patch in i386/kernel/traps.c to add a callback to our stuff in
unkown_nmi_error().

I'ld like my driver to register a callback there, what about maintaining a
list of user callback functions which could be registered via:
 
request_nmi(int option, void (*hander)(void *dev_id, struct pt_regs *regs),
unsigned long flags, const char *dev_name, void *dev_id);

where option could take meaning such as
 - prepend   : place at start of nmi callback functions
 - append    : place at end of nmi callback functions 
 - truncate : replace callback chain

Is there any standard mecanism to implement such features( dual stage
watchdog ) ?

Comments are welcome.

Francois Isabelle
Francois.Isabelle@ca.kontron.com
Kontron Canada Inc

 
 



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-07-27 13:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-23 17:37 Handling NMI in a kernel module Isabelle, Francois
2002-07-23 18:27 ` John Levon
2002-07-23 22:30 ` Alan Cox
2002-07-26 21:55 ` Alan Robertson
2002-07-27  2:05   ` Alan Cox
2002-07-27  3:30     ` Alan Robertson
2002-07-27 12:39       ` Alan Cox
2002-07-27 13:50         ` Alan Robertson
2002-07-27  3:44     ` Jonathan Lundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox