From sazli@cvs.defenxis.com  Tue Oct 17 03:46:10 2006
Return-Path: <sazli@cvs.defenxis.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DDDD216A4C9
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 03:46:10 +0000 (UTC)
	(envelope-from sazli@cvs.defenxis.com)
Received: from balairung.surfopen.com (balairung.surfopen.com [202.133.105.25])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C699443D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 03:46:01 +0000 (GMT)
	(envelope-from sazli@cvs.defenxis.com)
Received: from localhost (localhost.surfopen.com [127.0.0.1])
	by balairung.surfopen.com (Postfix) with ESMTP id D0D6733F5D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 11:45:59 +0800 (MYT)
Received: from balairung.surfopen.com ([127.0.0.1])
	by localhost (balairung.surfopen.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GLjNJgtt6IKY for <FreeBSD-gnats-submit@freebsd.org>;
	Tue, 17 Oct 2006 11:45:51 +0800 (MYT)
Received: from bareed.defenxis.com (unknown [218.111.100.194])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by balairung.surfopen.com (Postfix) with ESMTP id 36FAB33F7A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 11:45:11 +0800 (MYT)
Received: from localhost (localhost [127.0.0.1])
	by bareed.defenxis.com (Postfix) with ESMTP id 000DCD4C76
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 11:09:30 +0800 (MYT)
Received: from bareed.defenxis.com ([127.0.0.1])
 by localhost (web.defenxis.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 58384-02 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue, 17 Oct 2006 11:09:23 +0800 (MYT)
Received: from ox.defenxis.com (ox.defenxis.com [192.168.1.252])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by bareed.defenxis.com (Postfix) with ESMTP id 25263D4C49
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 11:09:23 +0800 (MYT)
Received: from cvs.defenxis.com (unknown [192.168.1.243])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by ox.defenxis.com (Postfix) with ESMTP id D2C807E81D
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Oct 2006 11:12:38 +0800 (MYT)
Received: from cvs.defenxis.com (localhost.defenxis.com [127.0.0.1])
	by cvs.defenxis.com (8.13.6/8.13.6) with ESMTP id k9H391JJ035846;
	Tue, 17 Oct 2006 11:09:01 +0800 (MYT)
	(envelope-from sazli@cvs.defenxis.com)
Received: (from sazli@localhost)
	by cvs.defenxis.com (8.13.6/8.13.6/Submit) id k9H3905T035845;
	Tue, 17 Oct 2006 11:09:00 +0800 (MYT)
	(envelope-from sazli)
Message-Id: <200610170309.k9H3905T035845@cvs.defenxis.com>
Date: Tue, 17 Oct 2006 11:09:00 +0800 (MYT)
From: Senandung Mendonan <mendonan@gmail.com>
Reply-To: Senandung Mendonan <mendonan@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Senandung Mendonan <mendonan@gmail.com>
Subject: [bge] Broadcom BCM5704C: Intermittent on newer chip version: CS0424 P20
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         104485
>Category:       kern
>Synopsis:       [bge] Broadcom BCM5704C: Intermittent on newer chip version: CS0424 P20
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 17 03:50:23 GMT 2006
>Closed-Date:    Thu Oct 21 19:28:42 UTC 2010
>Last-Modified:  Thu Oct 21 19:28:42 UTC 2010
>Originator:     Senandung Mendonan
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
Sidi Gentala
>Environment:
System: FreeBSD raksasa.sidigentala.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386

pci5: <ACPI PCI bus> on pcib4
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xdcff0000-0xdcffffff irq 48 at device 1.0 on pci5
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:10:18:11:2a:0d
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xdcfe0000-0xdcfeffff irq 49 at device 1.1 on pci5
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: Ethernet address: 00:10:18:11:2a:0a

>Description:

I'm running the latest FreeBSD 6.1-RELEASE-p3 on the following piece of
hardware:-
IBM xSeries 336
- 1 add-on PCI dual-port NIC (IBM Netxtreme Dualpt Ethernet adapter)
matching the Broadcom BCM5704C Dual Gigabit Ethernet chipset (detected
as bge0 and bge1)
- 2 internal built-in NICs matching the Broadcom BCM5721 Gigabit
Ethernet chipset. (detected as bge2 and bge3)

The internal NICs work fine (bge2 and bge3), however the add-on PCI NIC
has the following issues:-
On a GB Ethernet switchport (I am using Cisco Catalyst C3750G):-
- When set to auto-detect, or forced 1000baseTX on both sides
(switchport and server), the LED on both switchport and NIC dies the
moment FreeBSD OS is booting (i.e. when FreeBSD bge driver activated).
Previously, it was working fine at BIOS level.
- The only working setup is forced 100baseTX full-duplex on both sides
(switchport and server), however with intermittent link (ping yields
packet loss every 2-3 out of 10 packets or so, and simple file transfers
get stuck/stalled).

After deploying on a few servers, we realized some of the servers work
OK, and some not, although the cards are apparently same model, with
same dmesg shown in the Environment section.

Upon closer inspection, we found out that the two NICs' chipsets
differ in minor revision:-

1. The working NIC:-

Broadcom BCM5704CKRB TS0341 P13 706741 B (manufactured 23/12/2004,
older revision of the same BCM5704C chipset supported by the FreeBSD
bge driver.

( Picture: http://absolute-p.ath.cx/wp-content/uploads/2006/10/old-23-12-2004.jpg
)

2. The intermittent NIC:-

Broadcom BCM5704CKRB CS0424 P20 723153B B (unknown manufacture date,
but probably newer than the working NIC).

( Picture: http://absolute-p.ath.cx/wp-content/uploads/2006/10/new.jpg )

I have posted this issue on freebsd-net:-
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=209582+0+/usr/local/www/db/text/2006/freebsd-net/20060820.freebsd-net

Thanks.

>How-To-Repeat:

With hardware matching the above description, just boot up and do:-
1. Ping test on another host connected e.g. via cross cable: packet loss
every few packets.
2. Perform simple file transfers, e.g. scp, for files > 20K. The transfer
gets stalled indefinitely and unable to complete.

>Fix:

None

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Wed Jan 14 22:27:04 UTC 2009 
Responsible-Changed-Why:  

Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104485 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Tue Jul 6 22:03:44 UTC 2010 
State-Changed-Why:  
Is it still issue on more recent FreeBSD?(8.1-RC2 or 7.3-RELEASE)? 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Tue Jul 6 22:03:44 UTC 2010 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104485 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Thu Oct 21 19:28:16 UTC 2010 
State-Changed-Why:  
Close(feedback timed out). There were a lot of bge(4) enhancements 
since 6.1-RELEASE and your issue might be already fixed. If you 
still see the issue on more recent FreeBSD releases(7.3-RELEASE or 
8.1-RELEASE) please open a new PR. 
Thanks for reporting. 

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