From owner-freebsd-arm@FreeBSD.ORG Thu Dec 20 19:49:24 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 99CEC60B for ; Thu, 20 Dec 2012 19:49:24 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id C04D38FC13 for ; Thu, 20 Dec 2012 19:49:23 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qBKJnMvx016715 for ; Thu, 20 Dec 2012 12:49:22 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id qBKJnKqX066776; Thu, 20 Dec 2012 12:49:20 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: Fwd: Re: EHCI on armv6 with Write-Back caches From: Ian Lepore To: Hans Petter Selasky In-Reply-To: <201212201956.47884.hselasky@c2i.net> References: <201212201956.47884.hselasky@c2i.net> Content-Type: text/plain; charset="us-ascii" Date: Thu, 20 Dec 2012 12:49:20 -0700 Message-ID: <1356032960.1198.313.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2012 19:49:24 -0000 On Thu, 2012-12-20 at 19:56 +0100, Hans Petter Selasky wrote: > FYI - please test! > > ---------- Forwarded Message ---------- > > Subject: Re: EHCI on armv6 with Write-Back caches > Date: Thursday 20 December 2012, 19:46:34 > From: Hans Petter Selasky > To: Warner Losh > CC: Andrew Turner , Oleksandr Tymoshenko > , freebsd-usb@freebsd.org, alfred@freebsd.org, freebsd- > wireless@freebsd.org > > Hi, > > I've run some basic tests over here (x86) which passed after some patch > modifications. Please test and verify for your ARM targets: > > http://svnweb.freebsd.org/changeset/base/244500 > http://svnweb.freebsd.org/changeset/base/244503 > > Please also verify that upgt and uwrt and uath still works like expected. > > --HPS FYI, I've done some testing (it was weeks ago) of EHCI on armv4 and had no problems at all. I didn't exactly beat it to death, but I know I tested umass in particular with some file copying and tar/untar and that sort of thing. I'll make a point of updating and re-testing that soon. If there have been problems on armv6, especially with the memory shared between the cpu and hci (the descriptor lists), there's a chance it's fallout from the change in busdma_machdep-armv6.c in August to stop honoring BUS_DMAMEM_COHERENT (r239597). While the docs don't require that flag to be honored, the practical reality is that drivers are relying on the fact that the ARM and MIPS implementations treat that flag as if it were BUS_DMAMEM_NOCACHE. As of r244469 (yesterday) the COHERENT flag will hand out uncached memory again, so if the shared descriptor lists were any part of the problem, that should be fixed now. -- Ian