From owner-freebsd-usb@FreeBSD.ORG Sun Oct 28 14:07: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 01462FC8 for ; Sun, 28 Oct 2012 14:07:59 +0000 (UTC) (envelope-from yoitsmeremember@gmail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B5E638FC0C for ; Sun, 28 Oct 2012 14:07:58 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id k10so4316468iag.13 for ; Sun, 28 Oct 2012 07:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=TdMUWUMwMGp6FrG4R4xsS3rRJfqEOgzjXFqzBHsB9i0=; b=FoyZf9qg+oDug3P7KDyVSo6i7LpKFd4iwCaTdbOx+7KUmSPHgPsZQpUupHthVGt9Bc FGKWbmg5Wy1xQnCsMNx+llSvk6TGIQcnoPcqI1eeWsP6BeUEWSrz2PjvnMCf14D4zD4o tNqJEtMMGLgWkprh4GO5FAAnS1SEJJWCpv6gozlfNj4oZ99bc1udjHEWM/Y88EzaL+1o hK2zK8zPhv7wwk/GtcElfsCVDY4r5EgrG+tujlpCEqY9iT7xOO4uijIV2lPO6Lazh1F+ nLBYg80I5cYiheaR1kiaKJmyLfjP14lPtF6aa+RPC13dXSC+DHM40tX9Dx11L1BzpQtf H/0A== Received: by 10.50.33.232 with SMTP id u8mr6956743igi.39.1351433278138; Sun, 28 Oct 2012 07:07:58 -0700 (PDT) Received: from [192.168.0.124] (68-114-220-143.dhcp.mdsn.wi.charter.com. [68.114.220.143]) by mx.google.com with ESMTPS id gz10sm3746136igc.9.2012.10.28.07.07.56 (version=SSLv3 cipher=OTHER); Sun, 28 Oct 2012 07:07:57 -0700 (PDT) Message-ID: <508D3C3B.2000506@gmail.com> Date: Sun, 28 Oct 2012 09:07:55 -0500 From: Ian User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Hardware failure or bug in ehci? 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: Sun, 28 Oct 2012 14:07:59 -0000 I recently plugged in a new KVM (Monoprice KCF-181S) to my FreeBSD machines (the machine in question a Jetway NF9A-Q67), and found a high interrupt rate when using top. The usb and KVM appear like so in dmesg: ehci0: mem 0xfe523000-0xfe5233ff irq 16 at device 26.0 on pci0 usbus0: EHCI version 1.0 usbus0 on ehci0 ... ehci1: mem 0xfe522000-0xfe5223ff irq 23 at device 29.0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci1 ... usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ... ugen0.2: at usbus0 uhub2: on usbus0 ugen1.2: at usbus1 uhub3: on usbus1 ... uhub2: 6 ports with 6 removable, self powered uhub3: 8 ports with 8 removable, self powered ... ugen0.3: at usbus0 ukbd0: on usbus0 kbd2 at ukbd0 ums0: on usbus0 ums0: 5 buttons and [XYZ] coordinates ID=1 Investigating further, I found this: % uname -a FreeBSD pyrite 9.1-RC2 FreeBSD 9.1-RC2 #0 r241608: Tue Oct 16 18:18:23 UTC 2012 root@pyrite:/usr/obj/usr/src/sys/PYRITE amd64 % vmstat -i interrupt total rate irq1: atkbd0 29 0 irq4: uart0 395 0 irq16: ehci0 14852890008 61807 irq23: ehci1 626348 2 cpu0:timer 267891392 1114 irq264: em0 66802 0 irq265: em1:rx 0 844347 3 irq266: em1:tx 0 292193 1 irq267: em1:link 9 0 irq268: ahci0 221681 0 cpu1:timer 221101117 920 cpu3:timer 1504868 6 cpu2:timer 1336765 5 Total 15346775954 63862 # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Nearly 62K interrupts/second on ehci0! After much testing, I've found that this is an intermittent problem. I'll summarize: - Even in identical hardware configurations (i.e. everything plugged into the same port), sometimes I see the high interrupt rate, and sometimes I don't. - Once I see the high interrupt rate, there is no way to make it stop without rebooting. Even if I unplug the KVM, I will continue to see the interrupt rate climb until I reboot. - The easiest way to reproduce the issue is to unplug everything KVM related (the VGA, the PS/2 keyboard port, and the USB), and plug it all back in (VGA first, followed by PS/2 keyboard, followed by USB--though I'm unsure if order matters). Often, though not always, unplugging and replugging the USB alone is not enough to cause the high interrupt rate. - Perhaps the strangest of all, the high interrupt rate always appears on ehci0 even if I only plugged the KVM into a usbus1 (and therefore ehci1) port! - I can't reproduce the issue on any other machines the KVM is plugged into (all also running FreeBSD 9.1-RC2/amd64), but they all feature uhci in addition to ehci, and use a different ehci controller. However, on the problematic machine, it appears to be able to happen regardless of the port/cable of the KVM I use (despite those ports working fine with my other machines). So, my questions are: 1. Most importantly, where do you think the problem lies? The KVM itself, the FreeBSD machine's hardware, or a bug in the kernel/driver? 2. Why would it appear as a high interrupt rate on ehci0 when it's only plugged into usbus1 which is on ehci1? 3. Why doesn't the issue appear on any of the other machines I have plugged into the KVM? Simply because they use different controllers, or does the presence of uhci (which shares an interrupt with ehci0 on those machines) potentially have something to do with it? I know the last question may be unanswerable, as there are so many variables in play. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 29 08:10:02 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 995BDF52 for ; Mon, 29 Oct 2012 08:10:02 +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 52BC28FC0A for ; Mon, 29 Oct 2012 08:10:02 +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 q9T8A2Qk091968 for ; Mon, 29 Oct 2012 08:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9T8A2gK091967; Mon, 29 Oct 2012 08:10:02 GMT (envelope-from gnats) Resent-Date: Mon, 29 Oct 2012 08:10:02 GMT Resent-Message-Id: <201210290810.q9T8A2gK091967@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, Rick Richard Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1065F16 for ; Mon, 29 Oct 2012 08:07:21 +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 B49A18FC0A for ; Mon, 29 Oct 2012 08:07:21 +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 q9T87JVl032549 for ; Mon, 29 Oct 2012 08:07:19 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9T87JDY032547; Mon, 29 Oct 2012 08:07:19 GMT (envelope-from nobody) Message-Id: <201210290807.q9T87JDY032547@red.freebsd.org> Date: Mon, 29 Oct 2012 08:07:19 GMT From: Rick Richard To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/173182: usbus appears as a network device 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, 29 Oct 2012 08:10:02 -0000 >Number: 173182 >Category: usb >Synopsis: usbus appears as a network device >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: Mon Oct 29 08:10:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Rick Richard >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD thinking2 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: A change, apparently in later FBSD 8.x and in FBSD 9.x, causes usbus[0-n] devices to appear as network devices. They do not show up in ifconfig -a but the do show up in netstat -i. This causes a slowdown and errors at startup when both ifconfig_DEFAULT="DHCP" and synchronous_dhclient="YES" are set in rc.conf: usbus0: not found exiting. Starting Network: usbus0. usbus1: not found exiting. Starting Network: usbus1. etc. This has been mentioned in various places: http://lists.freebsd.org/pipermail/freebsd-current/2011-October/028752.html http://freebsd.1045724.n5.nabble.com/stable-9-usbus-entries-in-network-namespace-td5615804.html http://permalink.gmane.org/gmane.os.freebsd.current/129625 http://freebsd.1045724.n5.nabble.com/Prevent-starting-network-on-usbus-td5142292.html etc. >How-To-Repeat: edit /etc/rc.conf and add ifconfig_DEFAULT="DHCP" synchronous_dhclient="YES" restart and observe errors at startup or manually produce the problem by executing /etc/rc.d/netif start usbus0 >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Oct 29 11:06:39 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 EC0FFB91 for ; Mon, 29 Oct 2012 11:06:39 +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 CC00A8FC25 for ; Mon, 29 Oct 2012 11:06:39 +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 q9TB6dhU028657 for ; Mon, 29 Oct 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9TB6drD028655 for freebsd-usb@FreeBSD.org; Mon, 29 Oct 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2012 11:06:39 GMT Message-Id: <201210291106.q9TB6drD028655@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, 29 Oct 2012 11:06:40 -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/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/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 s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should 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/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/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 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/117200 usb [ugen] ugen0 prints strange string on attach if detach 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 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 f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/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 bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 280 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 29 13:18:13 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 6EDD4E6E for ; Mon, 29 Oct 2012 13:18:13 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer106.ocn.ad.jp (defer106.ocn.ad.jp [125.206.148.14]) by mx1.freebsd.org (Postfix) with ESMTP id 181368FC17 for ; Mon, 29 Oct 2012 13:18:12 +0000 (UTC) Received: from msgw001-01.ocn.ad.jp (msgw001-01.ocn.ad.jp [180.37.203.70]) by defer106.ocn.ad.jp (Postfix) with ESMTP id C080B236361 for ; Mon, 29 Oct 2012 21:54:42 +0900 (JST) Received: from localhost (p16200-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.199.200]) by msgw001-01.ocn.ad.jp (Postfix) with ESMTP id AAD1444DDAE; Mon, 29 Oct 2012 21:54:35 +0900 (JST) Date: Mon, 29 Oct 2012 21:54:34 +0900 (JST) Message-Id: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: isochronous transfer for UVC camera 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, 29 Oct 2012 13:18:13 -0000 I'm trying to get the streaming data from the UVC camera, but isochronous transfer callback isn't invoked. Is this lack of parameters to be set or wrong coding for my isochronous transfer? $ uname -a FreeBSD Kingyo.ens.tut.ac.jp 9.1-RC2 FreeBSD 9.1-RC2 #0 r241106: Mon Oct 1 18:26:44 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 ------------------------------------------------------------ /* * $ cc -o ex10 ex10.c -lusb * $ ./ex10 * * [UVC1.5] Universal Serial Bus Device Class Definition for Video Devices, * (UVC 1.5 Class specification.pdf), * . * * [USB2.0] USB 2.0 Specification Universal Serial Bus Revision 2.0 specification, * (usb_20.pdf), . */ #include #include #include #define VID 0x0458 #define PID 0x7081 #define TIMEOUT 500 // 500 ms #define ConfNum 1 // Configuration Number #define IfNum 1 // Interface Number #define AltIfNum 1 // Alternate Interface Number static void cb(struct libusb_transfer *transfer) { printf("\nReceived.\n"); libusb_submit_transfer(transfer); // repeat } int main( int argc, char **argv) { struct libusb_device_descriptor desc; libusb_context *ctx = NULL; libusb_device **deviceLst; ssize_t deviceCnt = 0; libusb_device *camdev = NULL; libusb_device_handle *handle; int attached = 0; uint8_t buf[256]; int i; int rcv; // populate list with the list of usb devices available. libusb_init(&ctx); if ((deviceCnt = libusb_get_device_list(ctx, &deviceLst)) < 0) { fprintf(stderr, "no usb devices found\n"); return; } libusb_set_debug(ctx, 99); // find device for (i = 0; i < deviceCnt; i++) { libusb_get_device_descriptor(deviceLst[i], &desc); if (desc.idVendor == VID && desc.idProduct == PID) { camdev = (libusb_device *)deviceLst[i]; break; } } if (!camdev) { fprintf(stderr, "device not found."); return; } // open device if (libusb_open(camdev, &handle) != 0) { fprintf(stderr, "Unable to open usb device\n"); return; } // if kernel driver is active, detach a kernel driver. if (libusb_kernel_driver_active(handle, 0) == 1) { printf("Detaching kernel driver.\n"); libusb_detach_kernel_driver(handle, 0); attached = 1; } // set the active configuration if (libusb_set_configuration(handle, ConfNum) != 0) { fprintf(stderr, "Set configuration failed."); } // ------------------------------------------------------------ // negotiate the streaming parameters // Device State Transition [UVC1.5, p. 107] // Video Probe and Commit Controls [UVC1.5, p. 134] // set some parameters described to set by the host. [UVC1.5, p. 134] for (i=0; i<48; i++) { buf[i] = 0x00; } buf[0] = 0x01; // what fields shall be kept fixed (0x01: dwFrameInterval) buf[1] = 0x00; // buf[2] = 0x01; // video format index buf[3] = 0x01; // video frame index buf[4] = 0x40; // interval buf[5] = 0x4b; // propose: 0x4c4b40 (500 ms) buf[6] = 0x4c; // agreement: 0x1312d0 (125 ms) buf[7] = 0x00; // // VS_PROBE_CONTROL(0x01) [UVC1.5, p. 161], SET_CUR(0x87) [UVC1.5, p.158] libusb_control_transfer(handle, 0x21, 0x01, 0x0100, 0x0001, buf, 48, TIMEOUT); for (i=0; i<48; i++) { printf("%x ", buf[i]); } printf("\n"); // VS_PROBE_CONTROL(0x01) [UVC1.5, p. 161], GET_CUR(0x81) [UVC1.5, p.158] libusb_control_transfer(handle, 0xa1, 0x81, 0x0100, 0x0001, buf, 48, TIMEOUT); for (i=0; i<48; i++) { printf("%x ", buf[i]); } printf("\n"); // VS_COMMIT_CONTROL(0x02) [UVC1.5, p. 161], SET_CUR(0x01) [UVC1.5, p.158] libusb_control_transfer(handle, 0x21, 0x01, 0x0200, 0x0001, buf, 48, TIMEOUT); for (i=0; i<48; i++) { printf("%x ", buf[i]); } printf("\n"); // VS_COMMIT_CONTROL(0x02) [UVC1.5, p. 161], GET_CUR(0x81) [UVC1.5, p.158] //libusb_control_transfer(handle, 0xa1, 0x81, 0x0200, 0x0001, buf, 48, TIMEOUT); //for (i=0; i<48; i++) { printf("%x ", buf[i]); } printf("\n"); // set interface, set alt interface [USB2.0, p. 250] // are available through synchronous, blocking function // in the libusb, so can not use libusb_control_transfer. // claim an interface in a given libusb_handle. if (libusb_claim_interface(handle, IfNum) != 0) { fprintf(stderr, "Claim interface failed."); } // activate an alternate setting for an interface. if (libusb_set_interface_alt_setting(handle, IfNum, AltIfNum) != 0) { fprintf(stderr, "Activate an alternate setting failed."); } // cam LED is lit here. it looks like ready to send the data. //while (1) {} // ------------------------------------------------------------ // do an isochronous transfer /* High-speed * 1024 bytes data payloads * 1 microframe takes 125 us (8 times per frame). * upto 3 transfer per microframe. * 8 3 1024 1000 ~ */ #define PKT_LEN 0x1400 #define PKTS_PER_XFER 8 struct libusb_transfer *xfer; xfer = libusb_alloc_transfer(PKTS_PER_XFER); uint8_t *data = malloc(PKT_LEN*PKTS_PER_XFER); libusb_fill_iso_transfer( xfer, handle, 0x82, // Interface 1 Alt 1 Endpoint 0 Address 0x82 data, PKT_LEN*PKTS_PER_XFER, PKTS_PER_XFER, cb, NULL, TIMEOUT); if ( (rcv = libusb_submit_transfer(xfer)) != 0) { fprintf(stderr, "failed to submit transfer: %d\n", rcv); } sleep(30); // if we detached kernel driver, reattach. if (attached == 1) { libusb_attach_kernel_driver(handle, 0); } libusb_close(handle); libusb_free_device_list(deviceLst, 1); libusb_exit(ctx); } ------------------------------------------------------------ Interface 1 ... bDescriptorSubType = 0x01 ... bDescriptorSubType = 0x04 . (bFormatIndex: 0x01) ... bDescriptorSubType = 0x05 . (bFrameIndex: 0x01) ... Interface 1 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0001 bNumEndpoints = 0x0001 bInterfaceClass = 0x000e [UVC1.5, p. 156] bInterfaceSubClass = 0x0002 [UVC1.5, p. 156] bInterfaceProtocol = 0x0000 [UVC1.5, p. 156] iInterface = 0x0004 (read from index of string descriptor 4) Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 [USB2.0, p. 251, 269-270] bEndpointAddress = 0x0082 bmAttributes = 0x0005 wMaxPacketSize = 0x1400 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 ------------------------------------------------------------ $ sysctl hw.usb.debug=1 $ ./ex10 1 0 1 1 40 4b 4c 0 30 0 62 40 0 0 0 0 1 0 0 0 0 0 0 0 0 c8 61 40 0 0 0 0 90 6c a3 40 0 0 0 0 90 d2 ff ff ff 7f 0 0 1 0 1 1 d0 12 13 0 0 0 0 0 0 0 0 0 0 0 0 60 9 0 0 c 0 0 61 40 0 0 0 0 90 6c a3 40 0 0 0 0 90 d2 ff ff ff 7f 0 0 1 0 1 1 d0 12 13 0 0 0 0 0 0 0 0 0 0 0 0 60 9 0 0 c 0 0 61 40 0 0 0 0 90 6c a3 40 0 0 0 0 90 d2 ff ff ff 7f 0 0 $ sysctl hw.usb.debug=0 $ fgrep 'bEndpointAddress=0x82' /var/log/messages ------------------------------------------------------------ kernel: usb_dump_endpoint: endpoint=0xfffffe00781f7a50 edesc=0xfffffe0007cd3704 isoc_next=112 toggle_next=0 bEndpointAddress=0x82 kernel: usb_dump_queue: endpoint=0xfffffe00781f7a50 xfer: kernel: usbd_transfer_submit: open kernel: usbd_pipe_enter: enter kernel: usbd_pipe_start: start kernel: usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION kernel: usbd_callback_wrapper_sub: xfer=0xffffff8002e28148 endpoint=0xfffffe00781f7a50 sts=0 alen=0, slen=0, afrm=8, nfrm=8 kernel: usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION kernel: usbd_callback_wrapper_sub: xfer=0xfffffe00077f6948 endpoint=0xfffffe0007920a80 sts=0 alen=4, slen=4, afrm=1, nfrm=1 kernel: usbd_transfer_submit: xfer=0xfffffe00077f6948, endpoint=0xfffffe0007920a80, nframes=1, dir=read kernel: usb_dump_endpoint: endpoint=0xfffffe0007920a80 edesc=0xfffffe000792951b isoc_next=0 toggle_next=0 bEndpointAddress=0x81 kernel: usb_dump_queue: endpoint=0xfffffe0007920a80 xfer: kernel: usbd_pipe_enter: enter kernel: usbd_pipe_start: start ... kernel: usbd_pipe_enter: enter kernel: usbd_pipe_start: start kernel: usbd_do_request_flags: Handle Request function is set last message repeated 9 times --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Mon Oct 29 13:34:36 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 D7F3F650 for ; Mon, 29 Oct 2012 13:34:36 +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 592218FC0C for ; Mon, 29 Oct 2012 13:34:35 +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 mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 336852821; Mon, 29 Oct 2012 14:34:28 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer for UVC camera Date: Mon, 29 Oct 2012 14:36:08 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201210291436.08940.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, 29 Oct 2012 13:34:37 -0000 On Monday 29 October 2012 13:54:34 SAITOU Toshihide wrote: > #define PKT_LEN 0x1400 Hi, The packet length is not this value I think. The 0x1000 is part of the packet multiplier for High-Speed USB's wMaxPacketSize. It is (1+2) * 0x400. Try that and see what happens. Also there is usbdump -i usbusX -f Y -s 65536 -vvv, which will show the actual traffic. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 29 15:06:51 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 CBE334B5 for ; Mon, 29 Oct 2012 15:06:51 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from msgw001-01.ocn.ad.jp (msgw001-01.ocn.ad.jp [180.37.203.70]) by mx1.freebsd.org (Postfix) with ESMTP id 771DB8FC12 for ; Mon, 29 Oct 2012 15:06:51 +0000 (UTC) Received: from localhost (p16200-ipngn100102sizuokaden.shizuoka.ocn.ne.jp [180.51.199.200]) by msgw001-01.ocn.ad.jp (Postfix) with ESMTP id B68C544DDD2; Tue, 30 Oct 2012 00:06:49 +0900 (JST) Date: Tue, 30 Oct 2012 00:06:48 +0900 (JST) Message-Id: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer for UVC camera From: SAITOU Toshihide In-Reply-To: <201210291436.08940.hselasky@c2i.net> References: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> <201210291436.08940.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 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, 29 Oct 2012 15:06:51 -0000 In message: <201210291436.08940.hselasky@c2i.net> Hans Petter Selasky writes: > On Monday 29 October 2012 13:54:34 SAITOU Toshihide wrote: >> #define PKT_LEN 0x1400 > > The packet length is not this value I think. > > The 0x1000 is part of the packet multiplier for High-Speed USB's > wMaxPacketSize. > > It is (1+2) * 0x400. Try that and see what happens. Thank you for your quick response. I can't use the FreeBSD now so I will try this tomorrow. But Mac OS X 10.6.8 with libus 1.0.9, callback is not invoked too with some combination of the value below: #define PKT_LEN 0x400 #define PKTS_PER_XFER 8 $ ./ex10 libusb: 0.000000 info [darwin_open] device open for access libusb: 0.285678 info [darwin_async_io_callback] an async io operation has completed libusb: 0.286030 info [op_handle_events] checking fd 4 with revents = 0 libusb: 0.286187 info [op_handle_events] checking fd 6 with revents = 1 libusb: 0.286343 info [darwin_handle_callback] handling control completion with kernel status 0 1 0 1 1 40 4b 4c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 libusb: 0.287708 info [darwin_async_io_callback] an async io operation has completed libusb: 0.287751 info [op_handle_events] checking fd 4 with revents = 0 libusb: 0.287761 info [op_handle_events] checking fd 6 with revents = 1 libusb: 0.287775 info [darwin_handle_callback] handling control completion with kernel status 0 1 0 1 1 d0 12 13 0 0 0 0 0 0 0 0 0 0 0 0 60 9 0 0 c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 libusb: 0.288714 info [darwin_async_io_callback] an async io operation has completed libusb: 0.288770 info [op_handle_events] checking fd 4 with revents = 0 libusb: 0.288781 info [op_handle_events] checking fd 6 with revents = 1 libusb: 0.288799 info [darwin_handle_callback] handling control completion with kernel status 0 1 0 1 1 d0 12 13 0 0 0 0 0 0 0 0 0 0 0 0 60 9 0 0 c 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 libusb: 0.289960 info [get_endpoints] building table of endpoints. libusb: 0.290151 info [darwin_claim_interface] interface opened libusb: 0.292436 info [get_endpoints] building table of endpoints. libusb: 0.292459 info [get_endpoints] interface: 1 pipe 1: dir: 1 number: 2 libusb: 0.292478 info [ep_to_pipeRef] converting ep address 0x82 to pipeRef and interface libusb: 0.292484 info [ep_to_pipeRef] pipe 1 on interface 1 matches libusb: 0.297929 info [darwin_async_io_callback] an async io operation has completed libusb: 30.289159 error [do_close] Device handle closed while transfer was still being processed, but the device is still connected as far as we know libusb: 30.289196 error [do_close] A cancellation hasn't even been scheduled on the transfer for which the device is closing libusb: 30.290970 info [event_thread_main] thread exiting --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 11:40:16 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 04AECAEB for ; Tue, 30 Oct 2012 11:40:16 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer114.ocn.ad.jp (defer114.ocn.ad.jp [122.28.15.169]) by mx1.freebsd.org (Postfix) with ESMTP id BDBEA8FC0A for ; Tue, 30 Oct 2012 11:40:15 +0000 (UTC) Received: from msgw002-02.ocn.ad.jp (msgw002-02.ocn.ad.jp [180.37.203.77]) by defer114.ocn.ad.jp (Postfix) with ESMTP id F2EFA32B43C for ; Tue, 30 Oct 2012 20:22:54 +0900 (JST) Received: from localhost (p15069-ipngn100303sizuokaden.shizuoka.ocn.ne.jp [114.176.38.69]) by msgw002-02.ocn.ad.jp (Postfix) with ESMTP id EBD371F7092; Tue, 30 Oct 2012 20:22:47 +0900 (JST) Date: Tue, 30 Oct 2012 20:22:47 +0900 (JST) Message-Id: <20121030.202247.226801724.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer for UVC camera From: SAITOU Toshihide In-Reply-To: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> References: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> <201210291436.08940.hselasky@c2i.net> <20121030.000648.193690728.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: Tue, 30 Oct 2012 11:40:16 -0000 In message: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> SAITOU Toshihide writes: > In message: <201210291436.08940.hselasky@c2i.net> > Hans Petter Selasky writes: >> On Monday 29 October 2012 13:54:34 SAITOU Toshihide wrote: >>> #define PKT_LEN 0x1400 >> >> The packet length is not this value I think. >> >> The 0x1000 is part of the packet multiplier for High-Speed USB's >> wMaxPacketSize. >> >> It is (1+2) * 0x400. Try that and see what happens. > > Thank you for your quick response. > > I can't use the FreeBSD now so I will try this tomorrow. But Mac OS X 10.6.8 with libus 1.0.9, callback is not invoked too with some combination of the value below: > > #define PKT_LEN 0x400 > #define PKTS_PER_XFER 8 It dose not affect on the FreeBSD. >> Also there is usbdump -i usbusX -f Y -s 65536 -vvv, which will show the actual >> traffic. ! This is very useful. $ usbdump -i usbus2 -f 4.0 -s 65536 -vvv (unit 4) $ usbdump -i usbus2 -f 4.130 -s 65536 -vvv (unit 4, endpoint 0x82) I have compared with other application (pwcview). There are a lot of VS_PROBE_CONTROL transfer than expected. But it may not be a problem because I have tried these transfer reproduced from dump data. The problem I noticed is that the libusb_claim_interface of my code is not logged. Is this function really implemented? libusb_set_interface_alt_setting(handle, 1, 1); libusb_control_transfer(handle, 0x01, 0x0b, 0x0100, 0x0100, NULL, 0, TIMEOUT); Thank you. --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 12:39:30 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 CDDB78A8 for ; Tue, 30 Oct 2012 12:39:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF568FC14 for ; Tue, 30 Oct 2012 12:39:29 +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 mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 338717413; Tue, 30 Oct 2012 13:39:21 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer for UVC camera Date: Tue, 30 Oct 2012 13:41:00 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121029.215434.122618874.toshi@ruby.ocn.ne.jp> <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> <20121030.202247.226801724.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121030.202247.226801724.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: <201210301341.00350.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: Tue, 30 Oct 2012 12:39:31 -0000 On Tuesday 30 October 2012 12:22:47 SAITOU Toshihide wrote: > In message: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> > > SAITOU Toshihide writes: > > In message: <201210291436.08940.hselasky@c2i.net> > > > > Hans Petter Selasky writes: > >> On Monday 29 October 2012 13:54:34 SAITOU Toshihide wrote: > >>> #define PKT_LEN 0x1400 > >> > >> The packet length is not this value I think. > >> > >> The 0x1000 is part of the packet multiplier for High-Speed USB's > >> wMaxPacketSize. > >> > >> It is (1+2) * 0x400. Try that and see what happens. > > > > Thank you for your quick response. > > > > I can't use the FreeBSD now so I will try this tomorrow. But Mac OS X > > 10.6.8 with libus 1.0.9, callback is not invoked too with some > > combination of the value below: > > Hi, > > #define PKT_LEN 0x400 > > #define PKTS_PER_XFER 8 > You can compare with output when running webcamd. Make sure webcamd is not running when you start your application! > It dose not affect on the FreeBSD. PKT_LEN should be 0xC00 > > >> Also there is usbdump -i usbusX -f Y -s 65536 -vvv, which will show the > >> actual traffic. > > ! This is very useful. > > $ usbdump -i usbus2 -f 4.0 -s 65536 -vvv (unit 4) To get both READ and WRITE control requests, you should do: usbdump -i usbus2 -f 4.0 -f 4.128 -s 65536 -vvv > $ usbdump -i usbus2 -f 4.130 -s 65536 -vvv (unit 4, endpoint 0x82) > > I have compared with other application (pwcview). > > There are a lot of VS_PROBE_CONTROL transfer than expected. But it may > not be a problem because I have tried these transfer reproduced from > dump data. The problem I noticed is that the libusb_claim_interface of > my code is not logged. Is this function really implemented? The claim interface is almost like a NOP under FreeBSD. > > libusb_set_interface_alt_setting(handle, 1, 1); > libusb_control_transfer(handle, 0x01, 0x0b, 0x0100, 0x0100, NULL, 0, > TIMEOUT); --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 13:31:46 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 4A313D0C for ; Tue, 30 Oct 2012 13:31:46 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from msgw001-01.ocn.ad.jp (msgw001-01.ocn.ad.jp [180.37.203.70]) by mx1.freebsd.org (Postfix) with ESMTP id E1F4D8FC0C for ; Tue, 30 Oct 2012 13:31:45 +0000 (UTC) Received: from localhost (p15069-ipngn100303sizuokaden.shizuoka.ocn.ne.jp [114.176.38.69]) by msgw001-01.ocn.ad.jp (Postfix) with ESMTP id CCBB944DDAE; Tue, 30 Oct 2012 22:31:38 +0900 (JST) Date: Tue, 30 Oct 2012 22:31:38 +0900 (JST) Message-Id: <20121030.223138.71086080.toshi@ruby.ocn.ne.jp> To: hselasky@c2i.net Subject: Re: isochronous transfer for UVC camera From: SAITOU Toshihide In-Reply-To: <201210301341.00350.hselasky@c2i.net> References: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> <20121030.202247.226801724.toshi@ruby.ocn.ne.jp> <201210301341.00350.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, 30 Oct 2012 13:31:46 -0000 In message: <201210301341.00350.hselasky@c2i.net> Hans Petter Selasky writes: > On Tuesday 30 October 2012 12:22:47 SAITOU Toshihide wrote: >> In message: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> >> >> SAITOU Toshihide writes: >> > In message: <201210291436.08940.hselasky@c2i.net> >> > >> > Hans Petter Selasky writes: >> >> On Monday 29 October 2012 13:54:34 SAITOU Toshihide wrote: >> >>> #define PKT_LEN 0x1400 >> >> >> >> The packet length is not this value I think. >> >> >> >> The 0x1000 is part of the packet multiplier for High-Speed USB's >> >> wMaxPacketSize. >> >> >> >> It is (1+2) * 0x400. Try that and see what happens. >> > >> > Thank you for your quick response. >> > >> > I can't use the FreeBSD now so I will try this tomorrow. But Mac OS X >> > 10.6.8 with libus 1.0.9, callback is not invoked too with some >> > combination of the value below: >> > > > Hi, > >> > #define PKT_LEN 0x400 >> > #define PKTS_PER_XFER 8 >> > > You can compare with output when running webcamd. Make sure webcamd is not > running when you start your application! > >> It dose not affect on the FreeBSD. > > PKT_LEN should be 0xC00 Yes, I tried this too because usbdump of the pwcview use this value. The webcamd is not running when I was logging my code. >> >> Also there is usbdump -i usbusX -f Y -s 65536 -vvv, which will show the >> >> actual traffic. >> >> ! This is very useful. >> >> $ usbdump -i usbus2 -f 4.0 -s 65536 -vvv (unit 4) > > To get both READ and WRITE control requests, you should do: > > usbdump -i usbus2 -f 4.0 -f 4.128 -s 65536 -vvv > >> $ usbdump -i usbus2 -f 4.130 -s 65536 -vvv (unit 4, endpoint 0x82) >> >> I have compared with other application (pwcview). >> >> There are a lot of VS_PROBE_CONTROL transfer than expected. But it may >> not be a problem because I have tried these transfer reproduced from >> dump data. The problem I noticed is that the libusb_claim_interface of >> my code is not logged. Is this function really implemented? > > The claim interface is almost like a NOP under FreeBSD. Is this true about these functions below? I compare with pwcview + webcamd using ``usbdump -i usbus2 -f 4 -s 65536 -vvv'' the noticeable difference is existence of the SET INTERFACE request. >> libusb_set_interface_alt_setting(handle, 1, 1); >> libusb_control_transfer(handle, 0x01, 0x0b, 0x0100, 0x0100, NULL, 0, >> TIMEOUT); Thank you. --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 13:45:12 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 CF13D570 for ; Tue, 30 Oct 2012 13:45:12 +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 562B58FC0A for ; Tue, 30 Oct 2012 13:45:11 +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 mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 337103630; Tue, 30 Oct 2012 14:45:03 +0100 From: Hans Petter Selasky To: SAITOU Toshihide Subject: Re: isochronous transfer for UVC camera Date: Tue, 30 Oct 2012 14:46:43 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <20121030.000648.193690728.toshi@ruby.ocn.ne.jp> <201210301341.00350.hselasky@c2i.net> <20121030.223138.71086080.toshi@ruby.ocn.ne.jp> In-Reply-To: <20121030.223138.71086080.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: <201210301446.43464.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, 30 Oct 2012 13:45:12 -0000 On Tuesday 30 October 2012 14:31:38 SAITOU Toshihide wrote: > Is this true about these functions below? Alternate setting is supported, though if the interface does not exist or has already the programmed alternate setting, it will simply do nothing. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 14:45:15 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A5FE87F; Tue, 30 Oct 2012 14:45:15 +0000 (UTC) (envelope-from n_hibma@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 CEEDB8FC08; Tue, 30 Oct 2012 14:45:14 +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 q9UEjEC2094419; Tue, 30 Oct 2012 14:45:14 GMT (envelope-from n_hibma@freefall.freebsd.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UEjDuc094410; Tue, 30 Oct 2012 14:45:13 GMT (envelope-from n_hibma) Date: Tue, 30 Oct 2012 14:45:13 GMT Message-Id: <201210301445.q9UEjDuc094410@freefall.freebsd.org> To: bdluevel@heitec.net, n_hibma@FreeBSD.org, freebsd-usb@FreeBSD.org From: n_hibma@FreeBSD.org Subject: Re: usb/74771: [umass] [hang] mounting write-protected umass device as read/write hangs device 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, 30 Oct 2012 14:45:15 -0000 Synopsis: [umass] [hang] mounting write-protected umass device as read/write hangs device State-Changed-From-To: feedback->closed State-Changed-By: n_hibma State-Changed-When: Tue Oct 30 14:44:15 UTC 2012 State-Changed-Why: Feedback timeout. As remko states, this is probably no longer relevant in the newer stack. Also, you can now do a usbconfig -d ugenX.Y reset to get your device unstuck. http://www.freebsd.org/cgi/query-pr.cgi?pr=74771 From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 14:47:00 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E9B788CF; Tue, 30 Oct 2012 14:47:00 +0000 (UTC) (envelope-from n_hibma@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 B62188FC08; Tue, 30 Oct 2012 14:47: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 q9UEl0un094582; Tue, 30 Oct 2012 14:47:00 GMT (envelope-from n_hibma@freefall.freebsd.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UEl0NH094578; Tue, 30 Oct 2012 14:47:00 GMT (envelope-from n_hibma) Date: Tue, 30 Oct 2012 14:47:00 GMT Message-Id: <201210301447.q9UEl0NH094578@freefall.freebsd.org> To: timlee@sonic.net, n_hibma@FreeBSD.org, freebsd-usb@FreeBSD.org From: n_hibma@FreeBSD.org Subject: Re: usb/76395: [uhci] USB printer does not work, usbdevs says "addr 0 should never happen!" 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, 30 Oct 2012 14:47:01 -0000 Synopsis: [uhci] USB printer does not work, usbdevs says "addr 0 should never happen!" State-Changed-From-To: feedback->closed State-Changed-By: n_hibma State-Changed-When: Tue Oct 30 14:46:19 UTC 2012 State-Changed-Why: The USB subsystem has been overhauled completly since then, and problems like this should no longer occur. If they do occur please open a new bug report. http://www.freebsd.org/cgi/query-pr.cgi?pr=76395 From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 14:48:31 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 85CD0AC3; Tue, 30 Oct 2012 14:48:31 +0000 (UTC) (envelope-from n_hibma@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 52C938FC15; Tue, 30 Oct 2012 14:48:31 +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 q9UEmVLe094744; Tue, 30 Oct 2012 14:48:31 GMT (envelope-from n_hibma@freefall.freebsd.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UEmUrD094740; Tue, 30 Oct 2012 14:48:30 GMT (envelope-from n_hibma) Date: Tue, 30 Oct 2012 14:48:30 GMT Message-Id: <201210301448.q9UEmUrD094740@freefall.freebsd.org> To: Jan.Stocker@t-online.de, n_hibma@FreeBSD.org, freebsd-usb@FreeBSD.org From: n_hibma@FreeBSD.org Subject: Re: usb/75705: [umass] [panic] da0 attach / Optio S4 (with backtrace) 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, 30 Oct 2012 14:48:31 -0000 Synopsis: [umass] [panic] da0 attach / Optio S4 (with backtrace) State-Changed-From-To: feedback-> closed State-Changed-By: n_hibma State-Changed-When: Tue Oct 30 14:47:39 UTC 2012 State-Changed-Why: Feedback timeout. The umass and CAM integration of umass has been seriously overhauled. If this problems remains on newer versions of FreeBSD, please open a new bug report. http://www.freebsd.org/cgi/query-pr.cgi?pr=75705 From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 14:51:15 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F194FB55; Tue, 30 Oct 2012 14:51:15 +0000 (UTC) (envelope-from n_hibma@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 B38618FC08; Tue, 30 Oct 2012 14:51:15 +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 q9UEpFtr094891; Tue, 30 Oct 2012 14:51:15 GMT (envelope-from n_hibma@freefall.freebsd.org) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UEpF7K094887; Tue, 30 Oct 2012 14:51:15 GMT (envelope-from n_hibma) Date: Tue, 30 Oct 2012 14:51:15 GMT Message-Id: <201210301451.q9UEpF7K094887@freefall.freebsd.org> To: steve@Watt.COM, n_hibma@FreeBSD.org, freebsd-usb@FreeBSD.org From: n_hibma@FreeBSD.org Subject: Re: usb/77294: [ucom] [panic] ucom + ulpcom panic 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, 30 Oct 2012 14:51:16 -0000 Synopsis: [ucom] [panic] ucom + ulpcom panic State-Changed-From-To: feedback->closed State-Changed-By: n_hibma State-Changed-When: Tue Oct 30 14:49:52 UTC 2012 State-Changed-Why: Submitter acknowledges that he does not care, and no longer has access to relevant hardware. I've not seen this kind of crash in the new USB stack. http://www.freebsd.org/cgi/query-pr.cgi?pr=77294 From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 14:51: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 73EA1B8F for ; Tue, 30 Oct 2012 14:51:59 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer115.ocn.ad.jp (defer115.ocn.ad.jp [125.206.148.13]) by mx1.freebsd.org (Postfix) with ESMTP id 3934A8FC15 for ; Tue, 30 Oct 2012 14:51:58 +0000 (UTC) Received: from msgw001-05.ocn.ad.jp (msgw001-05.ocn.ad.jp [180.37.203.74]) by defer115.ocn.ad.jp (Postfix) with ESMTP id 254554E0377 for ; Tue, 30 Oct 2012 23:19:26 +0900 (JST) Received: from localhost (p15069-ipngn100303sizuokaden.shizuoka.ocn.ne.jp [114.176.38.69]) by msgw001-05.ocn.ad.jp (Postfix) with ESMTP id B4E41A82C14; Tue, 30 Oct 2012 23:19:18 +0900 (JST) Date: Tue, 30 Oct 2012 23:19:17 +0900 (JST) Message-Id: <20121030.231917.104031274.toshi@ruby.ocn.ne.jp> To: hselasky@c2i.net Subject: Re: isochronous transfer for UVC camera From: SAITOU Toshihide In-Reply-To: <201210301446.43464.hselasky@c2i.net> References: <201210301341.00350.hselasky@c2i.net> <20121030.223138.71086080.toshi@ruby.ocn.ne.jp> <201210301446.43464.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, 30 Oct 2012 14:51:59 -0000 In message: <201210301446.43464.hselasky@c2i.net> Hans Petter Selasky writes: > On Tuesday 30 October 2012 14:31:38 SAITOU Toshihide wrote: >> Is this true about these functions below? > > Alternate setting is supported, though if the interface does not exist or has > already the programmed alternate setting, it will simply do nothing. I have no idea... I will build the kernel tomorrow to remove the ugen driver which is deactivated in the code though. Thank you for your quick response. --- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 15:10:01 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A46CA387 for ; Tue, 30 Oct 2012 15:10: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 8A3598FC0A for ; Tue, 30 Oct 2012 15:10: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 q9UFA13S096062 for ; Tue, 30 Oct 2012 15:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9UFA1ul096061; Tue, 30 Oct 2012 15:10:01 GMT (envelope-from gnats) Date: Tue, 30 Oct 2012 15:10:01 GMT Message-Id: <201210301510.q9UFA1ul096061@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Uffe Jakobsen Subject: Re: usb/172937: FreeBSD 9.1-RC2 usb3 port disconnects X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Uffe Jakobsen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 15:10:01 -0000 The following reply was made to PR usb/172937; it has been noted by GNATS. From: Uffe Jakobsen To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: usb/172937: FreeBSD 9.1-RC2 usb3 port disconnects Date: Tue, 30 Oct 2012 16:02:21 +0100 Hi, On 2012-10-24 10:04, Hans Petter Selasky wrote: > > Is your ALCOR HUB FULL speed? > Yes it is. > I know these HUBS have some problems, and you might want to try connecting > through another branded HUB. > I discovered that the BIOS was several releases away from the current - so I upgraded the BIOS - and I haven't seen the problem for some days now. I cannot really explain the connection between this problem and the BIOS but it is gone now - so I guess that we can close this case. Sorry for the noise. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 17:22:57 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 39560A3E for ; Tue, 30 Oct 2012 17:22:57 +0000 (UTC) (envelope-from noreply+2622890840@badoo.com) Received: from cluster2010.monopost.com (cluster2010.monopost.com [69.195.228.110]) by mx1.freebsd.org (Postfix) with ESMTP id EE4CF8FC0A for ; Tue, 30 Oct 2012 17:22:56 +0000 (UTC) Received: from scripts16.ulan (scripts16.ulan [10.20.55.17]) by cluster2010.monopost.com (Postfix) with SMTP id 4119BAB42D2 for ; Tue, 30 Oct 2012 17:17:18 +0000 (UTC) X-DomainKeys: Sendmail DomainKeys Filter v1.0.2 cluster2010.monopost.com 4119BAB42D2 DomainKey-Signature: a=rsa-sha1; s=m23uiy45; d=badoo.com; c=nofws; q=dns; b=dwTC4xKdiUQTQWWYiNdAa+hoLIe3zT8MTxc7M3amUto4kctZSxeZQHp/adn6GqhXU Db38TOqU/sRE6w18xTpTa9uVvH2GRs7hTVcj1cDOhTh5p9M7ilODlSvD0g2TAzai5KI mg3kXrAgU3FdeIZP8lY5+medCE8dFLKBSRqZnkw= X-DKIM: Sendmail DKIM Filter v2.7.2 cluster2010.monopost.com 4119BAB42D2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=badoo.com; s=m23uiy45; t=1351617438; bh=sDiyqRx4SoqIWMjNxD4Ske8oNX0bSf7SIIenq+ +ueDc=; h=Date:To:MIME-Version:List-Unsubscribe:Content-Type:From: Reply-to:Subject; b=vTSEGsx6O/a69+M0KvVJ43YB1OcsM3NWYvdBddR3B9m6yi zC0PQ5+wvf5Wo9DvVwM7tppm39lm9VQZdjBciwtuX/RNNo8BGDrOtnZ8MthdERCuOEK Rj64jWtKnryrXiN0j3XjGmZaZ4FTKxDPX9kfcEWjzjditn3TJQvjV0yFe4= Received: by scripts16.ulan (sSMTP sendmail emulation); Tue, 30 Oct 2012 17:17:18 +0000 Date: Tue, 30 Oct 2012 17:17:18 +0000 To: freebsd-usb@freebsd.org MIME-Version: 1.0 X-campaignid: badoo 003.63.1.301012171715 From: Badoo Subject: =?UTF-8?B?4piFIEtvbmF0YSBsZWZ0IGEgbWVzc2FnZSBmb3IgeW91?= Message-Id: <20121030172257.39560A3E@hub.freebsd.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: konatac@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 17:22:57 -0000 Konata left a message for you=0A=0AOnly you can see the sender and content = of your message, and you can delete it anytime. You can instantly reply usi= ng our message exchange system: http://us1.badoo.com/01221749376/in/audUhwMp8Cw/?lang_id=3D3&m=3D63&mid=3D5= 0900b9b000000000003000000a0789b0162d1bd0063 Some other people in the area who are on Badoo Joe (Ypsilanti, United States)=0AKwabanimkee (Detroit, United States)=0AFor= gotten (Lake City, United States)=0A http://us1.badoo.com/01221749376/in/audUhwMp8Cw/?lang_id=3D3&m=3D63&mid=3D5= 0900b9b000000000003000000a0789b0162d1bd0063 If the link in this message does not work, try copying and pasting it into = your browser. This email is part of our delivery procedure for the message sent by Konata= . If you have received this email by mistake, please ignore it. The message= will be deleted soon. Have fun! The Badoo Team =0AYou have received this email from Badoo Trading Limited (postal address = below). http://us1.badoo.com/impersonation.phtml?lang_id=3D3&email=3Dfreebsd-usb%40= freebsd.org&block_code=3D4b7484&m=3D63&mid=3D50900b9b000000000003000000a078= 9b0162d1bd0063 Badoo Trading Limited is a limited company registered in England and Wales under CRN 7540255 with its registered office at 44a The Green, Warlingham, = Surrey, CR6 9NA. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 30 19:39: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 64CCCFBC for ; Tue, 30 Oct 2012 19:39:32 +0000 (UTC) (envelope-from 538c.21f827aa@vmail17.mynewsletterbuilder.com) Received: from vmail17.mynewsletterbuilder.com (vmail17.mynewsletterbuilder.com [208.83.141.24]) by mx1.freebsd.org (Postfix) with ESMTP id 080598FC21 for ; Tue, 30 Oct 2012 19:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=mynewsletterbuilder.com; s=dknewsletter; t=1351625966; bh=ZNyAHJn9WCPjI4U1fJpcx6LNWdU=; h=Date:From:Reply-To:To:Subject:Message-ID:List-Unsubscribe: Content-Type:MIME-Version; b=HztV8o14ZcbCvrVp2uOzQ1OmXy3HOZpIRcheQhqllrEDSgt348AFq4fxO861Z+kPj kaUVMI2H4TNvwuKgVPGpv/0g3elG6E4q/6VVSFctl1RWDWUyD9J3/ONAAdBqvPjs35 aOlzFF3Q1g7N1OCa2cVUNOq6SBQhiC0/Leo2uq2s= Date: Tue, 30 Oct 2012 15:39:26 -0400 From: "Dave George" To: Subject: Halloween Weekend Sale Get 15% Off this Weekend Message-ID: <538c.21f827aa.35c2e1e7@vmail17.mynewsletterbuilder.com> X-MNB-TRACKING: YmVhdHNmb3JyYXBwZXJzIDogZnJlZWJzZC11c2JAZnJlZWJzZC5vcmcgOiA4MTMwNTg2NTU0 X-MNB-SENDID: 8130586554 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Dave George List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 19:39:32 -0000 Halloween Sale - GET 15% OFF USE COUPON CODE "HALL"=C2=A0Brand New | You Asked for it You Got it ! | 100= % Targetted Followers =C2=A0FaceBook Likes | YouTube Views | Twitter Followers : http://promogoons.com/?product=3Dnew-100-targeted-followers 100% Targeted= Followers : http://promogoons.com/?product=3Dnew-100-targeted-followers Ge= t 100% Laser-Targeted Followers . Packages from 1000 to 4000 targeted Follo= wers per month , read more... : http://promogoons.com/?product=3Dnew-100-ta= rgeted-followers : http://promogoons.com/?product=3Dtwitter 10,000 Followe= rs $20 : http://promogoons.com/?product=3Dtwitter Get 10,000 Untargeted Fol= lowers for just $50 . We can help you jumpstart your twitter account , read= more ... : http://promogoons.com/?product=3Dtwitter : http://promogoons.com/?product=3Dyoutube Real Youtube Views : http://prom= ogoons.com/?product=3Dyoutube Need Youtube Views to catch that A&R's eye ? = We have 100% Real Views and are Partner Safe, =C2=A0=C2=A0read more... : ht= tp://promogoons.com/?product=3Dyoutube : http://promogoons.com/?product=3D= facebook FaceBook Likes : http://promogoons.com/?product=3Dfacebook Lets fa= ce it , who doesnt need more facebook likes ? We have what you need , read more ... : http://promogoons.com/?product=3Dfacebook : http://promogoons.com/?product=3Dsoundcloud SoundCloud Plays : http://pro= mogoons.com/?product=3Dsoundcloud Fast , Economical and Fun, Let Us Help yo= u get more Soundcloud plays , read more... : http://promogoons.com/?product= =3Dsoundcloud : http://promogoons.com/?product=3Ddatpiff-plays DatPiff Str= eams : http://promogoons.com/?product=3Ddatpiff-plays Got A Hot Mixtape on = DatPiff ? ? Cant Seem to cut through the wack tapes on the front page ? rea= d more... : http://promogoons.com/?product=3Ddatpiff-plays REPEAT CLIENTS GET 15% OFF |=C2=A0USE COUPON CODE "HALL" ON CHECKOUT Promogoons.com : http://promogoons.com | The Major Label's Dirty Little Se= cret Dave George - 678 508 2941 - sales@promogoons.com : mailto:sales@promogoons= .com=20 Skype | Yahoo | AIM : Promogoons United Promotions - po box 1526 - atlanta - GA - 30316 Subscribe to this newsletter: https://www.mynewsletterbuilder.com/tools/subscription.php?username=3Dbeats= forrappers&send_id=3D8130586554&l=3Ds&newsletter_id=3D1411516624 Unsubscribe freebsd-usb@freebsd.org: https://www.mynewsletterbuilder.com/tools/subscription.php?username=3Dbeats= forrappers&send_id=3D8130586554&l=3Du&email=3Dfreebsd-usb@freebsd.org Change your preferences: https://www.mynewsletterbuilder.com/tools/subscription.php?username=3Dbeats= forrappers&send_id=3D8130586554&l=3Dp&email=3Dfreebsd-usb@freebsd.org Forward to a friend: https://www.mynewsletterbuilder.com/tools/forward.php?username=3Dbeatsforra= ppers&newsletter_id=3D1411516624&send_id=3D8130586554 Report this email as spam: https://www.mynewsletterbuilder.com/tools/abuse_report.php?username=3Dbeats= forrappers&send_id=3D8130586554&email=3Dfreebsd-usb@freebsd.org This email was sent using MyNewsletterBuilder.com. From owner-freebsd-usb@FreeBSD.ORG Wed Oct 31 18:36:51 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84E408B5; Wed, 31 Oct 2012 18:36:51 +0000 (UTC) (envelope-from crees@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 51ECD8FC08; Wed, 31 Oct 2012 18:36:51 +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 q9VIap6s053985; Wed, 31 Oct 2012 18:36:51 GMT (envelope-from crees@freefall.freebsd.org) Received: (from crees@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9VIap4V053981; Wed, 31 Oct 2012 18:36:51 GMT (envelope-from crees) Date: Wed, 31 Oct 2012 18:36:51 GMT Message-Id: <201210311836.q9VIap4V053981@freefall.freebsd.org> To: crees@FreeBSD.org, freebsd-rc@FreeBSD.org, freebsd-usb@FreeBSD.org From: crees@FreeBSD.org Subject: Re: conf/120406: [devd] [patch] Handle newly attached pcm devices (eg. via uaudio) 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, 31 Oct 2012 18:36:51 -0000 Synopsis: [devd] [patch] Handle newly attached pcm devices (eg. via uaudio) Responsible-Changed-From-To: freebsd-rc->freebsd-usb Responsible-Changed-By: crees Responsible-Changed-When: Wed Oct 31 18:35:43 UTC 2012 Responsible-Changed-Why: I definitely think that rc is the wrong place for this. It's a good idea, but it needs integrating into devd; I don't see that is will ever need executing on boot. http://www.freebsd.org/cgi/query-pr.cgi?pr=120406 From owner-freebsd-usb@FreeBSD.ORG Thu Nov 1 11:40: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 57DA8FA7 for ; Thu, 1 Nov 2012 11:40:43 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from defer115.ocn.ad.jp (defer115.ocn.ad.jp [125.206.148.13]) by mx1.freebsd.org (Postfix) with ESMTP id 06E288FC08 for ; Thu, 1 Nov 2012 11:40:42 +0000 (UTC) Received: from msgw001-04.ocn.ad.jp (msgw001-04.ocn.ad.jp [180.37.203.73]) by defer115.ocn.ad.jp (Postfix) with ESMTP id C48AE4C900A for ; Thu, 1 Nov 2012 20:39:05 +0900 (JST) Received: from localhost (p15135-ipngn100303sizuokaden.shizuoka.ocn.ne.jp [114.176.38.135]) by msgw001-04.ocn.ad.jp (Postfix) with ESMTP id 5535A833E6E; Thu, 1 Nov 2012 20:38:58 +0900 (JST) Date: Thu, 01 Nov 2012 20:38:59 +0900 (JST) Message-Id: <20121101.203859.193678837.toshi@ruby.ocn.ne.jp> To: freebsd-usb@freebsd.org Subject: Re: isochronous transfer for UVC camera From: SAITOU Toshihide In-Reply-To: <20121030.231917.104031274.toshi@ruby.ocn.ne.jp> References: <20121030.223138.71086080.toshi@ruby.ocn.ne.jp> <201210301446.43464.hselasky@c2i.net> <20121030.231917.104031274.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, 01 Nov 2012 11:40:43 -0000 In message: <20121030.231917.104031274.toshi@ruby.ocn.ne.jp> SAITOU Toshihide writes: > In message: <201210301446.43464.hselasky@c2i.net> > Hans Petter Selasky writes: >> On Tuesday 30 October 2012 14:31:38 SAITOU Toshihide wrote: >>> Is this true about these functions below? >> >> Alternate setting is supported, though if the interface does not exist or has >> already the programmed alternate setting, it will simply do nothing. > > I have no idea... > > I will build the kernel tomorrow to remove the ugen driver which is > deactivated in the code though. Ugen is not separable and not related. Now I have got the data from UVC cam, \(^-^)/ not yet examine though. Thank you HPS for your useful information. #include #include #include #define VID 0x0458 #define PID 0x7081 #define ConfVal 1 // Configuration Value #define IfNum 1 // Interface Number #define AltIfNum 1 // Alternate Interface Number #define PKT_LEN 0xc00 #define PKTS_PER_XFER 0x80 #define TIMEOUT 10 // 10 ms static void cb(struct libusb_transfer *xfer) { printf("\nReceived.\n"); // xfer->buffer libusb_submit_transfer(xfer); // repeat } int main( int argc, char **argv) { libusb_context *ctx = NULL; libusb_device *dev = NULL; libusb_device_handle *handle; struct libusb_config_descriptor *confDesc; int numInterfaces; uint8_t buf[64]; int i; // get cam device libusb_init(&ctx); handle = libusb_open_device_with_vid_pid(ctx, VID, PID); dev = libusb_get_device(handle); // if kernel driver is active, detach a kernel driver. libusb_get_config_descriptor(dev, ConfVal, &confDesc); numInterfaces = (int)confDesc->bNumInterfaces; for (i=0; i Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 128DBDBD; Fri, 2 Nov 2012 13:42:37 +0000 (UTC) (envelope-from eadler@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 D55518FC14; Fri, 2 Nov 2012 13:42:36 +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 qA2DgaNg023049; Fri, 2 Nov 2012 13:42:36 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA2DgaXj023045; Fri, 2 Nov 2012 13:42:36 GMT (envelope-from eadler) Date: Fri, 2 Nov 2012 13:42:36 GMT Message-Id: <201211021342.qA2DgaXj023045@freefall.freebsd.org> To: walter@pelissero.de, eadler@FreeBSD.org, freebsd-usb@FreeBSD.org From: eadler@FreeBSD.org Subject: Re: bin/57255: [patch] usbd(8) and multi-function devices 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, 02 Nov 2012 13:42:37 -0000 Synopsis: [patch] usbd(8) and multi-function devices State-Changed-From-To: suspended->closed State-Changed-By: eadler State-Changed-When: Fri Nov 2 13:42:36 UTC 2012 State-Changed-Why: usbd.c seems to be non-existent now http://www.freebsd.org/cgi/query-pr.cgi?pr=57255 From owner-freebsd-usb@FreeBSD.ORG Fri Nov 2 17:46:56 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BAFE9ED; Fri, 2 Nov 2012 17:46:56 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id EB1688FC16; Fri, 2 Nov 2012 17:46:55 +0000 (UTC) Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 02 Nov 2012 13:46:49 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr17.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BTO77673; Fri, 2 Nov 2012 13:46:49 -0400 X-Auth-ID: anat Received: from pool-173-70-22-223.nwrknj.fios.verizon.net (HELO [192.168.1.8]) ([173.70.22.223]) by smtp01.lnh.mail.rcn.net with ESMTP; 02 Nov 2012 13:46:50 -0400 Message-ID: <50940707.6080100@aldan.algebra.com> Date: Fri, 02 Nov 2012 13:46:47 -0400 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120820 Thunderbird/14.0 MIME-Version: 1.0 To: usb@FreeBSD.org, Ion-Mihai Tetcu Subject: APC's "Back-UPS" devices not recognized as uhid -- only as ugen Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 02 Nov 2012 17:46:56 -0000 The sysutiles/apcupsd/files/pkg-message.in advises one to enable uhid(4) in kernel for the UPS-units to be recognized by the software: NOTE that for USB cable you must comment out the line device uhid # "Human Interface Devices" in your kernel configuration file and recompile the kernel. Your keyboard and mouse will still work. Unfortunately, the uhid(4) driver does not attach to either of the two "Back-UPS" devices I have -- both are seen only as ugen and apctest does not want to work with that. For example, when the current unit is connected as: ugen4.9: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON the software reports: root@narawntapu:/home/mi (118) apctest -d 1000 2012-11-02 13:39:50 apctest 3.14.10 (13 September 2011) freebsd Checking configuration ... 0.000 apcupsd: apcconfig.c:799 After config scriptdir: "/opt/etc/apcupsd" 0.000 apcupsd: apcconfig.c:800 After config pwrfailpath: "/var/run" 0.000 apcupsd: apcconfig.c:801 After config nologinpath: "/var/run" 0.000 apcupsd: newups.c:102 write_lock at drivers.c:208 0.000 apcupsd: drivers.c:210 Looking for driver: usb 0.000 apcupsd: drivers.c:214 Driver dumb is configured. 0.000 apcupsd: drivers.c:214 Driver apcsmart is configured. 0.000 apcupsd: drivers.c:214 Driver net is configured. 0.000 apcupsd: drivers.c:214 Driver usb is configured. 0.000 apcupsd: drivers.c:217 Driver usb found and attached. 0.000 apcupsd: newups.c:108 write_unlock at drivers.c:234 0.000 apcupsd: drivers.c:236 Driver ptr=0x4231c0 Attached to driver: usb sharenet.type = Network & ShareUPS Disabled cable.type = USB Cable mode.type = USB UPS Driver Setting up the port ... 0.000 apcupsd: newups.c:102 write_lock at generic-usb.c:655 0.000 apcupsd: generic-usb.c:425 Initializing libusb 0.000 apcupsd: generic-usb.c:430 Found 1 USB busses 0.001 apcupsd: generic-usb.c:432 Found 13 USB devices *0.001 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.9 - 051d:0002 0.001 apcupsd: generic-usb.c:446 Trying device /dev/usb:/dev/ugen4.9 0.002 apcupsd: hidutils.c:255 Got string of length=14: 3B1217X28266 0.002 apcupsd: generic-usb.c:358 device='3B1217X28266', user='auto'* 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.8 - 04b4:6560 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.7 - 0409:005a 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.6 - 0409:005a 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.5 - 0461:4d03 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.4 - 0409:005a 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.3 - 413c:2003 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.2 - 0409:005a 0.002 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen4.1 - 0000:0000 0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen3.1 - 0000:0000 0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen2.1 - 0000:0000 0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen1.1 - 0000:0000 0.005 apcupsd: generic-usb.c:443 /dev/usb:/dev/ugen0.1 - 0000:0000 0.005 apcupsd: newups.c:108 write_unlock at generic-usb.c:671 *apctest FATAL ERROR in generic-usb.c at line 674 Cannot find UPS device --* For a link to detailed USB trouble shooting information, please see . 0.005 apcupsd: newups.c:102 write_lock at generic-usb.c:694 0.005 apcupsd: newups.c:108 write_unlock at generic-usb.c:701 apctest error termination completed Working off of the neighbor's generator after Sandy, I've developed a whole new appreciation for UPS devices and would like for my system to be able to interact with one directly and automatically... Please, advise. Thanks! -mi From owner-freebsd-usb@FreeBSD.ORG Fri Nov 2 18:11:02 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5C71A4B9; Fri, 2 Nov 2012 18:11:02 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 056C18FC08; Fri, 2 Nov 2012 18:11:01 +0000 (UTC) Received: from [192.168.43.26] (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.14.5/8.14.5) with ESMTP id qA2IAto8090225; Fri, 2 Nov 2012 14:10:55 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <50940CA7.8010704@sentex.net> Date: Fri, 02 Nov 2012 14:10:47 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: "Mikhail T." Subject: Re: APC's "Back-UPS" devices not recognized as uhid -- only as ugen References: <50940707.6080100@aldan.algebra.com> In-Reply-To: <50940707.6080100@aldan.algebra.com> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.72 on 64.7.153.18 Cc: usb@freebsd.org, Ion-Mihai Tetcu 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, 02 Nov 2012 18:11:02 -0000 On 11/2/2012 1:46 PM, Mikhail T. wrote: > The sysutiles/apcupsd/files/pkg-message.in advises one to enable uhid(4) > in kernel for the UPS-units to be recognized by the software: > > NOTE that for USB cable you must comment out the line > > device uhid # "Human Interface Devices" Actually, the pkg-message is out of date. Ugen is what you want. The latest port works well with single and multiple UPSes on the bus. > > Working off of the neighbor's generator after Sandy, I've developed a > whole new appreciation for UPS devices and would like for my system to > be able to interact with one directly and automatically... > > Please, advise. Thanks! For a simple UPS config, the following below works well. (Basically leave DEVICE with nothing after it) ## apcupsd.conf v1.1 ## UPSNAME SINGLE UPSCABLE usb UPSTYPE usb DEVICE LOCKFILE /var/spool/lock ONBATTERYDELAY 7 BATTERYLEVEL 40 MINUTES -1 TIMEOUT 0 ANNOY 10 ANNOYDELAY 10 NOLOGON disable KILLDELAY 2 NETSERVER on NISIP 127.0.0.1 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 100 UPSCLASS standalone UPSMODE disable STATTIME 600 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 600 FACILITY local2 UPSNAME RAPIDS SENSITIVITY H WAKEUP 010 SLEEP 000 RETURNCHARGE 00 BEEPSTATE T SELFTEST 336 For multiple batteries to monitor use the serial # which you can get from usbconfig dump_device_desc # usbconfig | grep RS ugen0.3: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen0.5: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON 0(backup3)# usbconfig -d 0.5 dump_device_desc ugen0.5: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x051d idProduct = 0x0002 bcdDevice = 0x0106 iManufacturer = 0x0003 iProduct = 0x0001 iSerialNumber = 0x0002 <8B0736R21784 > bNumConfigurations = 0x0001 0(backup3)# eg. if I have 3 UPSes connected, with the serial #s 8B0736R21784 and JB0524026679 and 8B0736R21792 Create 3 separate copies of the apcupsd, and in each of the unique config files, put the serial # in for the device, and then increase the NIS port by one so the daemons dont clash as well as appropriate paths in the conf file. -NISPORT 3551 +NISPORT 3552 root 45875 0.0 0.0 13176 1456 ?? Is 23Oct12 0:37.59 apcupsd -f /usr/local/etc/apcupsd.a/apcupsd.conf root 45877 0.0 0.0 12792 1136 ?? Is 23Oct12 0:58.62 apcupsd -f /usr/local/etc/apcupsd.b/apcupsd.conf root 45880 0.0 0.0 12792 1280 ?? Is 23Oct12 1:32.63 apcupsd -f /usr/local/etc/apcupsd.c/apcupsd.conf You can then poll each device 1(backup3)# apcaccess status localhost:3551 APC : 001,037,0967 DATE : 2012-11-02 14:06:51 -0400 HOSTNAME : backup3.sentex.ca VERSION : 3.14.10 (13 September 2011) freebsd UPSNAME : RAPIDS CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2012-10-23 16:28:05 -0400 MODEL : Back-UPS RS 1500 STATUS : ONLINE LINEV : 115.0 Volts LOADPCT : 39.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 81.5 Minutes MBATTCHG : 10 Percent MINTIMEL : -1 Minutes MAXTIME : 0 Seconds SENSE : Medium LOTRANS : 097.0 Volts HITRANS : 132.0 Volts ALARMDEL : 30 seconds BATTV : 26.9 Volts LASTXFER : Low line voltage NUMXFERS : 2 XONBATT : 2012-11-02 11:14:55 -0400 TONBATT : 0 seconds CUMONBATT: 15 seconds XOFFBATT : 2012-11-02 11:14:59 -0400 SELFTEST : NO STATFLAG : 0x07000008 Status Flag SERIALNO : 8B0736R21784 BATTDATE : 2007-09-07 NOMINV : 120 Volts NOMBATTV : 24.0 Volts NOMPOWER : 865 Watts FIRMWARE : 8.g9a.D USB FW:g9a END APC : 2012-11-02 14:07:29 -0400 0(backup3)# apcaccess status localhost:3552 APC : 001,037,0964 DATE : 2012-11-02 14:06:58 -0400 HOSTNAME : backup3.sentex.ca VERSION : 3.14.10 (13 September 2011) freebsd UPSNAME : RAPIDSB CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2012-10-23 16:28:08 -0400 MODEL : Back-UPS RS 1500 STATUS : ONLINE LINEV : 114.0 Volts LOADPCT : 33.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 25.8 Minutes MBATTCHG : 10 Percent MINTIMEL : -1 Minutes MAXTIME : 0 Seconds SENSE : High LOTRANS : 097.0 Volts HITRANS : 132.0 Volts ALARMDEL : No alarm BATTV : 26.8 Volts LASTXFER : Low line voltage NUMXFERS : 2 XONBATT : 2012-11-02 11:14:56 -0400 TONBATT : 0 seconds CUMONBATT: 16 seconds XOFFBATT : 2012-11-02 11:15:00 -0400 SELFTEST : NO STATFLAG : 0x07000008 Status Flag SERIALNO : JB0524026679 BATTDATE : 2012-03-10 NOMINV : 120 Volts NOMBATTV : 24.0 Volts NOMPOWER : 865 Watts FIRMWARE : 8.g9 .D USB FW:g9 END APC : 2012-11-02 14:07:31 -0400 0(backup3)# apcaccess status localhost:3553 APC : 001,037,0966 DATE : 2012-11-02 14:07:28 -0400 HOSTNAME : backup3.sentex.ca VERSION : 3.14.10 (13 September 2011) freebsd UPSNAME : RAPIDS CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2012-10-23 16:28:10 -0400 MODEL : Back-UPS RS 1500 STATUS : ONLINE LINEV : 115.0 Volts LOADPCT : 54.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 12.2 Minutes MBATTCHG : 10 Percent MINTIMEL : -1 Minutes MAXTIME : 0 Seconds SENSE : Medium LOTRANS : 097.0 Volts HITRANS : 132.0 Volts ALARMDEL : 30 seconds BATTV : 26.9 Volts LASTXFER : Low line voltage NUMXFERS : 2 XONBATT : 2012-11-02 11:14:56 -0400 TONBATT : 0 seconds CUMONBATT: 8 seconds XOFFBATT : 2012-11-02 11:14:58 -0400 SELFTEST : NO STATFLAG : 0x07000008 Status Flag SERIALNO : 8B0736R21792 BATTDATE : 2007-09-07 NOMINV : 120 Volts NOMBATTV : 24.0 Volts NOMPOWER : 865 Watts FIRMWARE : 8.g9a.D USB FW:g9a END APC : 2012-11-02 14:07:32 -0400 0(backup3)# ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-usb@FreeBSD.ORG Sat Nov 3 21:42:52 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78942763 for ; Sat, 3 Nov 2012 21:42:52 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4304A8FC08 for ; Sat, 3 Nov 2012 21:42:52 +0000 (UTC) Received: from marcelm-sslvpn-nc.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id qA3LgcuT039539 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 3 Nov 2012 14:42:40 -0700 (PDT) (envelope-from marcel@xcllnt.net) From: Marcel Moolenaar Content-Type: multipart/mixed; boundary="Apple-Mail=_B5CB6594-D133-408F-BCB1-EEA46C992522" Subject: RFC: new USB quirk Date: Sat, 3 Nov 2012 14:42:33 -0700 Message-Id: <5D9BFA84-4B90-4769-BE02-F771C3AE5441@xcllnt.net> To: Hans Petter Selasky Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) Cc: 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: Sat, 03 Nov 2012 21:42:52 -0000 --Apple-Mail=_B5CB6594-D133-408F-BCB1-EEA46C992522 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Hans, Juniper has a few products that use STmicro USB-NAND controllers (the ST72682 in particular) and they really don't like the SCSI command for prevent/allow medium removal. The attached patch adds a quirk for this to avoid spamming the console with errors or warnings. Does it look good to you? Ok to commit? Thanks, -- Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_B5CB6594-D133-408F-BCB1-EEA46C992522 Content-Disposition: attachment; filename=usb.diff Content-Type: application/octet-stream; name="usb.diff" Content-Transfer-Encoding: 7bit Index: quirk/usb_quirk.c =================================================================== --- quirk/usb_quirk.c (revision 242525) +++ quirk/usb_quirk.c (working copy) @@ -390,6 +390,7 @@ UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(SONY, PORTABLE_HDD_V2, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI), + USB_QUIRK(STMICRO, ST72682, 0x0000, 0xffff, UQ_MSC_NO_PREVENT_ALLOW), USB_QUIRK(SUPERTOP, IDE, 0x0000, 0xffff, UQ_MSC_IGNORE_RESIDUE, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(SUPERTOP, FLASHDRIVE, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY, Index: quirk/usb_quirk.h =================================================================== --- quirk/usb_quirk.h (revision 242525) +++ quirk/usb_quirk.h (working copy) @@ -75,6 +75,7 @@ UQ_MSC_NO_GETMAXLUN, /* does not support get max LUN */ UQ_MSC_NO_INQUIRY, /* fake generic inq response */ UQ_MSC_NO_INQUIRY_EVPD, /* does not support inq EVPD */ + UQ_MSC_NO_PREVENT_ALLOW, /* does not support medium removal */ UQ_MSC_NO_SYNC_CACHE, /* does not support sync cache */ UQ_MSC_SHUTTLE_INIT, /* requires Shuttle init sequence */ UQ_MSC_ALT_IFACE_1, /* switch to alternate interface 1 */ Index: storage/umass.c =================================================================== --- storage/umass.c (revision 242525) +++ storage/umass.c (working copy) @@ -361,6 +361,8 @@ * result. */ #define NO_SYNCHRONIZE_CACHE 0x4000 + /* Device does not support 'PREVENT/ALLOW MEDIUM REMOVAL'. */ +#define NO_PREVENT_ALLOW 0x8000 struct umass_softc { @@ -831,6 +833,8 @@ quirks |= NO_INQUIRY; if (usb_test_quirk(uaa, UQ_MSC_NO_INQUIRY_EVPD)) quirks |= NO_INQUIRY_EVPD; + if (usb_test_quirk(uaa, UQ_MSC_NO_PREVENT_ALLOW)) + quirks |= NO_PREVENT_ALLOW; if (usb_test_quirk(uaa, UQ_MSC_NO_SYNC_CACHE)) quirks |= NO_SYNCHRONIZE_CACHE; if (usb_test_quirk(uaa, UQ_MSC_SHUTTLE_INIT)) @@ -2245,6 +2249,13 @@ if (sc->sc_quirks & FORCE_SHORT_INQUIRY) { ccb->csio.dxfer_len = SHORT_INQUIRY_LENGTH; } + } else if (sc->sc_transfer.cmd_data[0] == PREVENT_ALLOW) { + if (sc->sc_quirks & NO_PREVENT_ALLOW) { + ccb->csio.scsi_status = SCSI_STATUS_OK; + ccb->ccb_h.status = CAM_REQ_CMP; + xpt_done(ccb); + goto done; + } } else if (sc->sc_transfer.cmd_data[0] == SYNCHRONIZE_CACHE) { if (sc->sc_quirks & NO_SYNCHRONIZE_CACHE) { ccb->csio.scsi_status = SCSI_STATUS_OK; Index: usbdevs =================================================================== --- usbdevs (revision 242525) +++ usbdevs (working copy) @@ -3949,6 +3949,7 @@ /* STMicroelectronics products */ product STMICRO BIOCPU 0x2016 Biometric Coprocessor product STMICRO COMMUNICATOR 0x7554 USB Communicator +product STMICRO ST72682 0xfada USB 2.0 Flash drive controller /* STSN products */ product STSN STSN0001 0x0001 Internet Access Device --Apple-Mail=_B5CB6594-D133-408F-BCB1-EEA46C992522-- From owner-freebsd-usb@FreeBSD.ORG Sat Nov 3 23:10:01 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66FCA756 for ; Sat, 3 Nov 2012 23:10: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 4B2638FC0C for ; Sat, 3 Nov 2012 23:10: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 qA3NA1ur017829 for ; Sat, 3 Nov 2012 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qA3NA1dP017828; Sat, 3 Nov 2012 23:10:01 GMT (envelope-from gnats) Date: Sat, 3 Nov 2012 23:10:01 GMT Message-Id: <201211032310.qA3NA1dP017828@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Patrick Lamaiziere Subject: Re: conf/120406: [devd] [patch] Handle newly attached pcm devices (eg. via uaudio) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Patrick Lamaiziere List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 23:10:01 -0000 The following reply was made to PR conf/120406; it has been noted by GNATS. From: Patrick Lamaiziere To: bug-followup@FreeBSD.org, aragon@phat.za.net Cc: Subject: Re: conf/120406: [devd] [patch] Handle newly attached pcm devices (eg. via uaudio) Date: Sun, 4 Nov 2012 00:07:04 +0100 Hello, In my opinion this kind of behavior should be handle by the user, using hand made devd entry, unless there is a benefit for most of users. For example I use a guitar effects processor which is seen as uaudio(4) device. When I plug in, I really don't want it to auto-magically change the default sound unit (I use it on input). (my 2 cents) Regards.