From owner-svn-src-all@FreeBSD.ORG Wed Jan 8 03:42:10 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AEA7445; Wed, 8 Jan 2014 03:42:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 580771585; Wed, 8 Jan 2014 03:42:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s083gA4f057175; Wed, 8 Jan 2014 03:42:10 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s083g9fX057173; Wed, 8 Jan 2014 03:42:09 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201401080342.s083g9fX057173@svn.freebsd.org> From: Ian Lepore Date: Wed, 8 Jan 2014 03:42:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r260441 - head/sys/arm/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jan 2014 03:42:10 -0000 Author: ian Date: Wed Jan 8 03:42:09 2014 New Revision: 260441 URL: http://svnweb.freebsd.org/changeset/base/260441 Log: Add option USB_HOST_ALIGN to configs that contain 'device usb'. Setting this to the cache line size is required to avoid data corruption on armv4 and armv5, and improves performance on armv6, in both cases by avoiding partial cacheline flushes for USB IO. Modified: head/sys/arm/conf/COSMIC head/sys/arm/conf/RADXA Modified: head/sys/arm/conf/COSMIC ============================================================================== --- head/sys/arm/conf/COSMIC Wed Jan 8 03:40:18 2014 (r260440) +++ head/sys/arm/conf/COSMIC Wed Jan 8 03:42:09 2014 (r260441) @@ -97,6 +97,7 @@ device md device gpio # USB support +options USB_HOST_ALIGN=32 # Align usb buffers to cache line size. device usb options USB_DEBUG #options USB_REQ_DEBUG Modified: head/sys/arm/conf/RADXA ============================================================================== --- head/sys/arm/conf/RADXA Wed Jan 8 03:40:18 2014 (r260440) +++ head/sys/arm/conf/RADXA Wed Jan 8 03:42:09 2014 (r260441) @@ -93,6 +93,7 @@ device da # Direct Access (disks) device pass # USB support +options USB_HOST_ALIGN=32 # Align usb buffers to cache line size. device usb options USB_DEBUG #options USB_REQ_DEBUG