From owner-freebsd-usb@FreeBSD.ORG Sun Nov 11 21:55:53 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 92CCC2A0 for ; Sun, 11 Nov 2012 21:55:53 +0000 (UTC) (envelope-from hsu@bbnetworks.net) Received: from mail.bbnetworks.net (mail.bbnetworks.net [IPv6:2a00:1c30:1:100::10]) by mx1.freebsd.org (Postfix) with ESMTP id B215F8FC08 for ; Sun, 11 Nov 2012 21:55:52 +0000 (UTC) Received: from lelu.suonsivu.net (lelu.suonsivu.net [212.16.96.66]) by mail.bbnetworks.net (8.14.5/8.14.5) with ESMTP id qABLtl9G031914; Sun, 11 Nov 2012 23:55:47 +0200 (EET) (envelope-from hsu@bbnetworks.net) Message-ID: <50A01EE2.8040204@bbnetworks.net> Date: Sun, 11 Nov 2012 23:55:46 +0200 From: Heikki Suonsivu Organization: Backbone Networks Europe Inc User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121014 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: LG external writer USB_ERR_STALLED Content-Type: multipart/mixed; boundary="------------080008080308020708090509" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 21:55:53 -0000 This is a multi-part message in MIME format. --------------080008080308020708090509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Anybody seen this? It is external USB DVD device. Messages below, loops there apparently forever, tried about a minute. RELENG_9 from today (11th November 2012) It is connected to a powered hub, the problem also appears when directly connecting to another FreeBSD 9 host (binary updated with freebsd-update). I am also seeing this on Finn-id barcode scanner (behaves like a keyboard), it worked fine on FreeBSD 8, with similar errors. Nov 11 22:48:02 lelu kernel: ugen2.6: at usbus2 Nov 11 22:48:02 lelu kernel: uhub10: on usbus2 Nov 11 22:48:02 lelu kernel: uhub10: 2 ports with 2 removable, self powered Nov 11 22:48:03 lelu kernel: usb_alloc_device: set address 7 failed (USB_ERR_STALLED, ignored) Nov 11 22:48:03 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 7 failed, USB_ERR_STALLED Nov 11 22:48:03 lelu kernel: usbd_req_re_enumerate: addr=7, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:03 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 7 failed, USB_ERR_STALLED Nov 11 22:48:04 lelu kernel: usbd_req_re_enumerate: addr=7, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:04 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 7 failed, USB_ERR_STALLED Nov 11 22:48:04 lelu kernel: ugen2.7: at usbus2 (disconnected) Nov 11 22:48:04 lelu kernel: uhub_reattach_port: could not allocate new device Nov 11 22:48:04 lelu kernel: usb_alloc_device: set address 7 failed (USB_ERR_STALLED, ignored) Nov 11 22:48:07 lelu kernel: ugen2.7: at usbus2 Nov 11 22:48:07 lelu kernel: umass0: on usbus2 Nov 11 22:48:07 lelu kernel: umass0: SCSI over Bulk-Only; quirks = 0x0100 Nov 11 22:48:07 lelu kernel: umass0:9:0:-1: Attached to scbus9 Nov 11 22:48:08 lelu kernel: usb_alloc_device: set address 8 failed (USB_ERR_STALLED, ignored) Nov 11 22:48:08 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:08 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:08 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:09 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:09 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:09 lelu kernel: ugen2.8: at usbus2 (disconnected) Nov 11 22:48:09 lelu kernel: uhub_reattach_port: could not allocate new device Nov 11 22:48:09 lelu kernel: usb_alloc_device: set address 8 failed (USB_ERR_STALLED, ignored) Nov 11 22:48:09 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:10 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:10 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:11 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:11 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:11 lelu kernel: ugen2.8: at usbus2 (disconnected) Nov 11 22:48:11 lelu kernel: uhub_reattach_port: could not allocate new device Nov 11 22:48:11 lelu kernel: (cd1:umass-sim0:0:0:0): got CAM status 0x4 Nov 11 22:48:11 lelu kernel: (cd1:umass-sim0:0:0:0): fatal error, failed to attach to device Nov 11 22:48:11 lelu kernel: (cd1:umass-sim0:0:0:0): lost device, 4 refs Nov 11 22:48:11 lelu kernel: (cd1:umass-sim0:0:0:0): removing device entry Nov 11 22:48:11 lelu kernel: usb_alloc_device: set address 8 failed (USB_ERR_STALLED, ignored) Nov 11 22:48:11 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:11 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) Nov 11 22:48:11 lelu kernel: usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED Nov 11 22:48:12 lelu kernel: usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored) --------------080008080308020708090509-- From owner-freebsd-usb@FreeBSD.ORG Sun Nov 11 22:01:35 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4D7A60E for ; Sun, 11 Nov 2012 22:01:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5208FC17 for ; Sun, 11 Nov 2012 22:01:34 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 339338267; Sun, 11 Nov 2012 23:01:28 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: LG external writer USB_ERR_STALLED Date: Sun, 11 Nov 2012 23:03:11 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <50A01EE2.8040204@bbnetworks.net> In-Reply-To: <50A01EE2.8040204@bbnetworks.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211112303.11684.hselasky@c2i.net> Cc: Heikki Suonsivu X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 22:01:35 -0000 On Sunday 11 November 2012 22:55:46 Heikki Suonsivu wrote: > Anybody seen this? It is external USB DVD device. Messages below, loops > there apparently forever, tried about a minute. > > RELENG_9 from today (11th November 2012) > > It is connected to a powered hub, the problem also appears when directly > connecting to another FreeBSD 9 host (binary updated with freebsd-update). > > I am also seeing this on Finn-id barcode scanner (behaves like a keyboard), > it worked fine on FreeBSD 8, with similar errors. > Hi, You could try to set some mass storage quirks using usbconfig. Are you running 9-stable as of today? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 12 01:38:33 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BEAF6C75 for ; Mon, 12 Nov 2012 01:38:33 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8CCB38FC0C for ; Mon, 12 Nov 2012 01:38:33 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id qAC1cWR3062532 for ; Sun, 11 Nov 2012 17:38:33 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <50A05318.8050300@rawbw.com> Date: Sun, 11 Nov 2012 17:38:32 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121107 Thunderbird/16.0.2 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Should all known devices be added to usbdevs? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 01:38:33 -0000 I see that many storage and network devices aren't in usbdevs. graphics/libgphoto2 package actually has more complete list. But it looks like they only process PTP/MTP storage interfaces. Should we add to usbdevs missing devices from the list in graphics/libgphoto2? For ex. I am looking at smartphone, it has MTP USB storage interface recognized by gphoto2, but FreeBSD also recognizes the umodem device, and this smartphone isn't in the list. Yuri From owner-freebsd-usb@FreeBSD.ORG Mon Nov 12 07:07:42 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4338A8E0 for ; Mon, 12 Nov 2012 07:07:42 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9FDD88FC0C for ; Mon, 12 Nov 2012 07:07:41 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 346173006; Mon, 12 Nov 2012 08:02:32 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Should all known devices be added to usbdevs? Date: Mon, 12 Nov 2012 08:04:15 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <50A05318.8050300@rawbw.com> In-Reply-To: <50A05318.8050300@rawbw.com> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211120804.15111.hselasky@c2i.net> X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 07:07:42 -0000 On Monday 12 November 2012 02:38:32 Yuri wrote: > I see that many storage and network devices aren't in usbdevs. > graphics/libgphoto2 package actually has more complete list. But it > looks like they only process PTP/MTP storage interfaces. > Should we add to usbdevs missing devices from the list in > graphics/libgphoto2? > > For ex. I am looking at smartphone, it has MTP USB storage interface > recognized by gphoto2, but FreeBSD also recognizes the umodem device, > and this smartphone isn't in the list. > > Yuri It is a good question. To some people it might help, though the usbdevs is mostly for vendor class devices, I.E. non-standard defined drivers. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Nov 12 11:06:53 2012 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04C25A74 for ; Mon, 12 Nov 2012 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DDCC68FC14 for ; Mon, 12 Nov 2012 11:06:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qACB6qOT000533 for ; Mon, 12 Nov 2012 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qACB6qJ6000531 for freebsd-usb@FreeBSD.org; Mon, 12 Nov 2012 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Nov 2012 11:06:52 GMT Message-Id: <201211121106.qACB6qJ6000531@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 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 11:06:53 -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/173503 usb Add IDs for Huawei K3770 and K4507 o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb high interrupts load xhci o usb/171810 usb [patch] make hid_start_parse(3) respect report ID argu o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem 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 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 i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E 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 f 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 p 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 p 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 p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d 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 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 f 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/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke 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 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 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/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u 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 o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu 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] [patch] Adding usb quirk for Sony USB flash dr 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/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 o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader 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 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/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 f usb/125450 usb [panic] Removing USB flash card while being accessed c 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 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/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/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/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s 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 f 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 conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. 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/119509 usb [usb] USB flaky on Dell Optiplex 755 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/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/117183 usb [panic] USB/fusefs -- panic while transferring large a 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/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 conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar 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/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 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/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? 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. f 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 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/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent 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. 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 " o 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 o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device 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 o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for 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/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/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports 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 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 275 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Nov 12 12:18:04 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 06B795DE for ; Mon, 12 Nov 2012 12:18:04 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer103.ocn.ad.jp (defer103.ocn.ad.jp [122.28.15.166]) by mx1.freebsd.org (Postfix) with ESMTP id A330D8FC12 for ; Mon, 12 Nov 2012 12:18:03 +0000 (UTC) Received: from msgw002-02.ocn.ad.jp (msgw002-02.ocn.ad.jp [180.37.203.77]) by defer103.ocn.ad.jp (Postfix) with ESMTP id D47E31DE75 for ; Mon, 12 Nov 2012 20:52:16 +0900 (JST) Received: from localhost (p15170-ipngn100303sizuokaden.shizuoka.ocn.ne.jp [114.176.38.170]) by msgw002-02.ocn.ad.jp (Postfix) with ESMTP id E7DF91F7092; Mon, 12 Nov 2012 20:52:09 +0900 (JST) Date: Mon, 12 Nov 2012 20:52:08 +0900 (JST) Message-Id: <20121112.205208.208974549.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: isochronous transfer packet is out of sequence From: SAITOU Toshihide X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 12:18:04 -0000 I have tryed the USB isochronous transfer for UVC cam using libusb interface and I find the packet fragment is out of sequence on the FreeBSD(1). But I don't find it on the MacBook(2). (1) FreeBSD 9.1-RC2, Intel Core i7 3770T (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) Can I prevent this behaviour using libusb interface or is this an expected behaviour? The bellow I issued two libusb_submit_transfer at the beginning. ----- log (1) 049 4437e06b 0 c 818 04a 4437e06b 0 c c00 04b 4437e06b 0 c 818 UVC_STREAM_EOF total a1400 04c 4402516b 1 c b9c 04d 4402516b 1 c 87c 04e 4402516b 1 c 800 04f 4402516b 1 c c00 050 4402516b 1 c 800 051 4437e06b 0 c c00 052 4437e06b 0 c 744 053 4437e06b 0 c c00 ----- callback function static void cb(struct libusb_transfer *xfer) { uint8_t *p; int plen; int i; p = xfer->buffer; for (i = 0; i < xfer->num_iso_packets; i++, p += PKT_LEN) { if (xfer->iso_packet_desc[i].status == LIBUSB_TRANSFER_COMPLETED) { plen = xfer->iso_packet_desc[i].actual_length; if (plen < 2) continue; if (p[1] & UVC_STREAM_ERR) // bmHeaderInfo continue; fprintf(stderr, "%03x ", i); fprintf(stderr, "%08x ", p[2] | p[3]<<8 | p[4]<<16 | p[5]<<24); // pts fprintf(stderr, "%01x ", p[1] & UVC_STREAM_FID); // fid fprintf(stderr, "%01x ", p[0]); // header length fprintf(stderr, "%x\n", plen); // actual length total += plen - p[0]; if (p[1] & UVC_STREAM_EOF) { fprintf(stderr, "UVC_STREAM_EOF\n", total); fprintf(stderr, "total %x\n", total); if (total < FrameSize) { fprintf(stderr, "insufficient frame data.\n"); write(fd, padding, FrameSize - total); // zero padding } total = 0; } write(fd, p + p[0], plen - p[0]); // write payload data } } if (libusb_submit_transfer(xfer) != 0) { fprintf(stderr, "submit transfer failed.\n"); } } --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Mon Nov 12 12:41:06 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7DA899B3 for ; Mon, 12 Nov 2012 12:41:06 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 070888FC12 for ; Mon, 12 Nov 2012 12:41:05 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50,T_FRT_BELOW2 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 342605706; Mon, 12 Nov 2012 13:41:03 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer packet is out of sequence Date: Mon, 12 Nov 2012 13:42:47 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121112.205208.208974549.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121112.205208.208974549.toshi@ruby.ocn.ne.jp> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211121342.47141.hselasky@c2i.net> X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 12:41:06 -0000 On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: > I have tryed the USB isochronous transfer for UVC cam using libusb > interface and I find the packet fragment is out of sequence on the > FreeBSD(1). But I don't find it on the MacBook(2). > > (1) FreeBSD 9.1-RC2, Intel Core i7 3770T > (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) > > Can I prevent this behaviour using libusb interface or is > this an expected behaviour? > > The bellow I issued two libusb_submit_transfer at the beginning. > > > ----- log (1) > 049 4437e06b 0 c 818 > 04a 4437e06b 0 c c00 > 04b 4437e06b 0 c 818 > UVC_STREAM_EOF > total a1400 > 04c 4402516b 1 c b9c > 04d 4402516b 1 c 87c > 04e 4402516b 1 c 800 > 04f 4402516b 1 c c00 > 050 4402516b 1 c 800 > 051 4437e06b 0 c c00 > 052 4437e06b 0 c 744 > 053 4437e06b 0 c c00 > > > ----- callback function > static void cb(struct libusb_transfer *xfer) > { > uint8_t *p; > int plen; > int i; > > p = xfer->buffer; > > for (i = 0; i < xfer->num_iso_packets; i++, p += PKT_LEN) > { > if (xfer->iso_packet_desc[i].status == > LIBUSB_TRANSFER_COMPLETED) { > plen = xfer->iso_packet_desc[i].actual_length; > > if (plen < 2) > continue; > > if (p[1] & UVC_STREAM_ERR) // bmHeaderInfo > continue; > > fprintf(stderr, "%03x ", i); > fprintf(stderr, "%08x ", p[2] | p[3]<<8 | p[4]<<16 > | p[5]<<24); // pts fprintf(stderr, "%01x ", p[1] & UVC_STREAM_FID); // > fid fprintf(stderr, "%01x ", p[0]); // header length fprintf(stderr, > "%x\n", plen); // actual length > > total += plen - p[0]; > > if (p[1] & UVC_STREAM_EOF) > { > fprintf(stderr, "UVC_STREAM_EOF\n", total); > fprintf(stderr, "total %x\n", total); > > if (total < FrameSize) > { > fprintf(stderr, "insufficient frame data.\n"); > write(fd, padding, FrameSize - total); // zero padding > } > total = 0; > } > write(fd, p + p[0], plen - p[0]); // write payload data > } > } > > if (libusb_submit_transfer(xfer) != 0) > { > fprintf(stderr, "submit transfer failed.\n"); > } > } Hi, You need to submit two transfers for continued operation. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 13:27:02 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 188F97A2 for ; Tue, 13 Nov 2012 13:27:02 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from msgw002-02.ocn.ad.jp (msgw002-02.ocn.ad.jp [180.37.203.77]) by mx1.freebsd.org (Postfix) with ESMTP id B49E58FC13 for ; Tue, 13 Nov 2012 13:27:01 +0000 (UTC) Received: from localhost (p15134-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.198.134]) by msgw002-02.ocn.ad.jp (Postfix) with ESMTP id A36EA1F7092; Tue, 13 Nov 2012 22:26:54 +0900 (JST) Date: Tue, 13 Nov 2012 22:26:52 +0900 (JST) Message-Id: <20121113.222652.71084426.toshi@ruby.ocn.ne.jp> To: hselasky@c2i.net Subject: Re: isochronous transfer packet is out of sequence From: SAITOU Toshihide In-Reply-To: <201211121342.47141.hselasky@c2i.net> References: <20121112.205208.208974549.toshi@ruby.ocn.ne.jp> <201211121342.47141.hselasky@c2i.net> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 13:27:02 -0000 In message: <201211121342.47141.hselasky@c2i.net> Hans Petter Selasky writes: > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: >> I have tryed the USB isochronous transfer for UVC cam using libusb >> interface and I find the packet fragment is out of sequence on the >> FreeBSD(1). But I don't find it on the MacBook(2). >> >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) >> >> Can I prevent this behaviour using libusb interface or is >> this an expected behaviour? >> >> The bellow I issued two libusb_submit_transfer at the beginning. >> >> >> ----- log (1) >> 049 4437e06b 0 c 818 >> 04a 4437e06b 0 c c00 >> 04b 4437e06b 0 c 818 >> UVC_STREAM_EOF >> total a1400 >> 04c 4402516b 1 c b9c >> 04d 4402516b 1 c 87c >> 04e 4402516b 1 c 800 >> 04f 4402516b 1 c c00 >> 050 4402516b 1 c 800 >> 051 4437e06b 0 c c00 >> 052 4437e06b 0 c 744 >> 053 4437e06b 0 c c00 >> >> >> ----- callback function >> static void cb(struct libusb_transfer *xfer) >> { >> uint8_t *p; >> int plen; >> int i; >> >> p = xfer->buffer; >> >> for (i = 0; i < xfer->num_iso_packets; i++, p += PKT_LEN) >> { >> if (xfer->iso_packet_desc[i].status == >> LIBUSB_TRANSFER_COMPLETED) { >> plen = xfer->iso_packet_desc[i].actual_length; >> >> if (plen < 2) >> continue; >> >> if (p[1] & UVC_STREAM_ERR) // bmHeaderInfo >> continue; >> >> fprintf(stderr, "%03x ", i); >> fprintf(stderr, "%08x ", p[2] | p[3]<<8 | p[4]<<16 >> | p[5]<<24); // pts fprintf(stderr, "%01x ", p[1] & UVC_STREAM_FID); // >> fid fprintf(stderr, "%01x ", p[0]); // header length fprintf(stderr, >> "%x\n", plen); // actual length >> >> total += plen - p[0]; >> >> if (p[1] & UVC_STREAM_EOF) >> { >> fprintf(stderr, "UVC_STREAM_EOF\n", total); >> fprintf(stderr, "total %x\n", total); >> >> if (total < FrameSize) >> { >> fprintf(stderr, "insufficient frame data.\n"); >> write(fd, padding, FrameSize - total); // zero padding >> } >> total = 0; >> } >> write(fd, p + p[0], plen - p[0]); // write payload data >> } >> } >> >> if (libusb_submit_transfer(xfer) != 0) >> { >> fprintf(stderr, "submit transfer failed.\n"); >> } >> } > > Hi, > > You need to submit two transfers for continued operation. I may have a misunderstanding but I submit two transfers at start and it is resubmited in the callback function, then I see the packet group in the wrong place. It seems that the callback function was excuted exclusively so the iso packets in the data buffer were out of order, just like the packet does not correctly assign to the two transfers. I can get the video on the MacBook(2). I confirmed using mplayer. --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 13:55:43 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37AADA99 for ; Tue, 13 Nov 2012 13:55:43 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 963C68FC0C for ; Tue, 13 Nov 2012 13:55:42 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50,T_FRT_BELOW2 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 169755395; Tue, 13 Nov 2012 14:50:33 +0100 From: Hans Petter Selasky To: SAITOU Toshihide Subject: Re: isochronous transfer packet is out of sequence Date: Tue, 13 Nov 2012 14:52:16 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121112.205208.208974549.toshi@ruby.ocn.ne.jp> <201211121342.47141.hselasky@c2i.net> <20121113.222652.71084426.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121113.222652.71084426.toshi@ruby.ocn.ne.jp> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211131452.16508.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 13:55:43 -0000 On Tuesday 13 November 2012 14:26:52 SAITOU Toshihide wrote: > In message: <201211121342.47141.hselasky@c2i.net> > > Hans Petter Selasky writes: > > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: > >> I have tryed the USB isochronous transfer for UVC cam using libusb > >> interface and I find the packet fragment is out of sequence on the > >> FreeBSD(1). But I don't find it on the MacBook(2). > >> > >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T > >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) > >> > >> Can I prevent this behaviour using libusb interface or is > >> this an expected behaviour? > >> > >> The bellow I issued two libusb_submit_transfer at the beginning. > >> > >> > >> ----- log (1) > >> 049 4437e06b 0 c 818 > >> 04a 4437e06b 0 c c00 > >> 04b 4437e06b 0 c 818 > >> UVC_STREAM_EOF > >> total a1400 > >> 04c 4402516b 1 c b9c > >> 04d 4402516b 1 c 87c > >> 04e 4402516b 1 c 800 > >> 04f 4402516b 1 c c00 > >> 050 4402516b 1 c 800 > >> 051 4437e06b 0 c c00 > >> 052 4437e06b 0 c 744 > >> 053 4437e06b 0 c c00 > >> > >> > >> ----- callback function > >> static void cb(struct libusb_transfer *xfer) > >> { > >> > >> uint8_t *p; > >> int plen; > >> int i; > >> > >> p = xfer->buffer; > >> > >> for (i = 0; i < xfer->num_iso_packets; i++, p += PKT_LEN) > >> { > >> > >> if (xfer->iso_packet_desc[i].status == > >> > >> LIBUSB_TRANSFER_COMPLETED) { > >> > >> plen = xfer->iso_packet_desc[i].actual_length; > >> > >> if (plen < 2) > >> > >> continue; > >> > >> if (p[1] & UVC_STREAM_ERR) // bmHeaderInfo > >> > >> continue; > >> > >> fprintf(stderr, "%03x ", i); > >> fprintf(stderr, "%08x ", p[2] | p[3]<<8 | > >> p[4]<<16 > >> | > >> | p[5]<<24); // pts fprintf(stderr, "%01x ", p[1] & UVC_STREAM_FID); // > >> > >> fid fprintf(stderr, "%01x ", p[0]); // header length fprintf(stderr, > >> "%x\n", plen); // actual length > >> > >> total += plen - p[0]; > >> > >> if (p[1] & UVC_STREAM_EOF) > >> { > >> > >> fprintf(stderr, "UVC_STREAM_EOF\n", total); > >> fprintf(stderr, "total %x\n", total); > >> > >> if (total < FrameSize) > >> { > >> > >> fprintf(stderr, "insufficient frame data.\n"); > >> write(fd, padding, FrameSize - total); // zero padding > >> > >> } > >> > >> total = 0; > >> > >> } > >> > >> write(fd, p + p[0], plen - p[0]); // write payload data > >> > >> } > >> > >> } > >> > >> if (libusb_submit_transfer(xfer) != 0) > >> { > >> > >> fprintf(stderr, "submit transfer failed.\n"); > >> > >> } > >> > >> } > > > > Hi, > > > > You need to submit two transfers for continued operation. > > I may have a misunderstanding but I submit two transfers at start and > it is resubmited in the callback function, then I see the packet group > in the wrong place. It seems that the callback function was excuted > exclusively so the iso packets in the data buffer were out of order, > just like the packet does not correctly assign to the two transfers. > > I can get the video on the MacBook(2). I confirmed using mplayer. Hi, Some more checkpoints: What is the number of ISO-FRAMEs you are submitting? You should not submit too few and not too many. And the number of frames should be divisible by 8. Check the timing using the usbdump tool. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 16:30:47 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C980D23C for ; Tue, 13 Nov 2012 16:30:47 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer105.ocn.ad.jp (defer105.ocn.ad.jp [125.206.148.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6BD458FC12 for ; Tue, 13 Nov 2012 16:30:47 +0000 (UTC) Received: from msgw002-04.ocn.ad.jp (msgw002-04.ocn.ad.jp [180.37.203.79]) by defer105.ocn.ad.jp (Postfix) with ESMTP id CB3C451F798 for ; Wed, 14 Nov 2012 00:23:13 +0900 (JST) Received: from localhost (p15134-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.198.134]) by msgw002-04.ocn.ad.jp (Postfix) with ESMTP id D9E91FFB6; Wed, 14 Nov 2012 00:23:06 +0900 (JST) Date: Wed, 14 Nov 2012 00:23:06 +0900 (JST) Message-Id: <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> To: hselasky@c2i.net Subject: Re: isochronous transfer packet is out of sequence From: SAITOU Toshihide In-Reply-To: <201211131452.16508.hselasky@c2i.net> References: <201211121342.47141.hselasky@c2i.net> <20121113.222652.71084426.toshi@ruby.ocn.ne.jp> <201211131452.16508.hselasky@c2i.net> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 16:30:48 -0000 In message: <201211131452.16508.hselasky@c2i.net> Hans Petter Selasky writes: > On Tuesday 13 November 2012 14:26:52 SAITOU Toshihide wrote: >> In message: <201211121342.47141.hselasky@c2i.net> >> >> Hans Petter Selasky writes: >> > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: >> >> I have tryed the USB isochronous transfer for UVC cam using libusb >> >> interface and I find the packet fragment is out of sequence on the >> >> FreeBSD(1). But I don't find it on the MacBook(2). >> >> >> >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T >> >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) >> >> >> >> Can I prevent this behaviour using libusb interface or is >> >> this an expected behaviour? >> >> >> >> The bellow I issued two libusb_submit_transfer at the beginning. >> >> >> >> >> >> ----- log (1) >> >> 049 4437e06b 0 c 818 >> >> 04a 4437e06b 0 c c00 >> >> 04b 4437e06b 0 c 818 >> >> UVC_STREAM_EOF >> >> total a1400 >> >> 04c 4402516b 1 c b9c >> >> 04d 4402516b 1 c 87c >> >> 04e 4402516b 1 c 800 >> >> 04f 4402516b 1 c c00 >> >> 050 4402516b 1 c 800 >> >> 051 4437e06b 0 c c00 >> >> 052 4437e06b 0 c 744 >> >> 053 4437e06b 0 c c00 >> >> >> >> >> >> ----- callback function >> >> static void cb(struct libusb_transfer *xfer) >> >> { >> >> >> >> uint8_t *p; >> >> int plen; >> >> int i; >> >> >> >> p = xfer->buffer; >> >> >> >> for (i = 0; i < xfer->num_iso_packets; i++, p += PKT_LEN) >> >> { >> >> >> >> if (xfer->iso_packet_desc[i].status == >> >> >> >> LIBUSB_TRANSFER_COMPLETED) { >> >> >> >> plen = xfer->iso_packet_desc[i].actual_length; >> >> >> >> if (plen < 2) >> >> >> >> continue; >> >> >> >> if (p[1] & UVC_STREAM_ERR) // bmHeaderInfo >> >> >> >> continue; >> >> >> >> fprintf(stderr, "%03x ", i); >> >> fprintf(stderr, "%08x ", p[2] | p[3]<<8 | >> >> p[4]<<16 >> >> | >> >> | p[5]<<24); // pts fprintf(stderr, "%01x ", p[1] & UVC_STREAM_FID); // >> >> >> >> fid fprintf(stderr, "%01x ", p[0]); // header length fprintf(stderr, >> >> "%x\n", plen); // actual length >> >> >> >> total += plen - p[0]; >> >> >> >> if (p[1] & UVC_STREAM_EOF) >> >> { >> >> >> >> fprintf(stderr, "UVC_STREAM_EOF\n", total); >> >> fprintf(stderr, "total %x\n", total); >> >> >> >> if (total < FrameSize) >> >> { >> >> >> >> fprintf(stderr, "insufficient frame data.\n"); >> >> write(fd, padding, FrameSize - total); // zero padding >> >> >> >> } >> >> >> >> total = 0; >> >> >> >> } >> >> >> >> write(fd, p + p[0], plen - p[0]); // write payload data >> >> >> >> } >> >> >> >> } >> >> >> >> if (libusb_submit_transfer(xfer) != 0) >> >> { >> >> >> >> fprintf(stderr, "submit transfer failed.\n"); >> >> >> >> } >> >> >> >> } >> > >> > Hi, >> > >> > You need to submit two transfers for continued operation. >> >> I may have a misunderstanding but I submit two transfers at start and >> it is resubmited in the callback function, then I see the packet group >> in the wrong place. It seems that the callback function was excuted >> exclusively so the iso packets in the data buffer were out of order, >> just like the packet does not correctly assign to the two transfers. >> >> I can get the video on the MacBook(2). I confirmed using mplayer. > > Hi, > > Some more checkpoints: > > What is the number of ISO-FRAMEs you are submitting? You should not submit too > few and not too many. And the number of frames should be divisible by 8. Reducing the number of PKTS_PER_XFER make effect! from 0x80 to 0x20, packet sequence is normal but sometimes drop the data yet. I also concern about pwcview + webcamd may be using 0x80 for PKTS_PER_XFER without problem. #define PKT_LEN 0xc00 #define PKTS_PER_XFER 0x80 #define NUM_TRANSFER 2 struct libusb_transfer * xfers[NUM_TRANSFER]; for (i=0; i Check the timing using the usbdump tool. my program PKTS_PER_XFER: 0x80 23:01:33.370412 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:01:33.389032 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:01:33.389042 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:01:33.404949 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:01:33.405265 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:01:33.420945 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:01:33.420955 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:01:33.436940 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:01:33.437194 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:01:33.452938 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 pcwview + webcamd 23:03:26.129895 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:03:26.148288 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:03:26.148331 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:03:26.164211 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:03:26.164930 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:03:26.180201 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:03:26.180241 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:03:26.196163 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 23:03:26.196761 usbus2.4 DONE-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0,ERR=0 23:03:26.212158 usbus2.4 SUBM-ISOC-EP=00000082,SPD=HIGH,NFR=128,SLEN=0,IVAL=0 There is no significant differences about submit-done sequence. About submit-done response time, former is faster than latter a little. --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 16:42:33 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 60F5D561 for ; Tue, 13 Nov 2012 16:42:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id DFB638FC08 for ; Tue, 13 Nov 2012 16:42:32 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50,T_FRT_BELOW2 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 169836795; Tue, 13 Nov 2012 17:42:30 +0100 From: Hans Petter Selasky To: SAITOU Toshihide Subject: Re: isochronous transfer packet is out of sequence Date: Tue, 13 Nov 2012 17:44:11 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211121342.47141.hselasky@c2i.net> <201211131452.16508.hselasky@c2i.net> <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211131744.11220.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 16:42:33 -0000 On Tuesday 13 November 2012 16:23:06 SAITOU Toshihide wrote: > In message: <201211131452.16508.hselasky@c2i.net> > > Hans Petter Selasky writes: > > On Tuesday 13 November 2012 14:26:52 SAITOU Toshihide wrote: > >> In message: <201211121342.47141.hselasky@c2i.net> > >> > >> Hans Petter Selasky writes: > >> > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: > >> >> I have tryed the USB isochronous transfer for UVC cam using libusb > >> >> interface and I find the packet fragment is out of sequence on the > >> >> FreeBSD(1). But I don't find it on the MacBook(2). > >> >> > >> >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T > >> >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) > >> >> > >> >> Can I prevent this behaviour using libusb interface or is > >> >> this an expected behaviour? > >> >> > >> >> The bellow I issued two libusb_submit_transfer at the beginning. > >> >> > >> >> Hi, There are some internal limits, maybe not visible directly at libusb level. The host hardware usually does not handle more than 128 milliseconds of transfers at a time. You should not sumbit more frames than will be processed in (128 - 16) / 2 ms at any time. For HighSpeed with fastest interval you will need around 8*2*56 ms worth of frames, which is the maximum supported. grep -r USB_MAX_FS_ISOC_FRAMES_PER_XFER /usr/include grep -r USB_MAX_HS_ISOC_FRAMES_PER_XFER /usr/include Webcamd has patches for the Linux code, to fix this issue. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Nov 13 22:00:23 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13624E59 for ; Tue, 13 Nov 2012 22:00:23 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id DA7908FC0C for ; Tue, 13 Nov 2012 22:00:22 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qADM007V043193 for ; Tue, 13 Nov 2012 22:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qADM00Un043189; Tue, 13 Nov 2012 22:00:00 GMT (envelope-from gnats) Resent-Date: Tue, 13 Nov 2012 22:00:00 GMT Resent-Message-Id: <201211132200.qADM00Un043189@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Heikki Suonsivu Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2753CD99 for ; Tue, 13 Nov 2012 21:58:27 +0000 (UTC) (envelope-from hsu@lelu.suonsivu.net) Received: from lelu.suonsivu.net (lelu.suonsivu.net [212.16.96.66]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4318FC14 for ; Tue, 13 Nov 2012 21:58:25 +0000 (UTC) Received: from lelu.suonsivu.net (localhost [127.0.0.1]) by lelu.suonsivu.net (8.14.5/8.14.5) with ESMTP id qADLq6rb039238 for ; Tue, 13 Nov 2012 23:52:06 +0200 (EET) (envelope-from hsu@lelu.suonsivu.net) Received: (from hsu@localhost) by lelu.suonsivu.net (8.14.5/8.14.5/Submit) id qADLq6j9039168; Tue, 13 Nov 2012 23:52:06 +0200 (EET) (envelope-from hsu) Message-Id: <201211132152.qADLq6j9039168@lelu.suonsivu.net> Date: Tue, 13 Nov 2012 23:52:06 +0200 (EET) From: Heikki Suonsivu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.114 Subject: usb/173616: LG USB DVD-RW USB STALL X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Heikki Suonsivu List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 22:00:23 -0000 >Number: 173616 >Category: usb >Synopsis: LG USB DVD-RW USB STALL >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 13 22:00:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Heikki Suonsivu >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: bbnetworks.net >Environment: System: FreeBSD lelu.suonsivu.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2: Sat Nov 10 03:23:41 EET 2012 root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 dmesg: Copyright (c) 1992-2012 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.1-PRERELEASE #2: Sat Nov 10 03:23:41 EET 2012 root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 CPU: AMD Phenom(tm) II X4 965 Processor (3411.49-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x100f43 Family = 0x10 Model = 0x4 Stepping = 3 Features=0x178bfbff Features2=0x802009 AMD Features=0xee500800 AMD Features2=0x837ff TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 3832315904 (3654 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <070512 APIC1458> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ctl: CAM Target Layer loaded acpi0: <070512 XSDT1458> on motherboard acpi0: Power Button (fixed) acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of ffb80000, 80000 (3) failed acpi0: reservation of fec10000, 20 (3) failed acpi0: reservation of fed80000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cfe00000 (3) failed cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 450 Event timer "HPET2" frequency 14318180 Hz quality 450 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xb000-0xb0ff mem 0xd0000000-0xdfffffff,0xfe6f0000-0xfe6fffff,0xfe500000-0xfe5fffff irq 18 at device 5.0 on pci1 hdac0: mem 0xfe6e8000-0xfe6ebfff irq 19 at device 5.1 on pci1 pcib2: irq 17 at device 9.0 on pci0 pci2: on pcib2 xhci0: mem 0xfe7fe000-0xfe7fffff irq 17 at device 0.0 on pci2 xhci0: 32 byte context size. usbus0 on xhci0 pcib3: irq 18 at device 10.0 on pci0 pci3: on pcib3 atapci0: port 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f mem 0xfe8ffc00-0xfe8ffdff irq 18 at device 0.0 on pci3 ahci0: at channel -1 on atapci0 ahci0: AHCI v1.10 with 1 3Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ata2: at channel 0 on atapci0 ahci1: port 0xa000-0xa007,0x9000-0x9003,0x8000-0x8007,0x7000-0x7003,0x6000-0x600f mem 0xfe4ffc00-0xfe4fffff irq 19 at device 17.0 on pci0 ahci1: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported ahcich1: at channel 0 on ahci1 ahcich2: at channel 1 on ahci1 ahcich3: at channel 2 on ahci1 ahcich4: at channel 3 on ahci1 ahcich5: at channel 4 on ahci1 ahcich6: at channel 5 on ahci1 ohci0: mem 0xfe4fe000-0xfe4fefff irq 18 at device 18.0 on pci0 usbus1 on ohci0 ehci0: mem 0xfe4ff800-0xfe4ff8ff irq 17 at device 18.2 on pci0 usbus2: EHCI version 1.0 usbus2 on ehci0 ohci1: mem 0xfe4fd000-0xfe4fdfff irq 18 at device 19.0 on pci0 usbus3 on ohci1 ehci1: mem 0xfe4ff400-0xfe4ff4ff irq 17 at device 19.2 on pci0 usbus4: EHCI version 1.0 usbus4 on ehci1 pci0: at device 20.0 (no driver attached) hdac1: mem 0xfe4f4000-0xfe4f7fff irq 16 at device 20.2 on pci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib4: at device 20.4 on pci0 pci4: on pcib4 fwohci0: port 0xdc00-0xdc7f mem 0xfe9fb800-0xfe9fbfff irq 22 at device 7.0 on pci4 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:1e:8c:00:00:e4:87:16 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:1e:8c:e4:87:16 fwe0: Ethernet address: 02:1e:8c:e4:87:16 fwip0: on firewire0 fwip0: Firewire address: 00:1e:8c:00:00:e4:87:16 @ 0xfffe00000000, S400, maxrec 2048 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0xc76d0000 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode ohci2: mem 0xfe4fc000-0xfe4fcfff irq 18 at device 20.5 on pci0 usbus5 on ohci2 pcib5: at device 21.0 on pci0 pci5: on pcib5 re0: port 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff,0xfdff8000-0xfdffbfff irq 16 at device 0.0 on pci5 re0: Using 1 MSI-X message re0: Chip rev. 0x2c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: f4:6d:04:15:87:ff ohci3: mem 0xfe4f3000-0xfe4f3fff irq 18 at device 22.0 on pci0 usbus6 on ohci3 ehci2: mem 0xfe4ff000-0xfe4ff0ff irq 17 at device 22.2 on pci0 usbus7: EHCI version 1.0 usbus7 on ehci2 acpi_button0: on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 orm0: at iomem 0xd3000-0xd5fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] ppc0: cannot reserve I/O port range acpi_throttle0: on cpu0 hwpstate0: on cpu0 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based forwarding enabled, default to accept, logging disabled DUMMYNET 0 with IPv6 initialized (100409) load_dn_sched dn_sched FIFO loaded load_dn_sched dn_sched PRIO loaded load_dn_sched dn_sched QFQ loaded load_dn_sched dn_sched RR loaded load_dn_sched dn_sched WF2Q+ loaded hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 3 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm1: at nid 20,22,21,23 and 24,26 on hdaa1 pcm2: at nid 27 and 25 on hdaa1 pcm3: at nid 30 on hdaa1 pcm4: at nid 17 on hdaa1 usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen0.1: <0x1033> at usbus0 uhub0: <0x1033 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 uhub5: 2 ports with 2 removable, self powered uhub6: 4 ports with 4 removable, self powered uhub1: 5 ports with 5 removable, self powered uhub3: 5 ports with 5 removable, self powered uhub0: 4 ports with 4 removable, self powered ada0 at ahcich1 bus 0 scbus2 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad8 ada1 at ahcich2 bus 0 scbus3 target 0 lun 0 ada1: ATA-8 SATA 2.x device ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada1: Previously was known as ad10 ada2 at ahcich3 bus 0 scbus4 target 0 lun 0 ada2: ATA-8 SATA 2.x device ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada2: Previously was known as ad12 ada3 at ahcich4 bus 0 scbus5 target 0 lun 0 ada3: ATA-8 SATA 2.x device ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada3: Command Queueing enabled ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) ada3: Previously was known as ad14 ada4 at ahcich6 bus 0 scbus7 target 0 lun 0 ada4: ATA-8 SATA 3.x device ada4: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada4: Command Queueing enabled ada4: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) ada4: Previously was known as ad18 SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! cd0 at ata2 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) SMP: AP CPU #3 Launched! cd0: Attempt to query device size failed: NOT READY, Medium not present Timecounter "TSC-low" frequency 13326119 Hz quality 800 uhub7: 4 ports with 4 removable, self powered GEOM_MIRROR: Device mirror/leluroot launched (1/2). GEOM_MIRROR: Device leluroot: rebuilding provider ada1p3. GEOM_MIRROR: Device mirror/lelu-root launched (1/1). GEOM_MIRROR: Device mirror/lelu-u launched (2/2). GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains data. GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains journal. GEOM_JOURNAL: Journal mirror/lelu-root clean. GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains data. GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains journal. GEOM_JOURNAL: Journal mirror/lelu-u clean. Root mount waiting for: GJOURNAL GJOURNAL usbus4 usbus2 uhub4: 5 ports with 5 removable, self powered uhub2: 5 ports with 5 removable, self powered ugen2.2: at usbus2 uhub8: on usbus2 uhub8: MTT enabled Root mount waiting for: usbus2 uhub8: 4 ports with 4 removable, self powered Root mount waiting for: usbus2 ugen2.3: at usbus2 uhub9: on usbus2 uhub9: 4 ports with 4 removable, self powered Root mount waiting for: usbus2 ugen2.4: at usbus2 uhub10: on usbus2 uhub10: MTT enabled Root mount waiting for: usbus2 uhub10: 4 ports with 4 removable, self powered ugen2.5: at usbus2 uhub11: on usbus2 uhub11: MTT enabled Root mount waiting for: usbus2 uhub11: 7 ports with 7 removable, self powered Root mount waiting for: usbus2 ugen2.6: at usbus2 ums0: on usbus2 ums0: 5 buttons and [XYZ] coordinates ID=0 Root mount waiting for: usbus2 ugen2.7: at usbus2 ukbd0: on usbus2 kbd2 at ukbd0 usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER Root mount waiting for: usbus2 ugen2.8: at usbus2 umass0: on usbus2 umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 umass0:9:0:-1: Attached to scbus9 Trying to mount root from ufs:/dev/mirror/leluroot [rw,async]... cd1 at umass-sim0 bus 0 scbus9 target 0 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 40.000MB/s transfers cd1: cd present [278530 x 2048 byte records] usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER ugen2.9: at usbus2 umass1: on usbus2 umass1: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 umass1:10:1:-1: Attached to scbus10 cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 cd2: Removable CD-ROM SCSI-0 device cd2: 40.000MB/s transfers cd2: Attempt to query device size failed: NOT READY, Medium not present - tray closed re0: link state changed to UP >Description: LG external USB DVD-RW fails. ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen2.9: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Kernel says the following: ugen2.3: at usbus2 uhub9: on usbus2 uhub9: 2 ports with 2 removable, self powered ugen2.9: at usbus2 umass1: on usbus2 umass1: SCSI over Bulk-Only; quirks = 0x0100 umass1:10:1:-1: Attached to scbus10 cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 cd2: Removable CD-ROM SCSI-0 device cd2: 40.000MB/s transfers cd2: Attempt to query device size failed: NOT READY, Medium not present usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) uhub_reattach_port: could not allocate new device usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) uhub_reattach_port: could not allocate new device usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 10 failed, USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) uhub_reattach_port: could not allocate new device uhub_reattach_port: port 2 reset failed, error=USB_ERR_STALLED uhub_reattach_port: device problem (USB_ERR_STALLED), disabling port 2 ugen2.3: at usbus2 (disconnected) uhub9: at uhub8, port 4, addr 3 (disconnected) ugen2.9: at usbus2 (disconnected) umass1: at uhub9, port 1, addr 9 (disconnected) (cd2:umass-sim1:1:0:0): lost device, 1 refs (cd2:(pass7:umass-sim1:1:umass-sim1:1:0:0:0): removing device entry 0): passdevgonecb: devfs entry is gone When trying to access the drive, device not configured error results. All usbconfig commands become very slow when the drive is plugged in. It seems that some other devices may fail at the same moment (grip ripping a cd on another dvd drive might hang, for example). I have tried some USB quirks UQ_MSC_NO_GETMAXLUN (just a guess) UQ_OPEN_CLEARSTALL (some discussion referred to this) UQ_MSC_FORCE_PROTO_ATAPI (device seems to default to scsi) None of these had any effect, other than last one changing protocol to ATAPI. This device may have worked with past FreeBSD versions. Drive is externally powered, not USB powered. >How-To-Repeat: Seems repeatable on 9-Stable. Has been for at least two months (host was 8.x before that). >Fix: No idea. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Nov 14 07:14:07 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BD9F2F2; Wed, 14 Nov 2012 07:14:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC168FC15; Wed, 14 Nov 2012 07:14:05 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 340324080; Wed, 14 Nov 2012 08:13:57 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Heikki Suonsivu Subject: Re: usb/173616: LG USB DVD-RW USB STALL Date: Wed, 14 Nov 2012 08:15:39 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211132152.qADLq6j9039168@lelu.suonsivu.net> In-Reply-To: <201211132152.qADLq6j9039168@lelu.suonsivu.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211140815.39616.hselasky@c2i.net> Cc: FreeBSD-gnats-submit@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 07:14:07 -0000 On Tuesday 13 November 2012 22:52:06 Heikki Suonsivu wrote: > >Number: 173616 > >Category: usb > >Synopsis: LG USB DVD-RW USB STALL > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Nov 13 22:00:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Heikki Suonsivu > >Release: FreeBSD 9.1-PRERELEASE amd64 > > >Organization: > bbnetworks.net > > >Environment: > System: FreeBSD lelu.suonsivu.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2: > Sat Nov 10 03:23:41 EET 2012 > root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 > > dmesg: > > Copyright (c) 1992-2012 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.1-PRERELEASE #2: Sat Nov 10 03:23:41 EET 2012 > root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 > CPU: AMD Phenom(tm) II X4 965 Processor (3411.49-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x100f43 Family = 0x10 Model = 0x4 > Stepping = 3 > Features=0x178bfbff CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > Features2=0x802009 > AMD > Features=0xee500800 > AMD > Features2=0x837ff ,SKINIT,WDT,NodeId> TSC: P-state invariant > real memory = 4294967296 (4096 MB) > avail memory = 3832315904 (3654 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: <070512 APIC1458> > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > ctl: CAM Target Layer loaded > acpi0: <070512 XSDT1458> on motherboard > acpi0: Power Button (fixed) > acpi0: reservation of fee00000, 1000 (3) failed > acpi0: reservation of ffb80000, 80000 (3) failed > acpi0: reservation of fec10000, 20 (3) failed > acpi0: reservation of fed80000, 1000 (3) failed > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, cfe00000 (3) failed > cpu0: on acpi0 > cpu1: on acpi0 > cpu2: on acpi0 > cpu3: on acpi0 > attimer0: port 0x40-0x43 irq 0 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > atrtc0: port 0x70-0x71 irq 8 on acpi0 > Event timer "RTC" frequency 32768 Hz quality 0 > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 950 > Event timer "HPET" frequency 14318180 Hz quality 450 > Event timer "HPET1" frequency 14318180 Hz quality 450 > Event timer "HPET2" frequency 14318180 Hz quality 450 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > acpi_ec0: port 0x62,0x66 on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xb000-0xb0ff mem > 0xd0000000-0xdfffffff,0xfe6f0000-0xfe6fffff,0xfe500000-0xfe5fffff irq 18 > at device 5.0 on pci1 hdac0: mem > 0xfe6e8000-0xfe6ebfff irq 19 at device 5.1 on pci1 pcib2: bridge> irq 17 at device 9.0 on pci0 > pci2: on pcib2 > xhci0: mem 0xfe7fe000-0xfe7fffff irq 17 > at device 0.0 on pci2 xhci0: 32 byte context size. > usbus0 on xhci0 > pcib3: irq 18 at device 10.0 on pci0 > pci3: on pcib3 > atapci0: port > 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f mem > 0xfe8ffc00-0xfe8ffdff irq 18 at device 0.0 on pci3 ahci0: AHCI SATA controller> at channel -1 on atapci0 ahci0: AHCI v1.10 with 1 > 3Gbps ports, Port Multiplier supported > ahcich0: at channel 0 on ahci0 > ata2: at channel 0 on atapci0 > ahci1: port > 0xa000-0xa007,0x9000-0x9003,0x8000-0x8007,0x7000-0x7003,0x6000-0x600f mem > 0xfe4ffc00-0xfe4fffff irq 19 at device 17.0 on pci0 ahci1: AHCI v1.20 with > 6 6Gbps ports, Port Multiplier supported > ahcich1: at channel 0 on ahci1 > ahcich2: at channel 1 on ahci1 > ahcich3: at channel 2 on ahci1 > ahcich4: at channel 3 on ahci1 > ahcich5: at channel 4 on ahci1 > ahcich6: at channel 5 on ahci1 > ohci0: mem 0xfe4fe000-0xfe4fefff irq > 18 at device 18.0 on pci0 usbus1 on ohci0 > ehci0: mem 0xfe4ff800-0xfe4ff8ff > irq 17 at device 18.2 on pci0 usbus2: EHCI version 1.0 > usbus2 on ehci0 > ohci1: mem 0xfe4fd000-0xfe4fdfff irq > 18 at device 19.0 on pci0 usbus3 on ohci1 > ehci1: mem 0xfe4ff400-0xfe4ff4ff > irq 17 at device 19.2 on pci0 usbus4: EHCI version 1.0 > usbus4 on ehci1 > pci0: at device 20.0 (no driver attached) > hdac1: mem 0xfe4f4000-0xfe4f7fff irq 16 at > device 20.2 on pci0 isab0: at device 20.3 on pci0 > isa0: on isab0 > pcib4: at device 20.4 on pci0 > pci4: on pcib4 > fwohci0: port 0xdc00-0xdc7f mem > 0xfe9fb800-0xfe9fbfff irq 22 at device 7.0 on pci4 fwohci0: OHCI version > 1.10 (ROM=1) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 00:1e:8c:00:00:e4:87:16 > fwohci0: Phy 1394a available S400, 2 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 02:1e:8c:e4:87:16 > fwe0: Ethernet address: 02:1e:8c:e4:87:16 > fwip0: on firewire0 > fwip0: Firewire address: 00:1e:8c:00:00:e4:87:16 @ 0xfffe00000000, S400, > maxrec 2048 dcons_crom0: on firewire0 > dcons_crom0: bus_addr 0xc76d0000 > fwohci0: Initiate bus reset > fwohci0: fwohci_intr_core: BUS reset > fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER > mode ohci2: mem > 0xfe4fc000-0xfe4fcfff irq 18 at device 20.5 on pci0 usbus5 on ohci2 > pcib5: at device 21.0 on pci0 > pci5: on pcib5 > re0: port > 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff,0xfdff8000-0xfdffbfff irq 16 at > device 0.0 on pci5 re0: Using 1 MSI-X message > re0: Chip rev. 0x2c000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, > 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, > 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: > f4:6d:04:15:87:ff > ohci3: mem 0xfe4f3000-0xfe4f3fff irq > 18 at device 22.0 on pci0 usbus6 on ohci3 > ehci2: mem 0xfe4ff000-0xfe4ff0ff > irq 17 at device 22.2 on pci0 usbus7: EHCI version 1.0 > usbus7 on ehci2 > acpi_button0: on acpi0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > orm0: at iomem 0xd3000-0xd5fff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > ppc0: cannot reserve I/O port range > acpi_throttle0: on cpu0 > hwpstate0: on cpu0 > Timecounters tick every 1.000 msec > firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) > firewire0: bus manager 0 > IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled > ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based > forwarding enabled, default to accept, logging disabled DUMMYNET 0 with > IPv6 initialized (100409) > load_dn_sched dn_sched FIFO loaded > load_dn_sched dn_sched PRIO loaded > load_dn_sched dn_sched QFQ loaded > load_dn_sched dn_sched RR loaded > load_dn_sched dn_sched WF2Q+ loaded > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 3 on hdaa0 > hdacc1: at cad 0 on hdac1 > hdaa1: at nid 1 on hdacc1 > pcm1: at nid 20,22,21,23 and 24,26 > on hdaa1 pcm2: at nid 27 and 25 on hdaa1 > pcm3: at nid 30 on hdaa1 > pcm4: at nid 17 on hdaa1 > usbus0: 5.0Gbps Super Speed USB v3.0 > usbus1: 12Mbps Full Speed USB v1.0 > usbus2: 480Mbps High Speed USB v2.0 > usbus3: 12Mbps Full Speed USB v1.0 > usbus4: 480Mbps High Speed USB v2.0 > usbus5: 12Mbps Full Speed USB v1.0 > usbus6: 12Mbps Full Speed USB v1.0 > usbus7: 480Mbps High Speed USB v2.0 > ugen0.1: <0x1033> at usbus0 > uhub0: <0x1033 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > ugen2.1: at usbus2 > uhub2: on usbus2 > ugen3.1: at usbus3 > uhub3: on usbus3 > ugen4.1: at usbus4 > uhub4: on usbus4 > ugen5.1: at usbus5 > uhub5: on usbus5 > ugen6.1: at usbus6 > uhub6: on usbus6 > ugen7.1: at usbus7 > uhub7: on usbus7 > uhub5: 2 ports with 2 removable, self powered > uhub6: 4 ports with 4 removable, self powered > uhub1: 5 ports with 5 removable, self powered > uhub3: 5 ports with 5 removable, self powered > uhub0: 4 ports with 4 removable, self powered > ada0 at ahcich1 bus 0 scbus2 target 0 lun 0 > ada0: ATA-8 SATA 2.x device > ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > ada0: Previously was known as ad8 > ada1 at ahcich2 bus 0 scbus3 target 0 lun 0 > ada1: ATA-8 SATA 2.x device > ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada1: Command Queueing enabled > ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada1: Previously was known as ad10 > ada2 at ahcich3 bus 0 scbus4 target 0 lun 0 > ada2: ATA-8 SATA 2.x device > ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada2: Command Queueing enabled > ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada2: Previously was known as ad12 > ada3 at ahcich4 bus 0 scbus5 target 0 lun 0 > ada3: ATA-8 SATA 2.x device > ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada3: Command Queueing enabled > ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada3: Previously was known as ad14 > ada4 at ahcich6 bus 0 scbus7 target 0 lun 0 > ada4: ATA-8 SATA 3.x device > ada4: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) > ada4: Command Queueing enabled > ada4: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > ada4: Previously was known as ad18 > SMP: AP CPU #2 Launched! > SMP: AP CPU #1 Launched! > cd0 at ata2 bus 0 scbus1 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > SMP: AP CPU #3 Launched! > cd0: Attempt to query device size failed: NOT READY, Medium not present > Timecounter "TSC-low" frequency 13326119 Hz quality 800 > uhub7: 4 ports with 4 removable, self powered > GEOM_MIRROR: Device mirror/leluroot launched (1/2). > GEOM_MIRROR: Device leluroot: rebuilding provider ada1p3. > GEOM_MIRROR: Device mirror/lelu-root launched (1/1). > GEOM_MIRROR: Device mirror/lelu-u launched (2/2). > GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains data. > GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains journal. > GEOM_JOURNAL: Journal mirror/lelu-root clean. > GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains data. > GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains journal. > GEOM_JOURNAL: Journal mirror/lelu-u clean. > Root mount waiting for: GJOURNAL GJOURNAL usbus4 usbus2 > uhub4: 5 ports with 5 removable, self powered > uhub2: 5 ports with 5 removable, self powered > ugen2.2: at usbus2 > uhub8: on > usbus2 uhub8: MTT enabled > Root mount waiting for: usbus2 > uhub8: 4 ports with 4 removable, self powered > Root mount waiting for: usbus2 > ugen2.3: at usbus2 > uhub9: on > usbus2 uhub9: 4 ports with 4 removable, self powered > Root mount waiting for: usbus2 > ugen2.4: at usbus2 > uhub10: > on usbus2 uhub10: MTT enabled > Root mount waiting for: usbus2 > uhub10: 4 ports with 4 removable, self powered > ugen2.5: at usbus2 > uhub11: > on usbus2 uhub11: MTT enabled > Root mount waiting for: usbus2 > uhub11: 7 ports with 7 removable, self powered > Root mount waiting for: usbus2 > ugen2.6: at usbus2 > ums0: on usbus2 > ums0: 5 buttons and [XYZ] coordinates ID=0 > Root mount waiting for: usbus2 > ugen2.7: at usbus2 > ukbd0: on usbus2 > kbd2 at ukbd0 > usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER > Root mount waiting for: usbus2 > ugen2.8: at usbus2 > umass0: on usbus2 > umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 > umass0:9:0:-1: Attached to scbus9 > Trying to mount root from ufs:/dev/mirror/leluroot [rw,async]... > cd1 at umass-sim0 bus 0 scbus9 target 0 lun 0 > cd1: Removable CD-ROM SCSI-0 device > cd1: 40.000MB/s transfers > cd1: cd present [278530 x 2048 byte records] > usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER > ugen2.9: at usbus2 > umass1: on usbus2 > umass1: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 > umass1:10:1:-1: Attached to scbus10 > cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 > cd2: Removable CD-ROM SCSI-0 device > cd2: 40.000MB/s transfers > cd2: Attempt to query device size failed: NOT READY, Medium not present - > tray closed re0: link state changed to UP > > >Description: > LG external USB DVD-RW fails. > > ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE ugen2.9: at usbus2, > cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > Kernel says the following: > > ugen2.3: at usbus2 > uhub9: on > usbus2 uhub9: 2 ports with 2 removable, self powered > ugen2.9: at usbus2 > umass1: > on usbus2 umass1: SCSI over Bulk-Only; quirks = 0x0100 > umass1:10:1:-1: Attached to scbus10 > cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 > cd2: Removable CD-ROM SCSI-0 device > cd2: 40.000MB/s transfers > cd2: Attempt to query device size failed: NOT READY, Medium not present > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > uhub_reattach_port: port 2 reset failed, error=USB_ERR_STALLED > uhub_reattach_port: device problem (USB_ERR_STALLED), disabling port 2 > ugen2.3: at usbus2 (disconnected) > uhub9: at uhub8, port 4, addr 3 (disconnected) > ugen2.9: at usbus2 (disconnected) > umass1: at uhub9, port 1, addr 9 (disconnected) > (cd2:umass-sim1:1:0:0): lost device, 1 refs > (cd2:(pass7:umass-sim1:1:umass-sim1:1:0:0:0): removing device entry > 0): passdevgonecb: devfs entry is gone > > When trying to access the drive, device not configured error results. > Hi, Can you try 9-stable? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Nov 14 07:20:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D11537F for ; Wed, 14 Nov 2012 07:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6F79C8FC16 for ; Wed, 14 Nov 2012 07:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAE7K1hs083373 for ; Wed, 14 Nov 2012 07:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAE7K103083372; Wed, 14 Nov 2012 07:20:01 GMT (envelope-from gnats) Date: Wed, 14 Nov 2012 07:20:01 GMT Message-Id: <201211140720.qAE7K103083372@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/173616: LG USB DVD-RW USB STALL X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 07:20:01 -0000 The following reply was made to PR usb/173616; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Heikki Suonsivu Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: usb/173616: LG USB DVD-RW USB STALL Date: Wed, 14 Nov 2012 08:15:39 +0100 On Tuesday 13 November 2012 22:52:06 Heikki Suonsivu wrote: > >Number: 173616 > >Category: usb > >Synopsis: LG USB DVD-RW USB STALL > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Nov 13 22:00:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Heikki Suonsivu > >Release: FreeBSD 9.1-PRERELEASE amd64 > > >Organization: > bbnetworks.net > > >Environment: > System: FreeBSD lelu.suonsivu.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2: > Sat Nov 10 03:23:41 EET 2012 > root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 > > dmesg: > > Copyright (c) 1992-2012 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.1-PRERELEASE #2: Sat Nov 10 03:23:41 EET 2012 > root@lelu.suonsivu.net:/usr/obj/usr/src/sys/HSU9 amd64 > CPU: AMD Phenom(tm) II X4 965 Processor (3411.49-MHz K8-class CPU) > Origin = "AuthenticAMD" Id = 0x100f43 Family = 0x10 Model = 0x4 > Stepping = 3 > Features=0x178bfbff CA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > Features2=0x802009 > AMD > Features=0xee500800 > AMD > Features2=0x837ff ,SKINIT,WDT,NodeId> TSC: P-state invariant > real memory = 4294967296 (4096 MB) > avail memory = 3832315904 (3654 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: <070512 APIC1458> > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > ctl: CAM Target Layer loaded > acpi0: <070512 XSDT1458> on motherboard > acpi0: Power Button (fixed) > acpi0: reservation of fee00000, 1000 (3) failed > acpi0: reservation of ffb80000, 80000 (3) failed > acpi0: reservation of fec10000, 20 (3) failed > acpi0: reservation of fed80000, 1000 (3) failed > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, cfe00000 (3) failed > cpu0: on acpi0 > cpu1: on acpi0 > cpu2: on acpi0 > cpu3: on acpi0 > attimer0: port 0x40-0x43 irq 0 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > atrtc0: port 0x70-0x71 irq 8 on acpi0 > Event timer "RTC" frequency 32768 Hz quality 0 > hpet0: iomem 0xfed00000-0xfed003ff on acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 950 > Event timer "HPET" frequency 14318180 Hz quality 450 > Event timer "HPET1" frequency 14318180 Hz quality 450 > Event timer "HPET2" frequency 14318180 Hz quality 450 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > acpi_ec0: port 0x62,0x66 on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > vgapci0: port 0xb000-0xb0ff mem > 0xd0000000-0xdfffffff,0xfe6f0000-0xfe6fffff,0xfe500000-0xfe5fffff irq 18 > at device 5.0 on pci1 hdac0: mem > 0xfe6e8000-0xfe6ebfff irq 19 at device 5.1 on pci1 pcib2: bridge> irq 17 at device 9.0 on pci0 > pci2: on pcib2 > xhci0: mem 0xfe7fe000-0xfe7fffff irq 17 > at device 0.0 on pci2 xhci0: 32 byte context size. > usbus0 on xhci0 > pcib3: irq 18 at device 10.0 on pci0 > pci3: on pcib3 > atapci0: port > 0xcc00-0xcc07,0xc880-0xc883,0xc800-0xc807,0xc480-0xc483,0xc400-0xc40f mem > 0xfe8ffc00-0xfe8ffdff irq 18 at device 0.0 on pci3 ahci0: AHCI SATA controller> at channel -1 on atapci0 ahci0: AHCI v1.10 with 1 > 3Gbps ports, Port Multiplier supported > ahcich0: at channel 0 on ahci0 > ata2: at channel 0 on atapci0 > ahci1: port > 0xa000-0xa007,0x9000-0x9003,0x8000-0x8007,0x7000-0x7003,0x6000-0x600f mem > 0xfe4ffc00-0xfe4fffff irq 19 at device 17.0 on pci0 ahci1: AHCI v1.20 with > 6 6Gbps ports, Port Multiplier supported > ahcich1: at channel 0 on ahci1 > ahcich2: at channel 1 on ahci1 > ahcich3: at channel 2 on ahci1 > ahcich4: at channel 3 on ahci1 > ahcich5: at channel 4 on ahci1 > ahcich6: at channel 5 on ahci1 > ohci0: mem 0xfe4fe000-0xfe4fefff irq > 18 at device 18.0 on pci0 usbus1 on ohci0 > ehci0: mem 0xfe4ff800-0xfe4ff8ff > irq 17 at device 18.2 on pci0 usbus2: EHCI version 1.0 > usbus2 on ehci0 > ohci1: mem 0xfe4fd000-0xfe4fdfff irq > 18 at device 19.0 on pci0 usbus3 on ohci1 > ehci1: mem 0xfe4ff400-0xfe4ff4ff > irq 17 at device 19.2 on pci0 usbus4: EHCI version 1.0 > usbus4 on ehci1 > pci0: at device 20.0 (no driver attached) > hdac1: mem 0xfe4f4000-0xfe4f7fff irq 16 at > device 20.2 on pci0 isab0: at device 20.3 on pci0 > isa0: on isab0 > pcib4: at device 20.4 on pci0 > pci4: on pcib4 > fwohci0: port 0xdc00-0xdc7f mem > 0xfe9fb800-0xfe9fbfff irq 22 at device 7.0 on pci4 fwohci0: OHCI version > 1.10 (ROM=1) > fwohci0: No. of Isochronous channels is 4. > fwohci0: EUI64 00:1e:8c:00:00:e4:87:16 > fwohci0: Phy 1394a available S400, 2 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 02:1e:8c:e4:87:16 > fwe0: Ethernet address: 02:1e:8c:e4:87:16 > fwip0: on firewire0 > fwip0: Firewire address: 00:1e:8c:00:00:e4:87:16 @ 0xfffe00000000, S400, > maxrec 2048 dcons_crom0: on firewire0 > dcons_crom0: bus_addr 0xc76d0000 > fwohci0: Initiate bus reset > fwohci0: fwohci_intr_core: BUS reset > fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER > mode ohci2: mem > 0xfe4fc000-0xfe4fcfff irq 18 at device 20.5 on pci0 usbus5 on ohci2 > pcib5: at device 21.0 on pci0 > pci5: on pcib5 > re0: port > 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff,0xfdff8000-0xfdffbfff irq 16 at > device 0.0 on pci5 re0: Using 1 MSI-X message > re0: Chip rev. 0x2c000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, > 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, > 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, > 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: > f4:6d:04:15:87:ff > ohci3: mem 0xfe4f3000-0xfe4f3fff irq > 18 at device 22.0 on pci0 usbus6 on ohci3 > ehci2: mem 0xfe4ff000-0xfe4ff0ff > irq 17 at device 22.2 on pci0 usbus7: EHCI version 1.0 > usbus7 on ehci2 > acpi_button0: on acpi0 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > orm0: at iomem 0xd3000-0xd5fff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > ppc0: cannot reserve I/O port range > acpi_throttle0: on cpu0 > hwpstate0: on cpu0 > Timecounters tick every 1.000 msec > firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) > firewire0: bus manager 0 > IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled > ipfw2 (+ipv6) initialized, divert enabled, nat enabled, rule-based > forwarding enabled, default to accept, logging disabled DUMMYNET 0 with > IPv6 initialized (100409) > load_dn_sched dn_sched FIFO loaded > load_dn_sched dn_sched PRIO loaded > load_dn_sched dn_sched QFQ loaded > load_dn_sched dn_sched RR loaded > load_dn_sched dn_sched WF2Q+ loaded > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 3 on hdaa0 > hdacc1: at cad 0 on hdac1 > hdaa1: at nid 1 on hdacc1 > pcm1: at nid 20,22,21,23 and 24,26 > on hdaa1 pcm2: at nid 27 and 25 on hdaa1 > pcm3: at nid 30 on hdaa1 > pcm4: at nid 17 on hdaa1 > usbus0: 5.0Gbps Super Speed USB v3.0 > usbus1: 12Mbps Full Speed USB v1.0 > usbus2: 480Mbps High Speed USB v2.0 > usbus3: 12Mbps Full Speed USB v1.0 > usbus4: 480Mbps High Speed USB v2.0 > usbus5: 12Mbps Full Speed USB v1.0 > usbus6: 12Mbps Full Speed USB v1.0 > usbus7: 480Mbps High Speed USB v2.0 > ugen0.1: <0x1033> at usbus0 > uhub0: <0x1033 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > ugen2.1: at usbus2 > uhub2: on usbus2 > ugen3.1: at usbus3 > uhub3: on usbus3 > ugen4.1: at usbus4 > uhub4: on usbus4 > ugen5.1: at usbus5 > uhub5: on usbus5 > ugen6.1: at usbus6 > uhub6: on usbus6 > ugen7.1: at usbus7 > uhub7: on usbus7 > uhub5: 2 ports with 2 removable, self powered > uhub6: 4 ports with 4 removable, self powered > uhub1: 5 ports with 5 removable, self powered > uhub3: 5 ports with 5 removable, self powered > uhub0: 4 ports with 4 removable, self powered > ada0 at ahcich1 bus 0 scbus2 target 0 lun 0 > ada0: ATA-8 SATA 2.x device > ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada0: Command Queueing enabled > ada0: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > ada0: Previously was known as ad8 > ada1 at ahcich2 bus 0 scbus3 target 0 lun 0 > ada1: ATA-8 SATA 2.x device > ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada1: Command Queueing enabled > ada1: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada1: Previously was known as ad10 > ada2 at ahcich3 bus 0 scbus4 target 0 lun 0 > ada2: ATA-8 SATA 2.x device > ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada2: Command Queueing enabled > ada2: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada2: Previously was known as ad12 > ada3 at ahcich4 bus 0 scbus5 target 0 lun 0 > ada3: ATA-8 SATA 2.x device > ada3: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) > ada3: Command Queueing enabled > ada3: 1907729MB (3907029168 512 byte sectors: 16H 63S/T 16383C) > ada3: Previously was known as ad14 > ada4 at ahcich6 bus 0 scbus7 target 0 lun 0 > ada4: ATA-8 SATA 3.x device > ada4: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) > ada4: Command Queueing enabled > ada4: 2861588MB (5860533168 512 byte sectors: 16H 63S/T 16383C) > ada4: Previously was known as ad18 > SMP: AP CPU #2 Launched! > SMP: AP CPU #1 Launched! > cd0 at ata2 bus 0 scbus1 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) > SMP: AP CPU #3 Launched! > cd0: Attempt to query device size failed: NOT READY, Medium not present > Timecounter "TSC-low" frequency 13326119 Hz quality 800 > uhub7: 4 ports with 4 removable, self powered > GEOM_MIRROR: Device mirror/leluroot launched (1/2). > GEOM_MIRROR: Device leluroot: rebuilding provider ada1p3. > GEOM_MIRROR: Device mirror/lelu-root launched (1/1). > GEOM_MIRROR: Device mirror/lelu-u launched (2/2). > GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains data. > GEOM_JOURNAL: Journal 3960267491: mirror/lelu-root contains journal. > GEOM_JOURNAL: Journal mirror/lelu-root clean. > GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains data. > GEOM_JOURNAL: Journal 769953320: mirror/lelu-u contains journal. > GEOM_JOURNAL: Journal mirror/lelu-u clean. > Root mount waiting for: GJOURNAL GJOURNAL usbus4 usbus2 > uhub4: 5 ports with 5 removable, self powered > uhub2: 5 ports with 5 removable, self powered > ugen2.2: at usbus2 > uhub8: on > usbus2 uhub8: MTT enabled > Root mount waiting for: usbus2 > uhub8: 4 ports with 4 removable, self powered > Root mount waiting for: usbus2 > ugen2.3: at usbus2 > uhub9: on > usbus2 uhub9: 4 ports with 4 removable, self powered > Root mount waiting for: usbus2 > ugen2.4: at usbus2 > uhub10: > on usbus2 uhub10: MTT enabled > Root mount waiting for: usbus2 > uhub10: 4 ports with 4 removable, self powered > ugen2.5: at usbus2 > uhub11: > on usbus2 uhub11: MTT enabled > Root mount waiting for: usbus2 > uhub11: 7 ports with 7 removable, self powered > Root mount waiting for: usbus2 > ugen2.6: at usbus2 > ums0: on usbus2 > ums0: 5 buttons and [XYZ] coordinates ID=0 > Root mount waiting for: usbus2 > ugen2.7: at usbus2 > ukbd0: on usbus2 > kbd2 at ukbd0 > usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER > Root mount waiting for: usbus2 > ugen2.8: at usbus2 > umass0: on usbus2 > umass0: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 > umass0:9:0:-1: Attached to scbus9 > Trying to mount root from ufs:/dev/mirror/leluroot [rw,async]... > cd1 at umass-sim0 bus 0 scbus9 target 0 lun 0 > cd1: Removable CD-ROM SCSI-0 device > cd1: 40.000MB/s transfers > cd1: cd present [278530 x 2048 byte records] > usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER > ugen2.9: at usbus2 > umass1: on usbus2 > umass1: 8070i (ATAPI) over Bulk-Only; quirks = 0x0100 > umass1:10:1:-1: Attached to scbus10 > cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 > cd2: Removable CD-ROM SCSI-0 device > cd2: 40.000MB/s transfers > cd2: Attempt to query device size failed: NOT READY, Medium not present - > tray closed re0: link state changed to UP > > >Description: > LG external USB DVD-RW fails. > > ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE ugen2.9: at usbus2, > cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > Kernel says the following: > > ugen2.3: at usbus2 > uhub9: on > usbus2 uhub9: 2 ports with 2 removable, self powered > ugen2.9: at usbus2 > umass1: > on usbus2 umass1: SCSI over Bulk-Only; quirks = 0x0100 > umass1:10:1:-1: Attached to scbus10 > cd2 at umass-sim1 bus 1 scbus10 target 0 lun 0 > cd2: Removable CD-ROM SCSI-0 device > cd2: 40.000MB/s transfers > cd2: Attempt to query device size failed: NOT READY, Medium not present > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > usb_alloc_device: set address 10 failed (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED usbd_req_re_enumerate: addr=10, set address failed! > (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device > descriptor at addr 10 failed, USB_ERR_STALLED usbd_req_re_enumerate: > addr=10, set address failed! (USB_ERR_STALLED, ignored) > usbd_setup_device_desc: getting device descriptor at addr 10 failed, > USB_ERR_STALLED ugen2.10: at usbus2 (disconnected) > uhub_reattach_port: could not allocate new device > uhub_reattach_port: port 2 reset failed, error=USB_ERR_STALLED > uhub_reattach_port: device problem (USB_ERR_STALLED), disabling port 2 > ugen2.3: at usbus2 (disconnected) > uhub9: at uhub8, port 4, addr 3 (disconnected) > ugen2.9: at usbus2 (disconnected) > umass1: at uhub9, port 1, addr 9 (disconnected) > (cd2:umass-sim1:1:0:0): lost device, 1 refs > (cd2:(pass7:umass-sim1:1:umass-sim1:1:0:0:0): removing device entry > 0): passdevgonecb: devfs entry is gone > > When trying to access the drive, device not configured error results. > Hi, Can you try 9-stable? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Nov 14 12:40:32 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B10D6FA for ; Wed, 14 Nov 2012 12:40:32 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer116.ocn.ad.jp (defer116.ocn.ad.jp [125.206.148.15]) by mx1.freebsd.org (Postfix) with ESMTP id 298D48FC13 for ; Wed, 14 Nov 2012 12:40:31 +0000 (UTC) Received: from msgw002-03.ocn.ad.jp (msgw002-03.ocn.ad.jp [180.37.203.78]) by defer116.ocn.ad.jp (Postfix) with ESMTP id E0BB4310027 for ; Wed, 14 Nov 2012 21:16:43 +0900 (JST) Received: from localhost (p14214-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.197.214]) by msgw002-03.ocn.ad.jp (Postfix) with ESMTP id 46762A4ADAE; Wed, 14 Nov 2012 21:16:36 +0900 (JST) Date: Wed, 14 Nov 2012 21:16:35 +0900 (JST) Message-Id: <20121114.211635.122622657.toshi@ruby.ocn.ne.jp> To: hselasky@c2i.net Subject: Re: isochronous transfer packet is out of sequence From: SAITOU Toshihide In-Reply-To: <201211131744.11220.hselasky@c2i.net> References: <201211131452.16508.hselasky@c2i.net> <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> <201211131744.11220.hselasky@c2i.net> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 12:40:32 -0000 In message: <201211131744.11220.hselasky@c2i.net> Hans Petter Selasky writes: > On Tuesday 13 November 2012 16:23:06 SAITOU Toshihide wrote: >> In message: <201211131452.16508.hselasky@c2i.net> >> >> Hans Petter Selasky writes: >> > On Tuesday 13 November 2012 14:26:52 SAITOU Toshihide wrote: >> >> In message: <201211121342.47141.hselasky@c2i.net> >> >> >> >> Hans Petter Selasky writes: >> >> > On Monday 12 November 2012 12:52:08 SAITOU Toshihide wrote: >> >> >> I have tryed the USB isochronous transfer for UVC cam using libusb >> >> >> interface and I find the packet fragment is out of sequence on the >> >> >> FreeBSD(1). But I don't find it on the MacBook(2). >> >> >> >> >> >> (1) FreeBSD 9.1-RC2, Intel Core i7 3770T >> >> >> (2) Mac OS X 10.6.8, Intel Core 2 Duo, libusb 1.0.9 (single core) >> >> >> >> >> >> Can I prevent this behaviour using libusb interface or is >> >> >> this an expected behaviour? >> >> >> >> >> >> The bellow I issued two libusb_submit_transfer at the beginning. > > Hi, > > There are some internal limits, maybe not visible directly at libusb level. > > The host hardware usually does not handle more than 128 milliseconds of > transfers at a time. > > You should not sumbit more frames than will be processed in (128 - 16) / 2 ms > at any time. For HighSpeed with fastest interval you will need around 8*2*56 > ms worth of frames, which is the maximum supported. > > grep -r USB_MAX_FS_ISOC_FRAMES_PER_XFER /usr/include > grep -r USB_MAX_HS_ISOC_FRAMES_PER_XFER /usr/include > > Webcamd has patches for the Linux code, to fix this issue. Ah! I took it for granted that PKTS_PER_XFER 0x80 is safe to compared with usbdump of the webcamd. I was biased, my bad, sorry. Finally PKTS_PER_XFER 0x40 is perfect with my fixed callback function. (128 - 16) / 2 = 56 16 : maximum number of control request? (*1) 2 : two transfers 56 frames plus 2+8 frames (repayment of (*1) for fastest interval?) = 66 64 (0x40) is nearest multiple of 8 I only have a differences compared with my MacBook is the device closing behaviour. It looks like the device stays in STREAMING state after exiting. libusb_reset_device and using signal trap may be needed. Thank you very much! --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Thu Nov 15 05:46:59 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 09598B6B; Thu, 15 Nov 2012 05:46:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id CCCAB8FC14; Thu, 15 Nov 2012 05:46:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAF5kwZr014950; Thu, 15 Nov 2012 05:46:58 GMT (envelope-from mav@freefall.freebsd.org) Received: (from mav@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAF5kwjN014946; Thu, 15 Nov 2012 05:46:58 GMT (envelope-from mav) Date: Thu, 15 Nov 2012 05:46:58 GMT Message-Id: <201211150546.qAF5kwjN014946@freefall.freebsd.org> To: vmagerya@gmail.com, mav@FreeBSD.org, freebsd-usb@FreeBSD.org From: mav@FreeBSD.org Subject: Re: usb/171810: [patch] make hid_start_parse(3) respect report ID argument X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 05:46:59 -0000 Synopsis: [patch] make hid_start_parse(3) respect report ID argument State-Changed-From-To: open->closed State-Changed-By: mav State-Changed-When: Thu Nov 15 05:46:20 UTC 2012 State-Changed-Why: Patch committed and merged down to 8/9-STABLE. http://www.freebsd.org/cgi/query-pr.cgi?pr=171810 From owner-freebsd-usb@FreeBSD.ORG Thu Nov 15 12:13:59 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CEE8A436 for ; Thu, 15 Nov 2012 12:13:59 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer105.ocn.ad.jp (defer105.ocn.ad.jp [125.206.148.12]) by mx1.freebsd.org (Postfix) with ESMTP id 98EB78FC08 for ; Thu, 15 Nov 2012 12:13:59 +0000 (UTC) Received: from msgw001-03.ocn.ad.jp (msgw001-03.ocn.ad.jp [180.37.203.72]) by defer105.ocn.ad.jp (Postfix) with ESMTP id 07580527E75 for ; Thu, 15 Nov 2012 21:13:52 +0900 (JST) Received: from localhost (p16171-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.199.171]) by msgw001-03.ocn.ad.jp (Postfix) with ESMTP id 90706AE28EE; Thu, 15 Nov 2012 21:13:44 +0900 (JST) Date: Thu, 15 Nov 2012 21:13:44 +0900 (JST) Message-Id: <20121115.211344.179734816.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer packet is out of sequence From: SAITOU Toshihide In-Reply-To: <20121114.211635.122622657.toshi@ruby.ocn.ne.jp> References: <20121114.002306.36926536.toshi@ruby.ocn.ne.jp> <201211131744.11220.hselasky@c2i.net> <20121114.211635.122622657.toshi@ruby.ocn.ne.jp> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 12:13:59 -0000 In message: <20121114.211635.122622657.toshi@ruby.ocn.ne.jp> SAITOU Toshihide writes: > > (128 - 16) / 2 = 56 > > 16 : maximum number of control request? (*1) > 2 : two transfers > > 56 frames plus 2+8 frames (repayment of (*1) for fastest interval?) = 66 > > 64 (0x40) is nearest multiple of 8 Please ignore my mention the above. m(__)m --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Fri Nov 16 22:50:00 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 934BA4B6 for ; Fri, 16 Nov 2012 22:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 66BEC8FC16 for ; Fri, 16 Nov 2012 22:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAGMo0w4032650 for ; Fri, 16 Nov 2012 22:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAGMo07M032649; Fri, 16 Nov 2012 22:50:00 GMT (envelope-from gnats) Resent-Date: Fri, 16 Nov 2012 22:50:00 GMT Resent-Message-Id: <201211162250.qAGMo07M032649@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Wojciech A. Koszek" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEF32452 for ; Fri, 16 Nov 2012 22:47:29 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D5A518FC08 for ; Fri, 16 Nov 2012 22:47:29 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAGMlTgu057396 for ; Fri, 16 Nov 2012 22:47:29 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qAGMlTm2057387; Fri, 16 Nov 2012 22:47:29 GMT (envelope-from nobody) Message-Id: <201211162247.qAGMlTm2057387@red.freebsd.org> Date: Fri, 16 Nov 2012 22:47:29 GMT From: "Wojciech A. Koszek" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 22:50:00 -0000 >Number: 173666 >Category: usb >Synopsis: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 16 22:50:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Wojciech A. Koszek >Release: 9.0-RELEASE >Organization: FreeBSD >Environment: FreeBSD seu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: I have a driver written for libusb, which works fine under GNU/Linux and libusb. Device: gen0.2: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (I used USB sniffer to uncover traffic based on what Windows was doing) Under Linux usb_reset()+usb_set_configuration() calls works fine. Under FreeBSD I have to disable calling usb_reset(), otherwise usb_set_configuration() fails with I/O error. =========== usb_relay.c ================ #include #include #include #include #include #include #include static int g_debug = 0; #define DBG(...) do { \ if (g_debug == 0) { \ break; \ } \ printf("%s(%d): ", __func__, __LINE__); \ printf(__VA_ARGS__); \ printf("\n"); \ } while (0) enum { CMD_QUERY, CMD_ON, CMD_FLASH, CMD_OFF }; static void usage(void) { printf("./usb_relay \n"); exit(1); } static struct usb_device * usb_dev_find(uint32_t look_vid, uint32_t look_pid) { struct usb_bus *busses; struct usb_bus *bus; struct usb_device *dev; struct usb_device_descriptor *desc; uint32_t vid, pid; usb_init(); usb_find_busses(); usb_find_devices(); busses = usb_get_busses(); for (bus = busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { desc = &dev->descriptor; vid = desc->idVendor; pid = desc->idProduct; if ((vid == look_vid) && (pid == look_pid)) { return (dev); } } } return (NULL); } int main(int argc, char **argv) { struct usb_device *dev; struct usb_dev_handle *hptr; int o, ret, state, ep, ac, cmd; uint32_t data[2]; char **av; int i; while ((o = getopt(argc, argv, "dh")) != -1) { switch (o) { case 'd': g_debug++; break; case 'h': usage(); break; default: usage(); break; } } ac = argc - optind; av = argv + optind; cmd = CMD_QUERY; if (ac > 0) { if (strcmp(av[0], "on") == 0) { cmd = CMD_ON; } else if (strcmp(av[0], "off") == 0) { cmd = CMD_OFF; } else if (strcmp(av[0], "flash") == 0) { cmd = CMD_FLASH; } else { abort(); } } dev = usb_dev_find(0x07c3, 0x1283); if (dev == NULL) { printf("J283 not found!\n"); exit(1); } hptr = usb_open(dev); DBG("usb_open returned %p", hptr); #ifdef HAS_RESET ret = usb_reset(hptr); DBG("usb_reset returned %d: %s", ret, libusb_strerror(ret)); #endif ret = usb_set_configuration(hptr, 1); DBG("usb_reset returned %d: %s", ret, libusb_strerror(ret)); ret = usb_claim_interface(hptr, 1); DBG("usb_reset returned %d: %s", ret, libusb_strerror(ret)); data[0] = -1; data[1] = -1; ret = usb_control_msg(hptr, 0xc2, 176, 0x0, 0, (char *)data, 8, 400); DBG("usb_control_msg = %d %08x,%08x", ret, data[0], data[1]); ret = usb_control_msg(hptr, 0xc2, 184, 0x0, 0, (char *)data, 8, 400); DBG("usb_control_msg = %d %08x,%08x", ret, data[0], data[1]); if (cmd == CMD_QUERY) { state = data[0] & 1; printf("%s\n", state ? "on" : "off"); } else if (cmd == CMD_ON) { ret = usb_control_msg(hptr, 0xc2, 183, 0x0, 0, (char *)data, 8, 400); } else if (cmd == CMD_OFF) { ret = usb_control_msg(hptr, 0xc2, 182, 0x0, 0, (char *)data, 8, 400); } else if (cmd == CMD_FLASH) { ret = usb_control_msg(hptr, 0xc2, 177, 0x0, 0, (char *)data, 8, 400); } else { abort(); } exit(0); } >How-To-Repeat: seu# gcc -DHAS_RESET usb_relay.c -o usb_relay.has_reset -lusb seu# ./usb_relay.has_reset -d off && sleep 1 && ./usb_relay.has_reset -d on main(110): usb_open returned 0x28405480 main(113): usb_reset returned 0: Success main(117): usb_reset returned -1: I/O error main(119): usb_reset returned 0: Success main(124): usb_control_msg = -1 ffffffff,ffffffff main(126): usb_control_msg = -1 ffffffff,ffffffff main(110): usb_open returned 0x28405480 main(113): usb_reset returned 0: Success main(117): usb_reset returned -1: I/O error main(119): usb_reset returned 0: Success main(124): usb_control_msg = -1 ffffffff,ffffffff main(126): usb_control_msg = -1 ffffffff,ffffffff seu# seu# gcc usb_relay.c -o usb_relay -lusb seu# ./usb_relay -d off && sleep 1 && ./usb_relay -d on main(110): usb_open returned 0x28405480 main(117): usb_reset returned 0: Success main(119): usb_reset returned 0: Success main(124): usb_control_msg = 5 01000001,ffffff00 main(126): usb_control_msg = 5 01000001,ffffff00 main(110): usb_open returned 0x28405480 main(117): usb_reset returned 0: Success main(119): usb_reset returned 0: Success main(124): usb_control_msg = 5 01000001,ffffff00 main(126): usb_control_msg = 5 01000000,ffffff00 >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Nov 17 12:18:02 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB0F62E0; Sat, 17 Nov 2012 12:18:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1CD2F8FC0C; Sat, 17 Nov 2012 12:18:01 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 344782607; Sat, 17 Nov 2012 13:17:54 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD Date: Sat, 17 Nov 2012 13:19:34 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201211162247.qAGMlTm2057387@red.freebsd.org> In-Reply-To: <201211162247.qAGMlTm2057387@red.freebsd.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211171319.34781.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, "Wojciech A. Koszek" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 12:18:03 -0000 On Friday 16 November 2012 23:47:29 Wojciech A. Koszek wrote: > >Number: 173666 > >Category: usb > >Synopsis: [USB, LIBUSB] usb_reset() behavior different between > >GNU/Linux and FreeBSD Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Nov 16 22:50:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Wojciech A. Koszek > >Release: 9.0-RELEASE > > >Organization: > FreeBSD > > >Environment: > FreeBSD seu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC > 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > >Description: > I have a driver written for libusb, which works fine under GNU/Linux and > libusb. Device: > > gen0.2: at usbus0, cfg=0 md=HOST spd=LOW > (1.5Mbps) pwr=ON > > (I used USB sniffer to uncover traffic based on what Windows was doing) > > Under Linux usb_reset()+usb_set_configuration() calls works fine. Under > FreeBSD I have to disable calling usb_reset(), otherwise > usb_set_configuration() fails with I/O error. > According to: http://libusb.sourceforge.net/doc/function.usbreset.html What you describe is the expected behaviour. --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Nov 17 12:20:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9710A342 for ; Sat, 17 Nov 2012 12:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 60AA98FC08 for ; Sat, 17 Nov 2012 12:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qAHCK1sV091049 for ; Sat, 17 Nov 2012 12:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qAHCK1k9091048; Sat, 17 Nov 2012 12:20:01 GMT (envelope-from gnats) Date: Sat, 17 Nov 2012 12:20:01 GMT Message-Id: <201211171220.qAHCK1k9091048@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 12:20:01 -0000 The following reply was made to PR usb/173666; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: "Wojciech A. Koszek" , freebsd-gnats-submit@freebsd.org Subject: Re: usb/173666: [USB, LIBUSB] usb_reset() behavior different between GNU/Linux and FreeBSD Date: Sat, 17 Nov 2012 13:19:34 +0100 On Friday 16 November 2012 23:47:29 Wojciech A. Koszek wrote: > >Number: 173666 > >Category: usb > >Synopsis: [USB, LIBUSB] usb_reset() behavior different between > >GNU/Linux and FreeBSD Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Nov 16 22:50:00 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: Wojciech A. Koszek > >Release: 9.0-RELEASE > > >Organization: > FreeBSD > > >Environment: > FreeBSD seu 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC > 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > >Description: > I have a driver written for libusb, which works fine under GNU/Linux and > libusb. Device: > > gen0.2: at usbus0, cfg=0 md=HOST spd=LOW > (1.5Mbps) pwr=ON > > (I used USB sniffer to uncover traffic based on what Windows was doing) > > Under Linux usb_reset()+usb_set_configuration() calls works fine. Under > FreeBSD I have to disable calling usb_reset(), otherwise > usb_set_configuration() fails with I/O error. > According to: http://libusb.sourceforge.net/doc/function.usbreset.html What you describe is the expected behaviour. --HPS