From owner-freebsd-arm@freebsd.org Fri Jun 17 15:39:39 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F05FA788ED for ; Fri, 17 Jun 2016 15:39:39 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05B4826B1 for ; Fri, 17 Jun 2016 15:39:38 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: b1ba5188-34a1-11e6-ac92-3142cfe117f2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.eu.mailhop.org (Halon Mail Gateway) with ESMTPSA; Fri, 17 Jun 2016 15:39:35 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u5HFdQQX007904; Fri, 17 Jun 2016 09:39:26 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1466177966.51702.13.camel@freebsd.org> Subject: Re: RPI-B 11.0-ALPHA3 r301815 panic ["when connecting via WiFi"] From: Ian Lepore To: Adrian Chadd , Keith White Cc: freebsd-arm , FreeBSD Current Date: Fri, 17 Jun 2016 09:39:26 -0600 In-Reply-To: References: <5B47CB62-5BB6-41F3-82F9-507B42EF161B@dsl-only.net> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 15:39:39 -0000 On Fri, 2016-06-17 at 07:52 -0700, Adrian Chadd wrote: > Just disable 11n for now. ifconfig wlan0 -ht (and reassociate.) > > See if it's that. > > > > -adrian > You can see from the crash info that it's an alignment fault: r6 =c21a4876 ldmib r6,{r1-r2} An ldm instruction requires 4-byte alignment. Now the question is why undefining __NO_STRICT_ALIGNMENT didn't fix the problem. Maybe the wifi code doesn't use __NO_STRICT_ALIGNMENT the same way other network drivers do? Unfortunately the pasted info lists the nearby symbol as $a.17+0x38, which doesn't help find the actual code. A stack backtrace might help. -- Ian > > On 17 June 2016 at 04:19, Keith White wrote: > > On Thu, 16 Jun 2016, Keith White wrote: > > > > > On Wed, 15 Jun 2016, Mark Millard wrote: > > > > > > > https://lists.freebsd.org/pipermail/freebsd-current/2016-June/0 > > > > 61904.html > > > > reports an RPI-B alignment fault for -r301815 (the snapshot) > > > > "when > > > > connecting via WiFi". > > > > > > > > -r301872 ( > > > > https://lists.freebsd.org/pipermail/svn-src-head/2016-June/0883 > > > > 39.html ) has > > > > a fix for networking vs. alignment handling for armv6 contexts > > > > that might be > > > > needed. Quoting: > > > > > > > > > Author: ian > > > > > Date: Mon Jun 13 16:48:27 2016 > > > > > New Revision: 301872 > > > > > URL: > > > > > https://svnweb.freebsd.org/changeset/base/301872 > > > > > > > > ... > > > > > > > > > Thanks for pointing this out! I'll see if a (complete) rebuild > > > at > > > that rev fixes the problem. > > > > > > > Tried that. I still get a panic. > > > > I cross built on an amd64 at r301840, I'll try upgrading that > > machine too. > > > > In the meantime, other suggestions? > > > > FreeBSD 11.0-ALPHA3 #0 r301872: Thu Jun 16 21:11:44 EDT 2016 > > kwhite@freebsd11:/usr/obj/arm.armv6/usr/src/sys/RPI-B arm > > FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based > > on LLVM > > 3.8.0) > > VT: init without driver. > > ... > > Starting devd. > > urtwn0: > addr 4> on > > usbus0 > > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > > urtwn0: enabling 11n > > wlan0: Ethernet address: 00:13:ef:74:07:a8 > > Created wlan(4) interfaces: wlan0. > > ... > > > > [ nc rpi-b 22 ] > > Fatal kernel mode data abort: 'Alignment Fault' on read > > trapframe: 0xc18f28c0 > > FSR=00000001, FAR=c21a487a, spsr=60000013 > > r0 =c07a6548, r1 =00000004, r2 =c0605338, r3 =000007b6 > > r4 =c18f2a28, r5 =c18f2b40, r6 =c21a4876, r7 =c1ccd240 > > r8 =c1ccd240, r9 =c21a4Stopped at $a.17+0x38: ldmib r6, > > {r1-r2} > > db> > > > > > > ...keith > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > > freebsd-current-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org"