* device_interrupt: unexpected interrupt error messages
@ 1998-06-15 4:00 Bruce Allen
0 siblings, 0 replies; only message in thread
From: Bruce Allen @ 1998-06-15 4:00 UTC (permalink / raw)
There have now been several reports on the Web about:
device_interrupt: unexpected interrupt N
where in my case N=30 to 35, but other people see different values.
The people seeing these errors are typically using a RedHat 5.1 2.0.34
kernel for the first time. Reports of this error come from:
Robert Harley <harley@corton.inria.fr>
Message-ID <rz7yav5cn9v.fsf@corton.inria.fr>
peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl)
Message-ID <6lmfmp$dt9$1@tesla.EECS.Berkeley.EDU
Bruce Allen <ballen@dirac.phys.uwm.edu>
Message-ID: <35848DE8.89EA6C7E@dirac.phys.uwm.edu>
-------------------------------------------------------------------
In my case, I have a stock XL300 DEC alpha machine, with a DE500
ethernet
board added in. Other people have different hardware (alpha) setups.
I have a couple of questions for the experts.
(1) The error message is coming from the file:
/usr/src/linux/arch/alpha/kernel/irq.c
In the case of 2.0.30 (which does not exhibit the problem) the
relevant lines
of irq.c read:
-------------------------------------------------------------------
action = irq_action[irq];
mask_irq(ack);
ack_irq(ack);
if (!action) {
#if 0
printk("device_interrupt: unexpected interrupt %d\n", irq);
#endif
return;
}
-------------------------------------------------------------------
In the case of 2.0.34 the same lines read:
-------------------------------------------------------------------
action = irq_action[irq];
mask_irq(ack);
ack_irq(ack);
if (!action) {
#if 1
printk("device_interrupt: unexpected interrupt %d\n", irq);
#endif
return;
}
-------------------------------------------------------------------
So, at last, here are my question for the experts:
(A) Is the problem here simply that in 2.0.34 we are actually printing
something? Should I just comment out the print statement with #if
0 and everything will be OK? Or is this a symptom that something
more serious is wrong? (This is a bit like having a warning light
on in your car. Should you cover it up with a bit of black tape so
that it no longer annoys you? Or is there really a problem?)
(B) Clearly irq_action[irq]==0 for the irq's that are being reported.
According the /usr/include/asm/irq.h the number of allowed IRQs
NR_IRQS = 48. Does this mean that the interrupts need to be
registered?
So is the problem here that a software driver is not registering its
interrupt properly, or is this a case of a bit of hardware not
initially
correctly reporting its interupt? If someone could write a few
sentences
explaining the top-level view of how interrupts work, it would help
me
read the code.
Cheers,
Bruce Allen
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-06-15 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-15 4:00 device_interrupt: unexpected interrupt error messages Bruce Allen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox