From owner-freebsd-current@FreeBSD.ORG Mon Sep 21 13:01:26 2009 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 6B6C8106566C for ; Mon, 21 Sep 2009 13:01:26 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 414338FC0C for ; Mon, 21 Sep 2009 13:01:26 +0000 (UTC) Received: from Macintosh-4.local (no-dns-yet.demon.co.uk [62.49.66.13] (may be forged)) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n8LD1Nd4054195 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 21 Sep 2009 06:01:25 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4AB77922.6070802@freebsd.org> Date: Mon, 21 Sep 2009 14:01:22 +0100 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Warren Block References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: freebsd-current@freebsd.org Subject: Re: Atheros AR5008X AR5416 issues 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, 21 Sep 2009 13:01:26 -0000 Warren Block wrote: > This Atheros mini-PCIe card is in a Toshiba Satellite A215-S6820. > Windows identifies it as an "Atheros AR5008X". It's a b/g/n card with > three antenna connections. FreeBSD really hates the ACPI on this > system, and insists on it being disabled. I don't think that's the > problem with the wireless card. > > ath0: mem 0xf8200000-0xf820ffff irq 19 at device 0.0 on > pci20 > ath0: [ITHREAD] > ath0: AR5418 mac 12.10 RF5133 phy 8.1 > > It sort-of works with a Linkys WRT54G b/g access point, but has some > problems that keep it from working well. > > Transfers are usually stalled, then will suddenly jump to 2MB/sec for a > little while, then stall again with the output of bb hang messages. > Access point LED shows long pauses. > > kernel: ath0: bb hang detected (0x80), reseting > kernel: ath0: bb hang detected (0x80), reseting > kernel: ath0: bb hang detected (0x4), reseting > kernel: ath0: bb hang detected (0x4), reseting This problem is a hardware bug in the 5416 that also appears in other Atheros 11n cards (i've seen it w/ 9160- and 9280-based cards). Atheros refused to help me resolve this, except to say the problem doesn't hobble their linux driver. So to fix this problem you'll need to compare how the linux code works to how the freebsd code works. If you can collect register access traces from the linux driver then you can compare them to what happens in freebsd (use the ATH_DEBUG_ALQ option). Otherwise you can try to do this through code inspection. Sam