Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2011 15:44:59 +0200
From:      Marius Strobl <marius@alchemy.franken.de>
To:        Paul Thornton <prt@prt.org>
Cc:        pyunyh@gmail.com, freebsd-net@freebsd.org
Subject:   Re: Broadcom BCM57765 support?
Message-ID:  <20110420134459.GL38455@alchemy.franken.de>
In-Reply-To: <4DAEDE27.8080205@prt.org>
References:  <4DADD913.5010208@prt.org> <20110419220907.GD1637@michelle.cdnetworks.com> <4DAEBB67.7070303@prt.org> <20110420131613.GA84319@alchemy.franken.de> <4DAEDE27.8080205@prt.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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: <Broadcom unknown BCM57765, ASIC rev. 0x57785000> 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: <MII bus> on bge0
> ukphy0: <Generic IEEE 802.3u media interface> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110420134459.GL38455>