From owner-freebsd-current@FreeBSD.ORG Thu Sep 7 18:51:22 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04C6616A4F3; Thu, 7 Sep 2006 18:51:22 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from mx.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C76543E39; Thu, 7 Sep 2006 18:50:07 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (unknown [192.168.3.39]) by mx.nitro.dk (Postfix) with ESMTP id DBC8D32E7A5; Thu, 7 Sep 2006 18:50:06 +0000 (UTC) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id B85631141D; Thu, 7 Sep 2006 20:50:06 +0200 (CEST) Date: Thu, 7 Sep 2006 20:50:06 +0200 From: "Simon L. Nielsen" To: David Christensen Message-ID: <20060907185005.GA984@zaphod.nitro.dk> References: <20060902185124.GB59963@zaphod.nitro.dk> <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com> <20060902185124.GB59963@zaphod.nitro.dk> <09BFF2FA5EAB4A45B6655E151BBDD90301F1257E@NT-IRVA-0750.brcm.ad.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com> <09BFF2FA5EAB4A45B6655E151BBDD90301F1257E@NT-IRVA-0750.brcm.ad.broadcom.com> User-Agent: Mutt/1.5.11 Cc: LI Xin , freebsd-current@freebsd.org, Oleg Bulyzhin Subject: Re: bge(4) on BCM 5752 A02 panic due to media autoselect 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: Thu, 07 Sep 2006 18:51:22 -0000 On 2006.09.05 16:35:41 -0700, David Christensen wrote: [BCM5703 really BCM5702 part cut] > > > Driver fails to start with diagnostic: > > > bge0: RX CPU self-diagnostics failed! > > > > As a followup, I tried backing out only the latest bge(4) changes and > > now the system (sledge.freebsd.org) works again. Basically the system > > responded to ICMP ping, but it seemed all other network trafic didn't > > work, at least NFS mounts, NTP etc. failed at boot and ssh to the > > system didn't work. > > > > It now works with: > > > > $FreeBSD: src/sys/dev/bge/if_bge.c,v 1.140 2006/08/24 > > 14:41:16 oleg Exp $ > > $FreeBSD: src/sys/dev/bge/if_bgereg.h,v 1.52 2006/08/23 > > 11:32:54 glebius Exp $ > > > > I can test patches if needed. > > I tested with a 5702 A1 card and the v1.141 version still worked for > me. Are you using a NIC card or is this a LOM? If the latter, what > system is the LOM built into? This error message indicates that the > controller was unable to read and load firmware from the NVRAM which > is usually a real error (unless the system was designed to operate > without NVRAM which is generally only a few Sun systems). Oleg already posted the info from MOTD on the system that it's Rioworks HDAMA motherboard.. Other than that I really don't know much about the system configuration since I just help adminster it remotely. On 2006.09.06 11:22:12 -0700, David Christensen wrote: > > > Driver fails to start with diagnostic: > > > bge0: RX CPU self-diagnostics failed! > > > > As a followup, I tried backing out only the latest bge(4) changes and > > now the system (sledge.freebsd.org) works again. Basically the system > > responded to ICMP ping, but it seemed all other network trafic didn't > > work, at least NFS mounts, NTP etc. failed at boot and ssh to the > > system didn't work. > > > > It now works with: > > > > $FreeBSD: src/sys/dev/bge/if_bge.c,v 1.140 2006/08/24 > > 14:41:16 oleg Exp $ > > $FreeBSD: src/sys/dev/bge/if_bgereg.h,v 1.52 2006/08/23 > > 11:32:54 glebius Exp $ > > > > I can test patches if needed. > > I tried several 5702 NICs with various revisions and was never able to > duplicate the problem you're seeing. They all worked correctly with my > first patch. Hmm :-/. > Can you test the attached patch? I've simply removed the test > altogether. > The Linux driver doesn't perform this test and the fact that the > test is performed after bge_reset() is called simply means we're > checking the same information twice (i.e. did the NIC firmware > load). Since the firmware handshake was successful we know the > firmware loaded so the test is redundant. With your patch and if_bge.c 1.143 and if_bgereg.h,v 1.54 the system now works again. Thanks. -- Simon L. Nielsen