Subject: kern/10257: Multiple phys attach to tl(4) (Compaq 5233MMX)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <groo@old-ones.com>
List: netbsd-bugs
Date: 06/01/2000 12:49:12
>Number:         10257
>Category:       kern
>Synopsis:       Multiple phys attach to tl(4) (Compaq 5233MMX)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 01 12:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bill Squier
>Release:        1.4Y 2000/05/10 snapshot
>Organization:
>Environment:
	
System: NetBSD hastur 1.4Y NetBSD 1.4Y (HASTUR) #0: Wed May 10 01:27:03 EDT 2000 groo@hastur:/u2/devel/current/src/sys/arch/i386/compile/SAMOA i386


>Description:

Compaq Deskpro with a tl(4) on-board, 10baseT and 10base5 connectors.

...
tl0 at pci0 dev 16 function 0
tl0: Compaq Deskpro 4000 5233MMX
tl0: Ethernet address 00:08:c7:10:ec:27
tl0: interrupting at irq 11
ukphy0 at tl0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x1e0400, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlphy0 at tl0 phy 31: ThunderLAN 10baseT media interface, rev. 6
tlphy0: 10base5, 10baseT, 10baseT-FDX, auto
ifmedia_match: multiple match for 0x20/0xfffffff
...

lxtphy attaches where ukphy does now.  At Bernd Ernesti's suggestion
I removed lxtphy from the config.  Symptoms are the same with either
phy.

% ifconfig tl0 inet 192.168.234.134 netmask 0xffffff00 media auto
% ifconfig tl0
tl0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet autoselect instance 1 (10baseT)
        status: no carrier
        inet 192.168.234.134 netmask 0xffffff00 broadcast 192.168.234.255
        inet6 fe80::208:c7ff:fe10:ec27%tl0 prefixlen 64 scopeid 0x2

% ifconfig tl0 inet 192.168.234.134 netmask 0xffffff00 media 100baseTX
% ifconfig tl0
tl0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 100baseTX
        status: active
        inet 192.168.234.134 netmask 0xffffff00 broadcast 192.168.234.255
        inet6 fe80::208:c7ff:fe10:ec27%tl0 prefixlen 64 scopeid 0x2

% tcpdump -i tl0
...sees packets with the second configuration (100baseTX).

Specifying "instance 0" on the ifconfig with "media auto" produces
identical output to the first configuration.

....

% ifconfig -m tl0
tl0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        media: Ethernet 100baseTX
        status: active
        supported Ethernet media:
                media none
                media 10baseT
                media 10baseT mediaopt full-duplex
                media 100baseTX
                media 100baseTX mediaopt full-duplex
                media autoselect
                media 10base5 instance 1
                media none instance 1
                media 10baseT instance 1
                media 10baseT mediaopt full-duplex instance 1
                media autoselect instance 1
        inet 192.168.234.134 netmask 0xffffff00 broadcast 192.168.234.255
        inet6 fe80::208:c7ff:fe10:ec27%tl0 prefixlen 64 scopeid 0x2

	
>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: