From owner-freebsd-arm@FreeBSD.ORG Sat Dec 22 23:06:17 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 81BB8BB0 for ; Sat, 22 Dec 2012 23:06:17 +0000 (UTC) (envelope-from iz-rpi03@hs-karlsruhe.de) Received: from smtp.hs-karlsruhe.de (smtp.HS-Karlsruhe.DE [193.196.64.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3E06D8FC0A for ; Sat, 22 Dec 2012 23:06:17 +0000 (UTC) Received: from iz-wera01.hs-karlsruhe.de ([193.196.65.46]) by smtp.hs-karlsruhe.de with esmtp (Exim 4.80.1) (envelope-from ) id 1TmY92-0066I4-A8; Sun, 23 Dec 2012 00:06:16 +0100 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 From: Ralf Wenk To: Hans Petter Selasky Subject: Re: Fwd: Re: EHCI on armv6 with Write-Back caches In-reply-to: <201212211520.46822.hselasky@c2i.net> References: <201212201956.47884.hselasky@c2i.net> <50D3AAF1.80609@bluezbox.com> <201212211520.46822.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 23 Dec 2012 00:06:04 +0100 Message-Id: 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: Sat, 22 Dec 2012 23:06:17 -0000 > On Friday 21 December 2012 01:18:57 Oleksandr Tymoshenko wrote: > > On 12/20/2012 10:56 AM, 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 > > > > if_smsc fails with following diagnostics: > > smsc0: error: allocating USB transfers failed > > > > The problem is that Bulk-In transfer buffer is 5 pages long but tag's > > boundary limitation is > > a page and it's impossible to allocate 5 pages without crossing page > > boundary > > Can you try again using this patch: > > http://svnweb.freebsd.org/changeset/base/244535 Since revision 244503 I get an error after inserting an USB-stick in about 50% of the cases. The problem is still there with revision 244535. My latest test was with revision 244582. The kernel messages are: root@raspberry-pi:~ # ugen0.4: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4101 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted ugen0.4: at usbus0 (disconnected) umass0: at uhub1, port 3, addr 4 (disconnected) When things go well they are: root@raspberry-pi:~ # ugen0.4: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4101 umass0:0:0:-1: Attached to scbus0 root@raspberry-pi:~ # da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 3817MB (7818240 512 byte sectors: 255H 63S/T 486C) But even then there is something wrong now: root@raspberry-pi:~ # gpart show da0 => 34 7818173 da0 GPT (3.7G) 34 2097152 1 freebsd-ufs (1.0G) 2097186 5721021 - free - (2.7G) root@raspberry-pi:~ # mount /dev/da0p1 /mnt g_vfs_done():da0p1[READ(offset=65536, length=8192)]error = 6 mount: /dev/da0p1: Device not configured I am using a RPI-B kernel configuration with serial boot console and added options MSDOSFS and GEOM_PART_GPT. With older revisions they worked. The USB-stick is OK. I verified that with my PC. Ralf