From owner-freebsd-net@FreeBSD.ORG Fri Feb 16 11:15:20 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9EB0E16A400 for ; Fri, 16 Feb 2007 11:15:20 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.freebsd.org (Postfix) with ESMTP id 6FE3813C491 for ; Fri, 16 Feb 2007 11:15:20 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id l1GBFJK3004132; Fri, 16 Feb 2007 03:15:19 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l1GBFIkc004131; Fri, 16 Feb 2007 03:15:18 -0800 (PST) (envelope-from rizzo) Date: Fri, 16 Feb 2007 03:15:18 -0800 From: Luigi Rizzo To: "V.Chukharev" Message-ID: <20070216031518.A4090@xorpc.icir.org> References: <20070215143551.A94883@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from chukharev@mail.ru on Fri, Feb 16, 2007 at 08:41:09AM +0200 Cc: freebsd-net@freebsd.org Subject: Re: iwi leaks memory? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 11:15:20 -0000 On Fri, Feb 16, 2007 at 08:41:09AM +0200, V.Chukharev wrote: > On Fri, 16 Feb 2007 00:35:51 +0200, Luigi Rizzo wrote: > > > will have a look at this. > > Which version of if_iwi.c are you using ? > > Thanks. > $ grep -i __FBSDID /usr/src/sys/dev/iwi/if_iwi.c > __FBSDID("$FreeBSD: src/sys/dev/iwi/if_iwi.c,v 1.8.2.12 2007/01/23 22:17:48 jhb Exp $"); > > It's STABLE, updated couple of days ago. ok i tried your script to do ifconfig up and down and it does not give me the problem you see (at least not until 100). Do you see the error always at the same point ? Any other things e.g. how is the iwi_bss loaded (manually, from /boot/loader or automatically) ? cheers luigi > > cheers > > luigi > > > > On Thu, Feb 15, 2007 at 11:34:48PM +0200, V.Chukharev wrote: > >> Hi, > >> > >> It seems that iwi driver cannot survive more than just a few cycles of switching down/up. > >> In a place with a bad wireless connection I needed to do that quite a number of times > >> (that was the simplest way to restore connectivity I knew), and after 5-10 cycles I needed > >> to reboot my notebook totally. > >> > >> Can anybody with iwi () confirm (or better unconfirm) > >> that doing > >> > >> for ii in `jot 100`; do sudo ifconfig iwi0 down; sleep 2; sudo ifconfig iwi0 up; done > >> > >> always results in the following messages (and lost connectivity): > >> > >> Feb 15 09:43:59 chu kernel: iwi0: link state changed to DOWN > >> Feb 15 09:44:13 chu kernel: iwi0: link state changed to UP > >> Feb 15 09:44:13 chu kernel: iwi0: link state changed to DOWN > >> Feb 15 09:44:18 chu kernel: iwi0: device timeout > >> Feb 15 09:44:20 chu kernel: iwi0: could not allocate firmware DMA memory > >> > >> A fix for this would be even better ;)) > >> > >> Thanks, > >> -- > >> V. Chukharev > >> _______________________________________________ > >> freebsd-net@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-net > >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > > -- > V. Chukharev