From owner-freebsd-arm@freebsd.org Thu Jun 16 03:30:24 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 05DBEA47617 for ; Thu, 16 Jun 2016 03:30:24 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-153.reflexion.net [208.70.211.153]) (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 AF0541D03 for ; Thu, 16 Jun 2016 03:30:23 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 29216 invoked from network); 16 Jun 2016 03:30:51 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 16 Jun 2016 03:30:51 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Wed, 15 Jun 2016 23:30:13 -0400 (EDT) Received: (qmail 19063 invoked from network); 16 Jun 2016 03:30:13 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 16 Jun 2016 03:30:13 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.105] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id D5C841C405F; Wed, 15 Jun 2016 20:30:09 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: RE: RPI-B 11.0-ALPHA3 r301815 panic ["when connecting via WiFi"] Message-Id: <5B47CB62-5BB6-41F3-82F9-507B42EF161B@dsl-only.net> Date: Wed, 15 Jun 2016 20:30:14 -0700 To: freebsd-arm , FreeBSD Current , kwhite@site.uottawa.ca Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) 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: Thu, 16 Jun 2016 03:30:24 -0000 h= ttps://lists.freebsd.org/pipermail/freebsd-current/2016-June/061904.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/088339.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:=20 > https://svnweb.freebsd.org/changeset/base/301872 >=20 >=20 > Log: > Do not define __NO_STRICT_ALIGNMENT for armv6. While the = requirements > are no longer natural-alignment strict, there are still some = restrictions. > =20 > FreeBSD network code assumes data is naturally-aligned or is running > on a platform with no restrictions; pointers are not annotated to > indicate the data pointed to may be packed or unaligned. The clang > optimizer can sometimes combine the load or store of a pair of = adjacent > 32-bit values into a single doubleword load/store, and that = operation > requires at least 4-byte alignment. __NO_STRICT_ALIGNMENT can lead > to tcp headers being only 2-byte aligned. > =20 > Note that alignment faults remain disabled on armv6, this change = reverts > only the defining of the symbol which leads to some overly-agressive = code > shortcuts when building common/shared drivers and network code for = arm. > =20 > Approved by: re(kib) >=20 > Modified: > head/sys/arm/include/_types.h >=20 > Modified: head/sys/arm/include/_types.h > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/arm/include/_types.h Mon Jun 13 11:19:06 2016 = (r301871) > +++ head/sys/arm/include/_types.h Mon Jun 13 16:48:27 2016 = (r301872) > @@ -43,10 +43,6 @@ > #error this file needs sys/cdefs.h as a prerequisite > #endif > =20 > -#if __ARM_ARCH >=3D 6 > -#define __NO_STRICT_ALIGNMENT > -#endif > - > /* > * Basic types upon which most other types are built. > */ =3D=3D=3D Mark Millard markmi at dsl-only.net