From owner-freebsd-usb@FreeBSD.ORG Tue Dec 27 15:21:47 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A6D0106566B for ; Tue, 27 Dec 2011 15:21:47 +0000 (UTC) (envelope-from momchil@xaxo.eu) Received: from vps2.xaxo.eu (vps2.xaxo.eu [78.47.156.66]) by mx1.freebsd.org (Postfix) with ESMTP id 9D8AF8FC1B for ; Tue, 27 Dec 2011 15:21:46 +0000 (UTC) Received: from t61.xaxo.eu ([10.75.23.6]) by vps2.xaxo.eu (8.14.4/8.14.4) with ESMTP id pBRFLfT0045043; Tue, 27 Dec 2011 16:21:41 +0100 (CET) (envelope-from momchil@xaxo.eu) Date: Tue, 27 Dec 2011 16:21:35 +0100 Message-ID: <868vlyghvk.wl%momchil@xaxo.eu> From: =?UTF-8?B?0JzQvtC80YfQuNC7INCY0LLQsNC90L7Qsg==?= To: Hans Petter Selasky In-Reply-To: <201112271551.10626.hselasky@c2i.net> References: <86ipl3dl5q.wl%momchil@xaxo.eu> <86fwg6w0k1.wl%momchil@xaxo.eu> <86aa6egjsq.wl%momchil@xaxo.eu> <201112271551.10626.hselasky@c2i.net> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-usb@freebsd.org, =?UTF-8?B?0JzQvtC80YfQuNC7INCY0LLQsNC90L7Qsg==?= Subject: Re: USB problems with 8.2 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 15:21:47 -0000 At Tue, 27 Dec 2011 15:51:10 +0100, Hans Petter Selasky wrote: > Hi, > > If you compile a kernel with "options USB_DEBUG". Then when the problem > appears, you enable umass debugging: > > sysctl hw.usb.umass.debug=15 > > OR: > > Check activity with usbdump upon failure: > > usbdump -i usbusX -vvv > log.txt > > > cat log.txt | grep USB_ERR > > Some USB HDDs might have firmware failures. Most USB HDD enclosures are not > 100% hardware and usually contains a small CPU to do USB. Hi, I took the second option, since I didn't want to recompile the kernel. I've run "usbdump -i usbus6 -vvv" and there are no USB_ERR whatsoever, it shows nothing during the stall. Here are some dumps around some time holes: 16:11:16.007239 usbus6.2 DONE-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=16,IVAL=0,ERR=0 frame[0] READ 13 bytes 0000 55 53 42 53 13 FC 01 00 00 00 00 00 00 -- -- -- |USBS......... | flags 0x2 status 0xeb021 16:11:16.037357 usbus6.2 SUBM-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=32,IVAL=0 frame[0] WRITE 31 bytes 0000 55 53 42 43 14 FC 01 00 00 90 00 00 80 00 0A 28 |USBC...........(| 0010 00 19 4E E3 C0 00 00 48 00 A0 B0 00 00 00 00 -- |..N....H....... | flags 0 <0> status 0xca023 16:11:16.037492 usbus6.2 DONE-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 31 bytes flags 0 <0> status 0xea021 16:11:16.037495 usbus6.2 SUBM-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0 frame[0] READ 36864 bytes flags 0x32 status 0xcb023 *** time hole *** 16:12:19.574864 usbus6.2 DONE-BULK-EP=00000081,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT flags 0x32 status 0xab025 16:12:19.574880 usbus6.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 02 01 00 00 81 00 00 00 -- -- -- -- -- -- -- -- |........ | flags 0 <0> status 0xea1a3 16:12:19.575006 usbus6.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 bytes flags 0 <0> status 0xca1a1 16:12:19.575010 usbus6.2 SUBM-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0 frame[0] READ 13 bytes flags 0x2 status 0xeb023 ..... 16:12:23.942561 usbus6.2 SUBM-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0 frame[0] READ 13 bytes flags 0x2 status 0xcb023 16:12:23.942620 usbus6.2 DONE-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=16,IVAL=0,ERR=0 frame[0] READ 13 bytes 0000 55 53 42 53 AD FF 01 00 00 00 00 00 00 -- -- -- |USBS......... | flags 0x2 status 0xeb021 16:12:23.971480 usbus6.2 SUBM-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=32,IVAL=0 frame[0] WRITE 31 bytes 0000 55 53 42 43 AE FF 01 00 00 90 00 00 80 00 0A 28 |USBC...........(| 0010 00 09 92 D7 E0 00 00 48 00 A0 B0 00 00 00 00 -- |.......H....... | flags 0 <0> status 0xca023 16:12:23.971634 usbus6.2 DONE-BULK-EP=00000002,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 31 bytes flags 0 <0> status 0xea021 16:12:23.971639 usbus6.2 SUBM-BULK-EP=00000081,SPD=HIGH,NFR=1,SLEN=0,IVAL=0 frame[0] READ 36864 bytes flags 0x32 status 0xcb023 *** time hole *** 16:13:27.509643 usbus6.2 DONE-BULK-EP=00000081,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT flags 0x32 status 0xab025 16:13:27.509660 usbus6.2 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 02 01 00 00 81 00 00 00 -- -- -- -- -- -- -- -- |........ | flags 0 <0> status 0xca1a3 16:13:27.509764 usbus6.2 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 bytes flags 0 <0> status 0xea1a1