From owner-freebsd-net@FreeBSD.ORG Fri Feb 16 16:51:32 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 AD13C16A401 for ; Fri, 16 Feb 2007 16:51:32 +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 93FDD13C467 for ; Fri, 16 Feb 2007 16:51:32 +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 l1GGpWC8008205; Fri, 16 Feb 2007 08:51:32 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id l1GGpW6k008204; Fri, 16 Feb 2007 08:51:32 -0800 (PST) (envelope-from rizzo) Date: Fri, 16 Feb 2007 08:51:32 -0800 From: Luigi Rizzo To: Max Laier Message-ID: <20070216085132.A7944@xorpc.icir.org> References: <20070216081737.A7793@xorpc.icir.org> <200702161738.35142.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200702161738.35142.max@love2party.net>; from max@love2party.net on Fri, Feb 16, 2007 at 05:38:28PM +0100 Cc: freebsd-net@freebsd.org, "V.Chukharev" 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 16:51:32 -0000 On Fri, Feb 16, 2007 at 05:38:28PM +0100, Max Laier wrote: ... > I'm under the impression that this is more a problem of increasing > fragmentation until we can't get a big enough unfragmented chunk. I > don't have any proof of this assumption yet. makes sense. As a matter of fact i wonder whether it wouldn't be smarter to allocate the dma-ble memory on the first request and keep it around until the driver is unloaded. If i read the code in iwi_load_firmware() correctly, the contiguous chunks cannot be longer than 8191 bytes, so a single contiguous buffer is not mandatory. I just don't know if we can write the firmware to the adapter with multiple operations (lists of command blocks) or it needs to be just a single list ? cheers luigi