From owner-freebsd-current@FreeBSD.ORG Thu Sep 7 15:20:55 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 B42E716A4DA; Thu, 7 Sep 2006 15:20:55 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9F243D70; Thu, 7 Sep 2006 15:20:52 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id k87FKTOE074050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Sep 2006 08:20:30 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <450038BD.6010401@errno.com> Date: Thu, 07 Sep 2006 08:20:29 -0700 From: Sam Leffler User-Agent: Thunderbird 1.5.0.4 (X11/20060724) MIME-Version: 1.0 To: David Christensen References: <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oleg Bulyzhin , freebsd-current@freebsd.org, LI Xin , "Simon L. Nielsen" 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 15:20:55 -0000 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. > > 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. This appears to fix problems I was seeing on a 5703 part (sorry David, told you 5702 before): bge0: mem 0xfaff0000-0xfaffffff irq 11 at device 0.0 on pci2 This is a Dell 600m. Prior to the patch I'd get the RX diagnostic failed msg. dhclient would fetch a lease but I couldn't mount an nfs volume (w/ UDP). With your patch things appear to work as before. Sam