From owner-freebsd-current@FreeBSD.ORG Wed Sep 6 18:22:24 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 5BD5316A4DE; Wed, 6 Sep 2006 18:22:24 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C880843D45; Wed, 6 Sep 2006 18:22:23 +0000 (GMT) (envelope-from davidch@broadcom.com) Received: from 10.10.64.154 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.2.0)); Wed, 06 Sep 2006 11:22:15 -0700 X-Server-Uuid: F962EFE0-448C-40EE-8100-87DF498ED0EA Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 4BA542AF; Wed, 6 Sep 2006 11:22:15 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 1FD4F2AE; Wed, 6 Sep 2006 11:22:15 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id EEM71509; Wed, 6 Sep 2006 11:22:14 -0700 (PDT) Received: from NT-IRVA-0750.brcm.ad.broadcom.com (nt-irva-0750 [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id E036669CA4; Wed, 6 Sep 2006 11:22:13 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 6 Sep 2006 11:22:12 -0700 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <20060902185124.GB59963@zaphod.nitro.dk> X-MS-Has-Attach: yes Thread-Topic: bge(4) on BCM 5752 A02 panic due to media autoselect Thread-Index: AcbOwNInBi8+8p1XTq+dcz0hWQVWjQDHw8NA From: "David Christensen" To: "Simon L. Nielsen" X-TMWD-Spam-Summary: SEV=1.1; DFV=A2006090607; IFV=2.0.6,4.0-7; RPD=4.00.0004; RPDID=303030312E30413031303230322E34344646313035422E303033462D412D; ENG=IBF; TS=20060906182219; CAT=NONE; CON=NONE; X-MMS-Spam-Filter-ID: A2006090607_4.00.0004_2.0.6,4.0-7 X-WSS-ID: 68E1CE5D3CC4988061-01-01 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C6D1E1.5FC88339" 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: Wed, 06 Sep 2006 18:22:24 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6D1E1.5FC88339 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable > > Driver fails to start with diagnostic: > > bge0: RX CPU self-diagnostics failed! >=20 > 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. >=20 > It now works with: >=20 > $FreeBSD: src/sys/dev/bge/if_bge.c,v 1.140 2006/08/24=20 > 14:41:16 oleg Exp $ > $FreeBSD: src/sys/dev/bge/if_bgereg.h,v 1.52 2006/08/23=20 > 11:32:54 glebius Exp $ >=20 > I can test patches if needed. >=20 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. Dave ------_=_NextPart_001_01C6D1E1.5FC88339 Content-Type: application/octet-stream; name=if_bge.c.patch Content-Transfer-Encoding: base64 Content-Description: if_bge.c.patch Content-Disposition: attachment; filename=if_bge.c.patch SW5kZXg6IGlmX2JnZS5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvc3JjL3N5cy9k ZXYvYmdlL2lmX2JnZS5jLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjE0MwpkaWZmIC1yMS4xNDMg aWZfYmdlLmMKOTg0LDk5MmQ5ODMKPCAJLyoKPCAJICogQ2hlY2sgdGhlICdST00gZmFpbGVkJyBi aXQgb24gdGhlIFJYIENQVSB0byBzZWUgaWYKPCAJICogc2VsZi10ZXN0cyBwYXNzZWQuCjwgCSAq Lwo8IAlpZiAoQ1NSX1JFQURfNChzYywgQkdFX1JYQ1BVX01PREUpICYgQkdFX1JYQ1BVTU9ERV9S T01GQUlMKSB7CjwgCQlkZXZpY2VfcHJpbnRmKHNjLT5iZ2VfZGV2LCAiUlggQ1BVIHNlbGYtZGlh Z25vc3RpY3MgZmFpbGVkIVxuIik7CjwgCQlyZXR1cm4gKEVOT0RFVik7CjwgCX0KPCAK ------_=_NextPart_001_01C6D1E1.5FC88339--