From owner-freebsd-usb@FreeBSD.ORG Mon Oct 27 15:07:53 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BE96DE9 for ; Mon, 27 Oct 2014 15:07:53 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 030E6270 for ; Mon, 27 Oct 2014 15:07:53 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9RF7qOi029974 for ; Mon, 27 Oct 2014 15:07:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194633] New: FreeBSD 10.1-RC3 can't detect all available USB devices Date: Mon, 27 Oct 2014 15:07:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RC2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rff1917@yahoo.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2014 15:07:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194633 Bug ID: 194633 Summary: FreeBSD 10.1-RC3 can't detect all available USB devices Product: Base System Version: 10.1-RC2 Hardware: i386 OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: rff1917@yahoo.com The device is a portable MP3 player. On FreeBSD 9.1, its internal memory is detected as da0 and the micro-SD card extension is detected as da1. Both can be mounted read-write without any issue. On FreeBSD 10.1-RC3, only the internal memory is detected and can be mounted. No da1 is visible in /dev. Following is the output of /var/log/messages on both systems: ON 10.1-RC3 =========== Oct 27 16:17:55 pc1 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 Oct 27 16:17:55 pc1 kernel: da0: Removable Direct Access SCSI-0 device Oct 27 16:17:55 pc1 kernel: da0: Serial Number K Oct 27 16:17:55 pc1 kernel: da0: 40.000MB/s transfers Oct 27 16:17:55 pc1 kernel: da0: 3748MB (7675904 512 byte sectors: 255H 63S/T 477C) Oct 27 16:17:55 pc1 kernel: da0: quirks=0x2 Oct 27 16:17:55 pc1 kernel: da1 at umass-sim0 bus 0 scbus2 target 0 lun 1 Oct 27 16:17:55 pc1 kernel: da1: Removable Direct Access SCSI-0 device Oct 27 16:17:55 pc1 kernel: da1: Serial Number K Oct 27 16:17:55 pc1 kernel: da1: 40.000MB/s transfers Oct 27 16:17:55 pc1 kernel: da1: 30335MB (62126080 512 byte sectors: 255H 63S/T 3867C) Oct 27 16:17:55 pc1 kernel: da1: quirks=0x2 Oct 27 16:17:55 pc1 kernel: da1 at umass-sim0 bus 0 scbus2 target 0 lun 1 Oct 27 16:17:55 pc1 kernel: da1: s/n K detached Oct 27 16:17:55 pc1 kernel: (da1:umass-sim0:0:0:1): Periph destroyed WHEN POWERING OFF THE DEVICE Oct 27 16:21:46 pc1 kernel: ugen3.2: at usbus3 (disconnected) Oct 27 16:21:46 pc1 kernel: umass0: at uhub3, port 3, addr 2 (disconnected) Oct 27 16:21:46 pc1 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 Oct 27 16:21:46 pc1 kernel: da0: s/n K detached Oct 27 16:21:46 pc1 kernel: (da0:umass-sim0:0:0:0): Periph destroyed ON 9.1 ====== Oct 27 16:30:48 pc1 kernel: ugen3.2: at usbus3 Oct 27 16:30:48 pc1 kernel: umass0: on usbus3 Oct 27 16:30:48 pc1 kernel: umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0000 Oct 27 16:30:48 pc1 kernel: umass0:2:0:-1: Attached to scbus2 Oct 27 16:30:48 pc1 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 Oct 27 16:30:48 pc1 kernel: da0: Removable Direct Access SCSI-0 device Oct 27 16:30:48 pc1 kernel: da0: 40.000MB/s transfers Oct 27 16:30:48 pc1 kernel: da0: 3748MB (7675904 512 byte sectors: 255H 63S/T 477C) Oct 27 16:30:48 pc1 kernel: da1 at umass-sim0 bus 0 scbus2 target 0 lun 1 Oct 27 16:30:48 pc1 kernel: da1: Removable Direct Access SCSI-0 device Oct 27 16:30:48 pc1 kernel: da1: 40.000MB/s transfers Oct 27 16:30:48 pc1 kernel: da1: 30335MB (62126080 512 byte sectors: 255H 63S/T 3867C) WHEN POWERING OFF THE DEVICE Oct 27 16:32:18 pc1 kernel: ugen3.2: at usbus3 (disconnected) Oct 27 16:32:18 pc1 kernel: umass0: at uhub3, port 3, addr 2 (disconnected) Oct 27 16:32:18 pc1 kernel: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 1 refs Oct 27 16:32:18 pc1 kernel: (da1:umass-sim0:0:0:1): lost device - 0 outstanding, 1 refs Oct 27 16:32:18 pc1 kernel: (pass2:umass-sim0:0:0:0): passdevgonecb: devfs entry is gone Oct 27 16:32:18 pc1 kernel: (pass3:umass-sim0:0:0:1): passdevgonecb: devfs entry is gone Oct 27 16:32:18 pc1 kernel: (da1:umass-sim0:0:0:1): removing device entry Oct 27 16:32:18 pc1 kernel: (da0:umass-sim0:0:0:0): removing device entry -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 03:03:14 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA293F3C for ; Tue, 28 Oct 2014 03:03:14 +0000 (UTC) Received: from mail-vc0-x235.google.com (mail-vc0-x235.google.com [IPv6:2607:f8b0:400c:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC4E7F0B for ; Tue, 28 Oct 2014 03:03:14 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hy10so1780957vcb.40 for ; Mon, 27 Oct 2014 20:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=L4PfGGInAUJTWK3izyAnw/7UQYKCaft0O9u8ndtlkqw=; b=q1y7bHUtM63cYcKwm3D1Y7PdPltE7l1HvfR5tLbhRrRHQMfrCUQfOO8UxemQ+BSAUC S099RC3foJlLg9TKOmMmm/lL4j2ol1ckUKGas0pciFRsSqE+f6xCy7zKRj7yr+sno72Q bt2PBPU64nwcUpQrPej9XVDzycetdlx+FyJKVCxrsksFDnD8C4oz0llCUo0/d8Ie/fpn mAGsmXfzIbcG7tdbZzYtc8J7vvL48DjTRA4yaUYiv42Tr/h6UgaxG5EmW2cLlKFQwI1N eqHO0Qmh/AvuOtVMTeYybIhZ9MsUI/H53iIA2sLJWUy0gLIsCbZluXfQf5FwQyNN4ONf R/6Q== MIME-Version: 1.0 X-Received: by 10.52.138.211 with SMTP id qs19mr210053vdb.13.1414465393691; Mon, 27 Oct 2014 20:03:13 -0700 (PDT) Received: by 10.220.58.136 with HTTP; Mon, 27 Oct 2014 20:03:13 -0700 (PDT) Date: Mon, 27 Oct 2014 20:03:13 -0700 Message-ID: Subject: USB stack driver options for the receive side question From: Nidal Khalil To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 03:03:15 -0000 Hello All, I am setting up usb to transfer 3 frames on the bulk read descriptor but all I get is one frame transferred? Basically aframe = 1 However if I use .short_frames_ok = 1, then the transfer will pend till the three frames are received. This code is part of a network driver I would like to receive the one buffer it is the only one available and at most three buffers at a time if the transfer is complete. The one frame a time to respond to ping and three frame at time when the transfer load is heavy. Is this a limitation of FreeBSD. I searched all the drivers in the 9.3 release and I can not find a driver that is setup to receive multiple buffers? Below is my sample code: BWL_BULK_RD] = { .type = UE_BULK, .endpoint = UE_ADDR_ANY, .direction = UE_DIR_IN, .bufsize = 2000 * HW_IN_PENDING_FRAMES, .flags = { .pipe_bof = 1, .short_xfer_ok = 1, .ext_buffer = 1 }, .callback = dbus_usbos_recv_callback, .timeout = 0, /* no timeout */ .frames = HW_IN_PENDING_FRAMES }, static void dbus_usbos_recv_callback(CALLBACK_ARGS) { usbos_info_t *usbos_info = usbd_xfer_softc(xfer); struct bwl_rx_data *data; int actlen, sumlen, aframes, nframes, datalen, nr_frames; uint8 *buf; struct timespec tp; DBUSTRACE(("%s(): Enter \n", __FUNCTION__)); usbd_xfer_status(xfer, &actlen, &sumlen, &aframes, &nframes); switch (USB_GET_STATE(xfer)) { case USB_ST_TRANSFERRED: for (nr_frames = 0; nr_frames != aframes; nr_frames++) { FETCH_LIST_HEAD_ITEM(rx_q_lock, rx_q); if (!data) { DBUSERR(("got xfer frame but the rx_q till end ?? \n")); ASSERT(0); } usbd_xfer_frame_data(xfer, nr_frames, (void**)&buf, &datalen); kern_clock_gettime(curthread, CLOCK_UPTIME_PRECISE, &tp); mylog(&glog, "T %p: %d-%d:%u\n", buf, datalen, tp.tv_sec, tp.tv_nsec); if ((data->rxirb->buf != buf) || (data->rxirb->buf_len < datalen)) { DBUSERR(("the buff or data length not match ?? \n")); ASSERT(0); } MUTEX_UNLOCK(usbos_info); dbus_usbos_recv_complete(data, datalen, DBUS_OK); MUTEX_LOCK(usbos_info); } __transfered += nr_frames; /* no break, FALLTHROUGH */ case USB_ST_SETUP: SET_UP_XFER: nr_frames = 0; mtx_lock(&usbos_info->rx_q_lock); STAILQ_FOREACH(data, &usbos_info->rx_q, next) { if (data->rxirb == NULL) break; kern_clock_gettime(curthread, CLOCK_UPTIME_PRECISE, &tp); mylog(&glog, "S %p:%d-%d:%u\n", data->rxirb->buf, data->rxirb->buf_len, tp.tv_sec, tp.tv_nsec); usbd_xfer_set_frame_data(xfer, nr_frames, data->rxirb->buf, data->rxirb->buf_len); ++nr_frames; if (nr_frames >= BCMWL_HW_IN_PENDING_FRAMES) break; /* break out from STAILQ_FOREACH */ } mtx_unlock(&usbos_info->rx_q_lock); if (nr_frames) { usbd_xfer_set_frames(xfer, nr_frames); usbd_transfer_submit(xfer); } else { printf("%s(): end of rx_q \n", __FUNCTION__); } __setup += nr_frames; break; default: DBUSERR(("%s(): error = %s with %d bytes transfered\n", __FUNCTION__, usbd_errstr(error), actlen)); if (error == USB_ERR_STALLED || error == USB_ERR_IOERROR) { printf("%s(): calling DBUS_STATE_DOWN for %s\n", __FUNCTION__, usbd_errstr(error)); dbus_usbos_state_change(usbos_info, DBUS_STATE_DOWN); } if ((error != USB_ERR_CANCELLED) && (error != USB_ERR_STALLED)) { usbd_xfer_set_stall(xfer); goto SET_UP_XFER; } else { /* return all rxirb in the queue */ MUTEX_UNLOCK(usbos_info); mtx_lock(&usbos_info->rx_q_lock); while ((data = STAILQ_FIRST(&usbos_info->rx_q)) != NULL) { STAILQ_REMOVE_HEAD(&usbos_info->rx_q, next); dbus_usbos_recv_complete(data, 0, DBUS_ERR_RXFAIL); } STAILQ_INIT(&usbos_info->rx_q); mtx_unlock(&usbos_info->rx_q_lock); MUTEX_LOCK(usbos_info); } break; } } From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 06:38:45 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 89EAF756 for ; Tue, 28 Oct 2014 06:38:45 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 440CC9D5 for ; Tue, 28 Oct 2014 06:38:44 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1586D1FE024; Tue, 28 Oct 2014 07:38:41 +0100 (CET) Message-ID: <544F39F9.3080205@selasky.org> Date: Tue, 28 Oct 2014 07:38:49 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Nidal Khalil , freebsd-usb@freebsd.org Subject: Re: USB stack driver options for the receive side question References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 06:38:45 -0000 On 10/28/14 04:03, Nidal Khalil wrote: > Hello All, > I am setting up usb to transfer 3 frames on the bulk read descriptor but > all I get is one frame transferred? Basically aframe = 1 > > However if I use .short_frames_ok = 1, then the transfer will pend till the > three frames are received. This code is part of a network driver > I would like to receive the one buffer it is the only one available and at > most three buffers at a time if the transfer is complete. > The one frame a time to respond to ping and three frame at time when the > transfer load is heavy. > > Is this a limitation of FreeBSD. > I searched all the drivers in the 9.3 release and I can not find a driver > that is setup to receive multiple buffers? > > Below is my sample code: > Hi, The USB hardware drivers don't have a timeout on the multi-transfers. The only mechanism that is widely accepted is the so-called short packet termination mechanism, and that is enabled when "short_frames_ok = 0" and "short_xfer_ok = 1". If the hardware can tell in advance the lengths of the IP-packets, then you can setup a multi-job to receive them, or if the hardware can be configured to pad with zero-length packets up to a configurable number, it will work too. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 06:39:55 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4055796 for ; Tue, 28 Oct 2014 06:39:55 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 A54989DF for ; Tue, 28 Oct 2014 06:39:55 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9S6dtft068023 for ; Tue, 28 Oct 2014 06:39:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194633] FreeBSD 10.1-RC3 can't detect all available USB devices Date: Tue, 28 Oct 2014 06:39:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RC2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 06:39:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194633 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky --- Hi, There are no big changes in the USB UMASS area. Possibly SCSI/CAM related. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 16:08:20 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3C66F61 for ; Tue, 28 Oct 2014 16:08:20 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 9B012FD2 for ; Tue, 28 Oct 2014 16:08:20 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9SG8KGo000683 for ; Tue, 28 Oct 2014 16:08:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194091] Add support for long range USB wireless adapter Alpha AWUS036NHRv2 Date: Tue, 28 Oct 2014 16:08:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: olivier@cochard.me X-Bugzilla-Status: Issue Resolved X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 16:08:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194091 olivier@cochard.me changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Triage |Issue Resolved Resolution|--- |FIXED --- Comment #3 from olivier@cochard.me --- Fixed by commit 272410 and 272590. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 17:41:32 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4330F1E1 for ; Tue, 28 Oct 2014 17:41:32 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 29605D38 for ; Tue, 28 Oct 2014 17:41:32 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9SHfVGA084789 for ; Tue, 28 Oct 2014 17:41:31 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194633] FreeBSD 10.1-RC3 can't detect all available USB devices Date: Tue, 28 Oct 2014 17:41:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RC2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rff1917@yahoo.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 17:41:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194633 --- Comment #2 from rff1917@yahoo.com --- Do you have any suggestion what I could try? This is pretty much the only regression I can see in 10.1 so far. And this device is the only USB device that doesn't work properly. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 28 20:29:02 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D1713E5 for ; Tue, 28 Oct 2014 20:29:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 0C815200 for ; Tue, 28 Oct 2014 20:29:02 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9SKT1ZV011949 for ; Tue, 28 Oct 2014 20:29:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194633] FreeBSD 10.1-RC3 can't detect all available USB devices Date: Tue, 28 Oct 2014 20:29:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.1-RC2 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2014 20:29:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194633 --- Comment #3 from Hans Petter Selasky --- Hi, There are some options and commands that will give you more debugging output from the CAM/SCSI layer. mav @ knows more about this. --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Fri Oct 31 23:11:44 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0AEB3BCA for ; Fri, 31 Oct 2014 23:11:44 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 CC8EB1E8 for ; Fri, 31 Oct 2014 23:11:43 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s9VNBhNL095164 for ; Fri, 31 Oct 2014 23:11:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194727] New: uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Fri, 31 Oct 2014 23:11:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tcberner@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2014 23:11:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727 Bug ID: 194727 Summary: uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Product: Base System Version: 11.0-CURRENT Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: tcberner@gmail.com Hi I'm using a pair of KEF X300A speakers, which get recognized by the uaudio driver. Sporadically get: uaudio0: at uhub4, port 2, addr 3 (disconnected) pcm0: unregister: channel pcm0:virtual:dsp0.vp0 busy (pid 2204) pcm0: Waiting for sound application to exit! pcm0: unregister: channel pcm0:virtual:dsp0.vp0 busy (pid 2204) pcm0: Waiting for sound application to exit! pcm0: unregister: channel pcm0:virtual:dsp0.vp0 busy (pid 2204) pcm0: Waiting for sound application to exit! [... -- closing/killing the concerning the application] pcm0: Waiting for sound application to exit! pcm0: unregister: mixer busy pcm0: Waiting for sound application to exit! pcm0: unregister: mixer busy [repeat at infinitum] The usb-stack seems to be completly hung at this point (usbconfig&friends hang) -- until I close everything else that has /dev/mixer* open. Then the device seems to reattach and gets usable again. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Nov 1 07:48:47 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E043E6F7 for ; Sat, 1 Nov 2014 07:48:47 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C735A222 for ; Sat, 1 Nov 2014 07:48:47 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sA17mlTS021770 for ; Sat, 1 Nov 2014 07:48:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sat, 01 Nov 2014 07:48:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 07:48:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky --- Hi, This is correct behaviour from the kernel. We need to trace down these apps and make them disconnect the mixer device when the USB AUDIO device detaches. Possibly same with pulseaudio. Do you know which mixer APP this is? XFCE? --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Nov 1 10:28:58 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3F9C6300 for ; Sat, 1 Nov 2014 10:28:58 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 EE8703BB for ; Sat, 1 Nov 2014 10:28:57 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sA1ASv2c017986 for ; Sat, 1 Nov 2014 10:28:57 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sat, 01 Nov 2014 10:28:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tcberner@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 10:28:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194727 --- Comment #2 from tcberner@gmail.com --- Hi 2204 was mplayer. The one I had to kill to get the stack unhung was kdeinit. So I guess it is a problem in kde. mfg Tobias -- You are receiving this mail because: You are the assignee for the bug.