From owner-freebsd-current@FreeBSD.ORG Fri Oct 1 21:52:15 2004 Return-Path: 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 8802916A4CE for ; Fri, 1 Oct 2004 21:52:15 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30CC743D1D for ; Fri, 1 Oct 2004 21:52:15 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i91LqEWi038705 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 1 Oct 2004 14:52:14 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-current@freebsd.org Date: Fri, 1 Oct 2004 14:56:07 -0700 User-Agent: KMail/1.7 References: <200408201412.15438.sam@errno.com> <20041001160457.GA2871@mehnert.org> In-Reply-To: <20041001160457.GA2871@mehnert.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410011456.07859.sam@errno.com> cc: Hannes Mehnert Subject: Re: net80211+atheros changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 01 Oct 2004 21:52:15 -0000 On Friday 01 October 2004 09:04 am, Hannes Mehnert wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Sam, > > On Fri, Aug 20, 2004 at 02:12:15PM -0700, Sam Leffler wrote: > > http://www.freebsd.org/~sam/net80211+ath-20040818.tgz has a first cut at > > back-merging the work I've done in Linux to FreeBSD. These changes > > update the 802.11 support and all the drivers that use it. The patch > > also brings in the latest version of the Atheros hal. > > I have the following problem with your patch: > To change my atheros 5212 from hostap to managed mode, I need to unload > and reload if_ath. > Sometimes kldload if_ath doesn't create an ath0 device. I see the > following in messages: > localhost kernel: ath0: mem > 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2 > localhost kernel: ath0: failed to allocate descriptors: 12 > localhost kernel: device_attach: ath0 attach returned 12 > > After a reboot, kldload works fine again. > > (a working kldload would be: > localhost kernel: ath0: mem 0xc0210000-0xc021ffff > irq 11 at device 2.0 on pci2 > localhost kernel: ath0: Ethernet address: 00:05:4e:48:e3:27 > localhost kernel: ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24M > bps 36Mbps 48Mbps 54Mbps > localhost kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > localhost kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6M > bps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > localhost kernel: ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radi > o 2.3 > localhost kernel: ath0: Use hw queue 1 for WME_AC_BE traffic > localhost kernel: ath0: Use hw queue 0 for WME_AC_BK traffic > localhost kernel: ath0: Use hw queue 2 for WME_AC_VI traffic > localhost kernel: ath0: Use hw queue 3 for WME_AC_VO traffic) The driver is unable to allocate contiguous memory for the tx+rx descriptors. This is unrelated to the patches. It might be possible to carve up the allocation into smaller chunks; feel free to provide a patch... Sam