Subject: kern/30078: wm driver doesn't select 10baseT mode automatically
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <smb@cs.columbia.edu>
List: netbsd-bugs
Date: 04/28/2005 04:06:01
>Number:         30078
>Category:       kern
>Synopsis:       C wm driver doesn't select 10baseT mode automatically
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 28 04:06:00 +0000 2005
>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.

>Unformatted: