From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,32c291db5b596fca,start X-Google-Attributes: gid111c93,public From: Bruce Allen Subject: device_interrupt: unexpected interrupt error messages Date: 1998/06/15 Message-ID: <3585369C.C8C75E0B@dirac.phys.uwm.edu>#1/1 X-Deja-AN: 362841957 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: University of Wisconsin - Milwaukee, Physics Department Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha 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 Message-ID peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) Message-ID <6lmfmp$dt9$1@tesla.EECS.Berkeley.EDU Bruce Allen 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