NetBSD Problem Report #30078

From smb@cs.columbia.edu  Thu Apr 28 04:05:55 2005
Return-Path: <smb@cs.columbia.edu>
Received: from machshav.com (machshav.com [147.28.0.16])
	by narn.netbsd.org (Postfix) with ESMTP id 8097163B116
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Apr 2005 04:05:55 +0000 (UTC)
Message-Id: <20050428040544.D85F63BFE4A@berkshire.machshav.com>
Date: Thu, 28 Apr 2005 00:05:44 -0400 (EDT)
From: smb@cs.columbia.edu
Reply-To: smb@cs.columbia.edu
To: gnats-bugs@netbsd.org
Subject: wm driver doesn't select 10baseT mode automatically
X-Send-Pr-Version: 3.95

>Number:         30078
>Category:       kern
>Synopsis:       C wm driver doesn't select 10baseT mode automatically
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    msaitoh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 28 04:06:00 +0000 2005
>Closed-Date:    Thu Apr 05 07:24:32 +0000 2007
>Last-Modified:  Thu Apr 05 07:24:32 +0000 2007
>Originator:     Steven M. Bellovin
>Release:        NetBSD 3.99.3
>Organization:
Department of Computer Science, Columbia University
>Environment:


System: NetBSD berkshire.machshav.com 3.99.3 NetBSD 3.99.3 (BERKSHIRE) #7: Tue Apr 12 13:08:14 EDT 2005 smb@berkshire.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/BERKSHIRE i386
Architecture: i386
Machine: i386
>Description:
	I have a Thinkpad T42 with a wm GigE card.  I've never
	tried it at GigE speeds; it runs fine at 100 Mbps.  But it
	doesn't work at 10 Mbps if I have it set to 'media autoselect'.
	However, if I set it to 'media 10baseT', it works.  Here's
	some output; note in the first (failing) case that at some
	level it has detected that it's talking to a 10baseT hub.

	I'm running 3.99.3 from about two weeks ago, if that matters.


	# ifconfig wm0 media autoselect   
	# ifconfig wm0
	wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		capabilities=87<IP4CSUM,TCP4CSUM,UDP4CSUM,TSO4>
		enabled=0
		address: 00:11:25:43:e8:a4
		media: Ethernet autoselect (10baseT)
		status: active
		inet 192.168.7.117 netmask 0xffffff00 broadcast 192.168.7.255
		inet6 fe80::211:25ff:fe43:e8a4%wm0 prefixlen 64 scopeid 0x1
	# ping -c 3 -n 192.168.7.77
	PING 192.168.7.77 (192.168.7.77): 56 data bytes

	----192.168.7.77 PING Statistics----
	3 packets transmitted, 0 packets received, 100.0% packet loss
	# ifconfig wm0 media 10baseT
	# ping -c 3 -n 192.168.7.77
	PING 192.168.7.77 (192.168.7.77): 56 data bytes
	64 bytes from 192.168.7.77: icmp_seq=0 ttl=64 time=1.504 ms
	64 bytes from 192.168.7.77: icmp_seq=1 ttl=64 time=0.883 ms
	64 bytes from 192.168.7.77: icmp_seq=2 ttl=64 time=0.815 ms

	----192.168.7.77 PING Statistics----
	3 packets transmitted, 3 packets received, 0.0% packet loss
	round-trip min/avg/max/stddev = 0.815/1.067/1.504/0.380 ms
	# ifconfig wm0
	wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		capabilities=87<IP4CSUM,TCP4CSUM,UDP4CSUM,TSO4>
		enabled=0
		address: 00:11:25:43:e8:a4
		media: Ethernet 10baseT
		status: active
		inet 192.168.7.117 netmask 0xffffff00 broadcast 192.168.7.255
		inet6 fe80::211:25ff:fe43:e8a4%wm0 prefixlen 64 scopeid 0x1

>How-To-Repeat:
	See above.
>Fix:
	A bypass is to set the speed manually.

>Release-Note:

>Audit-Trail:
From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: kern/30078: wm driver doesn't select 10baseT mode automatically
Date: Sun, 1 May 2005 11:05:47 +0100

 On Thu, Apr 28, 2005 at 04:06:01AM +0000, smb@cs.columbia.edu wrote:
 > >Synopsis:       C wm driver doesn't select 10baseT mode automatically

 > >Description:
 > 	I have a Thinkpad T42 with a wm GigE card.  I've never
 > 	tried it at GigE speeds; it runs fine at 100 Mbps.  But it
 > 	doesn't work at 10 Mbps if I have it set to 'media autoselect'.
 > 	However, if I set it to 'media 10baseT', it works.

 Are you connecting it to a normal 10M hub, or a system that does
 autonegotiation, but has the 'link advertise register' (LAR) set to only
 allow 10M HDX?

 Could be that the PHY isn't falling back to 'autodetection' when
 'autonegotiation' fails.

 Maybe netbsd ought to have a way of restricting the LAR value?

 	David

 -- 
 David Laight: david@l8s.co.uk

Responsible-Changed-From-To: kern-bug-people->thorpej
Responsible-Changed-By: thorpej@netbsd.org
Responsible-Changed-When: Thu, 12 Oct 2006 04:52:27 +0000
Responsible-Changed-Why:
I'll take this one.


From: SAITOH Masanobu <msaitoh@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/30078 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: thorpej->msaitoh
Responsible-Changed-By: msaitoh@netbsd.org
Responsible-Changed-When: Fri, 23 Feb 2007 03:11:50 +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:11:50 +0000
State-Changed-Why:
I believe it was fixed today's current. Please test.


From: Julian Coleman <jdc@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/30078 CVS commit: [netbsd-4] src/sys/dev/mii
Date: Mon, 26 Mar 2007 21:04:49 +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/30078 CVS commit: [netbsd-4] src/sys/dev/mii
Date: Mon, 26 Mar 2007 21:05:34 +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/30078 CVS commit: [netbsd-4] src/sys/dev/pci
Date: Mon, 26 Mar 2007 21:06:56 +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.

State-Changed-From-To: feedback->closed
State-Changed-By: msaitoh@netbsd.org
State-Changed-When: Thu, 05 Apr 2007 07:24:32 +0000
State-Changed-Why:
fixed and pulled up to netbsd-3 and netbsd-4


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.