From nobody@FreeBSD.org  Tue Nov 26 08:18:17 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id B89636C8
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 08:18:17 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id A83682A39
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 08:18:17 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAQ8IHHY030979
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 08:18:17 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAQ8IHCG030975;
	Tue, 26 Nov 2013 08:18:17 GMT
	(envelope-from nobody)
Message-Id: <201311260818.rAQ8IHCG030975@oldred.freebsd.org>
Date: Tue, 26 Nov 2013 08:18:17 GMT
From: Sastry Tumuluri <sas3@tumuluri.name>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not working
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184304
>Category:       amd64
>Synopsis:       Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 26 08:20:00 UTC 2013
>Closed-Date:    Thu Dec 05 07:46:05 UTC 2013
>Last-Modified:  Thu Dec 05 07:46:05 UTC 2013
>Originator:     Sastry Tumuluri
>Release:        10.0BETA3
>Organization:
Government of Haryana
>Environment:
FreeBSD 10.0-BETA3 #0 r257580: Sun Nov 3 19:43:01 UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Laptop: Acer Aspire E1-572-54204G50Mnkk

Ethernet NIC not recognized on boot.

pciconf shows:
none2@pci0:1:0:0: class=0x020000 card=0x07751025 chip=0x16b314e4 rev=0x01 hdr=0x00
  vendor   = 'Broadcom Corportation'
  device   = 'NetXtreme BCM57786 Gigabit Ethernet PCIe'
  class    = network
  subclass = ethernet

/var/run/dmesg.boot shows:
pci1: <network, ethernet> at device 0.0 (no driver attached)

kldstat -v | grep bge shows:
   98 bge/miibus
   97 pci/bge


>How-To-Repeat:

>Fix:
Same problem on was reported and fixed Ubuntu: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1242610

I verified the listed patched kernel on my laptop. It works.

>Release-Note:
>Audit-Trail:

From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: bug-followup@FreeBSD.org
Cc: sas3@tumuluri.name
Subject: Re: amd64/184304: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC
 not working
Date: Tue, 26 Nov 2013 23:27:12 +1100

 Following up with the details and references included in an email to
 yongari:
 
 NetBSD Patch adding support for BCM57786 and serveral other broadcom
 chipsets:
 
 http://www.netbsd.org/~msaitoh/bge6-20130830.dif
 
 NetBSD Commit (Sep 7 2013):
 
 http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pci/if_bgevar.h?rev=1.9.2.1&content-type=text/x-cvsweb-markup
 
 Linux Commit for 57764, 57765, 57787, 57782 and 57786
 device support:
 
 http://permalink.gmane.org/gmane.linux.network/284331

From: John Baldwin <jhb@freebsd.org>
To: freebsd-amd64@freebsd.org
Cc: Sastry Tumuluri <sas3@tumuluri.name>,
 freebsd-gnats-submit@freebsd.org,
 yongari@freebsd.org
Subject: Re: amd64/184304: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not working
Date: Tue, 26 Nov 2013 14:01:54 -0500

 Please try this but report back with the dmesg:
 
 Index: head/sys/dev/bge/if_bge.c
 ===================================================================
 --- head/sys/dev/bge/if_bge.c	(revision 258648)
 +++ head/sys/dev/bge/if_bge.c	(working copy)
 @@ -221,11 +221,16 @@
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57760 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57761 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57762 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57764 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57765 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57766 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57767 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57780 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57781 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57782 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57785 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57786 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57787 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57788 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57790 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57791 },
 @@ -2694,6 +2699,9 @@
  		case BCOM_DEVICEID_BCM5725:
  		case BCOM_DEVICEID_BCM5727:
  		case BCOM_DEVICEID_BCM5762:
 +		case BCOM_DEVICEID_BCM57764:
 +		case BCOM_DEVICEID_BCM57767:
 +		case BCOM_DEVICEID_BCM57787:
  			id = pci_read_config(dev,
  			    BGE_PCI_GEN2_PRODID_ASICREV, 4);
  			break;
 @@ -2702,7 +2710,9 @@
  		case BCOM_DEVICEID_BCM57765:
  		case BCOM_DEVICEID_BCM57766:
  		case BCOM_DEVICEID_BCM57781:
 +		case BCOM_DEVICEID_BCM57782:
  		case BCOM_DEVICEID_BCM57785:
 +		case BCOM_DEVICEID_BCM57786:
  		case BCOM_DEVICEID_BCM57791:
  		case BCOM_DEVICEID_BCM57795:
  			id = pci_read_config(dev,
 Index: head/sys/dev/bge/if_bgereg.h
 ===================================================================
 --- head/sys/dev/bge/if_bgereg.h	(revision 258648)
 +++ head/sys/dev/bge/if_bgereg.h	(working copy)
 @@ -2503,11 +2503,16 @@
  #define	BCOM_DEVICEID_BCM57760		0x1690
  #define	BCOM_DEVICEID_BCM57761		0x16B0
  #define	BCOM_DEVICEID_BCM57762		0x1682
 +#define	BCOM_DEVICEID_BCM57764		0x1642
  #define	BCOM_DEVICEID_BCM57765		0x16B4
  #define	BCOM_DEVICEID_BCM57766		0x1686
 +#define	BCOM_DEVICEID_BCM57767		0x1683
  #define	BCOM_DEVICEID_BCM57780		0x1692
  #define	BCOM_DEVICEID_BCM57781		0x16B1
 +#define	BCOM_DEVICEID_BCM57782		0x16B7
  #define	BCOM_DEVICEID_BCM57785		0x16B5
 +#define	BCOM_DEVICEID_BCM57786		0x16B3
 +#define	BCOM_DEVICEID_BCM57787		0x1641
  #define	BCOM_DEVICEID_BCM57788		0x1691
  #define	BCOM_DEVICEID_BCM57790		0x1694
  #define	BCOM_DEVICEID_BCM57791		0x16B2
 
 -- 
 John Baldwin

From: Sastry Tumuluri <sas3@tumuluri.name>
To: John Baldwin <jhb@freebsd.org>, bug-followup@freebsd.org
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/184304: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC
 not working
Date: Sat, 30 Nov 2013 23:41:56 +0530

 After the following steps,
 1. Apply the patch
 2. make buildkernel && make installkernel
 3. add the interface to /etc/rc.conf
 4. reboot
 The interface comes up as bge0 and it works.
 
 Now, /var/run/dmesg.boot shows:
 bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev.
 0x57766001> mem 0xb0410000-0xb041ffff, 0xb0420000-0xb042ffff irq 18 at
 device 0.0 on pci1
 bge0: CHIP ID 0x57766001; ASIC REV 0x57766; CHIP REV 0x577660; PCI-E
 miibus0: <MII bus> on bge0
 brgphy0: <BCM57765 1000BASE-T media interface> PHY 1 on miibus0
 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
 bge0: Ethernet address: aa:bb:cc:dd:ee:ff
 
 Notes:
 1. I expected to see BCM57786 (pciconf -lv shows this even now) in the
 messages but there isn't any. The chip number, revision and card
 references from pciconf don't seem to match with dmesg.
 2. In dmesg, "brgphy0:" line refers to <BCM57765 1000BASE-T media
 interface>  but pciconf refers to BCM57765 as "Memory Card Reader";
 not sure what the 1000BASE-T in dmesg is about.
 
 
 Cheers,
 
 ==Sas3==
 >> On a Slippery Road in the Name of National Security <<
 http://sastrytumuluri.blogspot.com/2013/10/on-slippery-road-in-name-of-national.html
 PGP Key ID: 2ACBE375B08D0A85
 
 
 On Wed, Nov 27, 2013 at 12:31 AM, John Baldwin <jhb@freebsd.org> wrote:
 >
 > On Tuesday, November 26, 2013 3:18:17 am Sastry Tumuluri wrote:
 > >
 > > >Number:         184304
 > > >Category:       amd64
 > > >Synopsis:       Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not
 > working
 > > >Confidential:   no
 > > >Severity:       non-critical
 > > >Priority:       low
 > > >Responsible:    freebsd-amd64
 > > >State:          open
 > > >Quarter:
 > > >Keywords:
 > > >Date-Required:
 > > >Class:          sw-bug
 > > >Submitter-Id:   current-users
 > > >Arrival-Date:   Tue Nov 26 08:20:00 UTC 2013
 > > >Closed-Date:
 > > >Last-Modified:
 > > >Originator:     Sastry Tumuluri
 > > >Release:        10.0BETA3
 > > >Organization:
 > > Government of Haryana
 > > >Environment:
 > > FreeBSD 10.0-BETA3 #0 r257580: Sun Nov 3 19:43:01 UTC 2013
 > root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
 > > >Description:
 > > Laptop: Acer Aspire E1-572-54204G50Mnkk
 > >
 > > Ethernet NIC not recognized on boot.
 > >
 > > pciconf shows:
 > > none2@pci0:1:0:0: class=0x020000 card=0x07751025 chip=0x16b314e4 rev=0x01
 > hdr=0x00
 > >   vendor   = 'Broadcom Corportation'
 > >   device   = 'NetXtreme BCM57786 Gigabit Ethernet PCIe'
 > >   class    = network
 > >   subclass = ethernet
 >
 > Please try this but report back with the dmesg:
 >
 > Index: head/sys/dev/bge/if_bge.c
 > ===================================================================
 > --- head/sys/dev/bge/if_bge.c   (revision 258648)
 > +++ head/sys/dev/bge/if_bge.c   (working copy)
 > @@ -221,11 +221,16 @@
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57760 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57761 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57762 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57764 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57765 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57766 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57767 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57780 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57781 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57782 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57785 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57786 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57787 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57788 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57790 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57791 },
 > @@ -2694,6 +2699,9 @@
 >                 case BCOM_DEVICEID_BCM5725:
 >                 case BCOM_DEVICEID_BCM5727:
 >                 case BCOM_DEVICEID_BCM5762:
 > +               case BCOM_DEVICEID_BCM57764:
 > +               case BCOM_DEVICEID_BCM57767:
 > +               case BCOM_DEVICEID_BCM57787:
 >                         id = pci_read_config(dev,
 >                             BGE_PCI_GEN2_PRODID_ASICREV, 4);
 >                         break;
 > @@ -2702,7 +2710,9 @@
 >                 case BCOM_DEVICEID_BCM57765:
 >                 case BCOM_DEVICEID_BCM57766:
 >                 case BCOM_DEVICEID_BCM57781:
 > +               case BCOM_DEVICEID_BCM57782:
 >                 case BCOM_DEVICEID_BCM57785:
 > +               case BCOM_DEVICEID_BCM57786:
 >                 case BCOM_DEVICEID_BCM57791:
 >                 case BCOM_DEVICEID_BCM57795:
 >                         id = pci_read_config(dev,
 > Index: head/sys/dev/bge/if_bgereg.h
 > ===================================================================
 > --- head/sys/dev/bge/if_bgereg.h        (revision 258648)
 > +++ head/sys/dev/bge/if_bgereg.h        (working copy)
 > @@ -2503,11 +2503,16 @@
 >  #define        BCOM_DEVICEID_BCM57760          0x1690
 >  #define        BCOM_DEVICEID_BCM57761          0x16B0
 >  #define        BCOM_DEVICEID_BCM57762          0x1682
 > +#define        BCOM_DEVICEID_BCM57764          0x1642
 >  #define        BCOM_DEVICEID_BCM57765          0x16B4
 >  #define        BCOM_DEVICEID_BCM57766          0x1686
 > +#define        BCOM_DEVICEID_BCM57767          0x1683
 >  #define        BCOM_DEVICEID_BCM57780          0x1692
 >  #define        BCOM_DEVICEID_BCM57781          0x16B1
 > +#define        BCOM_DEVICEID_BCM57782          0x16B7
 >  #define        BCOM_DEVICEID_BCM57785          0x16B5
 > +#define        BCOM_DEVICEID_BCM57786          0x16B3
 > +#define        BCOM_DEVICEID_BCM57787          0x1641
 >  #define        BCOM_DEVICEID_BCM57788          0x1691
 >  #define        BCOM_DEVICEID_BCM57790          0x1694
 >  #define        BCOM_DEVICEID_BCM57791          0x16B2
 >
 > --
 > John Baldwin

From: Sastry Tumuluri <sas3@tumuluri.name>
To: John Baldwin <jhb@freebsd.org>, bug-followup@freebsd.org
Cc: freebsd-amd64@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/184304: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC
 not working
Date: Sat, 30 Nov 2013 23:41:56 +0530

 After the following steps,
 1. Apply the patch
 2. make buildkernel && make installkernel
 3. add the interface to /etc/rc.conf
 4. reboot
 The interface comes up as bge0 and it works.
 
 Now, /var/run/dmesg.boot shows:
 bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev.
 0x57766001> mem 0xb0410000-0xb041ffff, 0xb0420000-0xb042ffff irq 18 at
 device 0.0 on pci1
 bge0: CHIP ID 0x57766001; ASIC REV 0x57766; CHIP REV 0x577660; PCI-E
 miibus0: <MII bus> on bge0
 brgphy0: <BCM57765 1000BASE-T media interface> PHY 1 on miibus0
 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
 bge0: Ethernet address: aa:bb:cc:dd:ee:ff
 
 Notes:
 1. I expected to see BCM57786 (pciconf -lv shows this even now) in the
 messages but there isn't any. The chip number, revision and card
 references from pciconf don't seem to match with dmesg.
 2. In dmesg, "brgphy0:" line refers to <BCM57765 1000BASE-T media
 interface>  but pciconf refers to BCM57765 as "Memory Card Reader";
 not sure what the 1000BASE-T in dmesg is about.
 
 
 Cheers,
 
 ==Sas3==
 >> On a Slippery Road in the Name of National Security <<
 http://sastrytumuluri.blogspot.com/2013/10/on-slippery-road-in-name-of-national.html
 PGP Key ID: 2ACBE375B08D0A85
 
 
 On Wed, Nov 27, 2013 at 12:31 AM, John Baldwin <jhb@freebsd.org> wrote:
 >
 > On Tuesday, November 26, 2013 3:18:17 am Sastry Tumuluri wrote:
 > >
 > > >Number:         184304
 > > >Category:       amd64
 > > >Synopsis:       Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not
 > working
 > > >Confidential:   no
 > > >Severity:       non-critical
 > > >Priority:       low
 > > >Responsible:    freebsd-amd64
 > > >State:          open
 > > >Quarter:
 > > >Keywords:
 > > >Date-Required:
 > > >Class:          sw-bug
 > > >Submitter-Id:   current-users
 > > >Arrival-Date:   Tue Nov 26 08:20:00 UTC 2013
 > > >Closed-Date:
 > > >Last-Modified:
 > > >Originator:     Sastry Tumuluri
 > > >Release:        10.0BETA3
 > > >Organization:
 > > Government of Haryana
 > > >Environment:
 > > FreeBSD 10.0-BETA3 #0 r257580: Sun Nov 3 19:43:01 UTC 2013
 > root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
 > > >Description:
 > > Laptop: Acer Aspire E1-572-54204G50Mnkk
 > >
 > > Ethernet NIC not recognized on boot.
 > >
 > > pciconf shows:
 > > none2@pci0:1:0:0: class=0x020000 card=0x07751025 chip=0x16b314e4 rev=0x01
 > hdr=0x00
 > >   vendor   = 'Broadcom Corportation'
 > >   device   = 'NetXtreme BCM57786 Gigabit Ethernet PCIe'
 > >   class    = network
 > >   subclass = ethernet
 >
 > Please try this but report back with the dmesg:
 >
 > Index: head/sys/dev/bge/if_bge.c
 > ===================================================================
 > --- head/sys/dev/bge/if_bge.c   (revision 258648)
 > +++ head/sys/dev/bge/if_bge.c   (working copy)
 > @@ -221,11 +221,16 @@
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57760 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57761 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57762 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57764 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57765 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57766 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57767 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57780 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57781 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57782 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57785 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57786 },
 > +       { BCOM_VENDORID,        BCOM_DEVICEID_BCM57787 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57788 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57790 },
 >         { BCOM_VENDORID,        BCOM_DEVICEID_BCM57791 },
 > @@ -2694,6 +2699,9 @@
 >                 case BCOM_DEVICEID_BCM5725:
 >                 case BCOM_DEVICEID_BCM5727:
 >                 case BCOM_DEVICEID_BCM5762:
 > +               case BCOM_DEVICEID_BCM57764:
 > +               case BCOM_DEVICEID_BCM57767:
 > +               case BCOM_DEVICEID_BCM57787:
 >                         id = pci_read_config(dev,
 >                             BGE_PCI_GEN2_PRODID_ASICREV, 4);
 >                         break;
 > @@ -2702,7 +2710,9 @@
 >                 case BCOM_DEVICEID_BCM57765:
 >                 case BCOM_DEVICEID_BCM57766:
 >                 case BCOM_DEVICEID_BCM57781:
 > +               case BCOM_DEVICEID_BCM57782:
 >                 case BCOM_DEVICEID_BCM57785:
 > +               case BCOM_DEVICEID_BCM57786:
 >                 case BCOM_DEVICEID_BCM57791:
 >                 case BCOM_DEVICEID_BCM57795:
 >                         id = pci_read_config(dev,
 > Index: head/sys/dev/bge/if_bgereg.h
 > ===================================================================
 > --- head/sys/dev/bge/if_bgereg.h        (revision 258648)
 > +++ head/sys/dev/bge/if_bgereg.h        (working copy)
 > @@ -2503,11 +2503,16 @@
 >  #define        BCOM_DEVICEID_BCM57760          0x1690
 >  #define        BCOM_DEVICEID_BCM57761          0x16B0
 >  #define        BCOM_DEVICEID_BCM57762          0x1682
 > +#define        BCOM_DEVICEID_BCM57764          0x1642
 >  #define        BCOM_DEVICEID_BCM57765          0x16B4
 >  #define        BCOM_DEVICEID_BCM57766          0x1686
 > +#define        BCOM_DEVICEID_BCM57767          0x1683
 >  #define        BCOM_DEVICEID_BCM57780          0x1692
 >  #define        BCOM_DEVICEID_BCM57781          0x16B1
 > +#define        BCOM_DEVICEID_BCM57782          0x16B7
 >  #define        BCOM_DEVICEID_BCM57785          0x16B5
 > +#define        BCOM_DEVICEID_BCM57786          0x16B3
 > +#define        BCOM_DEVICEID_BCM57787          0x1641
 >  #define        BCOM_DEVICEID_BCM57788          0x1691
 >  #define        BCOM_DEVICEID_BCM57790          0x1694
 >  #define        BCOM_DEVICEID_BCM57791          0x16B2
 >
 > --
 > John Baldwin
Responsible-Changed-From-To: freebsd-amd64->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Mon Dec 2 05:12:04 UTC 2013 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184304 
State-Changed-From-To: open->patched 
State-Changed-By: yongari 
State-Changed-When: Mon Dec 2 05:23:30 UTC 2013 
State-Changed-Why:  
I've checked in John's patch(r258830). 
Thanks for reporting and testing! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/184304: commit references a PR
Date: Mon,  2 Dec 2013 05:22:07 +0000 (UTC)

 Author: yongari
 Date: Mon Dec  2 05:21:54 2013
 New Revision: 258830
 URL: http://svnweb.freebsd.org/changeset/base/258830
 
 Log:
   Add support for BCM57764, BCM57767, BCM57782, BCM57786 and BCM57787.
   Submitted by:	jhb
   PR:	184304
 
 Modified:
   head/sys/dev/bge/if_bge.c
   head/sys/dev/bge/if_bgereg.h
 
 Modified: head/sys/dev/bge/if_bge.c
 ==============================================================================
 --- head/sys/dev/bge/if_bge.c	Mon Dec  2 03:59:45 2013	(r258829)
 +++ head/sys/dev/bge/if_bge.c	Mon Dec  2 05:21:54 2013	(r258830)
 @@ -221,11 +221,16 @@ static const struct bge_type {
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57760 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57761 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57762 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57764 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57765 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57766 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57767 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57780 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57781 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57782 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57785 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57786 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57787 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57788 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57790 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57791 },
 @@ -2694,6 +2699,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM5725:
  		case BCOM_DEVICEID_BCM5727:
  		case BCOM_DEVICEID_BCM5762:
 +		case BCOM_DEVICEID_BCM57764:
 +		case BCOM_DEVICEID_BCM57767:
 +		case BCOM_DEVICEID_BCM57787:
  			id = pci_read_config(dev,
  			    BGE_PCI_GEN2_PRODID_ASICREV, 4);
  			break;
 @@ -2702,7 +2710,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM57765:
  		case BCOM_DEVICEID_BCM57766:
  		case BCOM_DEVICEID_BCM57781:
 +		case BCOM_DEVICEID_BCM57782:
  		case BCOM_DEVICEID_BCM57785:
 +		case BCOM_DEVICEID_BCM57786:
  		case BCOM_DEVICEID_BCM57791:
  		case BCOM_DEVICEID_BCM57795:
  			id = pci_read_config(dev,
 
 Modified: head/sys/dev/bge/if_bgereg.h
 ==============================================================================
 --- head/sys/dev/bge/if_bgereg.h	Mon Dec  2 03:59:45 2013	(r258829)
 +++ head/sys/dev/bge/if_bgereg.h	Mon Dec  2 05:21:54 2013	(r258830)
 @@ -2503,11 +2503,16 @@ struct bge_status_block {
  #define	BCOM_DEVICEID_BCM57760		0x1690
  #define	BCOM_DEVICEID_BCM57761		0x16B0
  #define	BCOM_DEVICEID_BCM57762		0x1682
 +#define	BCOM_DEVICEID_BCM57764		0x1642
  #define	BCOM_DEVICEID_BCM57765		0x16B4
  #define	BCOM_DEVICEID_BCM57766		0x1686
 +#define	BCOM_DEVICEID_BCM57767		0x1683
  #define	BCOM_DEVICEID_BCM57780		0x1692
  #define	BCOM_DEVICEID_BCM57781		0x16B1
 +#define	BCOM_DEVICEID_BCM57782		0x16B7
  #define	BCOM_DEVICEID_BCM57785		0x16B5
 +#define	BCOM_DEVICEID_BCM57786		0x16B3
 +#define	BCOM_DEVICEID_BCM57787		0x1641
  #define	BCOM_DEVICEID_BCM57788		0x1691
  #define	BCOM_DEVICEID_BCM57790		0x1694
  #define	BCOM_DEVICEID_BCM57791		0x16B2
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/184304: commit references a PR
Date: Thu,  5 Dec 2013 06:14:13 +0000 (UTC)

 Author: yongari
 Date: Thu Dec  5 06:13:59 2013
 New Revision: 258959
 URL: http://svnweb.freebsd.org/changeset/base/258959
 
 Log:
   MFC r258830:
     Add support for BCM57764, BCM57767, BCM57782, BCM57786 and BCM57787.
     PR:	184304
     Approved by:	re (rodrigc)
 
 Modified:
   stable/10/sys/dev/bge/if_bge.c
   stable/10/sys/dev/bge/if_bgereg.h
 Directory Properties:
   stable/10/sys/   (props changed)
 
 Modified: stable/10/sys/dev/bge/if_bge.c
 ==============================================================================
 --- stable/10/sys/dev/bge/if_bge.c	Thu Dec  5 05:59:09 2013	(r258958)
 +++ stable/10/sys/dev/bge/if_bge.c	Thu Dec  5 06:13:59 2013	(r258959)
 @@ -220,11 +220,16 @@ static const struct bge_type {
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57760 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57761 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57762 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57764 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57765 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57766 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57767 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57780 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57781 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57782 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57785 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57786 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57787 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57788 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57790 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57791 },
 @@ -2693,6 +2698,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM5725:
  		case BCOM_DEVICEID_BCM5727:
  		case BCOM_DEVICEID_BCM5762:
 +		case BCOM_DEVICEID_BCM57764:
 +		case BCOM_DEVICEID_BCM57767:
 +		case BCOM_DEVICEID_BCM57787:
  			id = pci_read_config(dev,
  			    BGE_PCI_GEN2_PRODID_ASICREV, 4);
  			break;
 @@ -2701,7 +2709,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM57765:
  		case BCOM_DEVICEID_BCM57766:
  		case BCOM_DEVICEID_BCM57781:
 +		case BCOM_DEVICEID_BCM57782:
  		case BCOM_DEVICEID_BCM57785:
 +		case BCOM_DEVICEID_BCM57786:
  		case BCOM_DEVICEID_BCM57791:
  		case BCOM_DEVICEID_BCM57795:
  			id = pci_read_config(dev,
 
 Modified: stable/10/sys/dev/bge/if_bgereg.h
 ==============================================================================
 --- stable/10/sys/dev/bge/if_bgereg.h	Thu Dec  5 05:59:09 2013	(r258958)
 +++ stable/10/sys/dev/bge/if_bgereg.h	Thu Dec  5 06:13:59 2013	(r258959)
 @@ -2503,11 +2503,16 @@ struct bge_status_block {
  #define	BCOM_DEVICEID_BCM57760		0x1690
  #define	BCOM_DEVICEID_BCM57761		0x16B0
  #define	BCOM_DEVICEID_BCM57762		0x1682
 +#define	BCOM_DEVICEID_BCM57764		0x1642
  #define	BCOM_DEVICEID_BCM57765		0x16B4
  #define	BCOM_DEVICEID_BCM57766		0x1686
 +#define	BCOM_DEVICEID_BCM57767		0x1683
  #define	BCOM_DEVICEID_BCM57780		0x1692
  #define	BCOM_DEVICEID_BCM57781		0x16B1
 +#define	BCOM_DEVICEID_BCM57782		0x16B7
  #define	BCOM_DEVICEID_BCM57785		0x16B5
 +#define	BCOM_DEVICEID_BCM57786		0x16B3
 +#define	BCOM_DEVICEID_BCM57787		0x1641
  #define	BCOM_DEVICEID_BCM57788		0x1691
  #define	BCOM_DEVICEID_BCM57790		0x1694
  #define	BCOM_DEVICEID_BCM57791		0x16B2
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/184304: commit references a PR
Date: Thu,  5 Dec 2013 07:33:03 +0000 (UTC)

 Author: yongari
 Date: Thu Dec  5 07:32:54 2013
 New Revision: 258967
 URL: http://svnweb.freebsd.org/changeset/base/258967
 
 Log:
   MFC r258830:
     Add support for BCM57764, BCM57767, BCM57782, BCM57786 and BCM57787.
     PR:	184304
 
 Modified:
   stable/9/sys/dev/bge/if_bge.c
   stable/9/sys/dev/bge/if_bgereg.h
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/dev/   (props changed)
 
 Modified: stable/9/sys/dev/bge/if_bge.c
 ==============================================================================
 --- stable/9/sys/dev/bge/if_bge.c	Thu Dec  5 07:31:01 2013	(r258966)
 +++ stable/9/sys/dev/bge/if_bge.c	Thu Dec  5 07:32:54 2013	(r258967)
 @@ -220,11 +220,16 @@ static const struct bge_type {
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57760 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57761 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57762 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57764 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57765 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57766 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57767 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57780 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57781 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57782 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57785 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57786 },
 +	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57787 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57788 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57790 },
  	{ BCOM_VENDORID,	BCOM_DEVICEID_BCM57791 },
 @@ -2693,6 +2698,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM5725:
  		case BCOM_DEVICEID_BCM5727:
  		case BCOM_DEVICEID_BCM5762:
 +		case BCOM_DEVICEID_BCM57764:
 +		case BCOM_DEVICEID_BCM57767:
 +		case BCOM_DEVICEID_BCM57787:
  			id = pci_read_config(dev,
  			    BGE_PCI_GEN2_PRODID_ASICREV, 4);
  			break;
 @@ -2701,7 +2709,9 @@ bge_chipid(device_t dev)
  		case BCOM_DEVICEID_BCM57765:
  		case BCOM_DEVICEID_BCM57766:
  		case BCOM_DEVICEID_BCM57781:
 +		case BCOM_DEVICEID_BCM57782:
  		case BCOM_DEVICEID_BCM57785:
 +		case BCOM_DEVICEID_BCM57786:
  		case BCOM_DEVICEID_BCM57791:
  		case BCOM_DEVICEID_BCM57795:
  			id = pci_read_config(dev,
 
 Modified: stable/9/sys/dev/bge/if_bgereg.h
 ==============================================================================
 --- stable/9/sys/dev/bge/if_bgereg.h	Thu Dec  5 07:31:01 2013	(r258966)
 +++ stable/9/sys/dev/bge/if_bgereg.h	Thu Dec  5 07:32:54 2013	(r258967)
 @@ -2502,11 +2502,16 @@ struct bge_status_block {
  #define	BCOM_DEVICEID_BCM57760		0x1690
  #define	BCOM_DEVICEID_BCM57761		0x16B0
  #define	BCOM_DEVICEID_BCM57762		0x1682
 +#define	BCOM_DEVICEID_BCM57764		0x1642
  #define	BCOM_DEVICEID_BCM57765		0x16B4
  #define	BCOM_DEVICEID_BCM57766		0x1686
 +#define	BCOM_DEVICEID_BCM57767		0x1683
  #define	BCOM_DEVICEID_BCM57780		0x1692
  #define	BCOM_DEVICEID_BCM57781		0x16B1
 +#define	BCOM_DEVICEID_BCM57782		0x16B7
  #define	BCOM_DEVICEID_BCM57785		0x16B5
 +#define	BCOM_DEVICEID_BCM57786		0x16B3
 +#define	BCOM_DEVICEID_BCM57787		0x1641
  #define	BCOM_DEVICEID_BCM57788		0x1691
  #define	BCOM_DEVICEID_BCM57790		0x1694
  #define	BCOM_DEVICEID_BCM57791		0x16B2
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: yongari 
State-Changed-When: Thu Dec 5 07:44:25 UTC 2013 
State-Changed-Why:  
MFC to both stable/10 and stable/9 complete. 
Upcoming 10-RELEASE will ship support code for BCM57786. 

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