From owner-freebsd-hardware@FreeBSD.ORG Thu Jan 21 11:44:23 2010 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECB84106566B for ; Thu, 21 Jan 2010 11:44:22 +0000 (UTC) (envelope-from onitake@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 7DFF98FC19 for ; Thu, 21 Jan 2010 11:44:22 +0000 (UTC) Received: by fxm10 with SMTP id 10so3025459fxm.34 for ; Thu, 21 Jan 2010 03:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=t/FAeZ8niX7YLxg4B9vjSkmk4vTRCx/n5/+mWAwHVQM=; b=M6MRFK4YN5MAqZFgQPRrHt7B2gcffa894gUcyyL8+rborE13y+rQT7x2ZOt/ABftYh b4gHx6gPuG1Emxv0dOTU+PD+bU4s9W+H3SmCf9ggysP00Aj9/Uy9UnmhbkrVu4xHOCak sVujvI4u/rioBlTTch9pM9Kqu1AAz2qdJ9FP4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=HBDNdYoIdjHNEI62TRTEdG2AdT9iLcMjB/VBOvGseyVafpkU/Q+OnvGIj59OPDVcMi te1iLZzLXP4d1sFiqHdQYaKD8mckE/GSngQ8QHJAiX6epzbhl6F9YVjELVNxGFu3tK/u IfpyH7EnNe6cuJNG/zO0OI4j1X9z3fHT6g1fU= Received: by 10.223.76.77 with SMTP id b13mr1278246fak.74.1264072691367; Thu, 21 Jan 2010 03:18:11 -0800 (PST) Received: from aki.gni.ch (aki.gni.ch [193.53.0.59]) by mx.google.com with ESMTPS id d13sm1173469fka.17.2010.01.21.03.18.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 03:18:10 -0800 (PST) Message-ID: <4B5837F2.7060304@gmail.com> Date: Thu, 21 Jan 2010 12:18:10 +0100 From: onitake@gmail.com User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: freebsd-hardware@freebsd.org X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Support for Atheros AR9220 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 11:44:23 -0000 Hello list I got a miniPCI card with the 802.11n capable Atheros chipset AR9220 recently. The PCI ID is identical to the AR9280, which is already supported in FreeBSD. Unfortunately, the Atheros HAL doesn't work correctly with the card. Detection and basic communication is fine, but once I start setting up, the HAL reports errors. In hostap mode, I even experience kernel panics: ---- snip --- Configuring WLAN interface...wlan0: changing name to 'ath0_wlan0' ath0: unable to reset hardware; hal status 14 ath0: ath_chan_set: unable to reset channel 8 (2447 Mhz, flags 0x480), hal status 3 Fatal trap 12: page fault while in kernel mode fault virtual address = 0xe fault code = supervisor read, page not present instruction pointer = 0x20:0xc05bc2aa stack pointer = 0x28:0xc22bbbb4 frame pointer = 0x28:0xc22bbc18 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 11 (swi4: clock) [thread pid 11 tid 64005 ] Stopped at ar5416PerCalibrationN+0x2a: movzwl 0xe(%ecx),%edx db> bt Tracing pid 11 tid 64005 td 0xc2438900 ar5416PerCalibrationN(c2522000,0,1,1,c22bbc38,...) at ar5416PerCalibrationN+0x2a ath_detach(c2514000,1,c0cf3554,c251425c,6,...) at ath_detach+0x12f3 softclock(c0cf3520,0,109,c63d9d47,9,...) at softclock+0x1bc intr_event_execute_handlers(c2436aa0,c2434300,c0b5910d,4f6,c2434370,...) at intr_event_execute_handb intr_getaffinity(c24086b0,c22bbd38,0,0,0,...) at intr_getaffinity+0x14a fork_exit(c080dfe0,c24086b0,c22bbd38) at fork_exit+0x90 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xc22bbd70, ebp = 0 --- ---- snip --- This occured with pfSense-BETA1 from Dec 31 (the kernel is FreeBSD 8-CURRENT). The system is a Alix 2d13 (http://www.pcengines.ch/alix2d13.htm) and the card a Wistron DNMA92 (http://www.pcengines.ch/dnma92.htm). I believe the topic has been brought up before, but I've been subscribed to the list for a short time only, so I can't respond to the original thread. According to this list, the Linux ath9k driver supports the card: http://linuxwireless.org/en/users/Drivers/ath9k/products/external What's the status of the Atheros HAL in FreeBSD? If there's any coding/porting/testing help needed, I'll be of assistance gladly. Best regards, oni