Subject: Miata GL: DEC 21143 ethernet doesn't work (tlp0/de0)
To: None <port-alpha@netbsd.org>
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
List: port-alpha
Date: 07/28/2001 14:46:17
G'day,

I'm having problems configuring a Miata GL 500au. Running
NetBSD-1.5.1 userland with a NetBSD-current kernel the following
problems are encountered.

	1.) alpha_shared_intr_establish warnings (dmesg output) -
	    [...]
	    sio_intr_setup: 0 level-triggered
	    sio_intr_setup: 1 level-triggered
	    sio_intr_setup: 8 level-triggered 
	    sio0 at pci0 dev 7 function 0: Contaq Microsystems 82C693
	    PCI-ISA Bridge (rev. 0x00)
	    isa0 at sio0
	    [...]
 	    alpha_shared_intr_establish: isa irq 15: warning: using
	    edge-triggered on level-triggered
	    alpha_shared_intr_establish: isa irq 4: warning: using
	    edge-triggered on level-triggered
	    alpha_shared_intr_establish: isa irq 3: warning: using
	    edge-triggered on level-triggered
	    alpha_shared_intr_establish: isa irq 7: warning: using
	    edge-triggered on level-triggered
	    sb0 at isa0 port 0x220-0x237 irq 5 drq 1
	    alpha_shared_intr_establish: isa irq 5:
	    warning: using edge-triggered on level-triggered
	    alpha_shared_intr_establish: isa irq 6: warning: using
	    edge-triggered on level-triggered

	2.) errors on tlp0 device
	    when transporting data via the tlp0 interface 
	    a serious of crc and dribbling bit errors occur - 

	    tlp0: receive error: CRC error
	    tlp0: receive error: dribbling bit
	    tlp0: receive error: CRC error
	    tlp0: receive error: dribbling bit

	    Traffic over this interface is possible although limited
	    to about 8kb/s. The errors appear to happen whenever the
	    harddisk is accessed during data transfer via tlp - e.g.
	    copying files over the tlp device.

No interrupt warnings are reported with a NetBSD-1.5.1 GENERIC kernel.
Here, the 21143 controller is attached to the de0 device. However, no
traffic is possible over this interface.

A modified GENERIC NetBSD-1.5.1 kernel with the tlp device and option
TLP_MATCH_21142 enabled and de0 disabled reports the following:

pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
tlp0 at pci0 dev 3 function 0: DECchip 21143 Ethernet, pass 3.0
tlp0: interrupting at dec 550 irq 0
tlp0: DEC , Ethernet address 00:00:f8:76:56:cd
OUI 0x080017 model 0x0000 rev 1 at tlp0 phy 5 not configured
tlp0: unable to configure MII
tlp0: 10baseT, 10baseT-FDX, 10base2, 10base5

Note the line with OUI in it. Needless to say, it doesn't work.
It reports "Jul 29 14:07:30 wolf /netbsd: tlp0: transmit timeout"

The interrupt trigger mode problems seem to be confined to
NetBSD-current, as it doesn't occur when using NetBSD-1.5.1. 

Was anyone successful in getting the 21143 ethernet controller
working on a Miata GL using either NetBSD-1.5.1 or NetBSD-current. If
so, what was needed to succeed? I've no clue on how to proceed from
here.

The following boot messages and the current config-file can be found on
ftp://ftp.netbsd.org/pub/NetBSD/misc/wulf:

	dmesg.boot-netbsd-1.5.1-generic    NetBSD-1.5.1 with de0
	dmesg.boot-netbsd-1.5.1-tlp        NetBSD-1.5.1 with tlp0
	dmesg.boot-netbsd-current-generic  NetBSD-current with de0
	dmesg.boot-netbsd-current-tlp      NetBSD-current with tlp0
	WOLF                               desired configuration

Any comments welcomed...

cheerio Berndt
-- 
Name    : Berndt Josef Wulf            | +++ With BSD on Packet Radio +++
E-Mail  : wulf@ping.net.au             |    tfkiss, tnt, dpbox, wampes
ICQ     : 18196098                     |  VK5ABN, Nairne, South Australia 
URL     : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.5    | BBS  : vk5abn.#lmr.#sa.aus.oc