From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 21:48:23 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD687106564A for ; Tue, 16 Mar 2010 21:48:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 606EB8FC18 for ; Tue, 16 Mar 2010 21:48:22 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=mXFe8cMYjHcA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=dy2nNuRTxr82x9YG0l0A:9 a=c6yDqGg0V6JvW4lK9lZhc6x9Q3gA:4 a=wPNLvfGTeEIA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1346182112; Tue, 16 Mar 2010 22:48:21 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 16 Mar 2010 22:46:40 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <4B9FA7CB.70200@embedded-brains.de> In-Reply-To: <4B9FA7CB.70200@embedded-brains.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003162246.40130.hselasky@c2i.net> Cc: Subject: Re: How fast is the OHCI driver? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 21:48:23 -0000 On Tuesday 16 March 2010 16:46:19 Sebastian Huber wrote: > Hi, > > I work with an ARM9 based system on a LPC3250 evaluation board from Phytec. > It has an integrated OHCI USB controller from NXP. The vendor provides a > Linux system for this board and with this system I can read with 1MByte/s > from an USB stick (I can also read with 23MByte/s from this stick on > another system with an EHCI controller). If I use the FreeBSD USB-stack > (trunk revision 200101), then I can only achieve a read performance of > 70kByte/s. Comparing the activity on the USB data lines with an > oscilloscope of the two systems shows that on the Linux system the line is > continuously busy while on the FreeBSD based system there are huge gaps of > inactivity. Both systems operate with 12MHz. The FreeBSD based system is > 65% of the time in the idle task, so it seems that it waits a lot for > something. > > Has someone values from other FreeBSD based systems with an OHCI > controller? > > Have a nice day! > Sebastian Huber > Hi, This might be a symptom of the well known cache flush/sync problem. You should investigate whether all transfer descriptors get flushed/invalidated correctly to RAM after setting up an USB transaction. There are sysctl under hw.usb.xxx where you can enable more verbose debugging. --HPS