From owner-freebsd-amd64@FreeBSD.ORG Sat Nov 30 18:20:04 2013 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63988211 for ; Sat, 30 Nov 2013 18:20:04 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4F27310B7 for ; Sat, 30 Nov 2013 18:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rAUIK4ao057279 for ; Sat, 30 Nov 2013 18:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rAUIK4FN057278; Sat, 30 Nov 2013 18:20:04 GMT (envelope-from gnats) Date: Sat, 30 Nov 2013 18:20:04 GMT Message-Id: <201311301820.rAUIK4FN057278@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Sastry Tumuluri Subject: Re: amd64/184304: Broadcom NetXtreme BCM57786 Gigabit Ethernet NIC not working X-Mailman-Approved-At: Sat, 30 Nov 2013 18:55:02 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list Reply-To: Sastry Tumuluri List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2013 18:20:04 -0000 The following reply was made to PR amd64/184304; it has been noted by GNATS. From: Sastry Tumuluri To: John Baldwin , 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: 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: on bge0 brgphy0: 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 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 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