Subject: kern/13244: ThunderLAN (tl) fails on DeskPro 4000M 5233MMX
To: 'port-i386@netbsd.org' <port-i386@netbsd.org>
From: Mine Sakiyama <msakiyam@nortelnetworks.com>
List: port-i386
Date: 02/11/2002 14:46:18
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1B34D.EB8DD880
Content-Type: text/plain;
	charset="iso-8859-1"

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.

Index: if_tl.c
===================================================================
RCS file: /u0/netbsd/anoncvs/main/syssrc/sys/dev/pci/if_tl.c,v
retrieving revision 1.39
diff -u -r1.39 if_tl.c
--- if_tl.c	2000/12/28 22:59:13	1.39
+++ if_tl.c	2001/06/19 05:15:52
@@ -208,7 +208,7 @@
 	  "Compaq ProLiant Integrated Netelligent 10/100 TX" },
 	{ PCI_PRODUCT_COMPAQ_DPNet100TX,
TLPHY_MEDIA_10_5|TLPHY_MEDIA_NO_10_T,
 	  "Compaq Dual Port Netelligent 10/100 TX" },
-	{ PCI_PRODUCT_COMPAQ_DP4000, TLPHY_MEDIA_10_5,
+	{ PCI_PRODUCT_COMPAQ_DP4000, TLPHY_MEDIA_10_5|TLPHY_MEDIA_NO_10_T,
 	  "Compaq Deskpro 4000 5233MMX" },
 	{ PCI_PRODUCT_COMPAQ_NF3P_BNC, TLPHY_MEDIA_10_2,
 	  "Compaq NetFlex 3/P w/ BNC" },

Documentation patch:

--- tl.4.orig	Mon Jun 18 22:54:01 2001
+++ tl.4	Mon Jun 18 22:58:05 2001
@@ -52,7 +52,8 @@
 in baseboard and PCI variants (10bT-only variant untested).
 .It Compaq NetFlex 3/P
 in baseboard variant only (the PCI variant doesn't use the same chip !).
-.It Baseboard Compaq Deskpro 4000 5233MMX Ethernet (untested).
+.It Baseboard Compaq Deskpro 4000 5233MMX Ethernet
+(This has been tested on the Deskpro 4000M only).
 .It TI TravelMate 5000 series laptop docking station's Ethernet board.
 .El
 .Sh MEDIA SELECTION
>Release-Note:
>Audit-Trail:
>Unformatted:


------_=_NextPart_001_01C1B34D.EB8DD880
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>kern/13244: ThunderLAN (tl) fails on DeskPro 4000M =
5233MMX</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hello.</FONT>
</P>

<P><FONT SIZE=3D2>I have Compaq Desktop pro 4000 which has NetBSD 1.5.2 =
installed (connected to 10BaseT network)&nbsp; and I have the exact =
same proble as described in the below string of mail. And I&nbsp; have =
no idea hot to apply this fix. Could someone let me know how to do it. =
</FONT></P>

<P><FONT SIZE=3D2># uname -a</FONT>
<BR><FONT SIZE=3D2>NetBSD&nbsp; 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat =
Aug 18 23:37:05 CEST 2001&nbsp;&nbsp;&nbsp;&nbsp; =
he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC =
i386</FONT></P>

<P><FONT SIZE=3D2>#</FONT>
</P>

<P><FONT SIZE=3D2>Thank you very much. </FONT>
</P>

<P><FONT SIZE=3D2>Mine Sakiyama</FONT>
<BR><FONT SIZE=3D2>Systems Administrator</FONT>
<BR><FONT SIZE=3D2>Computer Sciences Corporation</FONT>
<BR><FONT SIZE=3D2>NortelNetworks</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"mailto:msakiyam@nortelnetworks.com">mailto:msakiyam@nortelnetwor=
ks.com</A></FONT>
</P>
<BR>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>Subject: kern/13244: ThunderLAN (tl) fails on DeskPro =
4000M 5233MMX</FONT>
<BR><FONT SIZE=3D2>To: None &lt;gnats-bugs@gnats.netbsd.org&gt;</FONT>
<BR><FONT SIZE=3D2>From: Andrew Gillham =
&lt;gillham@vaultron.com&gt;</FONT>
<BR><FONT SIZE=3D2>List: netbsd-bugs</FONT>
<BR><FONT SIZE=3D2>Date: 06/18/2001 22:59:23 </FONT>
<BR><FONT =
SIZE=3D2>&gt;Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
13244</FONT>
<BR><FONT SIZE=3D2>&gt;Category:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
kern</FONT>
<BR><FONT SIZE=3D2>&gt;Synopsis:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ThunderLAN (tl) fails on DeskPro 4000M 5233MMX</FONT>
<BR><FONT SIZE=3D2>&gt;Confidential:&nbsp;&nbsp; no</FONT>
<BR><FONT SIZE=3D2>&gt;Severity:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
serious</FONT>
<BR><FONT SIZE=3D2>&gt;Priority:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
medium</FONT>
<BR><FONT SIZE=3D2>&gt;Responsible:&nbsp;&nbsp;&nbsp; =
kern-bug-people</FONT>
<BR><FONT =
SIZE=3D2>&gt;State:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; open</FONT>
<BR><FONT =
SIZE=3D2>&gt;Class:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; sw-bug</FONT>
<BR><FONT SIZE=3D2>&gt;Submitter-Id:&nbsp;&nbsp; net</FONT>
<BR><FONT SIZE=3D2>&gt;Arrival-Date:&nbsp;&nbsp; Mon Jun 18 23:07:00 =
PDT 2001</FONT>
<BR><FONT SIZE=3D2>&gt;Closed-Date:</FONT>
<BR><FONT SIZE=3D2>&gt;Last-Modified:</FONT>
<BR><FONT SIZE=3D2>&gt;Originator:&nbsp;&nbsp;&nbsp;&nbsp; Andrew =
Gillham</FONT>
<BR><FONT =
SIZE=3D2>&gt;Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; June =
17, 2001</FONT>
<BR><FONT SIZE=3D2>&gt;Organization:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>None</FONT>
<BR><FONT SIZE=3D2>&gt;Environment:</FONT>
<BR><FONT SIZE=3D2>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</FONT></P>
<BR>

<P><FONT SIZE=3D2>&gt;Description:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>The 'tl' =
driver recognizes the onboard ThunderLAN on the Compaq</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>DeskPro =
4000M 5233MMX, but the 'tlphy' incorrectly claims to support</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>10Base-T, =
when in fact it should be handled by the 'lxtphy' driver.</FONT>
</P>

<P><FONT SIZE=3D2>&gt;How-To-Repeat:</FONT>
<BR><FONT SIZE=3D2>Here is the dmesg for 'tl0' from this system:</FONT>
<BR><FONT SIZE=3D2>tl0 at pci0 dev 16 function 0</FONT>
<BR><FONT SIZE=3D2>tl0: Compaq Deskpro 4000 5233MMX</FONT>
<BR><FONT SIZE=3D2>tl0: Ethernet address 00:80:5f:9d:20:b3</FONT>
<BR><FONT SIZE=3D2>tl0: interrupting at irq 11</FONT>
<BR><FONT SIZE=3D2>lxtphy0 at tl0 phy 1: LXT970 10/100 media interface, =
rev. 0</FONT>
<BR><FONT SIZE=3D2>lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, =
100baseTX-FDX, auto</FONT>
<BR><FONT SIZE=3D2>tlphy0 at tl0 phy 31: ThunderLAN 10baseT media =
interface, rev. 6</FONT>
<BR><FONT SIZE=3D2>tlphy0: 10base5, 10baseT, 10baseT-FDX, auto</FONT>
</P>

<P><FONT SIZE=3D2>Notice how both the lxtphy0 and tlphy0 drivers claim =
to support 10baseT?</FONT>
<BR><FONT SIZE=3D2>Well the UTP port is only wired to the lxtphy0, so =
it breaks if you try</FONT>
<BR><FONT SIZE=3D2>to use 10Mbit/s mode.&nbsp; This works ok at =
100BaseTX though.</FONT>
</P>

<P><FONT SIZE=3D2>&gt;Fix:</FONT>
<BR><FONT SIZE=3D2>With this simple patch the tlphy0 correctly claims =
to only support 10base5,</FONT>
<BR><FONT SIZE=3D2>and the lxtphy0 is able to do autonegotiation and =
support 10base-T also.</FONT>
<BR><FONT SIZE=3D2>It is believed that all Deskpro 4000 systems (4000 =
and 4000M) are 10/100</FONT>
<BR><FONT SIZE=3D2>capable and need this patch.&nbsp; The man page for =
'tl' claims the 4000 is</FONT>
<BR><FONT SIZE=3D2>untested so this should not break any known working =
systems.</FONT>
</P>

<P><FONT SIZE=3D2>dmesg with patch:</FONT>
<BR><FONT SIZE=3D2>tl0 at pci0 dev 16 function 0</FONT>
<BR><FONT SIZE=3D2>tl0: Compaq Deskpro 4000 5233MMX</FONT>
<BR><FONT SIZE=3D2>tl0: Ethernet address 00:80:5f:9d:20:b3</FONT>
<BR><FONT SIZE=3D2>tl0: interrupting at irq 11</FONT>
<BR><FONT SIZE=3D2>lxtphy0 at tl0 phy 1: LXT970 10/100 media interface, =
rev. 0</FONT>
<BR><FONT SIZE=3D2>lxtphy0: 10baseT, 10baseT-FDX, 100baseTX, =
100baseTX-FDX, auto</FONT>
<BR><FONT SIZE=3D2>tlphy0 at tl0 phy 31: ThunderLAN 10baseT media =
interface, rev. 6</FONT>
<BR><FONT SIZE=3D2>tlphy0: 10base5</FONT>
</P>

<P><FONT SIZE=3D2>Patch:</FONT>
<BR><FONT SIZE=3D2>It might also be appropriate to change the =
&quot;Deskpro 4000&quot; listed to</FONT>
<BR><FONT SIZE=3D2>&quot;Deskpro 4000M&quot; or perhaps &quot;Deskpro =
4000 or 4000M&quot;, etc.</FONT>
</P>

<P><FONT SIZE=3D2>Index: if_tl.c</FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT=
>
<BR><FONT SIZE=3D2>RCS file: =
/u0/netbsd/anoncvs/main/syssrc/sys/dev/pci/if_tl.c,v</FONT>
<BR><FONT SIZE=3D2>retrieving revision 1.39</FONT>
<BR><FONT SIZE=3D2>diff -u -r1.39 if_tl.c</FONT>
<BR><FONT SIZE=3D2>--- if_tl.c&nbsp;&nbsp;&nbsp;&nbsp; 2000/12/28 =
22:59:13&nbsp;&nbsp;&nbsp;&nbsp; 1.39</FONT>
<BR><FONT SIZE=3D2>+++ if_tl.c&nbsp;&nbsp;&nbsp;&nbsp; 2001/06/19 =
05:15:52</FONT>
<BR><FONT SIZE=3D2>@@ -208,7 +208,7 @@</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&quot;Compaq ProLiant Integrated Netelligent 10/100 TX&quot; },</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { =
PCI_PRODUCT_COMPAQ_DPNet100TX, =
TLPHY_MEDIA_10_5|TLPHY_MEDIA_NO_10_T,</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&quot;Compaq Dual Port Netelligent 10/100 TX&quot; },</FONT>
<BR><FONT SIZE=3D2>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { =
PCI_PRODUCT_COMPAQ_DP4000, TLPHY_MEDIA_10_5,</FONT>
<BR><FONT SIZE=3D2>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { =
PCI_PRODUCT_COMPAQ_DP4000, TLPHY_MEDIA_10_5|TLPHY_MEDIA_NO_10_T,</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&quot;Compaq Deskpro 4000 5233MMX&quot; },</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { =
PCI_PRODUCT_COMPAQ_NF3P_BNC, TLPHY_MEDIA_10_2,</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; =
&quot;Compaq NetFlex 3/P w/ BNC&quot; },</FONT>
</P>

<P><FONT SIZE=3D2>Documentation patch:</FONT>
</P>

<P><FONT SIZE=3D2>--- tl.4.orig&nbsp;&nbsp; Mon Jun 18 22:54:01 =
2001</FONT>
<BR><FONT SIZE=3D2>+++ tl.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Mon Jun 18 22:58:05 2001</FONT>
<BR><FONT SIZE=3D2>@@ -52,7 +52,8 @@</FONT>
<BR><FONT SIZE=3D2>&nbsp;in baseboard and PCI variants (10bT-only =
variant untested).</FONT>
<BR><FONT SIZE=3D2>&nbsp;.It Compaq NetFlex 3/P</FONT>
<BR><FONT SIZE=3D2>&nbsp;in baseboard variant only (the PCI variant =
doesn't use the same chip !).</FONT>
<BR><FONT SIZE=3D2>-.It Baseboard Compaq Deskpro 4000 5233MMX Ethernet =
(untested).</FONT>
<BR><FONT SIZE=3D2>+.It Baseboard Compaq Deskpro 4000 5233MMX =
Ethernet</FONT>
<BR><FONT SIZE=3D2>+(This has been tested on the Deskpro 4000M =
only).</FONT>
<BR><FONT SIZE=3D2>&nbsp;.It TI TravelMate 5000 series laptop docking =
station's Ethernet board.</FONT>
<BR><FONT SIZE=3D2>&nbsp;.El</FONT>
<BR><FONT SIZE=3D2>&nbsp;.Sh MEDIA SELECTION</FONT>
<BR><FONT SIZE=3D2>&gt;Release-Note:</FONT>
<BR><FONT SIZE=3D2>&gt;Audit-Trail:</FONT>
<BR><FONT SIZE=3D2>&gt;Unformatted:</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1B34D.EB8DD880--