Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2014 03:42:09 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260441 - head/sys/arm/conf
Message-ID:  <201401080342.s083g9fX057173@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401080342.s083g9fX057173>