From owner-freebsd-arm@FreeBSD.ORG Mon Apr 21 20:21:41 2008 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 BE6841065672; Mon, 21 Apr 2008 20:21:41 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 27DB28FC29; Mon, 21 Apr 2008 20:21:40 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.152] (account mc467741@c2i.net [62.113.133.152] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 885560315; Mon, 21 Apr 2008 22:21:39 +0200 From: Hans Petter Selasky To: freebsd-arm@freebsd.org Date: Mon, 21 Apr 2008 22:22:55 +0200 User-Agent: KMail/1.9.7 References: <200804201602.40517.hselasky@c2i.net> <20080421010405.GA58580@ci0.org> <200804211755.44697.hselasky@c2i.net> In-Reply-To: <200804211755.44697.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804212222.57503.hselasky@c2i.net> Cc: John Baldwin Subject: Re: AT91RM9200 and possibly other ARM targets are broken in 8-current after recent commit (more) 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: Mon, 21 Apr 2008 20:21:41 -0000 Hi Olivier, I've found a new issue :-( The OHCI driver does not work in 8-current when using the USB P4 project. I get garbage data when I do USB transfers. I suspect that there is something wrong with the cache flush and invalidate stuff in relation to bus_dma. I have carefully reviewed the OHCI driver and it uses the "bus_dmamap_sync" function properly. Using my USB patchset to build the same USB code on 7-current does not yield these problems. I see that there has been a lot of changes to "sys/arm/arm/pmap.c" for example. Do you have a clue about what is causing this ? --HPS Output from 7-current: usb0: 12Mbps Full Speed USB v1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uplcom0: on usb0 usbd_alloc_device: set address 3 failed (ignored) usbd_alloc_device: getting device descriptor at addr 3 failed! uhub0:uhub_reattach_port: could not allocate new device! mmc0: setting transfer rate to 30.000MHz Output from 8-current: uplcom0: on usb1 uplcom0: failed to set configuration, error=USBD_ERR_SHORT_XFER device_attach: uplcom0 attach returned 6