From nobody@FreeBSD.org  Thu Mar  1 22:32:49 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E7EA916A404
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Mar 2007 22:32:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id BB35E13C461
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  1 Mar 2007 22:32:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l21MWnkv032093
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 1 Mar 2007 22:32:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l21MWnhd032092;
	Thu, 1 Mar 2007 22:32:49 GMT
	(envelope-from nobody)
Message-Id: <200703012232.l21MWnhd032092@www.freebsd.org>
Date: Thu, 1 Mar 2007 22:32:49 GMT
From: Don Brearley<donbrearley@hibbing.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bge link state issues
X-Send-Pr-Version: www-3.0

>Number:         109733
>Category:       kern
>Synopsis:       [bge] bge link state issues [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 01 22:40:02 GMT 2007
>Closed-Date:    Mon Jan 17 23:46:44 UTC 2011
>Last-Modified:  Mon Jan 17 23:46:44 UTC 2011
>Originator:     Don Brearley
>Release:        6.2-STABLE
>Organization:
Hibbing Community College
>Environment:
FreeBSD blah.com 6.2-STABLE FreeBSD 6.2-STABLE #8: Thu Mar 1 15:40:33
CST 2007      root@blah.com:/usr/src/sys/i386/BLAH   i386
>Description:

I have two 3com 3C996-SX (Broadcom 5701 chipset) NICs connected to a Tyan
motherboard which do not function properly.  This is a dual CPU 
i386 machine.  

I began with a fresh install of 6.1-RELEASE, discovered this issue, 
and then CVSup'ed my source to 6.2-STABLE.  I've rebuilt the world 
and kernel and installed both successfully, and ran mergemaster 
as well. As a side note, the NIC worked fine with i386 5.4-RELEASE. 

When the machine comes up, the interfaces stay "status:  no carrier" 
until I either type "ifconfig bge0 media 1000baseSX mediaopt full-duplex"
or "ifconfig bge0 up".  Naturally, I wish to use both NIC's so I enter
the same info but replace bge0 with bge1. Setting an IP address and
netmask also did not help. 

Once I type either of those, I get a continuous stream of:

bge0: link state changed to UP
bge0: link state changed to DOWN
bge1: link state changed to UP
bge1: link state changed to DOWN
bge0: link state changed to UP
bge0: link state changed to DOWN
bge1: link state changed to UP
bge1: link state changed to DOWN
.. forever.

I also get an intermittent statement: 

bgeX: 2 link states coalesced

This will occur until I shut down the interfaces
with "ifconfig bge0 down" and "ifconfig bge1 down" 
statements.

I have rebuilt my kernel with "BGE_FAKE_AUTONEG"
and added ' hw.bge.fake_autoneg="1" ' to the /boot/loader.conf
which resulted in no noticable effect.  sysctl maintains
that this oid does not exist, and sysctl -w does not show
any entry related to hw.bge* -- It would be nice to be able
to see if this is actually being set or not. 

I've added and removed SMP support, added and removed
DEVICE_POLLING and various combinations with and without APIC.
I've also gone back and forth  between booting with ACPI
and without ACPI, again, without a noticable effect on the
issue.

I tried merging the device drivers in from HEAD, but as I
expected, that was futile :)  

If necessary, it may be possible for me to provide a 3com
3c996-SX NIC to help fix this issue. 

>How-To-Repeat:

Get a 3Com 3c996-SX nic, and try to use it on FreeBSD 6.2-STABLE
or -RELEASE.


>Fix:

Don't use a 3com 3C996-SX with FreeBSD 6.2.

Try using FreeBSD 5.4 -- the Interface worked fine then.  I 
did not try using 5.5.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 5 01:06:19 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109733 

From: Ryan Steinmetz <rpsfa@rit.edu>
To: bug-followup@FreeBSD.org, donbrearley@hibbing.edu
Cc:  
Subject: Re: kern/109733: [bge] bge link state issues [regression]
Date: Wed, 19 Aug 2009 23:03:16 -0400

 This issue appears to still exist in 7.2-RELEASE.  The 3c996-sx doesn't function properly, nor does the remote side ever go into a link-up state.
 
 -r
 
 -- 
 Ryan Steinmetz
 Lead Security/Systems Administrator
 Infrastructure Engineering
 Rochester Institute of Technology
 585.475.5663
 PGP: EF36 D45A 5CA9 28B1 A550  18CD A43C D111 7AD7 FAF2
Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Aug 23 18:14:25 UTC 2010 
Responsible-Changed-Why:  
Over to expert. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109733 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Thu Oct 21 19:37:01 UTC 2010 
State-Changed-Why:  
Could you try latest bge(4) in HEAD on your box? 
There are too many changes happened since 6.2-RELEASE so it's 
important to know whether the issue still exists on latest FreeBSD. 
The reason I asked for running HEAD(CURRENT) is there are a lot 
of efforts for bge(4) made in HEAD so I'd like to know whether it 
makes any differences. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109733 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Mon Jan 17 23:46:31 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109733 
>Unformatted:
