From owner-freebsd-usb@FreeBSD.ORG Sun Oct 24 00:17:15 2010 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 6FAE51065697 for ; Sun, 24 Oct 2010 00:17:15 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 20F568FC16 for ; Sun, 24 Oct 2010 00:17:14 +0000 (UTC) Received: by yxl31 with SMTP id 31so1492713yxl.13 for ; Sat, 23 Oct 2010 17:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=jKFbe8lSmg5GrJQbsxrphojCszuxxoZj0+7Jo4L+T40=; b=sS4eoIsbXliLrubqgo376dhh478j4rJBtstTd9YFABqejiqhAtjHaSOfvZVXYSbsAA NbE5ux9z0rliCovqiyX2byibGXOyDANdTzpzFoa6CTIA5QbHnTqBtgbbf3fBdlR6Ul/T hocCQg7j8INZ3/A+lXCvkZt6oZIN8/s3gPgug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=rB+RHAaySQ0GY1YWP91frPCV0qtCcfYnhTYLzIKb+DCxZn6amM9U0lJKrsoHJd0x+z Vx5Wb4vc3CE/5227qqVU0qLkbCHenvboHCLxi2BhFDJnS3k69h4mXRC0wPF4wupsmE8z H54KvluvSvBR7oQsI9pwPyHbpURVVzLRxHIFc= Received: by 10.150.53.9 with SMTP id b9mr9464213yba.385.1287877801398; Sat, 23 Oct 2010 16:50:01 -0700 (PDT) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id q41sm5040253ybk.13.2010.10.23.16.49.58 (version=SSLv3 cipher=RC4-MD5); Sat, 23 Oct 2010 16:49:59 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Sat, 23 Oct 2010 16:49:59 -0700 From: Weongyo Jeong Date: Sat, 23 Oct 2010 16:49:59 -0700 To: Hans Petter Selasky Message-ID: <20101023234959.GB1399@weongyo> References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <201010212256.12800.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010212256.12800.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 00:17:15 -0000 On Thu, Oct 21, 2010 at 10:56:12PM +0200, Hans Petter Selasky wrote: > On Thursday 21 October 2010 17:02:30 Mike Tancsa wrote: > > I am trying to use RELENG_8 to monitor a number of APC upses and it > > seems when there are more than one, I start to see a lot of USB > > errors with the devices "coming and going" > > > > In the logs, I see a lot of > > > > > > # grep USB /var/log/all.log | tail > > Oct 21 10:24:05 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:25:47 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:27:45 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:29:44 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:30:35 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub5 > > Oct 21 10:32:35 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:37:04 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:38:38 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub4 > > Oct 21 10:44:14 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub5 > > Oct 21 10:45:09 upsmon1 root: Unknown USB device: vendor 0x051d > > product 0x0002 bus uhub5 > > > > > > > > # usbconfig > > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL > > (12Mbps) pwr=ON > > ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL > > (12Mbps) pwr=ON > > ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL > > (12Mbps) pwr=ON > > ugen3.1: at usbus3, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=ON > > ugen3.2: at usbus3, cfg=0 md=HOST > > spd=HIGH (480Mbps) pwr=SAVE > > ugen0.2: > Conversion> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.3: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.4: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.5: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.6: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.7: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.8: at usbus3, cfg=0 md=HOST spd=HIGH > > (480Mbps) pwr=SAVE > > ugen3.9: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.10: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > ugen3.11: > Conversion> at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON > > > > > > This is with a kernel from Oct 4th, i386. Any idea what might be up > > or how to debug this ?? Setting > > hw.usb.debug to anything > 0 causes the system to almost hang under > > the load unfortunately. > > > > ---Mike > > Weongyo is working on a usbdump utility to monitor ongoing USB traffic. It's merged into HEAD not too lately. :-) regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Sun Oct 24 05:13:59 2010 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 B05C6106566B; Sun, 24 Oct 2010 05:13:59 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6B4708FC14; Sun, 24 Oct 2010 05:13:59 +0000 (UTC) Received: from [93.104.125.203] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1P9su5-0001on-Mg; Sun, 24 Oct 2010 07:13:57 +0200 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o9O5E4KT001968; Sun, 24 Oct 2010 07:14:04 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o9O5E43E001967; Sun, 24 Oct 2010 07:14:04 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sun, 24 Oct 2010 07:13:59 +0200 From: Matthias Apitz To: freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20101024051358.GA1935@current.Sisis.de> References: <20100905081917.GA2212@current.Sisis.de> <20100909063514.GA2333@current.Sisis.de> <20100910061629.GA2461@current.Sisis.de> <20101023084956.GA1362@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101023084956.GA1362@tiny.Sisis.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 93.104.125.203 Cc: Subject: Re: USB key && can't mount /root during boot X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Oct 2010 05:13:59 -0000 El día Saturday, October 23, 2010 a las 10:49:56AM +0200, Matthias Apitz escribió: > I have now again the same problem (see Subject) again with a new laptop > Acer Aspire One D250 and neither of the two values in loader.conf: > > > kern.cam.boot_delay="10000" > > kern.cam.scsi_delay="10000" > > seems to help. The 10 sec delay is not even visible during the boot, the > message to enter manually the root device just pops up without any > delay. What does this mean? After a lot of testing I got it to woork with: kern.cam.boot_delay="10000" kern.cam.scsi_delay="3000" i.e. it works with 3000, but not with 10000 Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 00:12:36 2010 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 12E201065670 for ; Mon, 25 Oct 2010 00:12:36 +0000 (UTC) (envelope-from mgmartin@comcast.net) Received: from mx.appliedtechnicalknowledge.com (appliedtechnicalknowledge.com [173.14.31.49]) by mx1.freebsd.org (Postfix) with ESMTP id 5EFED8FC13 for ; Mon, 25 Oct 2010 00:12:35 +0000 (UTC) Received: from [10.0.0.92] (gandalf.martins.home [10.0.0.92]) by mx.appliedtechnicalknowledge.com (Postfix) with ESMTPSA id A497610D798 for ; Sun, 24 Oct 2010 18:12:20 -0600 (MDT) Message-ID: <4CC4CB64.5080801@comcast.net> Date: Sun, 24 Oct 2010 18:12:20 -0600 From: Michael Martin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.11) Gecko/20101024 Thunderbird/3.1.5 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4CBFEBF5.30203@comcast.net> <4CC2275F.1010201@comcast.net> <201010230823.36449.hselasky@c2i.net> <4CC2F231.7020507@comcast.net> <4CC3C04D.9050106@freebsd.org> In-Reply-To: <4CC3C04D.9050106@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: USB 3.0 Fails To Attach Western Digital My Book 3.0 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: Mon, 25 Oct 2010 00:12:36 -0000 On 10/23/2010 23:12, Julian Elischer wrote: > On 10/23/10 7:33 AM, Michael Martin wrote: >> On 10/23/2010 00:23, Hans Petter Selasky wrote: >>> On Saturday 23 October 2010 02:07:59 Michael Martin wrote: >>>> On 10/21/2010 01:29, Michael Martin wrote: >>>>> Thanks for the new USB 3.0 effort! >>>>> >>>>> I'm testing it out on 9.0-CURRENT amd64. The controller seems to >>>>> find >>>>> a 2.0 usb stick fine. However, when I plug in a Western Digital 3.0 >>>>> drive, the device fails to attach. The WD drive attaches fine when >>>>> plugging into a 2.0 port on the motherboard. >>>>> >>>>> Controller info: >>>>> >>>>> xhci0@pci0:5:0:0: class=0x0c0330 card=0xffffffff >>>>> chip=0x01941033 >>>>> rev=0x03 hdr=0x00 >>>>> >>>>> vendor = 'NEC Electronics Hong Kong' >>>>> class = serial bus >>>>> subclass = USB >>>>> bar [10] = type Memory, range 64, base 0xfbbfe000, size 8192, >>>>> >>>>> enabled >>>>> >>>>> cap 01[50] = powerspec 3 supports D0 D3 current D0 >>>>> cap 05[70] = MSI supports 8 messages, 64 bit >>>>> cap 11[90] = MSI-X supports 8 messages in map 0x10 >>>>> cap 10[a0] = PCI-Express 2 endpoint max data 128(128) link >>>>> x1(x1) >>>>> >>>>> ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected >>>>> ecap 0003[140] = Serial 1 ffffffffffffffff >>>>> ecap 0018[150] = unknown 1 >>>>> >>>>> WD 3.0 Drive Info ( while plugged into the 2.0 port ): >>>>> >>>>> ugen3.4: at usbus3, cfg=0 md=HOST >>>>> spd=HIGH (480Mbps) pwr=ON >>>>> >>>>> bLength = 0x0012 >>>>> bDescriptorType = 0x0001 >>>>> bcdUSB = 0x0210 >>>>> bDeviceClass = 0x0000 >>>>> bDeviceSubClass = 0x0000 >>>>> bDeviceProtocol = 0x0000 >>>>> bMaxPacketSize0 = 0x0040 >>>>> idVendor = 0x1058 >>>>> idProduct = 0x1123 >>>>> bcdDevice = 0x1010 >>>>> iManufacturer = 0x0001 >>>>> iProduct = 0x0002 >>>>> iSerialNumber = 0x0003 >>>>> bNumConfigurations = 0x0001 >>>>> >>>>> Output when plugging in the Western Digital 3.0 into the 3.0 port: >>>>> >>>>> Oct 21 01:03:54 gandalf root: Unknown USB device: vendor 0x1058 >>>>> product 0x1123 bus uhub4 >>>>> Oct 21 01:03:54 gandalf kernel: ugen4.2: at usbus4 >>>>> Oct 21 01:03:54 gandalf kernel: umass0:>>>> class 0/0, rev 3.00/10.10, addr 1> on usbus4 >>>>> Oct 21 01:03:54 gandalf kernel: umass0: SCSI over Bulk-Only; >>>>> quirks = >>>>> 0x0000 >>>>> Oct 21 01:03:55 gandalf kernel: umass0:9:0:-1: Attached to scbus9 >>>>> Oct 21 01:03:57 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 >>>>> error=28 >>>>> Oct 21 01:03:57 gandalf last message repeated 2 times >>>>> Oct 21 01:03:57 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 >>>>> path= >>>>> offset= size= error= >>>>> Oct 21 01:04:03 gandalf kernel: ugen4.2: at usbus4 >>>>> (disconnected) >>>>> Oct 21 01:04:03 gandalf kernel: umass0: at uhub4, port 2, addr 1 >>>>> (disconnected) >>>>> Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): lost device >>>>> Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): got CAM >>>>> status >>>>> 0xa >>>>> Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0:0:0): fatal error, >>>>> failed to attach to device >>>>> Oct 21 01:04:03 gandalf kernel: (da0:umass-sim0:0: >>>>> Oct 21 01:04:03 gandalf kernel: 0:0): removing device entry >>>>> Oct 21 01:04:14 gandalf root: ZFS: zpool I/O failure, zpool=wd3.1 >>>>> error=28 >>>>> Oct 21 01:04:14 gandalf last message repeated 2 times >>>>> Oct 21 01:04:14 gandalf root: ZFS: vdev I/O failure, zpool=wd3.1 >>>>> path= >>>>> offset= size= error= >>>>> >>>>> Output when plugging in the WD 3.0 into the 2.0 port: >>>>> >>>>> Oct 21 01:15:20 gandalf root: Unknown USB device: vendor 0x1058 >>>>> product 0x1123 bus uhub3 >>>>> Oct 21 01:15:20 gandalf kernel: ugen3.4: at usbus3 >>>>> Oct 21 01:15:20 gandalf kernel: umass0:>>>> class 0/0, rev 2.10/10.10, addr 4> on usbus3 >>>>> Oct 21 01:15:20 gandalf kernel: umass0: SCSI over Bulk-Only; >>>>> quirks = >>>>> 0x0000 >>>>> Oct 21 01:15:21 gandalf kernel: umass0:9:0:-1: Attached to scbus9 >>>>> Oct 21 01:15:28 gandalf kernel: da0 at umass-sim0 bus 0 scbus9 target >>>>> 0 lun 0 >>>>> Oct 21 01:15:28 gandalf kernel: da0: Fixed >>>>> Direct Access SCSI-4 device >>>>> Oct 21 01:15:28 gandalf kernel: da0: 40.000MB/s transfers >>>>> Oct 21 01:15:28 gandalf kernel: da0: 953867MB (1953519616 512 byte >>>>> sectors: 255H 63S/T 121600C) >>>>> >>>>> Output when plugging in 2.0 device into the 3.0 port: >>>>> >>>>> Oct 21 01:09:54 gandalf root: Unknown USB device: vendor 0x090c >>>>> product 0x1000 bus uhub4 >>>>> Oct 21 01:09:54 gandalf kernel: ugen4.2: at usbus4 >>>>> Oct 21 01:09:54 gandalf kernel: umass1:>>>> rev 2.00/11.00, addr 1> on usbus4 >>>>> Oct 21 01:09:54 gandalf kernel: umass1: SCSI over Bulk-Only; >>>>> quirks = >>>>> 0x0000 >>>>> Oct 21 01:09:55 gandalf kernel: umass1:10:1:-1: Attached to scbus10 >>>>> Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): TEST UNIT >>>>> READY. CDB: 0 0 0 0 0 0 >>>>> Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): CAM >>>>> status: >>>>> SCSI Status Error >>>>> Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI >>>>> status: Check Condition >>>>> Oct 21 01:09:56 gandalf kernel: (probe0:umass-sim1:1:0:0): SCSI >>>>> sense: >>>>> UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have >>>>> changed) >>>>> Oct 21 01:09:56 gandalf kernel: da1 at umass-sim1 bus 1 scbus10 >>>>> target >>>>> 0 lun 0 >>>>> Oct 21 01:09:56 gandalf kernel: da1: Fixed >>>>> Direct Access SCSI-0 device >>>>> Oct 21 01:09:56 gandalf kernel: da1: 40.000MB/s transfers >>>>> Oct 21 01:09:56 gandalf kernel: da1: 956MB (1957888 512 byte sectors: >>>>> 64H 32S/T 956C) >>>>> >>>>> --Michael >>>> ( I never got the last list email to this thread, so replying to my >>>> own.) >>>> >>>> Hans, I added your suggestions and here's what I've found: >>>> >>>> There seems to be two issues. >>>> >>>> (1) >>>> The first is initial recognition of the device. If I have umass >>>> compiled in the kernel or as a module loaded by loader.conf, initial >>>> load of xhci almost never finds the attached drive as the modules are >>>> loaded. If I kldunload xhci then load it back in, umass finds the >>>> drive. Re-loading or delaying the the load of xhci ( manual >>>> kldload or >>>> in rc.local ) almost always finds the drive. Seems like order matters >>>> here too. umass likes to be loaded first followed by xhci which then >>>> triggers umass to see the drive. >>>> >>>> If both umass and xhci are compiled in the kernel, the drive is never >>>> initialized. >>>> >>>> The good news is I can get the drive to be recognized by a >>>> kldunload/kldload of xhci. >>>> >>>> (2) >>>> One the drive is recognized I can see it and partition it using gpart. >>>> However, when I start dumping data to the drive, the drive gets >>>> disconnected. I was doing a dd if=/dev/zero of=/dev/da0 bs=1M >>>> count=500. The initial dd would sometimes succeed. Running dd >>>> imediately after the initial success would cause an error. >>>> >>>> Here's the tail output of umass debugging while the dd was running and >>>> the device stopped: >>>> >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_transfer_start: transfer >>>> index = 4 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_t_bbb_data_read_callback: >>>> max_bulk=131072, data_rem=512 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_t_bbb_data_read_callback: >>>> max_bulk=131072, data_rem=0 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_transfer_start: transfer >>>> index = 8 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_bbb_dump_csw: CSW >>>> 4049: sig >>>> = 0x53425355 (valid), tag = 0x00000fd1, res = 0, status = 0x00 (good) >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_cam_action: >>>> 7:0:0:XPT_SCSI_IO: cmd: 0x28, flags: 0x40, 10b cmd/512b data/32b sense >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_bbb_dump_cbw: CBW >>>> 4050: cmd >>>> = 10b (0x280000000000...), data = 512b, lun = 0, dir = in >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_transfer_start: transfer >>>> index = 4 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_t_bbb_data_read_callback: >>>> max_bulk=131072, data_rem=512 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_t_bbb_data_read_callback: >>>> max_bulk=131072, data_rem=0 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_transfer_start: transfer >>>> index = 8 >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_bbb_dump_csw: CSW >>>> 4050: sig >>>> = 0x53425355 (valid), tag = 0x00000fd2, res = 0, status = 0x00 (good) >>>> Oct 22 17:44:19 gandalf kernel: umass0:umass_cam_action: >>>> 7:0:0:XPT_SCSI_IO: cmd: 0x35, flags: 0xc0, 10b cmd/0b data/32b sense >>>> Oct 22 17:44:23 gandalf kernel: umass0:umass_cam_action: >>>> 7:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense >>>> Oct 22 17:44:23 gandalf kernel: umass0:umass_bbb_dump_cbw: CBW >>>> 4051: cmd >>>> = 10b (0x250000000000...), data = 8b, lun = 0, dir = in >>>> Oct 22 17:44:23 gandalf kernel: ugen4.2: at usbus4 >>>> (disconnected) >>>> Oct 22 17:44:23 gandalf kernel: umass0: at uhub4, port 2, addr 1 >>>> (disconnected) >>>> Oct 22 17:44:23 gandalf kernel: umass0:umass_detach: >>>> Oct 22 17:44:23 gandalf kernel: (da0:umass-sim0:0:0:0): AutoSense >>>> failed >>>> Oct 22 17:44:23 gandalf kernel: (da0:umass-sim0:0:0:0): lost device >>>> Oct 22 17:44:23 gandalf kernel: (da0:umass-sim0:0:0:0): removing >>>> device >>>> entry >>>> >>>> I've saw there are quirks for the WESTERN MYBOOK . A added a specific >>>> device into usbdevs and an entry into usb_quirk.c to mimic the same >>>> quirks: >>>> >>>> USB_QUIRK(WESTERN, MYBOOK3, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, >>>> UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY_EVPD, >>>> UQ_MSC_NO_SYNC_CACHE), >>>> >>>> This didn't help, and I got the disconnect as shown above. >>>> >>>> --Michael >>> Hi, >>> >>> Could you compile kernel with "options USB_DEBUG". >>> >>> Then run: >>> >>> sysctl hw.usb.uhub.debug=16 >>> >>> Then attach your drive. >>> >>> Maybe the USB stack is mistreating some event from the XHCI. Send the >>> resulting dmesg. >>> >>> --HPS >> >> I set debug and plugged in the drive. Here's the output. > > the list strips attachements.. > put it at some web site and give the url > >> >> --Michael >> >> _______________________________________________ >> freebsd-usb@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-usb >> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >> > usb debug output is available here: http://appliedtechnicalknowledge.com/freebsd/wd_plug_in_fail_debug.txt From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 06:33:29 2010 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 0937C1065670; Mon, 25 Oct 2010 06:33:29 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id B75238FC0C; Mon, 25 Oct 2010 06:33:28 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1PAGLg-000CA1-P0; Mon, 25 Oct 2010 10:16:00 +0400 From: Boris Samorodov To: Weongyo Jeong References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <201010212256.12800.hselasky@c2i.net> <20101023234959.GB1399@weongyo> Date: Mon, 25 Oct 2010 10:16:00 +0400 In-Reply-To: <20101023234959.GB1399@weongyo> (Weongyo Jeong's message of "Sat, 23 Oct 2010 16:49:59 -0700") Message-ID: <82021647@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED 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: Mon, 25 Oct 2010 06:33:29 -0000 On Sat, 23 Oct 2010 16:49:59 -0700 Weongyo Jeong wrote: > On Thu, Oct 21, 2010 at 10:56:12PM +0200, Hans Petter Selasky wrote: > > > > Weongyo is working on a usbdump utility to monitor ongoing USB traffic. > It's merged into HEAD not too lately. :-) Did I miss something? ----- % svn info /usr/src Path: /usr/src URL: svn+ssh://svn.freebsd.org/base/head Repository Root: svn+ssh://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 214315 Node Kind: directory Schedule: normal Last Changed Author: julian Last Changed Rev: 214309 Last Changed Date: 2010-10-25 03:25:14 +0400 (пн, 25 окт 2010) % svn status /usr/src % find /usr/src -name usbdump % ----- -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 06:56:58 2010 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 30F301065694; Mon, 25 Oct 2010 06:56:58 +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 7CAA08FC0C; Mon, 25 Oct 2010 06:56:56 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=omSrwDgyMf70S47Fr5SNr0rQzcmIOo0IafWlB/wSLLo= c=1 sm=1 a=BJjCyyNTvkcA:10 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=6I5d2MoRAAAA:8 a=lQ19u7S3HiBG6hx3cmIA:9 a=DxBLKPlOWsDLFd7aoY4A:7 a=smHBdSxt_mnGmnoLj4wJr6k4jJUA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 40384937; Mon, 25 Oct 2010 08:56:55 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 25 Oct 2010 08:58:08 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <20101023234959.GB1399@weongyo> <82021647@bb.ipt.ru> In-Reply-To: <82021647@bb.ipt.ru> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?utf-8?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?utf-8?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7CoTlKM?= =?utf-8?q?usi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201010250858.08975.hselasky@c2i.net> Cc: Weongyo Jeong Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED 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: Mon, 25 Oct 2010 06:56:58 -0000 On Monday 25 October 2010 08:16:00 Boris Samorodov wrote: > On Sat, 23 Oct 2010 16:49:59 -0700 Weongyo Jeong wrote: > > On Thu, Oct 21, 2010 at 10:56:12PM +0200, Hans Petter Selasky wrote: > > > Weongyo is working on a usbdump utility to monitor ongoing USB traffi= c. > >=20 > > It's merged into HEAD not too lately. :-) >=20 > Did I miss something? > ----- > % svn info /usr/src > Path: /usr/src > URL: svn+ssh://svn.freebsd.org/base/head > Repository Root: svn+ssh://svn.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 214315 > Node Kind: directory > Schedule: normal > Last Changed Author: julian > Last Changed Rev: 214309 > Last Changed Date: 2010-10-25 03:25:14 +0400 (=D0=BF=D0=BD, 25 =D0=BE=D0= =BA=D1=82 2010) > % svn status /usr/src > % find /usr/src -name usbdump > % > ----- It is in Weongyo's branch and not -head. =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 07:13:51 2010 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 57D4C106566C; Mon, 25 Oct 2010 07:13:51 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 10F498FC12; Mon, 25 Oct 2010 07:13:50 +0000 (UTC) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1PAHFd-000Cts-Sp; Mon, 25 Oct 2010 11:13:49 +0400 From: Boris Samorodov To: Hans Petter Selasky References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <20101023234959.GB1399@weongyo> <82021647@bb.ipt.ru> <201010250858.08975.hselasky@c2i.net> Date: Mon, 25 Oct 2010 11:13:49 +0400 In-Reply-To: <201010250858.08975.hselasky@c2i.net> (Hans Petter Selasky's message of "Mon, 25 Oct 2010 08:58:08 +0200") Message-ID: <15948178@bb.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Weongyo Jeong , freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED 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: Mon, 25 Oct 2010 07:13:51 -0000 On Mon, 25 Oct 2010 08:58:08 +0200 Hans Petter Selasky wrote: > On Monday 25 October 2010 08:16:00 Boris Samorodov wrote: > > On Sat, 23 Oct 2010 16:49:59 -0700 Weongyo Jeong wrote: > > > On Thu, Oct 21, 2010 at 10:56:12PM +0200, Hans Petter Selasky wrote: > > > > Weongyo is working on a usbdump utility to monitor ongoing USB traffic. > > > > > > It's merged into HEAD not too lately. :-) > > > > Did I miss something? > > ----- > > % svn info /usr/src > > Path: /usr/src > > URL: svn+ssh://svn.freebsd.org/base/head > > Repository Root: svn+ssh://svn.freebsd.org/base > > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > > Revision: 214315 > > Node Kind: directory > > Schedule: normal > > Last Changed Author: julian > > Last Changed Rev: 214309 > > Last Changed Date: 2010-10-25 03:25:14 +0400 (пн, 25 окт 2010) > > % svn status /usr/src > > % find /usr/src -name usbdump > > % > > ----- > It is in Weongyo's branch and not -head. hselasky@: OK. Thanks. weongyo@: It will be a great tool. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 07:23:56 2010 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 04338106566B for ; Mon, 25 Oct 2010 07:23:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8304F8FC13 for ; Mon, 25 Oct 2010 07:23:55 +0000 (UTC) Received: by fxm17 with SMTP id 17so2626961fxm.13 for ; Mon, 25 Oct 2010 00:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=duWS17sYJ+D8vBbtqIXhjKQzZFpPw4pO3J8vtHP/l1Y=; b=PmpxLgDnqRqCghVjL3FRXRQskFHxnQ6kjF0G9xLkITHWTy4eFC35XbsmffoOHdVTjU 7aGsJoIWySTg+jucrpNerGJCVUp9ndAjMLmbYdt8TUmol/X7Me4HpSGWspMiyYAjOGxk XntuRKQ9JcJiH96jr2PRayBSvKyj6CW5kUGx0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=UgEGRMDAkpZBvXrIZpOxQmgieV2IcbvG4gvAwQgORZkQoXa5icM9oKW2/4mQhAJyIP an4fKMAFP3FbgQ7IW2CdTdxa8kn7AHp+sRASlvqWOwHa3hQgdfa5FTilOaeB8L8jNFNq 5Lj+jxJZe+M2TwOMxzkwfNW+O5qk58S2JUxlA= Received: by 10.103.221.12 with SMTP id y12mr141948muq.109.1287989715259; Sun, 24 Oct 2010 23:55:15 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id o6sm2684054fal.39.2010.10.24.23.55.13 (version=SSLv3 cipher=RC4-MD5); Sun, 24 Oct 2010 23:55:14 -0700 (PDT) Sender: Alexander Motin Message-ID: <4CC529CF.8000304@FreeBSD.org> Date: Mon, 25 Oct 2010 09:55:11 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Hans Petter Selasky References: <20101020153040.GA3184@freebsd.org> <201010201955.56816.hselasky@c2i.net> In-Reply-To: <201010201955.56816.hselasky@c2i.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: serious issue caused by usb device, stalling almost all operations 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: Mon, 25 Oct 2010 07:23:56 -0000 Hans Petter Selasky wrote: > On Wednesday 20 October 2010 17:30:40 Alexander Best wrote: >> hi there, >> >> i'm running HEAD (r213495; amd64). i stumbled upon this severe problem: >> >> after attaching my mobile phone, it simply resets without doing mount or >> anything. however after letting the device come up again it won't show up >> in the console. after detaching it the usb subsystem seemed to have >> completely crashed. but that's not all. the following programs now simply >> hang without producing any output C-C won't do anything: >> >> - dmesg >> - top >> - ps >> - killall >> - camcontrol devlist >> - usbconfig > > That's most likely because USB's umass driver is waiting for cam to drain. > Possibly some refcounting is not correct. I suspect this is not a USB problem. > Try to enter into the debugger, and look for backtrace for function stuck in > umass_detach. It is a bit suspicious that problem happens only when device dies during request. Are you sure that running command was properly aborted when device got detached? Every running command has own set of references, denying detach. -- Alexander Motin From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 11:07:12 2010 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 30668106573A for ; Mon, 25 Oct 2010 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1CEAB8FC23 for ; Mon, 25 Oct 2010 11:07:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9PB7Ctg088925 for ; Mon, 25 Oct 2010 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9PB7BPr088923 for freebsd-usb@FreeBSD.org; Mon, 25 Oct 2010 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Oct 2010 11:07:11 GMT Message-Id: <201010251107.o9PB7BPr088923@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org 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: Mon, 25 Oct 2010 11:07:12 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/151043 usb Please add USB device MELCO WLR-UC-G o usb/150989 usb [patch] Add Netgear WG111V2_2 support to upgt(4) o usb/150892 usb [zyd] Whenever network contacted in any shape, way or p usb/150546 usb libusb(3) libusb_control_transfer() prototype is incor o usb/150401 usb [umass] [usb8] Errors from USB drives mixed between UF o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf o usb/149934 usb [patch] [usb8] Transcend JetFlash V85 poor performance o usb/149900 usb [uftdi] [patch] FreeBSD 8.1 uftdi patch to support usb o usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149675 usb [uftdi] [usb_serial] doesn't react to break properly o usb/149528 usb [zyd] Wireless USB stick not detected - vendor id 0x08 o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 o usb/149039 usb [uhso] [patch] Binding problem with uhso s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack o usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb o usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system f usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P o usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138548 usb [usb67] [usb8] usb devices periodically have unknown a o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb [hang] Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick s usb/130230 usb [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device o usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/127222 usb [ohci] Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [usb67] [umass] [patch] quirk to support ASUS P535 as o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a p usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " f usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 314 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 15:38:04 2010 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 90DE51065674; Mon, 25 Oct 2010 15:38:04 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2-6.sentex.ca [IPv6:2607:f3e0:80:80::2]) by mx1.freebsd.org (Postfix) with ESMTP id E57BA8FC19; Mon, 25 Oct 2010 15:38:03 +0000 (UTC) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.14.4/8.14.4) with ESMTP id o9PFbvnv081968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Oct 2010 11:37:57 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.4/8.14.4) with ESMTP id o9PFbuA8019594; Mon, 25 Oct 2010 11:37:56 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <201010251537.o9PFbuA8019594@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 25 Oct 2010 11:37:59 -0400 To: Weongyo Jeong , Hans Petter Selasky From: Mike Tancsa In-Reply-To: <20101023234959.GB1399@weongyo> References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <201010212256.12800.hselasky@c2i.net> <20101023234959.GB1399@weongyo> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.67 on 205.211.164.50 Cc: freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED 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: Mon, 25 Oct 2010 15:38:04 -0000 At 07:49 PM 10/23/2010, Weongyo Jeong wrote: > > > > Weongyo is working on a usbdump utility to monitor ongoing USB traffic. > >It's merged into HEAD not too lately. :-) Hi, I built an image from HEAD that I will try out. How do I get your utility ? ---Mike >regards, >Weongyo Jeong -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From owner-freebsd-usb@FreeBSD.ORG Mon Oct 25 16:47:58 2010 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 B1BFA106564A for ; Mon, 25 Oct 2010 16:47:58 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCBA8FC0A for ; Mon, 25 Oct 2010 16:47:57 +0000 (UTC) Received: by fxm17 with SMTP id 17so3109886fxm.13 for ; Mon, 25 Oct 2010 09:47:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=s+xghvr8/s3pTWUVAbmoUNoaY1aw1n1u/US905+Oqwc=; b=GZqtdelRxHZ7asivq83Mnt7QPwcavWKgznIft3wefLm/R0B2lJgTPxSj+vx5NOCIpE N5vKSkydOkGkcxQdBPkNIkHQF5iPjDWtp8YWfSqdSaZZwQav8EkpIw8mVac4WKiScIAu PlxJItb42ofS9V62Xmm2XCbeHD7KLFsc2XCW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :organization:x-operation-sytem; b=Wm3f6VZBuMZ0MvusIIdSXOG3TMBf+lti+a8kOGDzVaGiNdLGVm8s8wB1OSwY2o9HSU gXuV9AwVv93Qckeh+Osc3Hd4xBDLktXr2twfW0pB567OT3pJCYsDqSLrXk93gNqQvyRR LFbt5CmEEV/ay1whyAB26+M2U9lAvXBdc6UzE= Received: by 10.223.86.16 with SMTP id q16mr6919fal.58.1288025277021; Mon, 25 Oct 2010 09:47:57 -0700 (PDT) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id 14sm3002209fas.20.2010.10.25.09.47.53 (version=SSLv3 cipher=RC4-MD5); Mon, 25 Oct 2010 09:47:55 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Mon, 25 Oct 2010 09:47:51 -0700 From: Weongyo Jeong Date: Mon, 25 Oct 2010 09:47:51 -0700 To: Boris Samorodov Message-ID: <20101025164751.GA1420@weongyo> References: <201010211502.o9LF2WYf086752@lava.sentex.ca> <201010212256.12800.hselasky@c2i.net> <20101023234959.GB1399@weongyo> <82021647@bb.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82021647@bb.ipt.ru> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: freebsd-usb@freebsd.org Subject: Re: USB_ERR_TIMEOUT and USB_ERR_STALLED X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2010 16:47:58 -0000 On Mon, Oct 25, 2010 at 10:16:00AM +0400, Boris Samorodov wrote: > On Sat, 23 Oct 2010 16:49:59 -0700 Weongyo Jeong wrote: > > On Thu, Oct 21, 2010 at 10:56:12PM +0200, Hans Petter Selasky wrote: > > > > > > Weongyo is working on a usbdump utility to monitor ongoing USB traffic. > > > It's merged into HEAD not too lately. :-) ~~~~ It'll be Fixes a typo. Sorry for confusing. regards, Weongyo Jeong From owner-freebsd-usb@FreeBSD.ORG Tue Oct 26 09:00:22 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6802E10656AB for ; Tue, 26 Oct 2010 09:00:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 567868FC17 for ; Tue, 26 Oct 2010 09:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9Q90LiL085510 for ; Tue, 26 Oct 2010 09:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9Q90LQS085492; Tue, 26 Oct 2010 09:00:21 GMT (envelope-from gnats) Date: Tue, 26 Oct 2010 09:00:21 GMT Message-Id: <201010260900.o9Q90LQS085492@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Nicolas Blais Cc: Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nicolas Blais List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 09:00:22 -0000 The following reply was made to PR usb/140883; it has been noted by GNATS. From: Nicolas Blais To: bug-followup@FreeBSD.org, sub.mesa@gmail.com Cc: Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic Date: Tue, 26 Oct 2010 12:51:49 +0430 I'm having the same problem here with vendor 0x05ac, product 0x1402, rev 2.00/0.01 (Apple Ethernet USB Adapter). It freezes after a while. I am running a transparent squid server and the freezes also affects my bridge interface. Until I get a new PCI NIC, I have a script running from crontab every 15 minutes to reset the interface and bring the bridge back up. ############## #!/bin/sh usbconfig -u 7 -a 2 reset sleep 3 ifconfig bridge0 addm ue0 up ############## Nick. From owner-freebsd-usb@FreeBSD.ORG Sat Oct 30 23:19:04 2010 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 9719F1065673; Sat, 30 Oct 2010 23:19:04 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 384628FC12; Sat, 30 Oct 2010 23:19:03 +0000 (UTC) Received: by gya6 with SMTP id 6so2840352gya.13 for ; Sat, 30 Oct 2010 16:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent:organization:x-operation-sytem; bh=R8D5+dbnhdrpaubOpgcO7FKcK+Nc2sXu5viXkA1gYCQ=; b=lDo8F1lNQuUgmkNBALMypk+ctVaTUQ56+z0Y8evMyvTfap+WgQ+9+2iIqQY4QmjxvX 8xnCNkxQ20xtejdh/znO3kTTvmVThSy6XqkA6tWnRa+/k583M6sbDCedIKfBZHjU680X lhW9ujRYNfp5ltcl8zxQC7sUF+XgRHWcNPyis= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mime-version :content-type:content-disposition:user-agent:organization :x-operation-sytem; b=x+tHbYi3687C5/hulXNv8ScvIEV1hVChD1GSD3dRpIZ66Nn075Yh9BotCh9IvCqqkR sWhuNi6UjvVV335qjY+0WgWiopvPjzV7cDZdAWQbeml797Mrdb8ueQOyB5bpQsFkvXSh 86MOAgJI2PQDb/STzfNPVZAjMyS07u8XHm4Vk= Received: by 10.150.178.16 with SMTP id a16mr25262063ybf.437.1288480743262; Sat, 30 Oct 2010 16:19:03 -0700 (PDT) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id j27sm1088955yha.30.2010.10.30.16.19.00 (version=SSLv3 cipher=RC4-MD5); Sat, 30 Oct 2010 16:19:02 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Sat, 30 Oct 2010 16:19:01 -0700 From: Weongyo Jeong Date: Sat, 30 Oct 2010 16:19:01 -0700 To: freebsd-usb@freebsd.org Message-ID: <20101030231901.GA83161@weongyo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Subject: [CFR] add usb_sleepout.[ch] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 23:19:04 -0000 Hello USB guys, The following patch is to add a implementation, called `sleepout'. Please reviews. I'd like to commit it into HEAD if no objections. Adds `sleepout' prototype which is a comic combination of callout(9) and taskqueue(8) only for USB drivers to implement one step timer. In current USB drivers using callout(9) interface they all have two step execution flow as follows: 1. callout callback is fired by the interrupt context. Then it needs to pass it to USB process context because it could sleep(!) while callout(9) don't allow it. 2. In the USB process context it operates USB commands that most of times it'd be blocked at least 125 us (it'd be always true for USB) In a view of driver developer it'd be more convenient if USB stack has a feature like this (timer supporting blocking). regards, Weongyo Jeong Index: usb_sleepout.c =================================================================== --- usb_sleepout.c (revision 0) +++ usb_sleepout.c (revision 0) @@ -0,0 +1,122 @@ +/*- + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +__FBSDID("$FreeBSD$"); +#include +#include +#include +#include +#include +#include + +#include + +void +sleepout_create(struct sleepout *s, const char *name) +{ + + s->s_taskqueue = taskqueue_create(name, M_WAITOK, + taskqueue_thread_enqueue, &s->s_taskqueue); + /* XXX adjusts the priority. */ + taskqueue_start_threads(&s->s_taskqueue, 1, PI_NET, "%s sleepout", + name); +} + +void +sleepout_free(struct sleepout *s) +{ + + taskqueue_free(s->s_taskqueue); +} + +static void +_sleepout_taskqueue_callback(void *arg, int pending) +{ + struct sleepout_task *st = arg; + + (void)pending; + + if (st->st_mtx != NULL) + mtx_lock(st->st_mtx); + + st->st_func(st->st_arg); + + if (st->st_mtx != NULL) + mtx_unlock(st->st_mtx); +} + +void +sleepout_init(struct sleepout *s, struct sleepout_task *st, int mpsafe) +{ + + st->st_sleepout = s; + callout_init(&st->st_callout, mpsafe); + TASK_INIT(&st->st_task, 0, _sleepout_taskqueue_callback, st); + st->st_mtx = NULL; +} + +void +sleepout_init_mtx(struct sleepout *s, struct sleepout_task *st, struct mtx *mtx, + int flags) +{ + + st->st_sleepout = s; + callout_init_mtx(&st->st_callout, mtx, flags); + TASK_INIT(&st->st_task, 0, _sleepout_taskqueue_callback, st); + st->st_mtx = mtx; +} + +static void +_sleepout_callout_callback(void *arg) +{ + struct sleepout_task *st = arg; + struct sleepout *s = st->st_sleepout; + + taskqueue_enqueue(s->s_taskqueue, &st->st_task); +} + +int +sleepout_reset(struct sleepout_task *st, int to_ticks, sleepout_func_t ftn, + void *arg) +{ + + st->st_func = ftn; + st->st_arg = arg; + return (callout_reset(&st->st_callout, to_ticks, + _sleepout_callout_callback, st)); +} + +int +sleepout_pending(struct sleepout_task *st) +{ + + return (callout_pending(&st->st_callout)); +} + +int +sleepout_stop(struct sleepout_task *st) +{ + + return (callout_stop(&st->st_callout)); +} + +int +sleepout_drain(struct sleepout_task *st) +{ + struct sleepout *s = st->st_sleepout; + + taskqueue_drain(s->s_taskqueue, &st->st_task); + return (callout_drain(&st->st_callout)); +} Property changes on: usb_sleepout.c ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Id Added: svn:eol-style + native Index: usb_sleepout.h =================================================================== --- usb_sleepout.h (revision 0) +++ usb_sleepout.h (revision 0) @@ -0,0 +1,53 @@ +/*- + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * $FreeBSD$ + */ + +#ifndef _USB_SLEEPOUT_H_ +#define _USB_SLEEPOUT_H_ + +#include +#include + +struct sleepout { + struct taskqueue *s_taskqueue; +}; + +typedef void (*sleepout_func_t)(void *); + +struct sleepout_task { + struct sleepout *st_sleepout; + struct callout st_callout; + struct task st_task; + struct mtx *st_mtx; + sleepout_func_t st_func; + void *st_arg; +}; + +#define SLEEPOUT_RUNTASK(_so, _task) \ + taskqueue_enqueue((_so)->s_taskqueue, (_task)) +#define SLEEPOUT_DRAINTASK(_so, _task) \ + taskqueue_drain((_so)->s_taskqueue, (_task)) + +void sleepout_create(struct sleepout *, const char *); +void sleepout_free(struct sleepout *); +void sleepout_init(struct sleepout *, struct sleepout_task *, int); +void sleepout_init_mtx(struct sleepout *, struct sleepout_task *, + struct mtx *, int); +int sleepout_reset(struct sleepout_task *, int, sleepout_func_t, void *); +int sleepout_pending(struct sleepout_task *); +int sleepout_stop(struct sleepout_task *); +int sleepout_drain(struct sleepout_task *); + +#endif Property changes on: usb_sleepout.h ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:keywords + Id Added: svn:eol-style + native From owner-freebsd-usb@FreeBSD.ORG Sat Oct 30 23:52:52 2010 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 C2F78106564A; Sat, 30 Oct 2010 23:52:52 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3DB8FC0A; Sat, 30 Oct 2010 23:52:51 +0000 (UTC) Received: by wwi17 with SMTP id 17so3136549wwi.31 for ; Sat, 30 Oct 2010 16:52:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.147.79 with SMTP id k15mr3709220wbv.128.1288482770874; Sat, 30 Oct 2010 16:52:50 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.227.146.67 with HTTP; Sat, 30 Oct 2010 16:52:50 -0700 (PDT) In-Reply-To: <20101030231901.GA83161@weongyo> References: <20101030231901.GA83161@weongyo> Date: Sun, 31 Oct 2010 12:52:50 +1300 X-Google-Sender-Auth: -IzEhOj3JDzzfE_GL2MS0O2FsUc Message-ID: From: Andrew Thompson To: Weongyo Jeong Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: [CFR] add usb_sleepout.[ch] 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: Sat, 30 Oct 2010 23:52:52 -0000 On 31 October 2010 12:19, Weongyo Jeong wrote: > Hello USB guys, > > The following patch is to add a implementation, called `sleepout'. > Please reviews. =A0I'd like to commit it into HEAD if no objections. > > =A0Adds `sleepout' prototype which is a comic combination of callout(9) a= nd > =A0taskqueue(8) only for USB drivers to implement one step timer. =A0In > =A0current USB drivers using callout(9) interface they all have two step > =A0execution flow as follows: > > =A0 =A01. callout callback is fired by the interrupt context. =A0Then it = needs > =A0 =A0 =A0 to pass it to USB process context because it could sleep(!) w= hile > =A0 =A0 =A0 callout(9) don't allow it. > =A0 =A02. In the USB process context it operates USB commands that most o= f > =A0 =A0 =A0 times it'd be blocked at least 125 us (it'd be always true fo= r USB) I think it is a good addition. Andrew