From owner-freebsd-current@FreeBSD.ORG Wed Jan 20 14:02:20 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 1AC65106566C for ; Wed, 20 Jan 2010 14:02:20 +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 813F08FC1B for ; Wed, 20 Jan 2010 14:02:19 +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 o0KE21Wp010265; Wed, 20 Jan 2010 15:02:17 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o0KE21oc010264; Wed, 20 Jan 2010 15:02:01 +0100 (CET) (envelope-from olli) Date: Wed, 20 Jan 2010 15:02:01 +0100 (CET) Message-Id: <201001201402.o0KE21oc010264@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, pyunyh@gmail.com In-Reply-To: <20100119193743.GC6201@michelle.cdnetworks.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]); Wed, 20 Jan 2010 15:02:17 +0100 (CET) Cc: Subject: Re: 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: Wed, 20 Jan 2010 14:02:20 -0000 Pyun YongHyeon wrote: > On Tue, Jan 19, 2010 at 08:23:13PM +0100, Oliver Fromme wrote: > > Pyun YongHyeon wrote: > > > Thanks for the detailed information. I vaguely guess bce(4) used > > > wrong PHY address for controller. How about attached patch? > > > The patch just reset the PHY address to 1, it's not correct way to > > > set it but just wants to know whether brgphy(4) is attached to the > > > PHY. > > > > Unfortunately, it produces almost the same output, > > except the registers now read 0xffff instead of 0x0000: > > > :-( > > Ok, could you remove the safety belt of bce_miibus_read_reg() to > allow accessing all PHY address? You can comment out > sc->bce_phy_addr check in bce_miibus_read_reg() to allow > mii_phy_probe try to read all 32 possible PHY addresses. > Does mii(4) probe manage to read something? No luck, I'm afraid (as was expected). No PHY can be found on any of the addresses. The PHY addresses 2 and 31 return 0x0000, all others return 0xffff. While debugging and searching I found this message from David Christensen: http://lists.freebsd.org/pipermail/freebsd-net/2009-August/022648.html It seems that the PHY on the 5709S is different from the others and requires some non-trivial code to be written. :-( I posted a follow-up in the freebsd-net list and copied David. Maybe he has some news. This whole issue is quite important. IBM is phasing out the previous blade generation (HS21), so all new blades are HS22 which have the BCM5709S interfaces. As it stands now, FreeBSD cannot be used on IBM blades. 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 "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." -- Terry Lambert, FreeBSD-hackers mailing list.