From owner-freebsd-net@FreeBSD.ORG Wed Apr 20 13:45:01 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CC70106564A for ; Wed, 20 Apr 2011 13:45:01 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id B67788FC13 for ; Wed, 20 Apr 2011 13:45:00 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p3KDixoe084531; Wed, 20 Apr 2011 15:44:59 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p3KDix06084530; Wed, 20 Apr 2011 15:44:59 +0200 (CEST) (envelope-from marius) Date: Wed, 20 Apr 2011 15:44:59 +0200 From: Marius Strobl To: Paul Thornton Message-ID: <20110420134459.GL38455@alchemy.franken.de> References: <4DADD913.5010208@prt.org> <20110419220907.GD1637@michelle.cdnetworks.com> <4DAEBB67.7070303@prt.org> <20110420131613.GA84319@alchemy.franken.de> <4DAEDE27.8080205@prt.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UfEAyuTBtIjiZzX6" Content-Disposition: inline In-Reply-To: <4DAEDE27.8080205@prt.org> User-Agent: Mutt/1.4.2.3i Cc: pyunyh@gmail.com, freebsd-net@freebsd.org Subject: Re: Broadcom BCM57765 support? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 13:45:01 -0000 --UfEAyuTBtIjiZzX6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 20, 2011 at 02:22:47PM +0100, Paul Thornton wrote: > Hi, > > On 20/04/2011 14:16, Marius Strobl wrote: > > Looks like brgphy(4) also needs to be taught about this hardware. Could > > you please provide the corresponding part of a verbose dmesg? > > Hopefully this covers everything that you might need: > > pcib4: slot 0 INTA is routed to irq 18 > found-> vendor=0x14e4, dev=0x16bc, revid=0x00 > domain=0, bus=4, slot=0, func=1 > class=08-05-01, hdrtype=0x00, mfdev=1 > cmdreg=0x0006, statreg=0x0010, cachelnsz=64 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=b, irq=7 > powerspec 3 supports D0 D3 current D0 > MSI supports 1 message, 64 bit > map[10]: type Prefetchable Memory, range 64, base 0x93120000, size 16, > enabled > pcib4: requested memory range 0x93120000-0x9312ffff: good > pcib0: matched entry for 0.22.INTB (src \\_SB_.PCI0.Z00O:0) > pci_link13: Picked IRQ 19 with weight 1 > pcib0: slot 22 INTB routed to irq 19 via \\_SB_.PCI0.Z00O > pcib4: slot 0 INTB is routed to irq 19 > bge0: mem > 0x93100000-0x9310ffff,0x93110000-0x9311ffff irq 18 at device 0.0 on pci4 > bge0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0x93100000 > bge0: attempting to allocate 1 MSI vectors (8 supported) > msi: routing MSI IRQ 256 to local APIC 0 vector 56 > bge0: using IRQ 256 for MSI > bge0: CHIP ID 0x57785000; ASIC REV 0x57785; CHIP REV 0x577850; PCI-E > bge0: Disabling fastboot > bge0: Disabling fastboot > miibus0: on bge0 > ukphy0: PHY 1 on miibus0 > ukphy0: OUI 0x00d897, model 0x0024, rev. 0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > bge0: bpf attached > bge0: Ethernet address: c4:2c:03:08:0b:9d > bge0: [MPSAFE] > bge0: [FILTER] > Hrm, looks like neither NetBSD nor OpenBSD support this variant so far, however Linux also doesn't seem to have special handling for it. Could you please give the attached patch in addition to the existing one a try? Marius --UfEAyuTBtIjiZzX6 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="brgphy_57785.diff" Index: brgphy.c =================================================================== --- brgphy.c (revision 220886) +++ brgphy.c (working copy) @@ -143,6 +143,7 @@ static const struct mii_phydesc brgphys[] = { MII_PHY_DESC(xxBROADCOM_ALT1, BCM5761), MII_PHY_DESC(xxBROADCOM_ALT1, BCM5709S), MII_PHY_DESC(xxBROADCOM_ALT2, BCM5717C), + MII_PHY_DESC(xxBROADCOM_ALT2, BCM57785), MII_PHY_DESC(BROADCOM2, BCM5906), MII_PHY_END }; Index: miidevs =================================================================== --- miidevs (revision 220886) +++ miidevs (working copy) @@ -159,6 +159,7 @@ model xxBROADCOM_ALT1 BCM5709C 0x003c BCM5709C 10/ model xxBROADCOM_ALT1 BCM5761 0x003d BCM5761 10/100/1000baseTX PHY model xxBROADCOM_ALT1 BCM5709S 0x003f BCM5709S 1000/2500baseSX PHY model xxBROADCOM_ALT2 BCM5717C 0x0020 BCM5717C 10/100/1000baseTX PHY +model xxBROADCOM_ALT2 BCM57785 0x0024 BCM57785 10/100/1000baseTX PHY model BROADCOM2 BCM5906 0x0004 BCM5906 10/100baseTX PHY /* Cicada Semiconductor PHYs (now owned by Vitesse?) */ --UfEAyuTBtIjiZzX6--