Re: 2.1.20/ne2000: Tx request while isr active

Paul Gortmaker (paul@rasty.anu.edu.au)
Mon, 31 Mar 1997 11:56:59 +1000 (EST)


- From "Snow Cat" at Mar 30, 97 05:05:47 pm

> With Linux 2.1.30, I have a weird problem with my NE2000 clone
> (Linksys EtherPCI LAN Card II). Once I start to use the card heavily,
> the screen is filled with the following message:
>
> eth0: Tx request while isr active
>
> The machine locks up while printing this message in an infinite
> loop. Here is the card ID that I get during boot:

[...]

> My attempts to patch drivers/net/8390 were not very successful so far.
> Could anyone explain what this message means and how I might attempt to
> work around the problem?

It is not an 8390 problem, but rather a kernel problem. Apply this
patch and it should go away.

Paul.
---------------------------------------------

--- arch/i386/kernel/irq.c.orig Fri Mar 28 15:04:11 1997
+++ arch/i386/kernel/irq.c Fri Mar 28 15:18:43 1997
@@ -485,8 +485,8 @@

#else

-#define irq_enter(cpu, irq) do { } while (0)
-#define irq_exit(cpu, irq) do { } while (0)
+#define irq_enter(cpu, irq) atomic_inc(&intr_count)
+#define irq_exit(cpu, irq) atomic_dec(&intr_count)

#endif