From nobody@FreeBSD.org  Mon Mar 31 14:02:03 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CB079106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Mar 2008 14:02:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C16918FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Mar 2008 14:02:03 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VE1clj015050
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Mar 2008 14:01:38 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2VE1crB015049;
	Mon, 31 Mar 2008 14:01:38 GMT
	(envelope-from nobody)
Message-Id: <200803311401.m2VE1crB015049@www.freebsd.org>
Date: Mon, 31 Mar 2008 14:01:38 GMT
From: Robin Gruyters <r.gruyters@yirdis.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bge Ierr rate increase (sinds 6.0R)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122295
>Category:       kern
>Synopsis:       [bge] bge Ierr rate increase (since 6.0R) [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    oleg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 14:10:02 UTC 2008
>Closed-Date:    Mon Sep 22 15:06:09 UTC 2008
>Last-Modified:  Mon Sep 22 15:06:09 UTC 2008
>Originator:     Robin Gruyters
>Release:        6.3 (RELENG_6_3) and 7.0 (RELENG_7_0)
>Organization:
Betronic Nederland B.V.
>Environment:
FreeBSD backup 7.0-RELEASE FreeBSD 7.0-RELEASE #4: Mon Mar  3 11:48:30 CET 2008
FreeBSD server 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 23 07:35:39 CET 2008
FreeBSD monitor 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Thu Feb 28 09:35:50 CET 2008
>Description:
Sinds the release of FreeBSD 6.0 we had issues with our Broadcom interfaces. (BCM5704. As of 7.0-Release it switched to Compaq NC7781)
We noticed a increase of incoming errors on the interfaces. (Ierrs)

backup:
Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs  Coll
bge0   1500 <Link#1>      00:0e:7f:ee:09:09  8127366  3259  5756298     0     0
bge1   1500 <Link#2>      00:0e:7f:ee:09:08   115174    11    49294     0     0

server:
Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs  Coll
bge0   1500 <Link#1>      00:12:79:d7:bb:99  3043080    57  2786146     0     0
bge1   1500 <Link#2>      00:12:79:d7:bb:98   299241    21   316275     0     0

monitor:
Name    Mtu Network       Address              Ipkts Ierrs    Opkts Oerrs  Coll
bge0   1500 <Link#1>      00:0b:cd:69:68:5a   168804    10     2223     0     0
bge1   1500 <Link#2>      00:0b:cd:69:68:4c 10388941   355        0     0     0

Last year we noticed it already and post a message on the FreeBSD-net mailinglist. Although they came with a patch, it didn't work for us.

http://marc.info/?t=116748642100001&r=1&w=2

Backup is connected to a 3com 4400 switch, server and monitor are both connected to a HP Procurve gigabit switch.

As for speed and duplex settings. For server and monitor both bge0 interfaces are set to 1000baseTX and full-duplex and all other interfaces (including backup) are set to 100baseTX and full-duplex.
The speed and duplex are also set on the switches.

I was hoping that this issue will be fixed in 7.0 release, but apparently it hasn't...

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Mar 31 17:47:28 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: "Manuel Kasper" <mkasper@monzoon.net>
To: <bug-followup@FreeBSD.org>
Cc: <r.gruyters@yirdis.nl>
Subject: Re: kern/122295: [bge] bge Ierr rate increase (since 6.0R) [regression]
Date: Wed, 25 Jun 2008 09:48:29 +0200

 We've been experiencing the same issue with BCM5704 B0 in HP ProLiant
 DL360 G4 servers. The Ierrs are correlated with packet loss (which is
 why we noticed the problem in the first place); however for us, the
 patch in <http://marc.info/?l=3Dfreebsd-net&m=3D116838816601104&w=3D2>
 completely fixes the problem and doesn't seem to introduce any problems
 with link state detection (cable disconnect/reconnect, changing link
 speed on remote end etc. all work fine).
 
 Also, OpenBSD already has essentially the same fix (with some dubious
 style changes) in its repository:
 <http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/if_bge.c#rev1.221
 >
 
 The problem appears in both FreeBSD 6.3-RELEASE and 7.0-RELEASE. This is
 how things look without the fix (regardless of what link speed is used):
 
 ----
 Router#ping 192.168.4.1 repeat 1000 size 1500
 
 Type escape sequence to abort.
 Sending 1000, 1500-byte ICMP Echos to 192.168.4.1, timeout is 2 seconds:
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 !!!!!!!!!!!!!!!!!!!!
 Success rate is 98 percent (983/1000), round-trip min/avg/max =3D 1/1/4 =
 ms
 ----
 
 -> Pings from Cisco routers are especially likely to show the issue, as
 apparently mii_tick() and the pings from the Cisco occur synchronously
 for a while. TCP throughput isn't affected very much.
 
 Related dmesg output:
 
 bge0: <Broadcom BCM5704 B0, ASIC rev. 0x2100> mem 0xfdd70000-0xfdd7ffff
 irq 25 at device 2.0 on pci2
 miibus1: <MII bus> on bge0
 brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus1
 brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
 1000baseTX-FDX, auto
 bge0: Ethernet address: 00:18:71:e4:xx:xx
 
 pciconf -lv:
 
 bge0@pci2:2:0:	class=3D0x020000 card=3D0x00d00e11 chip=3D0x164814e4 =
 rev=3D0x10
 hdr=3D0x00
     vendor   =3D 'Broadcom Corporation'
     device   =3D 'BCM5704 NetXtreme Dual Gigabit Adapter'
     class    =3D network
     subclass =3D ethernet
 
Responsible-Changed-From-To: freebsd-net->oleg 
Responsible-Changed-By: oleg 
Responsible-Changed-When: Mon Sep 8 17:54:39 UTC 2008 
Responsible-Changed-Why:  
grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122295 
State-Changed-From-To: open->patched 
State-Changed-By: oleg 
State-Changed-When: Mon Sep 8 18:12:44 UTC 2008 
State-Changed-Why:  
MFC:	1 week 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/122295: commit references a PR
Date: Mon,  8 Sep 2008 18:10:57 +0000 (UTC)

 oleg        2008-09-08 18:10:15 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/dev/bge          if_bge.c 
   Log:
   SVN rev 182874 on 2008-09-08 18:10:15Z by oleg
   
   bge_tick(): do not touch PHY if link is up. This should solve problem with
   extra input errors for some BCM57XX chips.
   
   PR:             kern/122295
   
   Revision  Changes    Path
   1.212     +6 -2      src/sys/dev/bge/if_bge.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/122295: commit references a PR
Date: Thu, 18 Sep 2008 22:25:14 +0000 (UTC)

 oleg        2008-09-18 22:24:49 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     sys/dev/bge          if_bge.c 
   Log:
   SVN rev 183161 on 2008-09-18 22:24:49Z by oleg
   
   MFC: 182874
   bge_tick(): do not touch PHY if link is up. This should solve problem with
   extra input errors for some BCM57XX chips.
   
   PR:             kern/122295
   Approved by:    re (kensmith)
   
   Revision    Changes    Path
   1.198.2.10  +6 -2      src/sys/dev/bge/if_bge.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/122295: commit references a PR
Date: Thu, 18 Sep 2008 22:29:23 +0000 (UTC)

 oleg        2008-09-18 22:29:05 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sys/dev/bge          if_bge.c 
   Log:
   SVN rev 183162 on 2008-09-18 22:29:05Z by oleg
   
   MFC: 182874
   bge_tick(): do not touch PHY if link is up. This should solve problem with
   extra input errors for some BCM57XX chips.
   
   PR:             kern/122295
   Approved by:    re (kensmith)
   
   Revision   Changes    Path
   1.91.2.32  +6 -2      src/sys/dev/bge/if_bge.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: oleg 
State-Changed-When: Mon Sep 22 15:05:42 UTC 2008 
State-Changed-Why:  
commited to RELENG_[67] 


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