From owner-freebsd-mobile@FreeBSD.ORG Sun May 28 01:11:06 2006 Return-Path: X-Original-To: mobile@freebsd.org Delivered-To: freebsd-mobile@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9A4216C506 for ; Sun, 28 May 2006 01:00:51 +0000 (UTC) (envelope-from mbsd@pacbell.net) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B69443D55 for ; Sun, 28 May 2006 01:00:48 +0000 (GMT) (envelope-from mbsd@pacbell.net) Received: from pimout7-ext.prodigy.net (pimout7-int.prodigy.net [207.115.4.147]) by ylpvm15.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k4S10sEs012510 for ; Sat, 27 May 2006 21:00:54 -0400 X-ORBL: [71.139.16.39] DomainKey-Signature: a=rsa-sha1; s=sbc01; d=pacbell.net; c=nofws; q=dns; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id: references:mime-version:content-type; b=gCxeObRXfHRAJkbUDYR8Z6bssSLSBIARnBOGTsHQkPZ8obrJGFlYNEMx8V3U8kFDF zHtZodOxepbZeJ8NWV4yA== Received: from antec (ppp-71-139-16-39.dsl.snfc21.pacbell.net [71.139.16.39]) by pimout7-ext.prodigy.net (8.13.6 out.dk/8.13.6) with ESMTP id k4S10hAY164912; Sat, 27 May 2006 21:00:43 -0400 Date: Sat, 27 May 2006 18:00:42 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@antec.home To: Mike Silbersack In-Reply-To: <20060527135922.C7405@odysseus.silby.com> Message-ID: <20060527174928.V18218@antec.home> References: <20060527135922.C7405@odysseus.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Makoto Matsushita , mobile@freebsd.org, Ben Kaduk Subject: Re: Making progress on if_bfe X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2006 01:11:16 -0000 On Sat, 27 May 2006, Mike Silbersack wrote: > > I started working on if_bfe again, and I am able to reproduce the problems > that people with 512MB of ram started to report after I fixed the driver for > people with > 1G of ram. I have some ideas on what is going on, but no fix > yet. > > For anyone who has time (no matter what size ram you have), I'd like you to > try the attached patch. The patch is very simple - instead of interrupt > storming, it tells you why the bfe card is unhappy, and downs the interface > instead of continually attempting to restart it. The interrupt storm was a > side-effect of the card complaining, and the driver continually trying to > restart the card. > > So, apply the patch, then try with 128 as the values for BFE_TX_LIST_CNT and > BFE_RX_LIST_CNT, see what happens, then try with 511 and see what happens. > Then e-mail me the results. This will confirm that you are seeing the same > errors from the card that I am. > > Oh, and once you're done with that, go back to using the values for > BFE_TX_LIST_CNT and BFE_RX_LIST_CNT that work for you. :) As I don't have the interrupt storm problem (I'm one of the "people with > 1G of ram" :), the patch produces no output for me. The interface still silently hangs with *_CNT set to 511 and still works with *_CNT at 128 (seems to work at 256 as well, btw). While on the subject of if_bfe; does your activity light work? Mine just stays on solid unless I apply a patch like this: --- if_bfe.c.orig Sat May 27 17:33:10 2006 +++ if_bfe.c Sat May 27 17:46:18 2006 @@ -1460,10 +1460,12 @@ miisc = LIST_NEXT(miisc, mii_list)) mii_phy_reset(miisc); } mii_mediachg(mii); + bfe_setupphy(sc); + return (0); } /* * Report current media status. I guess the settings are clobbered by mii_phy_reset(), and have to be re-applied. The real fix might be to configure the LED settings in bmtphy, but this works for me. $.02, /Mikko