From owner-freebsd-net@FreeBSD.ORG Thu Jan 21 19:11:49 2010 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 39A551065692 for ; Thu, 21 Jan 2010 19:11:49 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id B041A8FC26 for ; Thu, 21 Jan 2010 19:11:48 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o0LJBSoe085903; Thu, 21 Jan 2010 20:11:43 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o0LJBRUP085902; Thu, 21 Jan 2010 20:11:27 +0100 (CET) (envelope-from olli) Date: Thu, 21 Jan 2010 20:11:27 +0100 (CET) Message-Id: <201001211911.o0LJBRUP085902@lurza.secnetix.de> From: Oliver Fromme To: freebsd-net@FreeBSD.ORG, pyunyh@gmail.com, davidch@broadcom.com In-Reply-To: <5D267A3F22FD854F8F48B3D2B52381933A537E281A@IRVEXCHCCR01.corp.ad.broadcom.com> X-Newsgroups: list.freebsd-net User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 21 Jan 2010 20:11:44 +0100 (CET) Cc: Subject: Re: kern/134658: [bce] bce driver fails on PowerEdge m610 blade. 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: Thu, 21 Jan 2010 19:11:49 -0000 David Christensen wrote: > Oliver Fromme wrote: > > While trying to debug the same issue I stumbled across this > > thread ... We've got HS22 blades (IBM BladeCenter) which > > habe the BCM5709S and suffer from exactly the same problem. > > > > Dave, are there any news regarding the PHY implementation? > > > > If there's decent documentation I might even give it a try > > myself, provided that it's not too complex. (I've done > > hardware programming before, but I've never touched a NIC/PHY > > driver, except for very trivial fixes.) > > > > Pyunh has taken an active interest in this effort and sent out > a patch yesterday, though he doesn't have hardware to test. I'm > planning on giving his patch a try today to see how close he got > on his first attempt. Thank you very much to both of you! With that patch applied, the 5709S PHY is correctly attached by brgphy and "seems to work". I can't test it thoroughly right now, though, because there is no cable attached to the port ... The machine is located in a customer's datacenter in a different city and I'll have to ask someone to connect the ports. This is a little bit complicated in that company. :-) I will continue testing as soon as there's a physical link. For now, this is what ifconfig says (bce0 only; bce1 is the same): bce0: flags=8802 metric 0 mtu 1500 options=1bb capabilities=1bb ether 00:21:5e:98:f6:6c media: Ethernet autoselect (autoselect ) status: no carrier supported media: media autoselect media 1000baseSX mediaopt full-duplex media none Here's an excerpt from dmesg (verbose boot): bce0: mem 0x92000000-0x93ffffff irq 30 at device 0.0 on pci16 bce0: attempting to allocate 1 MSI vectors (16 supported) msi: routing MSI IRQ 260 to local APIC 0 vector 112 bce0: using IRQ 260 for MSI miibus2: on bce0 brgphy2: PHY 2 on miibus2 brgphy2: OUI 0x0050ef, model 0x003f, rev. 0 brgphy2: 1000baseSX-FDX, auto bce0: bpf attached bce0: Ethernet address: 00:21:5e:98:f6:6c bce0: [MPSAFE] bce0: [ITHREAD] bce0: ASIC (0x57092000); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.0.6); Flags (MSI|MFW); MFW (NCSI 2.0.3) And relevant parts from devinfo -rv: pcib6 pnpinfo vendor=0x8086 device=0x340e subvendor=0x1014 subdevice=0x340e class=0x060400 at slot=7 function=0 handle=\_SB_.PCI0.ETH1 pci16 bce0 pnpinfo vendor=0x14e4 device=0x163a subvendor=0x1014 subdevice=0x0370 class=0x020000 at slot=0 function=0 Interrupt request lines: 260 I/O memory addresses: 0x92000000-0x93ffffff miibus2 brgphy2 pnpinfo oui=0x50ef model=0x3f rev=0x0 at phyno=2 Finally pciconf -lcv: bce0@pci0:16:0:0: class=0x020000 card=0x03701014 chip=0x163a14e4 rev=0x20 hdr=0x00 vendor = 'Broadcom Corporation' device = 'NetXtreme II BCM5709S Gigabit Ethernet' class = network subclass = ethernet cap 01[48] = powerspec 3 supports D0 D3 current D0 cap 03[50] = VPD cap 05[58] = MSI supports 16 messages, 64 bit enabled with 1 message cap 11[a0] = MSI-X supports 9 messages in map 0x10 cap 10[ac] = PCI-Express 2 endpoint max data 256(512) link x4(x4) The complete files (dmesg etc.) can be found here: http://www.secnetix.de/olli/dmesg/hs22/ Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "IRIX is about as stable as a one-legged drunk with hypothermia in a four-hundred mile per hour wind, balancing on a banana peel on a greased cookie sheet -- when someone throws him an elephant with bad breath and a worse temper." -- Ralf Hildebrandt