linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: tg3 - irq #: nobody cared!
@ 2003-05-07 11:57 Chuck Ebbert
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Ebbert @ 2003-05-07 11:57 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, johnstul

Andrew Morton wrote:

>> 
>> Definitely not the right fix.  If the hardware status struct
>> indicates no event is pending, then we return 0 since we
>> didn't "handle" the interrupt.
>
> This is about the fifth report of unhandled interrupts.  Against the fifth
> driver which looks to be correct.
> 
> So I'd be suspecting the scenario which Alan outlined: the IRQ handler looped
> around, scooped up the interrupt source before the APIC delivered the IRQ.
>
> I'm working on the actual detection code - it tries to filter out the false
> positives.

  On thinking about it further, I don't think you will ever be able to write
such code -- whether "interrupt received but no pending work" is an error
or not is a private matter between the driver and its device.  All you can
really ask the driver for is "was that interrupt generated by your device?"



^ permalink raw reply	[flat|nested] 5+ messages in thread
* tg3 - irq #: nobody cared!
@ 2003-05-06 22:03 john stultz
  2003-05-07  4:58 ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: john stultz @ 2003-05-06 22:03 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton

All,
	Not sure if this is the proper fix, but it stops the kernel from
complaining. I saw Andrew suggest something similar for a sound driver.

thanks
-john


--- 1.68/drivers/net/tg3.c	Wed Apr 23 20:02:11 2003
+++ edited/drivers/net/tg3.c	Mon May  5 11:39:08 2003
@@ -2191,7 +2191,7 @@
 
 	spin_unlock_irqrestore(&tp->lock, flags);
 
-	return IRQ_RETVAL(handled);
+	return IRQ_HANDLED;
 }
 
 static void tg3_init_rings(struct tg3 *);




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

end of thread, other threads:[~2003-05-07 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-07 11:57 tg3 - irq #: nobody cared! Chuck Ebbert
  -- strict thread matches above, loose matches on Subject: below --
2003-05-06 22:03 john stultz
2003-05-07  4:58 ` David S. Miller
2003-05-07  5:08   ` Andrew Morton
2003-05-07  4:03     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).