Received: by mail.netbsd.org (Postfix, from userid 605) id D062B84DAB; Sun, 1 Sep 2019 14:03:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B8D3F84DAB for ; Sun, 1 Sep 2019 14:03:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id f2f2i46hHeR9 for ; Sun, 1 Sep 2019 14:03:03 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 183DD84CD4 for ; Sun, 1 Sep 2019 14:03:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 10CFFFBF4; Sun, 1 Sep 2019 14:03:03 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 1 Sep 2019 14:03:03 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-9] src/sys To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20190901140303.10CFFFBF4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Sun Sep 1 14:03:02 UTC 2019 Modified Files: src/sys/arch/arm/conf [netbsd-9]: Makefile.arm src/sys/dev/usb [netbsd-9]: if_axe.c Log Message: Pull up following revision(s) (requested by rin in ticket #146): sys/arch/arm/conf/Makefile.arm: revision 1.50 sys/dev/usb/if_axe.c: revision 1.120 PR kern/54486 Workaround for alignment faults on ARMv6+, at least occur with axe(4) and athn(4) drivers. For ARMv6+, unaligned access is enabled by default. However, it cannot be used for non-cacheable memory, which is used as DMA buffers. This results in alignment faults above. A real fix is to use cacheable memory as DMA buffers. However, it breaks some drivers, awge(4) and vchiq(4) at least. Until we figure out problems and fix them, we choose a fail-safe workaround here; forbid unaligned memory access for whole kernel. Affects on performance is negligibly small as far as we can see. XXX pullup netbsd-9 - PR kern/54486 Revert workaround introduced in rev 1.94: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/usb/if_axe.c#rev1.94 This is a problem specific to ARMv6+, and addressed by arch/arm/conf/Makefile.arm rev 1.50: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/conf/Makefile.arm#rev1.50 XXX pullup netbsd-9 To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.49.4.1 src/sys/arch/arm/conf/Makefile.arm cvs rdiff -u -r1.102.2.1 -r1.102.2.2 src/sys/dev/usb/if_axe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.