From owner-freebsd-mips@FreeBSD.ORG Sat May 1 16:33:48 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8506A106566B for ; Sat, 1 May 2010 16:33:48 +0000 (UTC) (envelope-from rpaulo@freebsd.org) Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1D3598FC08 for ; Sat, 1 May 2010 16:33:47 +0000 (UTC) Received: from e.earth.lavabit.com (e.earth.lavabit.com [192.168.111.14]) by karen.lavabit.com (Postfix) with ESMTP id 0CBB0157562; Sat, 1 May 2010 11:33:47 -0500 (CDT) Received: from 10.0.10.3 (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by lavabit.com with ESMTP id KTT804LWXCD5; Sat, 01 May 2010 11:33:47 -0500 Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <20100501.101914.634347869592892486.imp@bsdimp.com> Date: Sat, 1 May 2010 17:32:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1272703119.48777.19.camel@brain.lan.terror.local> <0CB1D579-01A7-4F60-BC57-760016FB7E47@freebsd.org> <1272729476.48777.25.camel@brain.lan.terror.local> <20100501.101914.634347869592892486.imp@bsdimp.com> To: "M. Warner Losh" X-Mailer: Apple Mail (2.1078) Cc: fk@bsdler.de, freebsd-mips@freebsd.org Subject: Re: Trap when setting up ath0 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2010 16:33:48 -0000 On 1 May 2010, at 17:19, M. Warner Losh wrote: > In message: <1272729476.48777.25.camel@brain.lan.terror.local> > Florian Kruegl writes: > : Hi > :=20 > : On Sat, 2010-05-01 at 11:09 +0100, Rui Paulo wrote: > : > On 1 May 2010, at 09:38, Florian Kruegl wrote: > : >=20 > : > > Hi, > : > >=20 > : > > I get a trap when setting up wlan interface on RS pro.=20 > : >=20 > : > Maybe this is because some structure is misaligned. Can you enable = AH_DEBUG and ATH_DEBUG and edit {if_ath.c,ah_osdep.c} so that = ath_debug=3D0xffffffff and ath_hal_debug=3D0xffffffff ? > : >=20 > :=20 > : --------------< bootup >-------------- > : ath0: irq 1 at device 18.0 on pci0 > : ath0: [ITHREAD] > : ath_getchannels: eeprom rd 32924 cc 156 (mapped rd 32924 cc 156) > : location I ecm > : ath_descdma_setup: rx DMA: 40 buffers 1 desc/buf > : ath_descdma_setup: rx DMA map: 0xa0923000 (3840) -> 0x923000 (3840) > : ath_descdma_setup: tx DMA: 200 buffers 10 desc/buf > : ath_descdma_setup: tx DMA map: 0xa0980000 (192000) -> 0x980000 = (192000) > : ath_descdma_setup: beacon DMA: 4 buffers 1 desc/buf > : ath_descdma_setup: beacon DMA map: 0xa0970000 (384) -> 0x970000 = (384) > : ath0: AR9280 mac 128.2 RF5133 phy 13.0 > : --------------< bootup >-------------- > :=20 > :=20 > : --------------< setup >-------------- > : xerxes# ifconfig ath0 up > : ath_init: if_flags 0x8803 > : ath_stop_locked: invalid 0 if_flags 0x8803 > : Trap cause =3D 7 (bus error (load or store) - kernel mode) > : [ thread pid 1809 tid 100067 ] > : Stopped at platform_start+0x1b10: srl v0,a1,8 > : --------------< setup >-------------- >=20 > Looks a bit like the atheros bug. Try applying > http://people.freebsd.org/~imp/ar71xx_ath_war.diff and including the > AH_RXCFG_SDMAMW_4BYTES option in your kernel? The AR9280 is based on the AR5416 MAC and it's an 11n part, so if this = only shows up on AR5212 MACs, this patch may not help. Regards, -- Rui Paulo