NetBSD Problem Report #35386
From smb@cs.columbia.edu Tue Jan 9 04:16:12 2007
Return-Path: <smb@cs.columbia.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 39A0863BB3C
for <gnats-bugs@gnats.NetBSD.org>; Tue, 9 Jan 2007 04:16:12 +0000 (UTC)
Message-Id: <20070109041537.48067BAD8F@bigboy.machshav.com>
Date: Mon, 8 Jan 2007 23:15:37 -0500 (EST)
From: smb@cs.columbia.edu
Reply-To: smb@cs.columbia.edu
To: gnats-bugs@NetBSD.org
Subject: wm NICs don't do speed negotiation well
X-Send-Pr-Version: 3.95
>Number: 35386
>Category: kern
>Synopsis: wm NICs don't do speed negotiation well
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: msaitoh
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 09 04:20:00 +0000 2007
>Closed-Date: Thu Apr 05 07:27:17 +0000 2007
>Last-Modified: Thu Apr 05 07:27:17 +0000 2007
>Originator: Steven M. Bellovin
>Release: NetBSD 4.99.7
>Organization:
>Environment:
System: NetBSD bigboy.machshav.com 4.99.7 NetBSD 4.99.7 (BIGBOY) #0: Mon Dec 25 20:58:26 EST 2006 smb@bigboy.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/BIGBOY i386
Architecture: i386
Machine: i386
>Description:
There are numerous problems with speed negotiation on multiple
wm chips. The problems go back at least two years, and seem
to affect multiple versions of NetBSD, including very recent
-current.
On this NIC (Thinkpad T42):
wm0 at pci2 dev 1 function 0: Intel i82540EP 1000BASE-T Ethernet, rev. 3
wm0: interrupting at irq 11
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:11:25:43:e8:a4
makphy0 at wm0 phy 1: Marvell 88E1011 Gigabit PHY, rev. 4
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
it will properly autonegotiate 100baseT and 1000baseT. If
connected to 10baseT, it will notice it (and ifconfig will show
it), but it won't talk unless the speed is set manually. Once
that's done, it never goes back to a higher speed, even though
ifconfig will report that that has happened. The 10baseT problem
goes back to at least Dec. 2004, when I got the machine.
This was reported in kern/30078 (which can now be closed in
favor of this PR).
On these two NICs:
wm0 at pci4 dev 0 function 0: Intel i82573E IAMT, rev. 3
wm0: interrupting at ioapic0 pin 16, event channel 4
wm0: PCI-Express bus
wm0: 256 word (8 address bits) SPI EEPROM
wm0: Ethernet address 00:30:48:8a:d8:76
makphy0 at wm0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 2
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
makphy1 at wm1 phy 1: Marvell 88E1111 Gigabit PHY, rev. 2
makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
it will auto-negotiate GigE but not 100baseT. Again, it will
detect the latter, but not be able to talk. That can be bypassed
by setting the media type manually. I do not know if it will
then autonegotiate, and I haven't tried it on 10baseT. I can do
either if necessary. Note that someone else reported
10baseT problems in the 82573E chip in
http://mail-index.netbsd.org/tech-net/2006/11/02/0002.html
I tried disabling makphy at boot time; it fell back to ukphy, but
that made no difference in behavior.
There's a report that fiber autonegotiation in that driver is
broken, too: http://mail-index.netbsd.org/tech-kern/2006/12/11/0002.html
>How-To-Repeat:
See above
>Fix:
Sometimes, per the above, manual ifconfigs work; other times,
they do not.
>Release-Note:
>Audit-Trail:
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/35386: wm NICs don't do speed negotiation well
Date: Thu, 11 Jan 2007 17:03:24 -0500
A further datum: I've found a wm NIC that does autonegotiate properly:
wm0 at pci0 dev 9 function 0: Intel i82541PI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at irq 10
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:0e:0c:c4:b8:a3
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX
, auto
handles 10, 100, and 1000 BaseT properly. I note that it has an
igphy, instead of the makphy I've noticed on the failing NICs.
From: SAITOH Masanobu <msaitoh@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35386 CVS commit: src/sys/dev
Date: Fri, 23 Feb 2007 03:03:11 +0000 (UTC)
Module Name: src
Committed By: msaitoh
Date: Fri Feb 23 03:03:11 UTC 2007
Modified Files:
src/sys/dev/mii: igphy.c makphy.c
src/sys/dev/pci: if_wm.c
Log Message:
fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/sys/dev/mii/igphy.c
cvs rdiff -r1.22 -r1.23 src/sys/dev/mii/makphy.c
cvs rdiff -r1.132 -r1.133 src/sys/dev/pci/if_wm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: kern-bug-people->msaitoh
Responsible-Changed-By: msaitoh@netbsd.org
Responsible-Changed-When: Fri, 23 Feb 2007 03:18:07 +0000
Responsible-Changed-Why:
take
State-Changed-From-To: open->feedback
State-Changed-By: msaitoh@netbsd.org
State-Changed-When: Fri, 23 Feb 2007 03:18:07 +0000
State-Changed-Why:
I believe it was fixed today's current. Please verify.
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/35386
Date: Thu, 22 Mar 2007 22:11:51 -0400
It works now for me -- this PR can be closed, but the fix should be
pulled up to 4.0.
--Steve Bellovin, http://www.cs.columbia.edu/~smb
From: Julian Coleman <jdc@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35386 CVS commit: [netbsd-4] src/sys/dev/mii
Date: Mon, 26 Mar 2007 21:04:50 +0000 (UTC)
Module Name: src
Committed By: jdc
Date: Mon Mar 26 21:04:49 UTC 2007
Modified Files:
src/sys/dev/mii [netbsd-4]: igphy.c
Log Message:
Pull up revision 1.11 (requested by msaitoh in ticket #514).
fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.10.2.1 src/sys/dev/mii/igphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Julian Coleman <jdc@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35386 CVS commit: [netbsd-4] src/sys/dev/mii
Date: Mon, 26 Mar 2007 21:05:35 +0000 (UTC)
Module Name: src
Committed By: jdc
Date: Mon Mar 26 21:05:34 UTC 2007
Modified Files:
src/sys/dev/mii [netbsd-4]: makphy.c
Log Message:
Pull up revision 1.23 (requested by msaitoh in ticket #514).
fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
To generate a diff of this commit:
cvs rdiff -r1.22 -r1.22.2.1 src/sys/dev/mii/makphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Julian Coleman <jdc@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35386 CVS commit: [netbsd-4] src/sys/dev/pci
Date: Mon, 26 Mar 2007 21:06:57 +0000 (UTC)
Module Name: src
Committed By: jdc
Date: Mon Mar 26 21:06:56 UTC 2007
Modified Files:
src/sys/dev/pci [netbsd-4]: if_wm.c
Log Message:
Pull up revision 1.133 (requested by msaitoh in ticket #514).
fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
To generate a diff of this commit:
cvs rdiff -r1.131 -r1.131.2.1 src/sys/dev/pci/if_wm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/35386 CVS commit: [netbsd-3] src
Date: Sat, 31 Mar 2007 15:25:37 +0000 (UTC)
Module Name: src
Committed By: bouyer
Date: Sat Mar 31 15:25:37 UTC 2007
Modified Files:
src/share/man/man4 [netbsd-3]: wm.4
src/sys/arch/i386/conf [netbsd-3]: GENERIC GENERIC.MPACPI
GENERIC_LAPTOP INSTALL INSTALL_LAPTOP XEN2_DOM0
src/sys/dev/mii [netbsd-3]: files.mii igphy.c makphy.c miidevs
src/sys/dev/pci [netbsd-3]: if_wm.c if_wmreg.h pcidevs
Added Files:
src/sys/dev/mii [netbsd-3]: ikphy.c ikphyreg.h
Log Message:
pullup the following revisions (requested by msaitoh in ticket 1681):
sys/dev/pci/if_wm.c 1.104-1.105, 1.116-1.121,
1.127,1.133-1.134 via patch
sys/dev/pci/if_wmreg.h 1.17-1.20
sys/dev/pci/pcidevs patch
sys/dev/mii/igphy.c 1.11
sys/dev/mii/makphy.c 1.20, 1.23
sys/dev/mii/ikphy.c patch
sys/dev/mii/ikphyreg.h patch
sys/dev/mii/miidevs 1.68
sys/dev/mii/files.mii 1.39
sys/arch/i386/conf/GENERIC 1.788-1.789 via patch
sys/arch/i386/conf/GENERIC.MPACPI patch
sys/arch/i386/conf/GENERIC_LAPTOP 1.209 via patch
sys/arch/i386/conf/INSTALL 1.291 via patch
sys/arch/i386/conf/INSTALL_LAPTOP 1.104 via patch
sys/arch/i386/conf/XEN2_DOM0 1.13 via patch
share/man/man4/wm.4 1.14-1.16
Add support for many cards (include PCI-express based chips).
Many bug fixes about auto negotiations (PR#30078, PR#30490,
PR#30906, PR#33429 and PR#35386).
Fix media link issues with fiber-based card (PR#35797).
To generate a diff of this commit:
cvs rdiff -r1.11.2.2 -r1.11.2.3 src/share/man/man4/wm.4
cvs rdiff -r1.661.2.18 -r1.661.2.19 src/sys/arch/i386/conf/GENERIC
cvs rdiff -r1.21.4.6 -r1.21.4.7 src/sys/arch/i386/conf/GENERIC.MPACPI
cvs rdiff -r1.135.2.9 -r1.135.2.10 src/sys/arch/i386/conf/GENERIC_LAPTOP
cvs rdiff -r1.262.2.9 -r1.262.2.10 src/sys/arch/i386/conf/INSTALL
cvs rdiff -r1.83.2.5 -r1.83.2.6 src/sys/arch/i386/conf/INSTALL_LAPTOP
cvs rdiff -r1.1.2.9 -r1.1.2.10 src/sys/arch/i386/conf/XEN2_DOM0
cvs rdiff -r1.36.2.1 -r1.36.2.2 src/sys/dev/mii/files.mii
cvs rdiff -r1.5 -r1.5.10.1 src/sys/dev/mii/igphy.c
cvs rdiff -r0 -r1.3.18.1 src/sys/dev/mii/ikphy.c
cvs rdiff -r0 -r1.1.20.1 src/sys/dev/mii/ikphyreg.h
cvs rdiff -r1.15.10.1 -r1.15.10.2 src/sys/dev/mii/makphy.c
cvs rdiff -r1.58.2.5 -r1.58.2.6 src/sys/dev/mii/miidevs
cvs rdiff -r1.100.2.6 -r1.100.2.7 src/sys/dev/pci/if_wm.c
cvs rdiff -r1.14.4.1 -r1.14.4.2 src/sys/dev/pci/if_wmreg.h
cvs rdiff -r1.701.2.42 -r1.701.2.43 src/sys/dev/pci/pcidevs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: msaitoh@netbsd.org
State-Changed-When: Thu, 05 Apr 2007 07:27:17 +0000
State-Changed-Why:
fixed and pulled up to netbsd-3 and netbsd-4
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.