"Tx hung" with cardbus-ethernet-card

Lennart Poettering lennart@poettering.de
Mon Dec 6 12:38:57 1999


This is a multi-part message in MIME format.
--------------C7CAA7097B1AC785372F6F49
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hiho!

I do not get my levelOne FPC-0101TX CardBus Ethernetcard (DS21143-Chip)
to work with Linux. I use Kernel 2.2.13, pcmcia-cs 3.1.5. I use it (or
better: try to use it) in an Acer TravelMate 513T. It has an 02Micro
6832-Cardbus-bridge built in.

The drivers install and recognize the card correctly. But wehn I try to
send data out, the kernel says "Tx hung, n vs. 0". No data is sent onto
the net. Interesting is, that Rx seems to work, when in ping my machine
from outside, ifconfig shows me an increasing number of dropped packtes
on rx. On tx only the errors increase.

The card is connected to a fast-ethernet-switch.

The card does its job well under win98, but i do not want to use it
there!

The IRQ-counter of /proc/interrupts shows me that now IRQs happen on the
card, the counter remains at zero, that seems for me to be very strange.
the card is configured to IRQ 11, windows uses irq 9...

I attached some output of "dmesg" (debug=4), "lspci -v", and "tulip-diag
-aa -ee -mm".

What can I do? I need this stuff working!

Thank you very much in advance!

Lennart

-- 
name { Lennart Poettering } mail { lennart@poettering.de }
icq# { 11060553 } www { http://www.poettering.de/lennart }
dynamic dns { poettering.ath.cx || poettering.dyndns.org }
                    munich - germany
--------------C7CAA7097B1AC785372F6F49
Content-Type: text/plain; charset=us-ascii;
 name="tulip-dmesg"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="tulip-dmesg"

782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: Transmit timeout using MII device.
eth0: MII status 782d, Link partner report 40a1.
eth0: Shutting down ethercard, status was f06980e7.
eth0: tulip_open() irq 11.
eth0:  Advertising 01e1 on PHY 0 (0).
eth0: Using media type MII, CSR12 is c6.
eth0: Using MII transceiver 0, status 782d.
eth0: Done tulip_open(), CSR0 f8a08000, CSR5 f0320000 CSR6 b20e2002.
eth0: MII status 782d, Link partner report 40a1.
eth0: Tx hung, 9 vs. 0.
eth0: Transmit timeout using MII device.
eth0: Shutting down ethercard, status was f03980c6.
eth0: tulip_open() irq 11.
eth0:  Advertising 01e1 on PHY 0 (0).
eth0: Using media type MII, CSR12 is c6.
eth0: Using MII transceiver 0, status 782d.
eth0: Done tulip_open(), CSR0 f8a08000, CSR5 f0320000 CSR6 b20e2002.
eth0: MII status 782d, Link partner report 40a1.
eth0: Tx hung, 9 vs. 0.
eth0: Transmit timeout using MII device.
eth0: Shutting down ethercard, status was f03980c6.
tulip_detach(eth0)
cs: cb_disable(bus 32)
cs: cb_release(bus 32)
cs: cb_free(bus 32)
unloading PCMCIA Card Services
Linux PCMCIA Card Services 3.1.5
  kernel build: 2.2.13 unknown
  options:  [pci] [cardbus] [apm]
Intel PCIC probe: 
  O2Micro OZ6832/OZ6833 PCI-to-CardBus at bus 0 slot 19, mem 0x68000000, 2 sockets
    host opts [0]: [a 44] [b ad] [c 20] [d 06] [mhpg 18] [fifo 00] [e 28] [no pci irq] [lat 32/176] [bus 32/34]
    host opts [1]: [a 44] [b a1] [c 20] [d 06] [mhpg 18] [fifo 00] [e 28] [no pci irq] [lat 32/176] [bus 35/37]
    ISA irqs (default) = 3,4,11 polling interval = 1000 ms
cs: IO port probe 0x1000-0x17ff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
cs: cb_alloc(bus 32): vendor 0x1011, device 0x0019
cs: cb_config(bus 32)
  fn 0 bar 1: io 0x200-0x27f
  fn 0 bar 2: mem 0xa00c0000-0xa00c03ff
  fn 0 rom: mem 0xa0080000-0xa00bffff
cs: cb_enable(bus 32)
  bridge io map 0 (flags 0x21): 0x200-0x27f
  bridge mem map 0 (flags 0x1): 0xa0080000-0xa00c0fff
tulip_attach(bus 32, function 0)
tulip.c:v0.91g 7/16/99 becker@cesdis.gsfc.nasa.gov
eth0: Digital DS21143 Tulip rev 65 at 0x200, 00:80:C8:42:D7:2C, IRQ 11.
eth0:  EEPROM default media type Autosense.
eth0:  MII interface PHY 0, setup/reset sequences 0/0 long, capabilities e0 78.
eth0:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
eth0:  Advertising 01e1 on PHY 0 (0).
eth0: Using media type MII, CSR12 is c6.
eth0:  MII transceiver #0 config 3000 status 7809 advertising 01e1.
eth0: tulip_open() irq 11.
eth0:  Advertising 01e1 on PHY 0 (0).
eth0: Using media type MII, CSR12 is c6.
eth0: Using MII transceiver 0, status 7809.
eth0: Done tulip_open(), CSR0 f8a08000, CSR5 f0320000 CSR6 b20e2002.
eth0: 21143 negotiation status 000000c6, MII.
eth0: MII status 7829, Link partner report 40a1.
eth0: Tx hung, 11 vs. 0.
eth0: Transmit timeout using MII device.

--------------C7CAA7097B1AC785372F6F49
Content-Type: text/plain; charset=us-ascii;
 name="tulip-lspci"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="tulip-lspci"

00:00.0 Host bridge: Acer Laboratories Inc.: Unknown device 1621 (rev 05)
	Flags: bus master, slow devsel, latency 0
	Memory at e0000000 (32-bit, prefetchable)

00:01.0 PCI bridge: Acer Laboratories Inc.: Unknown device 5247 (rev 01)
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000f000-00000fff
	Memory behind bridge: 80500000-80cfffff
	Prefetchable memory behind bridge: 80d00000-820fffff

00:06.0 Communication controller: Lucent Microelectronics: Unknown device 0449 (rev 01)
	Subsystem: Unknown device 1468:0440
	Flags: bus master, medium devsel, latency 0, IRQ 9
	Memory at 80100000 (32-bit, non-prefetchable)
	I/O ports at 7090
	I/O ports at 7400

00:07.0 ISA bridge: Acer Laboratories Inc. M1533 (rev 0a)
	Subsystem: Unknown device 1025:1002
	Flags: bus master, medium devsel, latency 0

00:08.0 Multimedia audio controller: ESS Technology: Unknown device 1969 (rev 02)
	Subsystem: Unknown device 1025:1002
	Flags: bus master, medium devsel, latency 32, IRQ 5
	I/O ports at 7800
	I/O ports at 7850
	I/O ports at 7870
	I/O ports at 7890
	I/O ports at 78a4

00:0f.0 IDE interface: Acer Laboratories Inc. M5229 (rev 20) (prog-if 8a)
	Flags: bus master, medium devsel, latency 32, IRQ 15
	I/O ports at 78c0

00:11.0 Bridge: Acer Laboratories Inc. M7101 (rev 09)
	Subsystem: Unknown device 1025:1002
	Flags: medium devsel

00:13.0 CardBus bridge: O2 Micro, Inc. 6832 (rev 34)
	Flags: bus master, stepping, slow devsel, latency 32, IRQ ?
	Bus: primary=00, secondary=20, subordinate=22, sec-latency=176
Memory window 0: a0080000-a00c0000
I/O window 0: 00000200-0000027f

00:13.1 CardBus bridge: O2 Micro, Inc. 6832 (rev 34)
	Flags: bus master, stepping, slow devsel, latency 32, IRQ ?
	Bus: primary=00, secondary=23, subordinate=25, sec-latency=176

00:14.0 USB Controller: Acer Laboratories Inc. M5237 (rev 03) (prog-if 10)
	Flags: bus master, medium devsel, latency 32, IRQ 10
	Memory at 82100000 (32-bit, non-prefetchable)

01:00.0 VGA compatible controller: Neomagic Corporation: Unknown device 0005 (rev 20)
	Subsystem: Unknown device 1025:1002
	Flags: bus master, medium devsel, latency 32, IRQ 9
	Memory at 81000000 (32-bit, prefetchable)
	Memory at 80800000 (32-bit, non-prefetchable)
	Memory at 80500000 (32-bit, non-prefetchable)

20:00.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 41)
	Subsystem: Unknown device 1186:1160
	Flags: bus master, medium devsel, latency 0, IRQ 11
	I/O ports at 0200
	Memory at a00c0000 (32-bit, non-prefetchable)


--------------C7CAA7097B1AC785372F6F49
Content-Type: text/plain; charset=us-ascii;
 name="TULIP-TD"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="TULIP-TD"

tulip-diag.c:v1.19 10/2/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Digital DS21143 Tulip adapter at 0x200.
Digital DS21143 Tulip chip registers at 0x200:
  f8a08000 ffffffff ffffffff 001f5810 001f5a10 f00001e7 b20e0000 f3fe0000
  e0000000 fffd83ff ffffffff 00000000 000000c6 ffff0000 fff80000 8ff10000
 Port selection is MII, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 128.
  The NWay status register is 000000c6.
EEPROM size is 8.
PCI Subsystem IDs, vendor 1186, device 1160.
CardBus Information Structure at offset 00005002.
Ethernet MAC Station Address 00:80:C8:42:D7:2C.
EEPROM transceiver/media description for the Digital DS21143 Tulip chip.
Leaf node at offset 30, default media type 0800 (Autosense).
 1 transceiver description blocks:
  Media MII, block type 3, length 13.
   MII interface PHY 0 (media type 11).
   21143 MII initialization sequence is 0 words:.
   21143 MII reset sequence is 0 words:.
    Media capabilities are 7800, advertising 01e1.
    Full-duplex map 5000, Threshold map 1800.
    MII interrupt on GPIO pin -1.
EEPROM contents:
  1186 1160 5002 0000 0000 0000 0000 0000
  00f5 0104 8000 42c8 2cd7 1e00 0000 0800
  8d01 0003 0000 7800 01e0 5000 1800 006e
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 0000
  0000 0000 0000 0000 0000 0000 0000 bff3
 ID block CRC 0xf5 (vs. 0xf5).
  Full contents CRC 0xbff3 (read as 0xbff3).
 MII PHY found at address 0, status 0x782d.
 MII PHY #0 transceiver registers:
   3000 782d 0040 6212 01e1 40a1 0003 0000
   0000 0000 0000 0000 0000 0000 0000 0000
   1000 0300 0000 0000 0000 014b 0200 0000
   003e 833e 0f00 ff00 002e 0000 20a0 000b.
  Internal autonegotiation state is 'Autonegotiation disabled'.

--------------C7CAA7097B1AC785372F6F49--