From owner-freebsd-usb@FreeBSD.ORG Mon Jul 4 17:17:52 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEFDD16A41C for ; Mon, 4 Jul 2005 17:17:52 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EFCC43D48 for ; Mon, 4 Jul 2005 17:17:52 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== Received: from 217-230-143.511210.adsl.tele2.no ([193.217.230.143] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 17141302; Mon, 04 Jul 2005 19:17:50 +0200 From: Hans Petter Selasky To: Stefan Walter Date: Mon, 4 Jul 2005 19:18:45 +0200 User-Agent: KMail/1.7 References: <20050626091628.775DD3A1D@kyuzo.dunkelkammer.void> <200507021553.49043.hselasky@c2i.net> <20050703075632.GA937@kyuzo.dunkelkammer.void> In-Reply-To: <20050703075632.GA937@kyuzo.dunkelkammer.void> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200507041918.47258.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: usb/82660: EHCI: I/O stuck in state 'physrd'/panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 17:17:53 -0000 On Sunday 03 July 2005 09:56, Stefan Walter wrote: > Hans Petter Selasky, 02.07.05, 15:53h CEST: > > ...maybe I pulled the stick out too quickly until now. I just noticed > that, when I'm patient enough, the transfer is eventually resumed (after > about two minutes). Some data is transferred (size varying), then it > stalls again. I didn't notice that before. I've uploaded a message log of > a complete transfer of a 17 MB file (that is, the file was successfully > copied to the hard disk with mtools) now (with hw.usb.umass.debug=-1): > > http://www.gegenunendlich.de/stuff/ehci/umass-messages-complete-transfer.bz2 To me it seems that there is something wrong with your flash disk. Though it can be that the "CBW" structure is not initialized correctly, but I am not the right person to tell about that. At least your flash disk takes the "CBW" command, but times out on the following BULK-in transfer. I'm not sure if it helps, but the compiler might be messing with the hardware structures: In /sys/dev/usb/umass.c change all: typedef xxxx { } xxxx; into: typedef xxxx { } __packed xxxx; What options are you compiling the kernel with? Have you got INVARIANTS enabled? --HPS