From owner-freebsd-current@FreeBSD.ORG Mon Nov 5 21:58:20 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19B7416A418; Mon, 5 Nov 2007 21:58:20 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by mx1.freebsd.org (Postfix) with ESMTP id 86C1613C481; Mon, 5 Nov 2007 21:58:18 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAJoeL0d5LXvK/2dsb2JhbACBWw X-IronPort-AV: E=Sophos;i="4.21,374,1188743400"; d="scan'208";a="226297987" Received: from ppp121-45-123-202.lns11.adl6.internode.on.net (HELO mail.clearchain.com) ([121.45.123.202]) by ipmail01.adl2.internode.on.net with ESMTP; 06 Nov 2007 08:28:12 +1030 Received: from [192.168.155.249] (draco.internal.clearchain.com [192.168.155.249]) (authenticated bits=0) by mail.clearchain.com (8.13.8/8.13.8) with ESMTP id lA5Lw9gH039711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Nov 2007 08:28:10 +1030 (CST) (envelope-from Benjamin.Close@clearchain.com) Message-ID: <472F91E7.5000004@clearchain.com> Date: Tue, 06 Nov 2007 08:27:59 +1030 From: Benjamin Close User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Michael Butler References: <472A6708.9030109@clearchain.com> <472F119B.4050803@protected-networks.net> In-Reply-To: <472F119B.4050803@protected-networks.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on pegasus.clearchain.com X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (mail.clearchain.com [192.168.154.1]); Tue, 06 Nov 2007 08:28:10 +1030 (CST) Cc: freebsd-current , freebsd-drivers@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: [RFT] Intel 3945abg wireless driver (wpi) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 21:58:20 -0000 Michael Butler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Benjamin Close wrote: > >> Howdy All, I'm pleased to announce the first 'official' >> experimental version of the wpi wireless driver and hence require your >> help in making it become stable. >> Expect a few things not to work (ie bg scanning, setting txpower) but in >> general the driver should be usable in station mode (hostap is not yet >> supported). >> > > With respect to 16k alignment .. it may be acceptable for this to fail > at boot-time (IMHO, barely) but it usually isn't if a machine has been > 'up' for a while. > > Does the UMA sub-system reliably work with 4k aligned requests? As an > interim hack, I'd be happy to lose 12kB if it meant a 100% success rate > on my 2GB laptop. There are much worse things .. > > The only questions are, not having looked through the code recently (or > the UMA code at all), how many buffer pools are allocated and is it > possible to allocate a chunk of memory contiguously (for all pools) and > assign dma tags once that chunk is 'trimmed' to an acceptable alignment? > 4K alignment to works reliably and I've plans to manually do the alignment with the 12k loss in the future. At the moment the driver tries the 16k alignment, if that fails it progressively increases the size request by 4k at a time. Generally alignment kicks in within 3 attempts. It's a code I intend to clean up, but would prefer to fix uma rather than needing to work around it in the first place. Cheers, Benjamin