From owner-freebsd-arm@FreeBSD.ORG Wed Jul 8 09:04:09 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31CF9106568E; Wed, 8 Jul 2009 09:04:09 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.tele2.se [212.247.155.1]) by mx1.freebsd.org (Postfix) with ESMTP id 65F2D8FC22; Wed, 8 Jul 2009 09:04:08 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Hrwt8fWgTlIA:10 a=gg2W7PyvkLb8p4ie143lBA==:17 a=qqY-37dCzyb6F8oYTQwA:9 a=wQ8DsXPsDZOwMyX6hxGZY5avNgEA:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe09.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 928573831; Wed, 08 Jul 2009 11:04:06 +0200 From: Hans Petter Selasky To: Rafal Jaworowski Date: Wed, 8 Jul 2009 11:03:43 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: <200906231035.43096.kosmo@semihalf.com> <200907071846.42086.hselasky@c2i.net> <37C51279-42D8-49DE-8249-0DA386EBB062@semihalf.com> In-Reply-To: <37C51279-42D8-49DE-8249-0DA386EBB062@semihalf.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907081103.45388.hselasky@c2i.net> Cc: thompsa@freebsd.org, freebsd-arm@freebsd.org, Piotr =?utf-8?q?Zi=C4=99cik?= , freebsd-usb@freebsd.org Subject: Re: CPU Cache and busdma usage in USB X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2009 09:04:10 -0000 On Wednesday 08 July 2009 10:58:17 Rafal Jaworowski wrote: > On 2009-07-07, at 18:46, Hans Petter Selasky wrote: > >> I had Checked USB behaviour on PowerPC without hardware cache > >> coherency. > >> The problem also exists here and patch helps. > > > > In my source code view the busdma sync function is empty for power- > > pc. Your > > patch should have no effect at all for sync operations? > > This was about the PPC4xx PowerPC port, not committed to the tree yet. > Unlike most PowerPC this system has a de-coherent DMA and therefore > its busdma sync is non empty, but needs to enforce coherency by > software. > > The point is this is another platform on which USB stack (usb_pc_cpu_* > functions) shows similar issues as reported for ARM and MIPS. And what about my patch suggestion in my previous e-mail having the same subject. Does it work? Regarding my testing on the AT91RM9200 I was short of time yesterday and will try to get it done today. --HPS