From owner-freebsd-current@FreeBSD.ORG Mon Jan 18 20:14:56 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86BB7106568D for ; Mon, 18 Jan 2010 20:14:56 +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 0A5AB8FC16 for ; Mon, 18 Jan 2010 20:14:55 +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 o0IKEdsD004208; Mon, 18 Jan 2010 21:14:54 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o0IKEd8A004207; Mon, 18 Jan 2010 21:14:39 +0100 (CET) (envelope-from olli) Date: Mon, 18 Jan 2010 21:14:39 +0100 (CET) Message-Id: <201001182014.o0IKEd8A004207@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, pyunyh@gmail.com X-Newsgroups: list.freebsd-current 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]); Mon, 18 Jan 2010 21:14:54 +0100 (CET) Cc: Subject: bce(4) on IBM BladeCenter HS22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 20:14:56 -0000 Pyun YongHyeon wrote: > Ok, now let's open new thread for bce(4) issues. Ok, it took a little longer because I re-installed one of the blades with 9-current as of today. Again, these are "HS22" blades installed in an IBM BladeCenter. There are two bce(4) interfaces that don't attach correctly. The problem seems to be the same as in PRs kern/136417 and kern/139761 (which are duplicates of each other). Here's the excerpt from dmesg (verbose kernel): 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 bce0: /usr/src/sys/dev/bce/if_bce.c(1097): No PHY found on child MII bus! device_attach: bce0 attach returned 6 bce1: mem 0x94000000-0x95ffffff irq 37 at device 0.1 on pci16 bce1: attempting to allocate 1 MSI vectors (16 supported) msi: routing MSI IRQ 260 to local APIC 0 vector 112 bce1: using IRQ 260 for MSI bce1: /usr/src/sys/dev/bce/if_bce.c(1097): No PHY found on child MII bus! device_attach: bce1 attach returned 6 Attaching the driver fails, so ifconfig doesn't list anything. The ports are fiber, i.e. they should appear as 1000baseSX. This is what pciconf -lcv says: 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 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) bce1@pci0:16:0:1: 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 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) And the 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 I/O memory addresses: 0x92000000-0x93ffffff bce1 pnpinfo vendor=0x14e4 device=0x163a subvendor=0x1014 subdevice=0x0370 class=0x020000 at slot=0 function=1 Interrupt request lines: 260 I/O memory addresses: 0x94000000-0x95ffffff If you need more information, or want me to test any patches, please let me know. 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 "It combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript." -- Jamie Zawinski, when asked: "What's wrong with perl?"