From owner-cvs-src@FreeBSD.ORG Thu Dec 14 00:24:29 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 705EC16A4B3; Thu, 14 Dec 2006 00:24:29 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B99D943CD8; Thu, 14 Dec 2006 00:22:35 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id kBE0NliU016607; Wed, 13 Dec 2006 17:23:52 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45809992.5030604@samsco.org> Date: Wed, 13 Dec 2006 17:23:46 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7) Gecko/20060910 SeaMonkey/1.0.5 MIME-Version: 1.0 To: Jung-uk Kim References: <200612132051.kBDKppS4058663@repoman.freebsd.org> <200612131846.33252.jkim@FreeBSD.org> In-Reply-To: <200612131846.33252.jkim@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Scott Long , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/bge if_bge.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2006 00:24:29 -0000 Jung-uk Kim wrote: > On Wednesday 13 December 2006 03:51 pm, Scott Long wrote: >> scottl 2006-12-13 20:51:51 UTC >> >> FreeBSD src repository >> >> Modified files: >> sys/dev/bge if_bge.c >> Log: >> Remove a redundant write of the firmware reset magic number. It >> looks to have been added erroneously, and it causes problems on >> some chips. A larger change is needed to do this write at a more >> appropriate place, but that change requires reworking the ASF >> logic. That will be worked on in the future. >> >> Submitted by: Bruce Evans > > I am still getting firmware handshake timeouts and/or watchdog > timeouts. Most importantly it panics or get witness warnings (lots > of 'memory modified after free'). Panic goes like this (while > kldunload if_bge with dhclient enabled): > > brgphy0: detached > miibus0: detached > bge0: firmware handshake timed out, found 0x4b657654 > bge0: firmware handshake timed out, found 0x4b657654 > bge0: detached > bge0: mem ... > bge0: firmware handshake timed out, found 0x4b657654 > bge0: firmware handshake timed out, found 0x4b657654 > miibus0: on bge0 > brgphy0: on miibus0 > brgphy0: 10baseT, ... > bge0: Ethernet address: ... > bge0: firmware handshake timed out, found 0x4b657654 > bge0: firmware handshake timed out, found 0x4b657654 > bge0: discard frame w/o leading ethernet header (len 4294967192 pkt > len 42949672) > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex bge0 (network driver) r = 0 (0xffffffff80e81010) > locked @ /usr/src/sys/modules/bge/../../dev/bge/if_bge.c:2828 > ... > > As you can see the packet length is really bogus. I am wondering if > the chip is actually initialized correctly to begin with. > > Jung-uk Kim Does it work correctly before you do the unload? Scott