From owner-freebsd-usb@FreeBSD.ORG Fri Aug 1 17:03:08 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F8A5F61 for ; Fri, 1 Aug 2014 17:03:08 +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 3F8BC298B for ; Fri, 1 Aug 2014 17:03:08 +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 7DB74192906; Fri, 1 Aug 2014 17:03:01 +0000 (UTC) Subject: Re: Random issues with xhci From: Sean Bruno Reply-To: sbruno@freebsd.org To: Hans Petter Selasky In-Reply-To: <53DA6AA2.9020701@selasky.org> References: <1406822044.1364.1.camel@bruno> <53DA6AA2.9020701@selasky.org> Content-Type: text/plain; charset="us-ascii" Date: Fri, 01 Aug 2014 10:03:00 -0700 Message-ID: <1406912580.5206.3.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 17:03:08 -0000 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: 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