From owner-freebsd-current@FreeBSD.ORG Thu Aug 31 03:35:43 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 4C4B016A4DE for ; Thu, 31 Aug 2006 03:35:43 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACB7543D4C for ; Thu, 31 Aug 2006 03:35:42 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so543396pye for ; Wed, 30 Aug 2006 20:35:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=MFjMQUsVZ25ojJzJApgAadnaK9wCyk0fVVzez++O+Pal9a8YSpzSrKdb5bzwja8RKrz4prGY/IKvO6Z2nweFvlAAtR/mlM0oIvoHIGQaNzbqZOCtw9yO+eRDE/uaQDKQLFkttUtgDNNN4iElxxX+iS1w5VC/MrIYib2WPMU63sQ= Received: by 10.35.112.4 with SMTP id p4mr805390pym; Wed, 30 Aug 2006 20:35:42 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.gmail.com with ESMTP id 19sm816404nzp.2006.08.30.20.35.40; Wed, 30 Aug 2006 20:35:41 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id k7V3bKHS053044 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Aug 2006 12:37:20 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id k7V3bGRS053043; Thu, 31 Aug 2006 12:37:16 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Thu, 31 Aug 2006 12:37:16 +0900 From: Pyun YongHyeon To: LI Xin Message-ID: <20060831033716.GB52038@cdnetworks.co.kr> References: <09BFF2FA5EAB4A45B6655E151BBDD90301E2F1CF@NT-IRVA-0750.brcm.ad.broadcom.com> <44F65687.2050108@delphij.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F65687.2050108@delphij.net> User-Agent: Mutt/1.4.2.1i Cc: David Christensen , freebsd-current@freebsd.org 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 Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 03:35:43 -0000 On Thu, Aug 31, 2006 at 11:24:55AM +0800, LI Xin wrote: > David Christensen wrote: > >> Recently one of my colleagues found that BCM 5752 A02 on Dell Latitude > >> D820 would get "panic: invalid ife->ifm_data (0xa) in > >> mii_phy_setmedia". > >> After some investigation I have found that removing BCMR_ANEG from > >> mii_capabilities in ukphy.c would work around the problem, > >> and it turns > >> out that without explicitly specifying media type, the code > >> will finally > >> get to pass the "intentionally invalid index" to mii_phy_setmedia and > >> trigger an assertion fail. > >> > >> I have not tested the situation in -STABLE yet, but it was > >> said to work > >> there, though. Is there anyone can shed some light to me about how to > >> debug the issue? Thanks in advance! > >> > >> PS. During the debugging I have found that the attached patch can make > >> "bge0: firmware handshake timeout" issue disappear from the said chip. > >> Because I do not have Broadcom specification at hand I would > >> like to see > >> if there is someone to give appropriate review for it. > > > > Try the attached patch instead and let me know if it works. When > > FastBoot > > is enabled on supported Broadcom controllers it allows the controller to > > skip rereading firmware after a reset, allowing the driver to complete > > its initialization more quickly. The Linux driver specifically disables > > FastBoot because it performs some read/write tests to controller memory, > > potentially corrupting the firmware, so FastBoot is disabled to insure > > an > > error free firmware reload. We don't do the same test so the same > > change > > isn't necessary. The patch happens to work because the bge driver > > doesn't > > perform firmware synchronization correctly, and the firmware initializes > > too fast for the driver. > > Thank you for the patch. I have just tested the patch under > FreeBSD/i386 -CURRENT and the I can confirm that the firmware timeout > goes away. Will you please commit it? > > (Note that the panic still persists, I will try to get brgphy attach to > see if things changes). > It would be great if you can test the brgphy patch. I'll commit the patch if it work on your box. -- Regards, Pyun YongHyeon