From owner-freebsd-usb@FreeBSD.ORG Fri Aug 1 19:38:49 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6149147A; Fri, 1 Aug 2014 19:38:49 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 407032C6E; Fri, 1 Aug 2014 19:38:48 +0000 (UTC) Received: from [192.168.200.205] (c-50-131-5-126.hsd1.ca.comcast.net [50.131.5.126]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 0E9B0192906; Fri, 1 Aug 2014 19:38:46 +0000 (UTC) Subject: Re: Random issues with xhci From: Sean Bruno Reply-To: sbruno@freebsd.org To: sbruno@freebsd.org In-Reply-To: <1406912580.5206.3.camel@bruno> References: <1406822044.1364.1.camel@bruno> <53DA6AA2.9020701@selasky.org> <1406912580.5206.3.camel@bruno> Content-Type: text/plain; charset="us-ascii" Date: Fri, 01 Aug 2014 12:38:46 -0700 Message-ID: <1406921926.5206.6.camel@bruno> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 19:38:49 -0000 On Fri, 2014-08-01 at 10:03 -0700, Sean Bruno wrote: > On Thu, 2014-07-31 at 18:11 +0200, Hans Petter Selasky wrote: > > Best way to debug is to log all USB traffic: > > > > usbdump -i usbusX -s 65536 -w usblog.pcap > > > > Then try to see if there are any USB errors happening before the XHCI > > controller resets. > > > > Thank you! > > > > --HPS > > > Hrm ... seems to most reliably happen on host startup and not really > able to reproduce after multiuser. > > I see stuff like this: > > usbd_setup_device_desc: getting device descriptor at addr 2 failed, > USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, > USB_ERR_IOERROR > ugen1.2: at usbus1 > cd0 at ahcich4 bus 0 scbus4 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 150.000MB/s transfers (SATA 1.x, UDMA4, ATAPI 12bytes, PIO > 8192bytes) > cd0: Attempt to query device size failed: NOT READY, Medium not present > Trying to mount root from zfs:zroot []... > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, > USB_ERR_IOERROR > ugen1.3: at usbus1 > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, > USB_ERR_IOERROR > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, > ignored) > usbd_setup_device_desc: getting device descriptor at addr 2 failed, > USB_ERR_IOERROR > ugen3.2: at usbus3 (disconnected) > uhub_reattach_port: could not allocate new device > ums0: on > usbus0 > ums0: 16 buttons and [XYZT] coordinates ID=2 > uhid0: on > usbus0 > uaudio0: 2> on usbus2 > uaudio0: No playback. > uaudio0: Record: 16000 Hz, 1 ch, 16-bit S-LE PCM format, 2x8ms buffer. > uaudio0: No MIDI sequencer. > pcm6: on uaudio0 > uaudio0: No HID volume keys found. > uhid1: on usbus1 Hrm ... poking around the internet now. I'm seeing evidence of oddities from other users. http://ehc.ac/p/libusbx/mailman/message/29979450/ http://www.spinics.net/lists/linux-usb/msg67316.html ^^ something about a "short packet bug" is referenced here. sean