From danny@cs.huji.ac.il  Mon Jun 28 13:32:14 2004
Return-Path: <danny@cs.huji.ac.il>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5006816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Jun 2004 13:32:14 +0000 (GMT)
Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BF5D243D39
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 28 Jun 2004 13:32:13 +0000 (GMT)
	(envelope-from danny@cs.huji.ac.il)
Received: from new-dev.cs.huji.ac.il ([132.65.16.111] ident=exim)
	by cs1.cs.huji.ac.il with esmtp
	id 1BewF1-000I96-Nr
	for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Jun 2004 16:32:11 +0300
Received: from danny by new-dev.cs.huji.ac.il with local (Exim 4.34 (FreeBSD))
	id 1BewF1-000Nbe-NG
	for FreeBSD-gnats-submit@freebsd.org; Mon, 28 Jun 2004 16:32:11 +0300
Message-Id: <E1BewF1-000Nbe-NG@new-dev.cs.huji.ac.il>
Date: Mon, 28 Jun 2004 16:32:11 +0300
From: Danny Braniss <danny@cs.huji.ac.il>
Reply-To: Danny Braniss <danny@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: bge autonegotiation broken
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         68445
>Category:       kern
>Synopsis:       [bge] bge autonegotiation broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dwhite
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 28 13:40:23 GMT 2004
>Closed-Date:    Mon Jul 04 19:19:04 GMT 2005
>Last-Modified:  Mon Jul 04 19:19:04 GMT 2005
>Originator:     Danny Braniss
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD bmos-13 5.2-CURRENT FreeBSD 5.2-CURRENT #12: Mon Jun 28 13:26:27 IDT 2004 danny@new-dev:/r+d/obj/new-dev/r+d/5.2/src/sys/HUJI i386

>Description:
	bge is recognized but doesn't work.
	pr kern/67598, broke this, at least for the IBM/Intel blade with
	Broadcom BCM5704S Dual Gigabit Ethernet, ASIC rev. 0x2002
>How-To-Repeat:
	
>Fix:
	this is NOT a FIX, it just works for me,

--- if_bge.c.orig       Thu Jun 10 17:18:01 2004
+++ if_bge.c    Mon Jun 28 13:21:34 2004
@@ -3328,6 +3330,7 @@
                        return(EINVAL);
                switch(IFM_SUBTYPE(ifm->ifm_media)) {
                case IFM_AUTO:
+#if 0
                        /*
                         * The BCM5704 ASIC appears to have a special
                         * mechanism for programming the autoneg
@@ -3345,6 +3348,7 @@
                                DELAY(5);
                                CSR_WRITE_4(sc, BGE_SGDIG_CFG, sgdig);
                        }
+#endif
                        break;
                case IFM_1000_SX:
                        if ((ifm->ifm_media & IFM_GMASK) == IFM_FDX) {
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: dwhite 
State-Changed-When: Thu May 5 03:37:38 GMT 2005 
State-Changed-Why:  
Committed as 1.85 and tested on Intel SBXL52 blade.  If this breaks  
other BCM5704S configurations please let me know. 


Responsible-Changed-From-To: freebsd-bugs->dwhite 
Responsible-Changed-By: dwhite 
Responsible-Changed-When: Thu May 5 03:37:38 GMT 2005 
Responsible-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=68445 
State-Changed-From-To: feedback->closed 
State-Changed-By: dwhite 
State-Changed-When: Mon Jul 4 19:17:39 GMT 2005 
State-Changed-Why:  
Original fix didn't work, reverted to old functionality but provided kernel 
option to disable the code in question.  Only needed on one particular switch 
module (DLNK) for the SBCE, which is end-of-life'd. Newer switch modules 
do not require the hack. 

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