Subject: Re: kern/13244: ThunderLAN (tl) fails on DeskPro 4000M 5233MMX
To: Mine Sakiyama <msakiyam@nortelnetworks.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 02/12/2002 17:27:09
On Mon, Feb 11, 2002 at 02:46:18PM -0800, Mine Sakiyama wrote:
> Hello.
> 
> I have Compaq Desktop pro 4000 which has NetBSD 1.5.2 installed (connected
> to 10BaseT network)  and I have the exact same proble as described in the
> below string of mail. And I  have no idea hot to apply this fix. Could
> someone let me know how to do it. 
> 
> # uname -a
> NetBSD  1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001
> he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
> #
> 
> Thank you very much. 
> 
> Mine Sakiyama
> Systems Administrator
> Computer Sciences Corporation
> NortelNetworks
> mailto:msakiyam@nortelnetworks.com
> 
> 
> 
> 
> 
> Subject: kern/13244: ThunderLAN (tl) fails on DeskPro 4000M 5233MMX
> To: None <gnats-bugs@gnats.netbsd.org>
> From: Andrew Gillham <gillham@vaultron.com>
> List: netbsd-bugs
> Date: 06/18/2001 22:59:23 
> >Number:         13244
> >Category:       kern
> >Synopsis:       ThunderLAN (tl) fails on DeskPro 4000M 5233MMX
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    kern-bug-people
> >State:          open
> >Class:          sw-bug
> >Submitter-Id:   net
> >Arrival-Date:   Mon Jun 18 23:07:00 PDT 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     Andrew Gillham
> >Release:        June 17, 2001
> >Organization:
> 	None
> >Environment:
> System: NetBSD flash.vaultron.com 1.5W NetBSD 1.5W (FLASH) #0: Fri Jun 8
> 17:57:45 PDT 2001
> root@flash.vaultron.com:/usr/src/sys/arch/i386/compile/FLASH i386
> 
> 
> >Description:
> 	The 'tl' driver recognizes the onboard ThunderLAN on the Compaq
> 	DeskPro 4000M 5233MMX, but the 'tlphy' incorrectly claims to support
> 	10Base-T, when in fact it should be handled by the 'lxtphy' driver.
> 
> >How-To-Repeat:
> Here is the dmesg for 'tl0' from this system:
> tl0 at pci0 dev 16 function 0
> tl0: Compaq Deskpro 4000 5233MMX
> tl0: Ethernet address 00:80:5f:9d:20:b3
> tl0: interrupting at irq 11
> lxtphy0 at tl0 phy 1: LXT970 10/100 media interface, rev. 0
> lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> tlphy0 at tl0 phy 31: ThunderLAN 10baseT media interface, rev. 6
> tlphy0: 10base5, 10baseT, 10baseT-FDX, auto
> 
> Notice how both the lxtphy0 and tlphy0 drivers claim to support 10baseT?
> Well the UTP port is only wired to the lxtphy0, so it breaks if you try
> to use 10Mbit/s mode.  This works ok at 100BaseTX though.
> 
> >Fix:
> With this simple patch the tlphy0 correctly claims to only support 10base5,
> and the lxtphy0 is able to do autonegotiation and support 10base-T also.
> It is believed that all Deskpro 4000 systems (4000 and 4000M) are 10/100
> capable and need this patch.  The man page for 'tl' claims the 4000 is
> untested so this should not break any known working systems.
> 
> dmesg with patch:
> tl0 at pci0 dev 16 function 0
> tl0: Compaq Deskpro 4000 5233MMX
> tl0: Ethernet address 00:80:5f:9d:20:b3
> tl0: interrupting at irq 11
> lxtphy0 at tl0 phy 1: LXT970 10/100 media interface, rev. 0
> lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> tlphy0 at tl0 phy 31: ThunderLAN 10baseT media interface, rev. 6
> tlphy0: 10base5
> 
> Patch:
> It might also be appropriate to change the "Deskpro 4000" listed to
> "Deskpro 4000M" or perhaps "Deskpro 4000 or 4000M", etc.

This is fixed in -current and on the 1.5 branch.
If you can't switch to the 1.5.3_ALPHA snapshot, you can use:
ifconfig tl0 media 10baseT instance 1
(you can also use this in sysinst's "media options" form).

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--