eth0: Tx hung, 7 vs. 0.

Richard Dynes rdynes@varcom.com
Thu Sep 23 15:18:49 1999


Hello,

Sorry for taking so long- I went out to lunch....

Donald Becker wrote:
> 
> On Thu, 23 Sep 1999, Richard Dynes wrote:
> 
> > I've just jumped from Linux 2.3.11 to Linux 2.3.18ac8, to try out the
> > new tulip.c v0.91m.
> 
> You can get the same code for earlier kernels at
>   http://cesdis.gsfc.nasa.gov/linux/drivers/kern-2.3/index.html
>   ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/kern-2.3/
> 

After I send this, I'll get one for 2.3.11, and give it a spin.

> > Ziatech 5521 with two on-board Tulip 21143's, Tx interface.  eth0 and
> > eth1
> 
> A multiport board?  Oh, I looked it up on the web.
> What was the detection message?
> Specifically, did the driver find an EEPROM on both interfaces?
> 

This is the output from insmod for eth0, eth1.  Note no eth6 or eth7
(I was wrong in my original email, as I note below):

from /var/log/messages:

Sep 23 10:59:39 probe2 kernel: tulip.c:v0.91m 9/15/99
becker@cesdis.gsfc.nasa.go
v
Sep 23 10:59:39 probe2 kernel: eth0: Digital DS21143 Tulip rev 65 at
0xd0041000,
 00:80:50:01:1E:A9, IRQ 10.
Sep 23 10:59:39 probe2 kernel: eth0:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth0:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth0:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth0:  Index #2 - Media 10base2 (#1)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth0:  Index #3 - Media AUI (#2)
described by a 2
1142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth0:  Index #4 - Media MII (#11)
described by a
21142 MII PHY (3) block.
Sep 23 10:59:39 probe2 kernel: eth0:  MII transceiver #0 config 1000
status 782d
 advertising 0061.
Sep 23 10:59:39 probe2 kernel: eth1: Digital DS21143 Tulip rev 65 at
0xd0043400,
 00:80:50:01:1E:AA, IRQ 5.
Sep 23 10:59:39 probe2 kernel: eth1:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth1:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth1:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth1:  Index #2 - Media 10base2 (#1)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth1:  Index #3 - Media AUI (#2)
described by a 2
1142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth1:  Index #4 - Media MII (#11)
described by a
21142 MII PHY (3) block.
Sep 23 10:59:39 probe2 kernel: eth1:  MII transceiver #0 config 1000
status 782d
 advertising 0061.
Sep 23 10:59:39 probe2 kernel: eth2: Digital DS21143 Tulip rev 65 at
0xd0045000,
 00:C0:95:E0:7F:2C, IRQ 5.
Sep 23 10:59:39 probe2 kernel: eth2:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth2:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth2:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth2:  Index #2 - Media 100baseTx (#3)
described
by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth2:  Index #3 - Media 100baseTx-FD
(#5) describ
ed by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth3: Digital DS21143 Tulip rev 65 at
0xd0047400,
 00:C0:95:E0:7F:2D, IRQ 9.
Sep 23 10:59:39 probe2 kernel: eth3:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth3:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth3:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth3:  Index #2 - Media 100baseTx (#3)
described
by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth3:  Index #3 - Media 100baseTx-FD
(#5) describ
ed by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth4: Digital DS21143 Tulip rev 65 at
0xd0049800,
 00:C0:95:E0:7F:2E, IRQ 11.
Sep 23 10:59:39 probe2 kernel: eth4:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth4:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth4:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth4:  Index #2 - Media 100baseTx (#3)
described
by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth4:  Index #3 - Media 100baseTx-FD
(#5) describ
ed by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth5: Digital DS21143 Tulip rev 65 at
0xd004bc00,
 00:C0:95:E0:7F:2F, IRQ 10.
Sep 23 10:59:39 probe2 kernel: eth5:  EEPROM default media type
Autosense.
Sep 23 10:59:39 probe2 kernel: eth5:  Index #0 - Media 10baseT (#0)
described by
 a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth5:  Index #1 - Media 10baseT-FD (#4)
described
 by a 21142 Serial PHY (2) block.
Sep 23 10:59:39 probe2 kernel: eth5:  Index #2 - Media 100baseTx (#3)
described
by a 21143 SYM PHY (4) block.
Sep 23 10:59:39 probe2 kernel: eth5:  Index #3 - Media 100baseTx-FD
(#5) describ
ed by a 21143 SYM PHY (4) block.
Sep 23 11:00:13 probe2 kernel: eth0: Tx hung, 7 vs. 0.
Sep 23 11:00:46 probe2 kernel: eth1: Setting full-duplex based on
MII#0 link par
tner capability of 01e1.
Sep 23 11:04:07 probe2 kernel: eth1: Promiscuous mode enabled.
Sep 23 11:04:07 probe2 kernel: device eth1 entered promiscuous mode
Sep 23 11:04:26 probe2 kernel: eth1: Promiscuous mode enabled.
Sep 23 11:04:26 probe2 kernel: device eth1 left promiscuous mode
Sep 23 11:15:46 probe2 kernel: eth1: Setting half-duplex based on
MII#0 link par
tner capability of 0021.
<snip a bunch of rlogin sessions being closed out once I got eth1 
	running on my local network.... >
Sep 23 11:52:45 probe2 kernel: eth0: Tx hung, 5 vs. 0.
Sep 23 11:53:33 probe2 kernel: eth0: Promiscuous mode enabled.
Sep 23 11:53:33 probe2 kernel: device eth0 entered promiscuous mode
Sep 23 11:53:45 probe2 kernel: eth0: Tx hung, 7 vs. 0.
Sep 23 11:54:45 probe2 kernel: eth0: Tx hung, 7 vs. 0.
Sep 23 11:56:45 probe2 last message repeated 2 times
....

Note that eth6 and eth7 aren't detected (!)

> > Znyx 414 or something: quad Tulip 21143, Tx (copper) interface. eth2 -
> > eth5
> > Osicom dual Tulip (not sure what kind) 100Base Fx. eth6 and eth7
> 
> SYM or MII transceiver?
> 

I'll find out.

> > The tulip driver _would_ recognize all 8 tulip chips, and assign
> > logical names to them, eg eth0 - eth7.

Now I'm confusing myself: I guess that lspci saw the chips, so I
assumed tulip would as well...

I can't configure the interfaces:

[root@probe2 log]# ifconfig eth6 10.11.10.1
SIOCSIFADDR: No such device
eth6: unknown interface: No such device


> > I cannot use eth0- I get the following repeating error:
> >
> > > Sep 23 11:54:45 probe2 kernel: eth0: Tx hung, 7 vs. 0.
> 
> > tulip-diag.c:v1.14 9/19/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
> > Index #1: Found a Digital DS21143 Tulip adapter at 0x1080.
> ...
> >  Interrupt sources are pending!  CSR5 is f0678006.
> 
> Ouch!  The interrupt line isn't working.
> 
> What is the detection message?

Is the output from the insmod the detection message?  If so it's all
above.

If not, give me some guidance on what to do.

> What interrupts are assigned according to /proc/pci?
> 

cat /proc/pci
PCI devices found:
  Bus  0, device   0, function  0:
    Host bridge: Intel 440BX - 82443BX Host (rev 2).
      Master Capable.  Latency=64.
      Prefetchable 32 bit memory at 0xf8000000 [0xfbffffff].
  Bus  0, device   1, function  0:
    PCI bridge: Intel 440BX - 82443BX AGP (rev 2).
      Master Capable.  Latency=128.  Min Gnt=140.
  Bus  0, device   5, function  0:
    Ethernet controller: DEC DC21142 (rev 65).
      IRQ 10.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x1080 [0x10ff].
      Non-prefetchable 32 bit memory at 0xf0000000 [0xf00003ff].
  Bus  0, device   6, function  0:
    Ethernet controller: DEC DC21142 (#2) (rev 65).
      IRQ 5.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x1400 [0x147f].
      Non-prefetchable 32 bit memory at 0xf0000400 [0xf00007ff].
  Bus  3, device   4, function  0:
    Ethernet controller: DEC DC21142 (#3) (rev 65).
      IRQ 5.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x3000 [0x307f].
      Non-prefetchable 32 bit memory at 0xf4100000 [0xf41003ff].
  Bus  3, device   5, function  0:
    Ethernet controller: DEC DC21142 (#4) (rev 65).
      IRQ 9.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x3080 [0x30ff].
      Non-prefetchable 32 bit memory at 0xf4100400 [0xf41007ff].
  Bus  3, device   6, function  0:
    Ethernet controller: DEC DC21142 (#5) (rev 65).
      IRQ 11.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x3400 [0x347f].
      Non-prefetchable 32 bit memory at 0xf4100800 [0xf4100bff].
  Bus  3, device   7, function  0:
    Ethernet controller: DEC DC21142 (#6) (rev 65).
      IRQ 10.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x3480 [0x34ff].
      Non-prefetchable 32 bit memory at 0xf4100c00 [0xf4100fff].
  Bus  4, device   4, function  0:
    Ethernet controller: DEC DC21142 (#7) (rev 48).
      IRQ 9.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x4000 [0x407f].
      Non-prefetchable 32 bit memory at 0xf4200000 [0xf420007f].
  Bus  4, device   7, function  0:
    Ethernet controller: DEC DC21142 (#8) (rev 48).
      IRQ 5.
      Master Capable.  Latency=165.  Min Gnt=20.Max Lat=40.
      I/O at 0x4080 [0x40ff].
      Non-prefetchable 32 bit memory at 0xf4200400 [0xf420047f].
  Bus  0, device   7, function  0:
    ISA bridge: Intel 82371AB PIIX4 ISA (rev 2).
  Bus  0, device   7, function  1:
    IDE interface: Intel 82371AB PIIX4 IDE (rev 1).
      Master Capable.  Latency=64.
      I/O at 0x1050 [0x105f].
  Bus  0, device   7, function  2:
    USB Controller: Intel 82371AB PIIX4 USB (rev 1).
      IRQ 9.
      Master Capable.  Latency=64.
      I/O at 0x1060 [0x107f].
  Bus  0, device   7, function  3:
    Bridge: Intel 82371AB PIIX4 ACPI (rev 2).
  Bus  0, device   8, function  0:
    PCI bridge: DEC DC21154 (rev 2).
      Master Capable.  Latency=64.  Min Gnt=4.
  Bus  0, device  12, function  0:
    PCI bridge: DEC DC21154 (#2) (rev 2).
      Master Capable.  Latency=64.  Min Gnt=4.
  Bus  1, device   0, function  0:
    VGA compatible controller: Cirrus Logic Laguna 3DA (rev 3).
      IRQ 11.
      Master Capable.  Latency=128.  Min Gnt=16.Max Lat=16.
      Non-prefetchable 32 bit memory at 0xf2000000 [0xf3ffffff].
      Non-prefetchable 32 bit memory at 0xf0100000 [0xf010ffff].
  Bus  2, device   9, function  0:
    SCSI storage controller: Adaptec AIC-7880U (rev 1).
      IRQ 10.
      Master Capable.  Latency=64.  Min Gnt=8.Max Lat=8.
      I/O at 0x2000 [0x20ff].
      Non-prefetchable 32 bit memory at 0xf4000000 [0xf4000fff].
  Bus  2, device  10, function  0:
    PCI bridge: DEC DC21152 (rev 3).
      Master Capable.  Latency=64.  Min Gnt=4.
  Bus  2, device  11, function  0:
    PCI bridge: DEC DC21152 (#2) (rev 2).
      Master Capable.  Latency=64.  Min Gnt=4.

warning: page-size limit reached!

<end of cat>
=========================

I'll go and try the drivers you referred to at the top of the message
on 2.3.11...

-Richard

-- 
    Richard Dynes
    rdynes@varcom.com