Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2006 11:22:12 -0700
From:      "David Christensen" <davidch@broadcom.com>
To:        "Simon L. Nielsen" <simon@FreeBSD.org>
Cc:        LI Xin <delphij@delphij.net>, freebsd-current@freebsd.org, Oleg Bulyzhin <oleg@freebsd.org>
Subject:   RE: bge(4) on BCM 5752 A02 panic due to media autoselect
Message-ID:  <09BFF2FA5EAB4A45B6655E151BBDD90301F126D5@NT-IRVA-0750.brcm.ad.broadcom.com>
In-Reply-To: <20060902185124.GB59963@zaphod.nitro.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09BFF2FA5EAB4A45B6655E151BBDD90301F126D5>