From owner-freebsd-usb@FreeBSD.ORG Sun Aug 22 16:08:35 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 463A71065693 for ; Sun, 22 Aug 2010 16:08:35 +0000 (UTC) (envelope-from thebeelzebubtrigger@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id EC3AA8FC0C for ; Sun, 22 Aug 2010 16:08:34 +0000 (UTC) Received: by qyk4 with SMTP id 4so5239832qyk.13 for ; Sun, 22 Aug 2010 09:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=bVIjUncxir237sCctSvFzVW9CO3WaDekTNUgnNjffI8=; b=iSzd52J1ksmUS5jpJkD1w68TdMPW8r1/Vu4SioSOlX451A/y85maIimIWQqc7WT+b5 IpxrqkfF53ho5BG95a7rvoY0Osbjwh0JD/q1AdNDQNi6I00agj829bXpH3w8xg/4I6jQ U1S5a+OhYP9Gd4ye2FXSt136ujbkvr+EEeUzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=B+T9z+YV+cuf8gMn2UfQjOP6sTeg5KBj8bljqglfX0ZXIK/CfZ1Imo5VqymE7TCSNj pr8P8NjClYGnH9547L9eWYjr2IOaPf9mvGwtSpi53u15yN+v3pwrgEebhW7vLwXje4Xr FDavzwyFJHhQRlHTU7PBjQutD7WX810s7UOEE= Received: by 10.224.115.16 with SMTP id g16mr2586072qaq.313.1282493314093; Sun, 22 Aug 2010 09:08:34 -0700 (PDT) Received: from 211.sub-69-96-235.myvzw.com (211.sub-69-96-235.myvzw.com [69.96.235.211]) by mx.google.com with ESMTPS id t24sm5883284qcs.35.2010.08.22.09.08.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Aug 2010 09:08:33 -0700 (PDT) Date: Sun, 22 Aug 2010 12:08:27 -0400 From: Indi To: "Julian H. Stacey" Message-ID: <20100822160827.GA928@211.sub-69-96-235.myvzw.com> References: <201008211756.26486.hselasky@c2i.net> <201008211635.o7LGZan3008193@fire.js.berklix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201008211635.o7LGZan3008193@fire.js.berklix.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-usb@freebsd.org Subject: Re: USB HDD needs replugging? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 16:08:35 -0000 Well, I've given up on this one. It isn't as if I *have* to use this drive, and after spending so much time searching and experimenting and getting nowhere it seems a far more effective use of my resources to just take the time to format another external HDD which is known to work and dd my data to it. I'll just reserve the Seagate portable for use with other systems, and in the future will be more careful when making these decisions. Thanks to everyone who took the time to try to help. -- caveat utilitor, Indi From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 05:30:07 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E18C1065679 for ; Mon, 23 Aug 2010 05:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5E68FC14 for ; Mon, 23 Aug 2010 05:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7N5U6TO024669 for ; Mon, 23 Aug 2010 05:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7N5U6L4024668; Mon, 23 Aug 2010 05:30:06 GMT (envelope-from gnats) Resent-Date: Mon, 23 Aug 2010 05:30:06 GMT Resent-Message-Id: <201008230530.o7N5U6L4024668@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, John Wehle Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 211401065672 for ; Mon, 23 Aug 2010 05:21:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id B3D488FC19 for ; Mon, 23 Aug 2010 05:21:51 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7N5Lpbg095508 for ; Mon, 23 Aug 2010 05:21:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7N5Lpsp095506; Mon, 23 Aug 2010 05:21:51 GMT (envelope-from nobody) Message-Id: <201008230521.o7N5Lpsp095506@www.freebsd.org> Date: Mon, 23 Aug 2010 05:21:51 GMT From: John Wehle To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/149900: FreeBSD 8.1 uftdi patch to support usb-uirt X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 05:30:07 -0000 >Number: 149900 >Category: usb >Synopsis: FreeBSD 8.1 uftdi patch to support usb-uirt >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 Aug 23 05:30:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: John Wehle >Release: 8.1 >Organization: >Environment: FreeBSD wagner 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Wed Aug 18 13:46:05 EDT 2010 root@wagner:/usr/obj/usr/src/sys/CUSTOM i386 >Description: The enclosed lightly tested patch allows uftdi to recognize the usb-uirt which is an universal infrared receiver transmitter (more information is at: http://www.usbuirt.com ). lirc expects it to show up as a com port. I modified a version of lirc so it would build on FreeBSD to verify that I could talk to the usb-uirt once the patch was applied. >How-To-Repeat: Attach a usb-uirt and notice that it doesn't register with uftdi. >Fix: Apply attached patch. Patch attached with submission follows: *** dev/usb/usbdevs.ORIGINAL Sun Jun 13 22:09:06 2010 --- dev/usb/usbdevs Sun Aug 22 01:04:33 2010 *************** product FTDI EMCU2D 0xe88a Expert mouse *** 1520,1525 **** --- 1520,1526 ---- product FTDI PCMSFU 0xe88b Precision Clock MSF USB product FTDI EMCU2H 0xe88c Expert mouseCLOCK USB II HBG product FTDI MAXSTREAM 0xee18 Maxstream PKG-U + product FTDI USB_UIRT 0xf850 USB-UIRT product FTDI USBSERIAL 0xfa00 Matrix Orbital USB Serial product FTDI MX2_3 0xfa01 Matrix Orbital MX2 or MX3 product FTDI MX4_5 0xfa02 Matrix Orbital MX4 or MX5 *** dev/usb/serial/uftdi.c.ORIGINAL Sun Jun 13 22:09:06 2010 --- dev/usb/serial/uftdi.c Sun Aug 22 04:12:00 2010 *************** static struct usb_device_id uftdi_devs[] *** 232,237 **** --- 232,238 ---- UFTDI_DEV(FTDI, CFA_633, 8U232AM), UFTDI_DEV(FTDI, CFA_634, 8U232AM), UFTDI_DEV(FTDI, CFA_635, 8U232AM), + UFTDI_DEV(FTDI, USB_UIRT, 8U232AM), UFTDI_DEV(FTDI, USBSERIAL, 8U232AM), UFTDI_DEV(FTDI, MX2_3, 8U232AM), UFTDI_DEV(FTDI, MX4_5, 8U232AM), >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 11:07:10 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91000106566C for ; Mon, 23 Aug 2010 11:07:10 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7E9688FC19 for ; Mon, 23 Aug 2010 11:07:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7NB7ADg089241 for ; Mon, 23 Aug 2010 11:07:10 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7NB79Bh089239 for freebsd-usb@FreeBSD.org; Mon, 23 Aug 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Aug 2010 11:07:09 GMT Message-Id: <201008231107.o7NB79Bh089239@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 Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 11:07:10 -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/149900 usb FreeBSD 8.1 uftdi patch to support usb-uirt o usb/149826 usb recognice another PL2303 based usb dongle o usb/149764 usb usbdevs update: Huawei K3765 3G modem o usb/149759 usb add USB vendor 04FC o usb/149675 usb uftdi doesn't react to break properly o usb/149528 usb Wireless USB stick not detected - vendor id 0x083a dev o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb ASUS WL-167g doesn't work in 8.1 (continue of 149058) o usb/149039 usb [uhso] Binding problem with uhso 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 usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo 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 o 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 o 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 o usb/143790 usb [boot] 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 f 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 o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 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 o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone 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 o 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/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key 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 f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe 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 kern/140614 usb [uplcom] [patch] adding support for Radio Shack Gigwar 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 s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t 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/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138548 usb [usb67] [usb8] usb devices periodically have unknown a o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no 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 p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive 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/132312 usb [hang] Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] [rum] Kernel panic after NOMEM caused by 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 p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir 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/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan 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/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 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 p usb/127549 usb [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requi s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i 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/127222 usb [ohci] Regression in 7.0 usb storage generic driver 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/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if 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 o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X 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 f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work 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/123509 usb [umass] continuous reset Samsung SGH-G600 phone 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/122819 usb [usb] [patch] Patch to provide dynamic additions to th 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/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic 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/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a 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 o 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/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a 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/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab 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/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas 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/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and 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/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b 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/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth 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/96381 usb [cam] [patch] add a quirk table entry for a flash ram 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 s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen 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/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB 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 o 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? s usb/89003 usb [request] LaCie Firewire drive not properly supported 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. o 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 s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a 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/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy 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. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me 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 " f 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/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by 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 f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h 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/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 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/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction 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 o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans 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 315 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 16:27:05 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C093510656A6; Mon, 23 Aug 2010 16:27:05 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id 256DC8FC13; Mon, 23 Aug 2010 16:27:04 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=p0DJaE8zavVXm5tqcSh7H4n2mR2d5Wi7j6pzZ51DRjI= c=1 sm=1 a=4ceZpAoEhOwA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6CrYX_LiR1rO6SdYFe0A:9 a=AZJiHbjMHEi0CPN9x3-lweWcJHIA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 9766161; Mon, 23 Aug 2010 18:26:05 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 23 Aug 2010 18:23:10 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008230521.o7N5Lpsp095506@www.freebsd.org> In-Reply-To: <201008230521.o7N5Lpsp095506@www.freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008231823.10364.hselasky@c2i.net> Cc: John Wehle , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149900: FreeBSD 8.1 uftdi patch to support usb-uirt X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 16:27:05 -0000 On Monday 23 August 2010 07:21:51 John Wehle wrote: > usb/149900 Committed, see USB P4 change ID #182805. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 16:30:04 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6137F1065674 for ; Mon, 23 Aug 2010 16:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 369568FC1A for ; Mon, 23 Aug 2010 16:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7NGU3ci006180 for ; Mon, 23 Aug 2010 16:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7NGU3eB006177; Mon, 23 Aug 2010 16:30:03 GMT (envelope-from gnats) Date: Mon, 23 Aug 2010 16:30:03 GMT Message-Id: <201008231630.o7NGU3eB006177@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/149900: FreeBSD 8.1 uftdi patch to support usb-uirt X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 16:30:04 -0000 The following reply was made to PR usb/149900; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: John Wehle , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149900: FreeBSD 8.1 uftdi patch to support usb-uirt Date: Mon, 23 Aug 2010 18:23:10 +0200 On Monday 23 August 2010 07:21:51 John Wehle wrote: > usb/149900 Committed, see USB P4 change ID #182805. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Aug 23 19:58:58 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 115FC1065672 for ; Mon, 23 Aug 2010 19:58:58 +0000 (UTC) (envelope-from i@levsha.me) Received: from expo.ukrweb.net (mail.univua.net [91.202.128.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4CE208FC12 for ; Mon, 23 Aug 2010 19:58:57 +0000 (UTC) Received: from [95.132.152.178] (helo=laptop.levsha.me) by expo.ukrweb.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1OncsN-0001gx-LP; Mon, 23 Aug 2010 22:40:14 +0300 Received: from levsha by laptop.levsha.me with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Oncrs-000A4s-K6; Mon, 23 Aug 2010 22:39:40 +0300 Date: Mon, 23 Aug 2010 22:39:40 +0300 From: Mykola Dzham To: Volodymyr Kostyrko Message-ID: <20100823193940.GA38170@laptop.levsha.me> References: <201008192338.37828.hselasky@c2i.net> <4C701AE7.8030805@gmail.com> <201008212029.59291.hselasky@c2i.net> <4C703019.8070600@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <4C703019.8070600@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: Mykola Dzham X-SA-Exim-Connect-IP: 95.132.152.178 X-SA-Exim-Mail-From: i@levsha.me X-SA-Exim-Scanned: No (on expo.ukrweb.net); SAEximRunCond expanded to false Cc: freebsd-usb@freebsd.org Subject: Re: ranscend JetFlash V85 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 19:58:58 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Volodymyr Kostyrko wrote: > 21.08.2010 21:29, Hans Petter Selasky wrote: > >>> You can use usbconfig to add quirks on the fly. See: > >>> > >>> usbconfig -h > >>> > >>> And: > >>> > >>> man usbconfig > >> > >> Tried that, but it doesn't work for me or I'm messing things up... > >> > >> usbconfig -d 3.3 add_quirk UQ_MSC_NO_SYNC_CACHE > >> > >> And errors continue to show up. The man page also is kinda short on da= ta. > > > > After setting the quirk, you need to reset or re-attach the USB device. >=20 > Not a good behavior for me. What if I need to boot from one? Most FS=20 > don't like been pushed off device. >=20 > But this doesn't work too. >=20 > usbconfig -d 3.3 add_quirk UQ_MSC_NO_TEST_UNIT_READY > usbconfig -d 3.3 reset >=20 > Gives me: >=20 > Aug 21 22:46:14 limbo kernel: umass1: at uhub3, port 5, addr 3=20 > (disconnected) > Aug 21 22:46:14 limbo kernel: (da4:umass-sim1:1:0:0): lost device > Aug 21 22:46:14 limbo kernel: (da4:umass-sim1:1:0:0): removing device ent= ry > Aug 21 22:46:15 limbo root: Unknown USB device: vendor 0x058f product=20 > 0x6387 bus uhub3 > Aug 21 22:46:15 limbo kernel: umass1: class 0/0, rev 2.00/1.00, addr 3> on usbus3 > Aug 21 22:46:15 limbo kernel: umass1: SCSI over Bulk-Only; quirks =3D 0x= 0100 >=20 > Here, quirks field doesn't change when I add more quirks. >=20 > Aug 21 22:46:16 limbo kernel: umass1:2:1:-1: Attached to scbus2 > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT=20 > READY. CDB: 0 0 0 0 0 0 > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): CAM status:=20 > SCSI Status Error > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI status:=20 > Check Condition > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense:=20 > UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have chang= ed) > Aug 21 22:46:16 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun= 0 > Aug 21 22:46:16 limbo kernel: da4: Removable=20 > Direct Access SCSI-2 device > Aug 21 22:46:16 limbo kernel: da4: 40.000MB/s transfers > Aug 21 22:46:16 limbo kernel: da4: 3900MB (7987200 512 byte sectors:=20 > 255H 63S/T 497C) > Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SYNCHRONIZE=20 > CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 > Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): CAM status: SCSI=20 > Status Error > Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI status: Check= =20 > Condition > Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI sense:=20 > ILLEGAL REQUEST asc:26,0 (Invalid field in parameter list) >=20 > Mentioned patch was looking like: >=20 > USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB,=20 > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), >=20 > But I don't understand what should be set for my flash at 3-4 places...= =20 > They are covering some range but inspecting my flash I don't see=20 > something close to the 0x142. This is bcdDevice range. So, change first 0x0142 to 0x100 for your flash drive or add another quirk (before quirk for all TRANSCEND's) with 3-4 places set to 0x100. --=20 LEFT-(UANIC|RIPE) JID: levsha@jabber.net.ua PGP fingerprint: 1BCD 7C80 2E04 7282 C944 B0E0 7E67 619E 4E72 9280 --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iQEcBAEBAgAGBQJMcs56AAoJEH5nYZ5OcpKAgG4H/id5PLktSS0/+N+NB3faNIU1 8+vwwASBHLsgy7Oa6yoTZTDIfYWek9jw1C5Pio88DBtkgQN8CFAOosaM+tCZIJPh cvIcdBaNtkCQ9IlqlLuZBbFEkCn3epBbzYLPygfB/HIFEwg88UKNSz9z+rAPEI2A 3V/qBiXOi+i7RpjhoSKN7ystIHciDsnDtj/V78Q9K/sDgJuOKO+oysDcRyeZ6kup GtdoyGZ27x45fhMu771vILdr3ZcoOc8onh3PhoNABHfNjIwg4Al09/HlsNhQU1JR miBRhmdCrUFIbfSzTGm7qx/DOOQNTXyXwRZVrKo6I/cUbGVtdhG6/Wuza3IuXbk= =eZ2m -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 04:50:57 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 812D010656A4 for ; Tue, 24 Aug 2010 04:50:57 +0000 (UTC) (envelope-from shadow@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 320FE8FC12 for ; Tue, 24 Aug 2010 04:50:56 +0000 (UTC) Received: by vws7 with SMTP id 7so132256vws.13 for ; Mon, 23 Aug 2010 21:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=64uCaHFrND1zvvOgsFSJgNKNpJALxZ0E9cLmq1uzOmQ=; b=SPuIJ4kmCkDgLG9x67WBznYMe5OODvN1XxR4t+KBJtuBq9G6UxntmTYhltQ7bK9zOb 1BlLSyLVLdYE7ehI1pTZxNeQjgDTL8EhuFQ/awKrThgrlMMSDh2ICc093cC7IuLoJskl t7aOj48NwJ67uc8hqa2F5Cu+KWZ/F4jI/CuQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=e5MxjxJwlC886T8yNWQGNzxq7XWiCqloYL2OyJMnohJDC3ZtazVM7pc/LsbUyTmNaI 65jcrjpl1SmN77Ga1jOAxeD+nyUTqvsHUpx598mMW0DU2W38m4n+U5SHi1BqgcLvlinq Rg6+uPwRuBe71AnOJYZoSMpSlFOITD/sh9HS8= MIME-Version: 1.0 Received: by 10.220.128.68 with SMTP id j4mr3909096vcs.68.1282623810688; Mon, 23 Aug 2010 21:23:30 -0700 (PDT) Received: by 10.220.169.210 with HTTP; Mon, 23 Aug 2010 21:23:30 -0700 (PDT) In-Reply-To: <201007221755.39597.hselasky@c2i.net> References: <201007201610.o6KGA3lK051365@freefall.freebsd.org> <201007221755.39597.hselasky@c2i.net> Date: Tue, 24 Aug 2010 00:23:30 -0400 Message-ID: From: Derrick Brashear To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after short period of traffic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 04:50:57 -0000 At Pyun's suggestion, I am using http://people.freebsd.org/~yongari/axe/if_axe.c http://people.freebsd.org/~yongari/axe/if_axereg.h after s/if USB_DEBUG/ifdef USB_DEBUG/ things appear to be ok. I am continuing to test, however I can tell you with confidence that it works at least as well as before. On Thu, Jul 22, 2010 at 11:55 AM, Hans Petter Selasky wr= ote: > On Tuesday 20 July 2010 18:10:03 Derrick Brashear wrote: >> The following reply was made to PR usb/140883; it has been noted by GNAT= S. >> >> From: Derrick Brashear >> To: bug-followup@FreeBSD.org >> Cc: >> Subject: Re: usb/140883: [axe] [usb8] USB gigabit ethernet hangs after >> short period of traffic >> Date: Tue, 20 Jul 2010 11:39:28 -0400 >> >> =A0Happens with non-gig adapters also: >> =A0axe0: on usbus2 >> =A0ukphy0: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> >> =A0axe1: on usbus2 >> =A0ukphy1: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> >> =A0USB200M v2. >> >> =A0USB_ERR_TIMEOUT until a reset is forced after a large amount of data >> =A0passes, e.g. >> =A0Jul 20 01:50:38 rtr kernel: axe_bulk_write_callback: transfer error, >> =A0USB_ERR_TIMEOUT >> =A0Jul 20 01:50:48 rtr kernel: axe_bulk_write_callback: transfer error, >> =A0USB_ERR_TIMEOUT >> =A0Jul 20 01:50:57 rtr kernel: axe_bulk_write_callback: transfer error, >> =A0USB_ERR_TIMEOUT >> =A0Jul 20 01:51:01 rtr kernel: axe_bulk_read_callback: bulk read error, >> =A0USB_ERR_CANCELLED >> =A0Jul 20 01:51:01 rtr kernel: axe_bulk_write_callback: transfer error, >> =A0USB_ERR_CANCELLED >> =A0Jul 20 01:51:13 rtr kernel: axe_bulk_read_callback: bulk read error, >> =A0USB_ERR_CANCELLED >> >> =A0and data continues to be able to be read after writing it fails, as >> =A0described in the original PR. >> >> =A0sysctl -a|grep date >> =A0kern.osreldate: 801000 > > Have you tried with FreeBSD-9-current? > > --HPS > --=20 Derrick From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 11:31:36 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15F6F1065695 for ; Tue, 24 Aug 2010 11:31:36 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 93C518FC1F for ; Tue, 24 Aug 2010 11:31:35 +0000 (UTC) Received: by fxm4 with SMTP id 4so4289749fxm.13 for ; Tue, 24 Aug 2010 04:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=MpKATdmspyfKBXRvUvkdYot0gOdoMEXprJgnLOypDmQ=; b=YOvnNP3JpB1IyY9Dw+ifvdA+G/angExHhkj354X0RJz3Iu49rQu5gUL2W3cuf3dTca dala9g9h8sUuMx7Tj8l+E/306zJD7CDsFxbkMPxJGHVyTNCOC9bo6hgKG5NzUZ/vccYq khLyVtcLsyNt19zaXcw9blER+iWIVultXdwhI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; b=jdrfLeYPDFpI5h4YGp8xw/whib8oysNs53j2sfX1ePBuL2IrvUVGuRrYsUq6EqBsgg GWsEchSVsuaSX0ByuhxiuDnklTCWIZiGB/qVHjFQUhAAjBEIpnO1vJLvzgaV/XMWZ+EV c3vhhGg4ibN7coSwseWmEQFawrOUf8HvrmXsU= Received: by 10.223.107.137 with SMTP id b9mr5873996fap.17.1282649494443; Tue, 24 Aug 2010 04:31:34 -0700 (PDT) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id 16sm1169698fad.0.2010.08.24.04.31.30 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 04:31:31 -0700 (PDT) Message-ID: <4C73AD90.4090502@gmail.com> Date: Tue, 24 Aug 2010 14:31:28 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.2.8) Gecko/20100807 Thunderbird/3.1.2 MIME-Version: 1.0 CC: freebsd-usb@freebsd.org References: <201008192338.37828.hselasky@c2i.net> <4C701AE7.8030805@gmail.com> <201008212029.59291.hselasky@c2i.net> <4C703019.8070600@gmail.com> <20100823193940.GA38170@laptop.levsha.me> In-Reply-To: <20100823193940.GA38170@laptop.levsha.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 24 Aug 2010 11:39:37 +0000 Subject: Re: ranscend JetFlash V85 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 11:31:36 -0000 23.08.2010 22:39, Mykola Dzham wrote: > This is bcdDevice range. So, change first 0x0142 to 0x100 for your > flash drive or add another quirk (before quirk for all TRANSCEND's) > with 3-4 places set to 0x100. Yes, that was the key. I'll file a pr for that. -- Sphinx of black quartz judge my vow. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 11:40:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 222741065789 for ; Tue, 24 Aug 2010 11:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D97A98FC15 for ; Tue, 24 Aug 2010 11:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OBe2PS074544 for ; Tue, 24 Aug 2010 11:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OBe2pH074543; Tue, 24 Aug 2010 11:40:02 GMT (envelope-from gnats) Resent-Date: Tue, 24 Aug 2010 11:40:02 GMT Resent-Message-Id: <201008241140.o7OBe2pH074543@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, Volodymyr Kostyrko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C03D1065776 for ; Tue, 24 Aug 2010 11:39:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 952398FC20 for ; Tue, 24 Aug 2010 11:39:30 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7OBdUKL018216 for ; Tue, 24 Aug 2010 11:39:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o7OBdUO6018203; Tue, 24 Aug 2010 11:39:30 GMT (envelope-from nobody) Message-Id: <201008241139.o7OBdUO6018203@www.freebsd.org> Date: Tue, 24 Aug 2010 11:39:30 GMT From: Volodymyr Kostyrko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 11:40:03 -0000 >Number: 149934 >Category: usb >Synopsis: Transcend JetFlash V85 poor performance >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Aug 24 11:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Volodymyr Kostyrko >Release: RELENG_8 >Organization: >Environment: FreeBSD limbo.lan 8.1-STABLE FreeBSD 8.1-STABLE #0 r211717M: Tue Aug 24 12:56:24 EEST 2010 arcade@limbo.lan:/usr/obj/usr/src/sys/MINIMAL_8 i386 >Description: When attaching device kernel reports this: Aug 21 22:46:15 limbo root: Unknown USB device: vendor 0x058f product 0x6387 bus uhub3 Aug 21 22:46:15 limbo kernel: umass1: on usbus3 Aug 21 22:46:15 limbo kernel: umass1: SCSI over Bulk-Only; quirks = 0x0100 Aug 21 22:46:16 limbo kernel: umass1:2:1:-1: Attached to scbus2 Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) Aug 21 22:46:16 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun 0 Aug 21 22:46:16 limbo kernel: da4: Removable Direct Access SCSI-2 device Aug 21 22:46:16 limbo kernel: da4: 40.000MB/s transfers Aug 21 22:46:16 limbo kernel: da4: 3900MB (7987200 512 byte sectors: 255H 63S/T 497C) Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI status: Check Condition Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI sense: ILLEGAL REQUEST asc:26,0 (Invalid field in parameter list) After that any time SYNCHRONIZE CACHE command is issued writing to device stops for some time and kernel reports bad command. >How-To-Repeat: Attaching the device and trying to work with it should suffice. >Fix: Apply the following patch. Patch attached with submission follows: Index: sys/dev/usb/quirk/usb_quirk.c =================================================================== --- sys/dev/usb/quirk/usb_quirk.c (revision 211717) +++ sys/dev/usb/quirk/usb_quirk.c (working copy) @@ -159,6 +159,9 @@ USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), + USB_QUIRK(ALCOR, TRANSCEND, 0x0100, 0x0100, UQ_MSC_FORCE_WIRE_BBB, + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE, + UQ_MSC_NO_TEST_UNIT_READY), USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 15:15:56 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F94B10656A7; Tue, 24 Aug 2010 15:15:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id CECFB8FC12; Tue, 24 Aug 2010 15:15:55 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=bqAX4Es/FymT96iuQFWdNJXS7SazJpmZM5WIJFHIREc= c=1 sm=1 a=IPwavul34FcA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=rMx0VHMCuLhdkoPaeNcA:9 a=CgNir0bH8dO4lZK4tw8A:7 a=KICd-FcgZab6fqFFWHzGyrp4jaEA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11066543; Tue, 24 Aug 2010 17:15:52 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 24 Aug 2010 17:11:59 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008241139.o7OBdUO6018203@www.freebsd.org> In-Reply-To: <201008241139.o7OBdUO6018203@www.freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008241712.00077.hselasky@c2i.net> Cc: Volodymyr Kostyrko , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 15:15:56 -0000 On Tuesday 24 August 2010 13:39:30 Volodymyr Kostyrko wrote: > >Number: 149934 > >Category: usb > >Synopsis: Transcend JetFlash V85 poor performance > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Tue Aug 24 11:40:02 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Volodymyr Kostyrko > >Release: RELENG_8 > >Organization: > > >Environment: > FreeBSD limbo.lan 8.1-STABLE FreeBSD 8.1-STABLE #0 r211717M: Tue Aug 24 > 12:56:24 EEST 2010 arcade@limbo.lan:/usr/obj/usr/src/sys/MINIMAL_8 > i386 > > >Description: > When attaching device kernel reports this: > > Aug 21 22:46:15 limbo root: Unknown USB device: vendor 0x058f product > 0x6387 bus uhub3 Aug 21 22:46:15 limbo kernel: umass1: Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus3 Aug 21 > 22:46:15 limbo kernel: umass1: SCSI over Bulk-Only; quirks = 0x0100 Aug > 21 22:46:16 limbo kernel: umass1:2:1:-1: Attached to scbus2 > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. > CDB: 0 0 0 0 0 0 Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): > CAM status: SCSI Status Error Aug 21 22:46:16 limbo kernel: > (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Aug 21 22:46:16 > limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION > asc:28,0 (Not ready to ready change, medium may have changed) Aug 21 > 22:46:16 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun 0 Aug > 21 22:46:16 limbo kernel: da4: Removable Direct > Access SCSI-2 device Aug 21 22:46:16 limbo kernel: da4: 40.000MB/s > transfers > Aug 21 22:46:16 limbo kernel: da4: 3900MB (7987200 512 byte sectors: 255H > 63S/T 497C) Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): > SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Aug 21 22:46:24 limbo > kernel: (da4:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 21 > 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI status: Check > Condition Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI > sense: ILLEGAL REQUEST asc:26,0 (Invalid field in parameter list) > > After that any time SYNCHRONIZE CACHE command is issued writing to device > stops for some time and kernel reports bad command. > > >How-To-Repeat: > Attaching the device and trying to work with it should suffice. > > >Fix: > Apply the following patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/quirk/usb_quirk.c > =================================================================== > --- sys/dev/usb/quirk/usb_quirk.c (revision 211717) > +++ sys/dev/usb/quirk/usb_quirk.c (working copy) > @@ -159,6 +159,9 @@ > USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > + USB_QUIRK(ALCOR, TRANSCEND, 0x0100, 0x0100, UQ_MSC_FORCE_WIRE_BBB, > + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE, > + UQ_MSC_NO_TEST_UNIT_READY), > USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > > >Release-Note: > >Audit-Trail: > > >Unformatted: Can you test this patch instead: --- sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 +++ sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 @@ -160,10 +160,8 @@ USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), - USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), - USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), + USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN, + UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(APACER, HT202, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ASAHIOPTICAL, OPTIO230, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, Please also dump device and configuration descriptor using usbconfig. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 15:20:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A3301065696 for ; Tue, 24 Aug 2010 15:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E9318FC12 for ; Tue, 24 Aug 2010 15:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OFK3Bm088606 for ; Tue, 24 Aug 2010 15:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OFK2pn088605; Tue, 24 Aug 2010 15:20:03 GMT (envelope-from gnats) Date: Tue, 24 Aug 2010 15:20:03 GMT Message-Id: <201008241520.o7OFK2pn088605@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 15:20:03 -0000 The following reply was made to PR usb/149934; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Volodymyr Kostyrko , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance Date: Tue, 24 Aug 2010 17:11:59 +0200 On Tuesday 24 August 2010 13:39:30 Volodymyr Kostyrko wrote: > >Number: 149934 > >Category: usb > >Synopsis: Transcend JetFlash V85 poor performance > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Tue Aug 24 11:40:02 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Volodymyr Kostyrko > >Release: RELENG_8 > >Organization: > > >Environment: > FreeBSD limbo.lan 8.1-STABLE FreeBSD 8.1-STABLE #0 r211717M: Tue Aug 24 > 12:56:24 EEST 2010 arcade@limbo.lan:/usr/obj/usr/src/sys/MINIMAL_8 > i386 > > >Description: > When attaching device kernel reports this: > > Aug 21 22:46:15 limbo root: Unknown USB device: vendor 0x058f product > 0x6387 bus uhub3 Aug 21 22:46:15 limbo kernel: umass1: Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus3 Aug 21 > 22:46:15 limbo kernel: umass1: SCSI over Bulk-Only; quirks = 0x0100 Aug > 21 22:46:16 limbo kernel: umass1:2:1:-1: Attached to scbus2 > Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. > CDB: 0 0 0 0 0 0 Aug 21 22:46:16 limbo kernel: (probe0:umass-sim1:1:0:0): > CAM status: SCSI Status Error Aug 21 22:46:16 limbo kernel: > (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Aug 21 22:46:16 > limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION > asc:28,0 (Not ready to ready change, medium may have changed) Aug 21 > 22:46:16 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun 0 Aug > 21 22:46:16 limbo kernel: da4: Removable Direct > Access SCSI-2 device Aug 21 22:46:16 limbo kernel: da4: 40.000MB/s > transfers > Aug 21 22:46:16 limbo kernel: da4: 3900MB (7987200 512 byte sectors: 255H > 63S/T 497C) Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): > SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 Aug 21 22:46:24 limbo > kernel: (da4:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 21 > 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI status: Check > Condition Aug 21 22:46:24 limbo kernel: (da4:umass-sim1:1:0:0): SCSI > sense: ILLEGAL REQUEST asc:26,0 (Invalid field in parameter list) > > After that any time SYNCHRONIZE CACHE command is issued writing to device > stops for some time and kernel reports bad command. > > >How-To-Repeat: > Attaching the device and trying to work with it should suffice. > > >Fix: > Apply the following patch. > > Patch attached with submission follows: > > Index: sys/dev/usb/quirk/usb_quirk.c > =================================================================== > --- sys/dev/usb/quirk/usb_quirk.c (revision 211717) > +++ sys/dev/usb/quirk/usb_quirk.c (working copy) > @@ -159,6 +159,9 @@ > USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > + USB_QUIRK(ALCOR, TRANSCEND, 0x0100, 0x0100, UQ_MSC_FORCE_WIRE_BBB, > + UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE, > + UQ_MSC_NO_TEST_UNIT_READY), > USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > > >Release-Note: > >Audit-Trail: > > >Unformatted: Can you test this patch instead: --- sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 +++ sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 @@ -160,10 +160,8 @@ USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), - USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_SYNC_CACHE), - USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), + USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN, + UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(APACER, HT202, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY, UQ_MSC_NO_SYNC_CACHE), USB_QUIRK(ASAHIOPTICAL, OPTIO230, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, Please also dump device and configuration descriptor using usbconfig. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:17:32 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 698801065679 for ; Tue, 24 Aug 2010 21:17:32 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id C063E8FC0C for ; Tue, 24 Aug 2010 21:17:31 +0000 (UTC) Received: by fxm4 with SMTP id 4so4721415fxm.13 for ; Tue, 24 Aug 2010 14:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JOZXv/43OKLCwg0xrqv44k1aSTxInKUAwmGwmrL7X3c=; b=aPA9j4SO/nec1zdpxMKpX93X/ytk93eSqU75rm1Hp1VsaQXmrpbnf9cGi0Mcfy113P QyPCXQB5Gt4Falxmvf72iSXVgtNTamn0lOnOCYHA21IvGlFMh+ama75iGjHmt6A0x5eY wWEVeJHp9Ug0goMl9vPLHLXg7dOedQLghWlSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=TEZmX84h6Q8I7Mf5SW6MLY9mAMVddgtTcAkqhpjhIq/3TDADzeWvLHVsPWAjktShyH kiLLLC1T/hesGv3z2uJOQK2R6OBfw1Kn8H5u73EnN3E6DtfhVOQ9tTJRIYW9IDOnOH+D 3vqvgpiR7kpYGIpKQgS6t5jc+4Gv0ocaaxdgM= Received: by 10.223.109.7 with SMTP id h7mr65345fap.100.1282684650491; Tue, 24 Aug 2010 14:17:30 -0700 (PDT) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id k25sm349654fac.17.2010.08.24.14.17.28 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 14:17:29 -0700 (PDT) Message-ID: <4C7436E5.7060805@gmail.com> Date: Wed, 25 Aug 2010 00:17:25 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.2.8) Gecko/20100807 Thunderbird/3.1.2 MIME-Version: 1.0 To: Hans Petter Selasky References: <201008241139.o7OBdUO6018203@www.freebsd.org> <201008241712.00077.hselasky@c2i.net> In-Reply-To: <201008241712.00077.hselasky@c2i.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:17:32 -0000 24.08.2010 18:11, Hans Petter Selasky wrote: > Can you test this patch instead: > > --- sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 > +++ sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 > @@ -160,10 +160,8 @@ > USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > - USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, > - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, > UQ_MSC_NO_SYNC_CACHE), > - USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > + USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN, > + UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(APACER, HT202, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY, > UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ASAHIOPTICAL, OPTIO230, 0x0000, 0xffff, > UQ_MSC_FORCE_WIRE_BBB, > > Please also dump device and configuration descriptor using usbconfig. > > --HPS This one results in: Aug 25 00:10:17 limbo root: Unknown USB device: vendor 0x058f product 0x6387 bus uhub3 Aug 25 00:10:17 limbo kernel: ugen3.3: at usbus3 Aug 25 00:10:17 limbo kernel: umass1: on usbus3 Aug 25 00:10:17 limbo kernel: umass1: SCSI over Bulk-Only; quirks = 0x4100 Aug 25 00:10:18 limbo kernel: umass1:2:1:-1: Attached to scbus2 Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) Aug 25 00:10:18 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun 0 Aug 25 00:10:18 limbo kernel: da4: Removable Direct Access SCSI-2 device Aug 25 00:10:18 limbo kernel: da4: 40.000MB/s transfers Aug 25 00:10:18 limbo kernel: da4: 3900MB (7987200 512 byte sectors: 255H 63S/T 497C) So how about UQ_MSC_NO_TEST_UNIT_READY? # usbconfig -d 3.3 dump_device_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x058f idProduct = 0x6387 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 # usbconfig -d 3.3 dump_all_config_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 -- Sphinx of black quartz judge my vow. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:21:43 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CBEE10656AD; Tue, 24 Aug 2010 21:21:43 +0000 (UTC) (envelope-from arundel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4319C8FC25; Tue, 24 Aug 2010 21:21:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OLLhmD053203; Tue, 24 Aug 2010 21:21:43 GMT (envelope-from arundel@freefall.freebsd.org) Received: (from arundel@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OLLguJ053199; Tue, 24 Aug 2010 21:21:42 GMT (envelope-from arundel) Date: Tue, 24 Aug 2010 21:21:42 GMT Message-Id: <201008242121.o7OLLguJ053199@freefall.freebsd.org> To: freebsd.alex@spamfoodie.com, arundel@FreeBSD.org, freebsd-usb@FreeBSD.org From: arundel@FreeBSD.org Cc: Subject: Re: usb/127549: [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requires some quirks X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:21:43 -0000 Synopsis: [umass] [usb67] [patch] Meizu MiniPlayer M6 (SL) requires some quirks State-Changed-From-To: patched->closed State-Changed-By: arundel State-Changed-When: Tue Aug 24 21:20:20 UTC 2010 State-Changed-Why: It's highly unlikely these quirks will be backported to RELENG_6 since that branch is going EoL very soon. Thus close this PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=127549 From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:31:55 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D981C1065694; Tue, 24 Aug 2010 21:31:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 42D288FC1A; Tue, 24 Aug 2010 21:31:54 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=IPwavul34FcA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=CbQNMux4X37yB1-YrGkA:9 a=IMcbuDnCVouX-DVo_iiu8utirJwA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11367214; Tue, 24 Aug 2010 23:31:51 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 24 Aug 2010 23:27:59 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008241139.o7OBdUO6018203@www.freebsd.org> <201008241712.00077.hselasky@c2i.net> In-Reply-To: <201008241712.00077.hselasky@c2i.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008242327.59190.hselasky@c2i.net> Cc: Volodymyr Kostyrko , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:31:55 -0000 Hi, I've committed my updated patch to USB P4. See change #182862. Please verify that your drive is still working with the new patch. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:40:04 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 621451065673 for ; Tue, 24 Aug 2010 21:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 339238FC19 for ; Tue, 24 Aug 2010 21:40:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OLe3q6063912 for ; Tue, 24 Aug 2010 21:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OLe3nU063906; Tue, 24 Aug 2010 21:40:03 GMT (envelope-from gnats) Date: Tue, 24 Aug 2010 21:40:03 GMT Message-Id: <201008242140.o7OLe3nU063906@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:40:04 -0000 The following reply was made to PR usb/149934; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Volodymyr Kostyrko , freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance Date: Tue, 24 Aug 2010 23:27:59 +0200 Hi, I've committed my updated patch to USB P4. See change #182862. Please verify that your drive is still working with the new patch. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:43:11 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D596106566B; Tue, 24 Aug 2010 21:43:10 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D6EB28FC08; Tue, 24 Aug 2010 21:43:09 +0000 (UTC) Received: by fxm4 with SMTP id 4so4764266fxm.13 for ; Tue, 24 Aug 2010 14:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=m+64RoDPxMMzBs6vog5jSsTtvsir269PFNWZqaxEcjw=; b=FXwn0GnPDi4+C5OrbwCuKCdCGmBTl4+4PkQYE8BkHklultxLD5MD7BTtvotyOyN0ta 6pWYBN/lwQx47vF9u6l5PxsifgJq4tjb7nvpEC9wQkhk9n/9UZztADjt3wHt928L0v50 MBt1H4aILOj9bkW3IuVpkoNHSCxzZqk5joThY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=sSUxowP67Fp5QWDtgePPEQ9IzRYvQR9JFomoSPodIPqqG9LZlBhwFzckrvvh8dldQk e9NNawgcXqk/voZPxmj0GIRaXep5NVurLSVHFy0FHMiWlRcYWdVUJ8MzCc6SEYR5n+Zy RG7LRXnOSNT68BUhgqLFZTJY7UlzQK/NLqHzo= Received: by 10.223.109.7 with SMTP id h7mr86513fap.100.1282686188728; Tue, 24 Aug 2010 14:43:08 -0700 (PDT) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id 10sm356366fax.18.2010.08.24.14.43.06 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Aug 2010 14:43:07 -0700 (PDT) Message-ID: <4C743CE9.5020300@gmail.com> Date: Wed, 25 Aug 2010 00:43:05 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.2.8) Gecko/20100807 Thunderbird/3.1.2 MIME-Version: 1.0 To: Hans Petter Selasky References: <201008241139.o7OBdUO6018203@www.freebsd.org> <201008241712.00077.hselasky@c2i.net> <201008242327.59190.hselasky@c2i.net> In-Reply-To: <201008242327.59190.hselasky@c2i.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:43:12 -0000 25.08.2010 00:27, Hans Petter Selasky wrote: > I've committed my updated patch to USB P4. See change #182862. > > Please verify that your drive is still working with the new patch. Yes, i've tested my drive exactly with this patch. Say, how about UQ_MSC_NO_TEST_UNIT_READY? You have omitted it on purpose so maybe this one should be added only if without one the device would not work at all? -- Sphinx of black quartz judge my vow. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:50:04 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D39410656B2 for ; Tue, 24 Aug 2010 21:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA648FC14 for ; Tue, 24 Aug 2010 21:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OLo4OV073180 for ; Tue, 24 Aug 2010 21:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OLo4rc073179; Tue, 24 Aug 2010 21:50:04 GMT (envelope-from gnats) Date: Tue, 24 Aug 2010 21:50:04 GMT Message-Id: <201008242150.o7OLo4rc073179@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:50:04 -0000 The following reply was made to PR usb/149934; it has been noted by GNATS. From: Volodymyr Kostyrko To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance Date: Wed, 25 Aug 2010 00:43:05 +0300 25.08.2010 00:27, Hans Petter Selasky wrote: > I've committed my updated patch to USB P4. See change #182862. > > Please verify that your drive is still working with the new patch. Yes, i've tested my drive exactly with this patch. Say, how about UQ_MSC_NO_TEST_UNIT_READY? You have omitted it on purpose so maybe this one should be added only if without one the device would not work at all? -- Sphinx of black quartz judge my vow. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 24 21:50:06 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 358BC10656B4 for ; Tue, 24 Aug 2010 21:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B1738FC25 for ; Tue, 24 Aug 2010 21:50:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7OLo5RW073194 for ; Tue, 24 Aug 2010 21:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7OLo5rJ073193; Tue, 24 Aug 2010 21:50:05 GMT (envelope-from gnats) Date: Tue, 24 Aug 2010 21:50:05 GMT Message-Id: <201008242150.o7OLo5rJ073193@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Volodymyr Kostyrko Cc: Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volodymyr Kostyrko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:50:06 -0000 The following reply was made to PR usb/149934; it has been noted by GNATS. From: Volodymyr Kostyrko To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance Date: Wed, 25 Aug 2010 00:17:25 +0300 24.08.2010 18:11, Hans Petter Selasky wrote: > Can you test this patch instead: > > --- sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 > +++ sys/dev/usb/quirk/usb_quirk.c 2010-08-10 16:03:19.000000000 0000 > @@ -160,10 +160,8 @@ > USB_QUIRK(ALCOR, AU6390, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ALCOR, UMCR_9361, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > - USB_QUIRK(ALCOR, TRANSCEND, 0x0142, 0x0142, UQ_MSC_FORCE_WIRE_BBB, > - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN, > UQ_MSC_NO_SYNC_CACHE), > - USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, > - UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), > + USB_QUIRK(ALCOR, TRANSCEND, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN, > + UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(APACER, HT202, 0x0000, 0xffff, UQ_MSC_NO_TEST_UNIT_READY, > UQ_MSC_NO_SYNC_CACHE), > USB_QUIRK(ASAHIOPTICAL, OPTIO230, 0x0000, 0xffff, > UQ_MSC_FORCE_WIRE_BBB, > > Please also dump device and configuration descriptor using usbconfig. > > --HPS This one results in: Aug 25 00:10:17 limbo root: Unknown USB device: vendor 0x058f product 0x6387 bus uhub3 Aug 25 00:10:17 limbo kernel: ugen3.3: at usbus3 Aug 25 00:10:17 limbo kernel: umass1: on usbus3 Aug 25 00:10:17 limbo kernel: umass1: SCSI over Bulk-Only; quirks = 0x4100 Aug 25 00:10:18 limbo kernel: umass1:2:1:-1: Attached to scbus2 Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI status: Check Condition Aug 25 00:10:18 limbo kernel: (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) Aug 25 00:10:18 limbo kernel: da4 at umass-sim1 bus 1 scbus2 target 0 lun 0 Aug 25 00:10:18 limbo kernel: da4: Removable Direct Access SCSI-2 device Aug 25 00:10:18 limbo kernel: da4: 40.000MB/s transfers Aug 25 00:10:18 limbo kernel: da4: 3900MB (7987200 512 byte sectors: 255H 63S/T 497C) So how about UQ_MSC_NO_TEST_UNIT_READY? # usbconfig -d 3.3 dump_device_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x058f idProduct = 0x6387 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 # usbconfig -d 3.3 dump_all_config_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 -- Sphinx of black quartz judge my vow. From owner-freebsd-usb@FreeBSD.ORG Wed Aug 25 07:26:55 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDCDD10656AE; Wed, 25 Aug 2010 07:26:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.freebsd.org (Postfix) with ESMTP id 39AEE8FC1C; Wed, 25 Aug 2010 07:26:54 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=uePVVspCxxf4OPvRkfGcVJjvkAvqk6KCmJ3FEelfNRU= c=1 sm=1 a=IPwavul34FcA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=YWtvQXMgA-9aPdzfH9YA:9 a=HiB_sEkIysMOxCb0ZESIruIic58A:4 a=QEXdDO2ut3YA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11897055; Wed, 25 Aug 2010 09:26:51 +0200 From: Hans Petter Selasky To: Volodymyr Kostyrko Date: Wed, 25 Aug 2010 09:22:58 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008241139.o7OBdUO6018203@www.freebsd.org> <201008242327.59190.hselasky@c2i.net> <4C743CE9.5020300@gmail.com> In-Reply-To: <4C743CE9.5020300@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008250922.58534.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 07:26:56 -0000 On Tuesday 24 August 2010 23:43:05 Volodymyr Kostyrko wrote: > 25.08.2010 00:27, Hans Petter Selasky wrote: > > I've committed my updated patch to USB P4. See change #182862. > > > > Please verify that your drive is still working with the new patch. > > Yes, i've tested my drive exactly with this patch. > > Say, how about UQ_MSC_NO_TEST_UNIT_READY? You have omitted it on purpose > so maybe this one should be added only if without one the device would > not work at all? Sorry I overlooked that, See USB P4 change #182875. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Aug 25 07:30:11 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7339F10656AC for ; Wed, 25 Aug 2010 07:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 62F3B8FC16 for ; Wed, 25 Aug 2010 07:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7P7UBXJ061954 for ; Wed, 25 Aug 2010 07:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7P7UBx5061951; Wed, 25 Aug 2010 07:30:11 GMT (envelope-from gnats) Date: Wed, 25 Aug 2010 07:30:11 GMT Message-Id: <201008250730.o7P7UBx5061951@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: usb/149934: Transcend JetFlash V85 poor performance X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2010 07:30:11 -0000 The following reply was made to PR usb/149934; it has been noted by GNATS. From: Hans Petter Selasky To: Volodymyr Kostyrko Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: usb/149934: Transcend JetFlash V85 poor performance Date: Wed, 25 Aug 2010 09:22:58 +0200 On Tuesday 24 August 2010 23:43:05 Volodymyr Kostyrko wrote: > 25.08.2010 00:27, Hans Petter Selasky wrote: > > I've committed my updated patch to USB P4. See change #182862. > > > > Please verify that your drive is still working with the new patch. > > Yes, i've tested my drive exactly with this patch. > > Say, how about UQ_MSC_NO_TEST_UNIT_READY? You have omitted it on purpose > so maybe this one should be added only if without one the device would > not work at all? Sorry I overlooked that, See USB P4 change #182875. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 10:58:14 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id BF7E210656AD; Thu, 26 Aug 2010 10:58:14 +0000 (UTC) Date: Thu, 26 Aug 2010 10:58:14 +0000 From: Alexander Best To: freebsd-usb@freebsd.org Message-ID: <20100826105814.GA86800@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 10:58:14 -0000 hi there, i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in my bios i have enabled the "boot with num lock enabled" feature. when i fire up freebsd the num lock light on my keyboard is on. however the num lock keys don't work. if i press the num lock button once nothing happens. if i hit it twice the num lock led goes off. to make the num lock feature work i have to actually hit the num lock key thrice. is this a known issue? cheers. alex -- a13x From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 11:17:08 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0ABD1065697; Thu, 26 Aug 2010 11:17:08 +0000 (UTC) (envelope-from arundel@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C6C818FC16; Thu, 26 Aug 2010 11:17:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7QBH8US038254; Thu, 26 Aug 2010 11:17:08 GMT (envelope-from arundel@freefall.freebsd.org) Received: (from arundel@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7QBH88l038250; Thu, 26 Aug 2010 11:17:08 GMT (envelope-from arundel) Date: Thu, 26 Aug 2010 11:17:08 GMT Message-Id: <201008261117.o7QBH88l038250@freefall.freebsd.org> To: arundel@FreeBSD.org, freebsd-usb@FreeBSD.org, freebsd-bugs@FreeBSD.org From: arundel@FreeBSD.org Cc: Subject: Re: kern/99538: [keyboard] [atkbdc] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 11:17:09 -0000 Old Synopsis: [keyboard] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state New Synopsis: [keyboard] [atkbdc] while using USB keyboard default params of atkbd and kbdmux lead to long delays on changes of keyboard state Responsible-Changed-From-To: freebsd-usb->freebsd-bugs Responsible-Changed-By: arundel Responsible-Changed-When: Thu Aug 26 11:13:00 UTC 2010 Responsible-Changed-Why: Problem doesn't sound usb, but atkbdc related. http://www.freebsd.org/cgi/query-pr.cgi?pr=99538 From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 17:56:36 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD9E61065679; Thu, 26 Aug 2010 17:56:36 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gy0-f196.google.com (mail-gy0-f196.google.com [209.85.160.196]) by mx1.freebsd.org (Postfix) with ESMTP id 43CD78FC1F; Thu, 26 Aug 2010 17:56:36 +0000 (UTC) Received: by gyd12 with SMTP id 12so353717gyd.7 for ; Thu, 26 Aug 2010 10:56:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eOmabjnKC5vz8wvSPOkki3l5SQ6qy3r9dTCj60LXgG8=; b=rQ39pY97+lM4qs8irgT2xchXE8NCVwEYOxCw33qz6KtR1fI6VYmGjEsNb9d5FM0pgj fjK/RAV1OOT6ycpn+bNhk03m9P/OuEZZhLRTcpvaPum1FQYOZy5b6jsLkVawwpoRGZVa kHP0Qw/DWEXX7XGmVy50DVQPE5HcGPyyiGDpo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=QYojWHx3Tloqkd58DMnWyUNSyEvvgT/HsG/RSU4IqVTSOnFy1/X1rDPhPyK4w9IfSs iqaMtfx6juqNo/FRSMQn3iqjXv9Yc1ZWxiTdIix6Zlyb6B4fQ5jVJXn+hJZMX4Apu/a0 zMtHRahj7hBA/dWPJO+Hjl7mAWzClzgsNIROM= Received: by 10.151.6.4 with SMTP id j4mr527084ybi.274.1282844480757; Thu, 26 Aug 2010 10:41:20 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id q21sm7737559ybk.3.2010.08.26.10.41.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 10:41:20 -0700 (PDT) Message-ID: <4C76A73E.9070509@gmail.com> Date: Thu, 26 Aug 2010 12:41:18 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Alexander Best References: <20100826105814.GA86800@freebsd.org> In-Reply-To: <20100826105814.GA86800@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 17:56:36 -0000 when you had to press it twice, was that only for the first attempt, and did pressing it once after that turn it off? and once after that, on? i just read your note here, and the following one about the long delays (kern/99538), and was able to duplicate the two-press thing. amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: ukbd1: on usbus2 ums1: on usbus2 it seems that the press-twice scenario was only needed the first attempt. normal behaviour after that. 8.1-stable last cvsup/build: FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug 25 03:44:55 CDT 2010 jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 Alexander Best wrote: > hi there, > > i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in my > bios i have enabled the "boot with num lock enabled" feature. when i fire up > freebsd the num lock light on my keyboard is on. however the num lock keys > don't work. if i press the num lock button once nothing happens. if i hit it > twice the num lock led goes off. to make the num lock feature work i have to > actually hit the num lock key thrice. > > is this a known issue? > > cheers. > alex > > From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 17:59:24 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0E65106566B for ; Thu, 26 Aug 2010 17:59:24 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 973388FC14 for ; Thu, 26 Aug 2010 17:59:24 +0000 (UTC) Received: by iwn36 with SMTP id 36so1984265iwn.13 for ; Thu, 26 Aug 2010 10:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=gFKuw8uRag1VZEpKQkJCBPvJm50zl3T96kRwyPk3j8c=; b=wlk4I8fdvRyxOFhoTvlLEczgB8QuRZbZpTNB/4Y8GgEHAdCBlDio6cAlt0ffRfEUTr +3O6twoGD/k/F918SFw92knWleuQEMLI/+RrSihZWWu3mik5Lji6AY0FJoRfati1Pwg8 v5+Fy19nT2fJ6D/Gu08sBcpbLxFcyXHZld8Rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=itYKJVhu9XYpGpwm8GeWKfIhHnogPm0rJxpItMieqSk6eiOyy9uykYdT2r4rVPRZGs w3+FbN01A3x9Ww97UJvO96Tm2cW2MSE6/k0nz8gns/cmXCPUL3a5bLjwICtRiH4jPeWS U34/rwPK3KYhhgvuutygUK6tRdT7BHH5M8C98= Received: by 10.231.17.1 with SMTP id q1mr11913232iba.17.1282845563945; Thu, 26 Aug 2010 10:59:23 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id n20sm2754870ibe.17.2010.08.26.10.59.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 10:59:20 -0700 (PDT) Message-ID: <4C76AB76.4070806@gmail.com> Date: Thu, 26 Aug 2010 12:59:18 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 17:59:24 -0000 i have some usb devices, in the hid class, that i am wanting to write some drivers for. seeing that one of these previously had an older non-submitted driver for 5.x-7.x online, i thought that might be a good starting point (the imon vfd/lirc driver), but that does not work, due to the changes in the usb subsystem. where can i find documentation on this subsystem? are there any decent skeletons to start with, or does this need to be from scratch? i'd like to start with a driver for the pcsensor temper usb thermometer, for which i already wrote a libusb util for, since these are widely sold, and very popular (and usually around $5 USD), and since it only has one transaction (read current temp), I figure it would be easier to start with while I learn the usb driver framework. as for the imon vfd unit, i'd like to tackle that next. i have written libusb utilities for all of the display functions supported, and have documented the knob/button interrupt packets (only three packet types, clockwise, counterclockwise, and button down). all of the remote control functions are well-documented in lirc. i've been looking through the sources in the sys tree, but would like to find some comprehensive documentation of the new usb subsystem, and maybe someone who can give me pointers as i go. jim From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 18:20:48 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 385151065694 for ; Thu, 26 Aug 2010 18:20:48 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id F0A708FC0C for ; Thu, 26 Aug 2010 18:20:47 +0000 (UTC) Received: by iwn36 with SMTP id 36so1997030iwn.13 for ; Thu, 26 Aug 2010 11:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Fcz+KFaVruHTqUb57xP1CiKR4O8fzlBymO4yEJwb/E8=; b=a529axsykbxoTdFmCXt0QbJuKpOIewuBf7dy9I+HPrVuO6y3C81PAJbORKAzddaTep jS36NT1uj12YWxUgfCNgZCKXwr022ddS8AhOazQzyFcggwq4m+weE9D0aARj04u6kF1h o1y1wo4L1gtvYVFtTes7sxZlgHQD+OVH6ZTN8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=XxxLI/3NVpt6Vl04d6F7/vhoMQbKKPyr60Q2S1+mEGdYybjS4z/QD3WsC0mVPvPgJy 3Fp5qBYpdiF9gqc64tAuIypuJTGI7mPVYAFxwxuG6KL8so2M/EePCF13gmkVpHuP+6zw I0trtJzscxOBRO9j2qVmaWdvQsdvGC8M/28jQ= Received: by 10.231.11.69 with SMTP id s5mr10855448ibs.38.1282846847084; Thu, 26 Aug 2010 11:20:47 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id e8sm2775530ibb.2.2010.08.26.11.20.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 11:20:46 -0700 (PDT) Message-ID: <4C76B07D.9010402@gmail.com> Date: Thu, 26 Aug 2010 13:20:45 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4C76AB76.4070806@gmail.com> In-Reply-To: <4C76AB76.4070806@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 18:20:48 -0000 also, i'd like to hook up with a committer, as i'd like to have the finished drivers in the official tree. both devices (the temper, and the imon) have uses suited to both home/workstation use, as well as server use, in fact my imon is installed in orb, which is a home multi-server (music, books, tv shows, movies, mysql, samba, etc), and i intend to use the imon vfd as a tool to get server info without having to login to the server (using the knob/button to select from a menu on the vfd), and it has uses in both home and enterprise server realms. i think the source tree would benefit from having both drivers once completed. Jim Bryant wrote: > i have some usb devices, in the hid class, that i am wanting to write > some drivers for. > > seeing that one of these previously had an older non-submitted driver > for 5.x-7.x online, i thought that might be a good starting point (the > imon vfd/lirc driver), but that does not work, due to the changes in > the usb subsystem. > > where can i find documentation on this subsystem? > > are there any decent skeletons to start with, or does this need to be > from scratch? > > i'd like to start with a driver for the pcsensor temper usb > thermometer, for which i already wrote a libusb util for, since these > are widely sold, and very popular (and usually around $5 USD), and > since it only has one transaction (read current temp), I figure it > would be easier to start with while I learn the usb driver framework. > > as for the imon vfd unit, i'd like to tackle that next. i have > written libusb utilities for all of the display functions supported, > and have documented the knob/button interrupt packets (only three > packet types, clockwise, counterclockwise, and button down). all of > the remote control functions are well-documented in lirc. > > i've been looking through the sources in the sys tree, but would like > to find some comprehensive documentation of the new usb subsystem, and > maybe someone who can give me pointers as i go. > > jim > > From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 18:41:26 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 792361065675 for ; Thu, 26 Aug 2010 18:41:26 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 1C54C8FC0A for ; Thu, 26 Aug 2010 18:41:25 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id o7QIfPBi036467; Thu, 26 Aug 2010 12:41:25 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id o7QIfPqM036464; Thu, 26 Aug 2010 12:41:25 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 26 Aug 2010 12:41:25 -0600 (MDT) From: Warren Block To: Jim Bryant In-Reply-To: <4C76B07D.9010402@gmail.com> Message-ID: References: <4C76AB76.4070806@gmail.com> <4C76B07D.9010402@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Thu, 26 Aug 2010 12:41:25 -0600 (MDT) Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 18:41:26 -0000 On Thu, 26 Aug 2010, Jim Bryant wrote: > also, i'd like to hook up with a committer, as i'd like to have the finished > drivers in the official tree. > > both devices (the temper, and the imon) have uses suited to both > home/workstation use, as well as server use, in fact my imon is installed in > orb, which is a home multi-server (music, books, tv shows, movies, mysql, > samba, etc), and i intend to use the imon vfd as a tool to get server info > without having to login to the server (using the knob/button to select from a > menu on the vfd), and it has uses in both home and enterprise server realms. > > i think the source tree would benefit from having both drivers once > completed. Agreed, and I would also like to see a working LIRC module. From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 20:36:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B85361065674 for ; Thu, 26 Aug 2010 20:36:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 443AB8FC08 for ; Thu, 26 Aug 2010 20:36:46 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8nVFKzxAJNCZJh2yHDOpnep+nZeeqVU+af0AVP5CZ7Y= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=FP58Ms26AAAA:8 a=idV22jiUtjJveb3O9lUA:9 a=6XSKo1a1u0EYPNAsFGI2pu5Mk_0A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11353471; Thu, 26 Aug 2010 22:36:40 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 26 Aug 2010 22:32:44 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> In-Reply-To: <4C76AB76.4070806@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008262232.44775.hselasky@c2i.net> Cc: Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 20:36:47 -0000 On Thursday 26 August 2010 19:59:18 Jim Bryant wrote: > i have some usb devices, in the hid class, that i am wanting to write > some drivers for. > > seeing that one of these previously had an older non-submitted driver > for 5.x-7.x online, i thought that might be a good starting point (the > imon vfd/lirc driver), but that does not work, due to the changes in the > usb subsystem. > > where can i find documentation on this subsystem? > > are there any decent skeletons to start with, or does this need to be > from scratch? > > i'd like to start with a driver for the pcsensor temper usb thermometer, > for which i already wrote a libusb util for, since these are widely > sold, and very popular (and usually around $5 USD), and since it only > has one transaction (read current temp), I figure it would be easier to > start with while I learn the usb driver framework. > > as for the imon vfd unit, i'd like to tackle that next. i have written > libusb utilities for all of the display functions supported, and have > documented the knob/button interrupt packets (only three packet types, > clockwise, counterclockwise, and button down). all of the remote > control functions are well-documented in lirc. > > i've been looking through the sources in the sys tree, but would like to > find some comprehensive documentation of the new usb subsystem, and > maybe someone who can give me pointers as i go. > > jim Hi, Feel free to post patches here. Some choices you have: Use libusb v1.0 or v0.1 if you need portability. Else use libusb v2.0. All three versions are contained in -lusb on FreeBSD 8+. Sylvestre Gallon had some libusb examples in his USB P4 repositorium. Else if you have questions regarding libusb you can ask either here or at: libusb-devel@lists.sourceforge.net --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 20:37:05 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6275A10656B0 for ; Thu, 26 Aug 2010 20:37:05 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id E7C868FC1E for ; Thu, 26 Aug 2010 20:37:04 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=8nVFKzxAJNCZJh2yHDOpnep+nZeeqVU+af0AVP5CZ7Y= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=24HALQV_Oze8yCQTek4A:9 a=V-rH1kgOMgfacE-7y9t4nK-dH_YA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11353594; Thu, 26 Aug 2010 22:36:59 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Thu, 26 Aug 2010 22:33:03 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> In-Reply-To: <201008262232.44775.hselasky@c2i.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008262233.03881.hselasky@c2i.net> Cc: Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 20:37:05 -0000 On Thursday 26 August 2010 22:32:44 Hans Petter Selasky wrote: > > where can i find documentation on this subsystem? man libusb --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 21:29:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 029F21065672 for ; Thu, 26 Aug 2010 21:29:39 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9E3C18FC1C for ; Thu, 26 Aug 2010 21:29:39 +0000 (UTC) Received: by iwn36 with SMTP id 36so2144227iwn.13 for ; Thu, 26 Aug 2010 14:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hPCR3l42mEnDG2ZAEQGQS6YT7U5QIBpl+Dqfwrahfp8=; b=L5cBQrQ1AERQvEBIoVYImyZL6KYP06GCIA58W4lVC+SWZSrqOI+qob2qo1hZbmc/Ft KFZ0X2YlLHbVI9EEemC8gOHGzgcUXWzjI1vdQxnWvuyqqU7zIqLtYf1lkJCFDTPJyLth BRfz44Ya8KpZuC3lhL3OjXaLV2R7QPjCoCwhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=hjijvD1LyYjOgxBtCp/yrV17gsksHtkvfJTGoyFSgaChLFHEmUlT590TOx3oA2nJj6 9go7wjS+OMZ0viDyies66Ys668Cn8x631ySe4GlXM9omXSz3S3JJB77qwiM52u++WcAs CKNf2PobmDeS9CvVMk9s/Ev2lDp3obkgn/dGA= Received: by 10.231.37.75 with SMTP id w11mr11729238ibd.45.1282858177812; Thu, 26 Aug 2010 14:29:37 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id z6sm1143093ibc.6.2010.08.26.14.29.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 14:29:37 -0700 (PDT) Message-ID: <4C76DCBF.3080904@gmail.com> Date: Thu, 26 Aug 2010 16:29:35 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> In-Reply-To: <201008262232.44775.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 21:29:40 -0000 Actually, all of my test programs (for testing my reverse engineering efforts) have been done in libusb-1.0. I would actually like to write kernel-level drivers though for these. Hans Petter Selasky wrote: > On Thursday 26 August 2010 19:59:18 Jim Bryant wrote: > >> i have some usb devices, in the hid class, that i am wanting to write >> some drivers for. >> >> seeing that one of these previously had an older non-submitted driver >> for 5.x-7.x online, i thought that might be a good starting point (the >> imon vfd/lirc driver), but that does not work, due to the changes in the >> usb subsystem. >> >> where can i find documentation on this subsystem? >> >> are there any decent skeletons to start with, or does this need to be >> from scratch? >> >> i'd like to start with a driver for the pcsensor temper usb thermometer, >> for which i already wrote a libusb util for, since these are widely >> sold, and very popular (and usually around $5 USD), and since it only >> has one transaction (read current temp), I figure it would be easier to >> start with while I learn the usb driver framework. >> >> as for the imon vfd unit, i'd like to tackle that next. i have written >> libusb utilities for all of the display functions supported, and have >> documented the knob/button interrupt packets (only three packet types, >> clockwise, counterclockwise, and button down). all of the remote >> control functions are well-documented in lirc. >> >> i've been looking through the sources in the sys tree, but would like to >> find some comprehensive documentation of the new usb subsystem, and >> maybe someone who can give me pointers as i go. >> >> jim >> > > Hi, > > Feel free to post patches here. > > Some choices you have: > > Use libusb v1.0 or v0.1 if you need portability. > > Else use libusb v2.0. > > All three versions are contained in -lusb on FreeBSD 8+. > > Sylvestre Gallon had some libusb examples in his USB P4 repositorium. Else if > you have questions regarding libusb you can ask either here or at: > > libusb-devel@lists.sourceforge.net > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 21:42:49 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 647001065693 for ; Thu, 26 Aug 2010 21:42:49 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id CBAA38FC17 for ; Thu, 26 Aug 2010 21:42:48 +0000 (UTC) Received: by iwn36 with SMTP id 36so2156570iwn.13 for ; Thu, 26 Aug 2010 14:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=46FKF9Y82QTN3b9z8HbIgbLsMepL332h1r3fj9oRyCw=; b=RNKZ2pTufNKCdrCcdkcvzdeAZErry/zzEmqk3U/ZyV4/XPOhJBdKC8EQMaCDavRdPO KS3uSOwxQFYKAbbjey2Sy1nHMkZYEZkSzH4gF3H22UT8OWtP8iYypVD+5IQzUgJEe/8t 3Kyr/sNWC+uNgSosqHau7zJ170P1jWjj6wOMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=aTgNjOrx6wJnQ4ezDuiKCGfxsHKFZWPh+ruVpAXY932g0SNL/xXDqml7Xt7cyxu+Rz lHJMBIPe8aEl+1WNRbLWBjGe/CuS9RA3vi8rVQE9fkS8eQww+poOVA5R/uXSWaCzNPiM lBFGXR+bGxLg5YY+zpcMl/i8jKnr9wgcXFzV0= Received: by 10.231.184.168 with SMTP id ck40mr11527915ibb.174.1282858968126; Thu, 26 Aug 2010 14:42:48 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id h8sm2921986ibk.3.2010.08.26.14.42.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 14:42:47 -0700 (PDT) Message-ID: <4C76DFD6.3010109@gmail.com> Date: Thu, 26 Aug 2010 16:42:46 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> <201008262233.03881.hselasky@c2i.net> In-Reply-To: <201008262233.03881.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 21:42:49 -0000 does the libusb interface apply to kernel-level drivers, or is it userland? Hans Petter Selasky wrote: > On Thursday 26 August 2010 22:32:44 Hans Petter Selasky wrote: > >>> where can i find documentation on this subsystem? >>> > > man libusb > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 21:48:32 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24A521065693 for ; Thu, 26 Aug 2010 21:48:32 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id DC0DB8FC14 for ; Thu, 26 Aug 2010 21:48:31 +0000 (UTC) Received: by iwn36 with SMTP id 36so2161993iwn.13 for ; Thu, 26 Aug 2010 14:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ECarNsclXaeSVRf3GHDYv5n9WKjTG1qrP2ctdk0Ycxc=; b=xz4C9lNlaNVqoyET81a3ASjeNLYlixHrlXswRTRopYYMCPGYfO3riWQN+FRo4PKVMz RKURbP2WpufJ50wZeRRQlzIHP836+E3JkZUWULDFNrHcbx8ZJeQGXcMgiwIuqphsdJAE Z3fLmNhjdHyNCNqnSHqj6gPeotWaPaICfjXoI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Q6fDQiKIWG6X1j9OVE7NCQLPx0G7JSS2ijZSrEx9C7BAgrDB7E4oMViugiFRkTcoeZ 2ja2LpnHWR0NQ2KwpwABov1y1vWVoiNnsMpLvGxAXwx8n3DbVAb3ZpQ/07r0EvBIt2so VHqLMACQUitrLNEufMYIewJsXrkR0CZFOf4SQ= Received: by 10.231.192.80 with SMTP id dp16mr12753247ibb.39.1282859311487; Thu, 26 Aug 2010 14:48:31 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id z6sm1156420ibc.0.2010.08.26.14.48.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 14:48:24 -0700 (PDT) Message-ID: <4C76E126.4040508@gmail.com> Date: Thu, 26 Aug 2010 16:48:22 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> <201008262233.03881.hselasky@c2i.net> <4C76DFD6.3010109@gmail.com> In-Reply-To: <4C76DFD6.3010109@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 21:48:32 -0000 i was under the impression that it is userland-only. Jim Bryant wrote: > does the libusb interface apply to kernel-level drivers, or is it > userland? > > Hans Petter Selasky wrote: >> On Thursday 26 August 2010 22:32:44 Hans Petter Selasky wrote: >> >>>> where can i find documentation on this subsystem? >>>> >> >> man libusb >> >> --HPS >> >> > From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 21:50:28 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 8E63A10656A6; Thu, 26 Aug 2010 21:50:28 +0000 (UTC) Date: Thu, 26 Aug 2010 21:50:28 +0000 From: Alexander Best To: freebsd-usb@freebsd.org Message-ID: <20100826215028.GA80160@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: problem with mobile phone X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 21:50:28 -0000 hi there, when i connect my mobile phone to a recent HEAD (amd64; r211393) i get the following: ugen3.3: at usbus3 umass0: on usbus3 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) da0 at umass-sim0 bus 0 scbus9 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 3777MB (7736320 512 byte sectors: 255H 63S/T 481C) when i try to read stuff from the phone, it resets and i get this: ugen3.3: at usbus3 (disconnected) umass0: at uhub8, port 3, addr 3 (disconnected) (da0:umass-sim0:0:0:0): AutoSense failed (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi status == 0x0 (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry it both happens if i mount it and read files or if i directly read something from the /dev/da0 device using `dd`. interestingly it always crashes after the same ammount of data read: dd: /dev/da0: Input/output error 4+0 records in 4+0 records out 4194304 bytes transferred in 3.333149 secs (1258361 bytes/sec) after a few retries the usb port i was using becomes unusable and nothing is being detected any longer. i'm pretty sure this didn't happen a few weeks ago, but now it does. cheers. alex -- a13x From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 22:19:38 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id B758510656A9; Thu, 26 Aug 2010 22:19:38 +0000 (UTC) Date: Thu, 26 Aug 2010 22:19:38 +0000 From: Alexander Best To: Jim Bryant Message-ID: <20100826221938.GA90296@freebsd.org> References: <20100826105814.GA86800@freebsd.org> <4C76A73E.9070509@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C76A73E.9070509@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 22:19:38 -0000 On Thu Aug 26 10, Jim Bryant wrote: > when you had to press it twice, was that only for the first attempt, and > did pressing it once after that turn it off? and once after that, on? exactly. it might be a bit easier to understand if i explain it this way: instance | num lock led | number keys working --------------- | --------------------- | ------------------------- no key press | on | no 1st key press | on | no 2nd key press | off | no 3rd key press | on | yes 4th key press | off | no 5th key press | on | yes ... (key press refering to the num lock key) cheers. alex > > i just read your note here, and the following one about the long delays > (kern/99538), and was able to duplicate the two-press thing. > > amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a > generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: > > ukbd1: > on usbus2 > ums1: > on usbus2 > > it seems that the press-twice scenario was only needed the first > attempt. normal behaviour after that. > > 8.1-stable last cvsup/build: > > FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug > 25 03:44:55 CDT 2010 > jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 > > > Alexander Best wrote: > >hi there, > > > >i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in my > >bios i have enabled the "boot with num lock enabled" feature. when i fire > >up > >freebsd the num lock light on my keyboard is on. however the num lock keys > >don't work. if i press the num lock button once nothing happens. if i hit > >it > >twice the num lock led goes off. to make the num lock feature work i have > >to > >actually hit the num lock key thrice. > > > >is this a known issue? > > > >cheers. > >alex > > > > > -- a13x From owner-freebsd-usb@FreeBSD.ORG Thu Aug 26 23:19:32 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8E371065698; Thu, 26 Aug 2010 23:19:32 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f196.google.com (mail-iw0-f196.google.com [209.85.214.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5D9A58FC18; Thu, 26 Aug 2010 23:19:32 +0000 (UTC) Received: by iwn7 with SMTP id 7so29919iwn.7 for ; Thu, 26 Aug 2010 16:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5+f8uDwb/ePbl9ul/JynDZrxCQ/a5gQaDUjJEq+W3XQ=; b=xFsoincXPX3bl2dVRW1A8JoBd5UPGlMO3RF44p7aXF/2UQ+cE53HlpzLjtFIZkB2gD GygIycpz9hDCm6rhd8mhuNVNv3PniqyzJ1KvRkQfia4DK36vb+0eyCCN42yMAbzNZzfg hFIPwFwM9ewT05corKv5Hi3ASAkKy9AxvRAsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=PeSPOt9yYc3VACc9TnLKxbIcZaf5IcxZ3GaUjy/6YPXbeMePyHjXeudXJ3dxwvHuZJ 7y9bOExFQRIBYMzUiK9Q0vZGn5NY4aD7oXf+XZHgw1zgBgAQ7457BzEN3DUAqLDKxCWD IfKUSqZedabS7F6TuQsboBuOZ2ZPU9VMk4MQM= Received: by 10.231.160.77 with SMTP id m13mr98626ibx.22.1282864762297; Thu, 26 Aug 2010 16:19:22 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id n20sm2983212ibe.23.2010.08.26.16.19.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Aug 2010 16:19:20 -0700 (PDT) Message-ID: <4C76F677.9020000@gmail.com> Date: Thu, 26 Aug 2010 18:19:19 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Alexander Best References: <20100826105814.GA86800@freebsd.org> <4C76A73E.9070509@gmail.com> <20100826221938.GA90296@freebsd.org> In-Reply-To: <20100826221938.GA90296@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 23:19:32 -0000 oh freaking wow!!! this just got weirder!!! i haven't had the two-press thing again, but since you listed the status of the keys themselves, i decided to check just now... numlock off = numbers numlock on = cursor pad we have two different behaviors here. please double check yours just in case. i just double-checked, my keypad is operating opposite the way it should be. motherboard: intel dq45ek, most recent bios (mid august), numlock defaults to on in bios cmos setting. just in case, i double-checked, my external keypad is hooked up to the laptop, not this - no conflicts there. xorg is configured or default behavior, as is kde4. this might be a xorg or kde issue. i just checked syscons. normal behavior there. nums only when numlock is on. in kde system settings: "leave unchanged" is the enabled option. if you have kde4 installed (or any other wm) please check under x for reverse behavior. Alexander Best wrote: > On Thu Aug 26 10, Jim Bryant wrote: > >> when you had to press it twice, was that only for the first attempt, and >> did pressing it once after that turn it off? and once after that, on? >> > > exactly. it might be a bit easier to understand if i explain it this way: > > instance | num lock led | number keys working > --------------- | --------------------- | ------------------------- > no key press | on | no > 1st key press | on | no > 2nd key press | off | no > 3rd key press | on | yes > 4th key press | off | no > 5th key press | on | yes > ... > > (key press refering to the num lock key) > > cheers. > alex > > >> i just read your note here, and the following one about the long delays >> (kern/99538), and was able to duplicate the two-press thing. >> >> amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a >> generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: >> >> ukbd1: >> on usbus2 >> ums1: >> on usbus2 >> >> it seems that the press-twice scenario was only needed the first >> attempt. normal behaviour after that. >> >> 8.1-stable last cvsup/build: >> >> FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug >> 25 03:44:55 CDT 2010 >> jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 >> >> >> Alexander Best wrote: >> >>> hi there, >>> >>> i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in my >>> bios i have enabled the "boot with num lock enabled" feature. when i fire >>> up >>> freebsd the num lock light on my keyboard is on. however the num lock keys >>> don't work. if i press the num lock button once nothing happens. if i hit >>> it >>> twice the num lock led goes off. to make the num lock feature work i have >>> to >>> actually hit the num lock key thrice. >>> >>> is this a known issue? >>> >>> cheers. >>> alex >>> >>> >>> > > From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:00:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BEC0106566C for ; Fri, 27 Aug 2010 07:00:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id CA6C28FC1D for ; Fri, 27 Aug 2010 07:00:45 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=xRQh0DuJLUrm8A1xErwA:9 a=A_0S6KOI8acdr0aZq4dkWm0qGPIA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 12611821; Fri, 27 Aug 2010 09:00:37 +0200 From: Hans Petter Selasky To: Jim Bryant Date: Fri, 27 Aug 2010 08:56:43 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> <4C76DCBF.3080904@gmail.com> In-Reply-To: <4C76DCBF.3080904@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270856.43512.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:00:46 -0000 On Thursday 26 August 2010 23:29:35 Jim Bryant wrote: > Actually, all of my test programs (for testing my reverse engineering > efforts) have been done in libusb-1.0. > > I would actually like to write kernel-level drivers though for these. > Then you should look at existing drivers in /sys/dev/usb/xxx, which match your device class. What kind of API do you want to userspace? tty-device, character device? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:02:15 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C01201065675 for ; Fri, 27 Aug 2010 07:02:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 4F8368FC0A for ; Fri, 27 Aug 2010 07:02:14 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sIybwy0z7bWw0ilx/SziPN3xnsQN4yn8NMXKZM3k7p4= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=EM_6hOBoYxPSbeTagyYA:9 a=K10N8g96INviA-_LrX_KWwr3CzwA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11832704; Fri, 27 Aug 2010 09:02:12 +0200 From: Hans Petter Selasky To: Jim Bryant Date: Fri, 27 Aug 2010 08:58:14 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> <201008262233.03881.hselasky@c2i.net> <4C76DFD6.3010109@gmail.com> In-Reply-To: <4C76DFD6.3010109@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270858.14282.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:02:15 -0000 On Thursday 26 August 2010 23:42:46 Jim Bryant wrote: > does the libusb interface apply to kernel-level drivers, or is it userland? > > Hans Petter Selasky wrote: > > On Thursday 26 August 2010 22:32:44 Hans Petter Selasky wrote: > >>> where can i find documentation on this subsystem? > > > > man libusb > > > > --HPS It is user-space only. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:08:17 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7AAF10656AB for ; Fri, 27 Aug 2010 07:08:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id CB8BF8FC1D for ; Fri, 27 Aug 2010 07:08:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sIybwy0z7bWw0ilx/SziPN3xnsQN4yn8NMXKZM3k7p4= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6X2uZvstorFOq5QtrkUA:9 a=5pYj-qX8coLcf38fFQIA:7 a=zlI_dkH25y3xk7HQt7488sN3fO0A:4 a=wPNLvfGTeEIA:10 a=MA64-YX0OwsfCcXz:21 a=HTdtxpjwrHlKXlEK:21 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11836342; Fri, 27 Aug 2010 09:08:14 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 27 Aug 2010 09:04:15 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20100826215028.GA80160@freebsd.org> In-Reply-To: <20100826215028.GA80160@freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270904.16009.hselasky@c2i.net> Cc: Alexander Best Subject: Re: problem with mobile phone X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:08:17 -0000 On Thursday 26 August 2010 23:50:28 Alexander Best wrote: > hi there, > > when i connect my mobile phone to a recent HEAD (amd64; r211393) i get the > following: > > ugen3.3: at usbus3 > umass0: on usbus3 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > (probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready > to ready change, medium may have changed) da0 at umass-sim0 bus 0 scbus9 > target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 3777MB (7736320 512 byte sectors: 255H 63S/T 481C) > > when i try to read stuff from the phone, it resets and i get this: > > ugen3.3: at usbus3 (disconnected) > umass0: at uhub8, port 3, addr 3 (disconnected) > (da0:umass-sim0:0:0:0): AutoSense failed > (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0xa, scsi > status == 0x0 (da0:umass-sim0:0:0:0): lost device > (da0:umass-sim0:0:0:0): removing device entry > > it both happens if i mount it and read files or if i directly read > something from the /dev/da0 device using `dd`. > > interestingly it always crashes after the same ammount of data read: > > dd: /dev/da0: Input/output error > 4+0 records in > 4+0 records out > 4194304 bytes transferred in 3.333149 secs (1258361 bytes/sec) > > after a few retries the usb port i was using becomes unusable and nothing > is being detected any longer. > > i'm pretty sure this didn't happen a few weeks ago, but now it does. > Hi, Have you loaded the usb_quirk.ko ? Try adding a mass storage quirk for this mass storage device, for test unit ready and synchronize cache. Else look for changes in SCSI area. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:17:29 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95CBF106566C for ; Fri, 27 Aug 2010 07:17:29 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f196.google.com (mail-iw0-f196.google.com [209.85.214.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5C4828FC19 for ; Fri, 27 Aug 2010 07:17:29 +0000 (UTC) Received: by iwn7 with SMTP id 7so76244iwn.7 for ; Fri, 27 Aug 2010 00:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=pxznWwuyxju7qhSJW2L22wUqa2PQ6GlwWWVJcCz7Mxw=; b=uTXRBWWKA1p9ZbJ9FQISL0KUvbfI1uef6KJtwtE72veIsIeehsLQSz4lD/fJnxe8n1 aKfd6aP8grM1QL1OL+UtEjvM2gH+BnjScTI3AHJxi3U+3e39LGytY8fVjHyoVUAY+5hA jvFCMuFfZQvsL+/8gEQlWgfo3o20JutuP9KYQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ThUpC2R+TuE5ClPKlhLWIlZml9H8f5K6Q78+Uw6/YTyogWDscwGmAc/woR7EwjNNZ7 qTB0qe7cExLNKx2oLFu7asKseXlhK7J0FCyIdzrpc9ZTfKwp3lqUNfYitUyxY7cS7BDg MT0Q4ogivX6WCQy3w4AMITtzVmKvf6oZYYy/c= Received: by 10.231.160.205 with SMTP id o13mr723566ibx.15.1282893446828; Fri, 27 Aug 2010 00:17:26 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id z6sm1641729ibc.18.2010.08.27.00.17.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 00:17:26 -0700 (PDT) Message-ID: <4C776684.6000707@gmail.com> Date: Fri, 27 Aug 2010 02:17:24 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:17:29 -0000 ok, here's a dilemma... the imon vfd has a bargraph mode (called equalizer mode using the soundgraph imon software in winblowz) has a certain level of wierdness in it. i am leaning towards inclucing it's data massaging into the kernel driver, as it's use is a bit touchy. it has off and sixteen vertical levels 1..f bottom to top. each char column on both lines is used to form a single bar in the graph. the code to do this in my test program is as follows (he question is should i or should i not include this in the kernel driver, as it is totally undocumented by anyone other than myself. the manufacturer won't even answer questions or provide requested documentation. and given the recent supreme court ruling, i can reverse-engineer the interface to my heart's content legally. i bought hardware, and want to use it): /* im is a descriptor container structure pointer. ib is the input buffer of length 16 containing values of 0..16 dt is a delay to prevent overrun, and may not be in the final code, this is a quick hack without error checking for non-deliverables */ int imonSendBargraph(struct imon *im, unsigned char *ib, int dt) { int i, j, odd; unsigned char nh, nl, c, ob[16]; unsigned char xt[9] = { 0x00, 0x01, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; bzero(ob, 16); j = 8; for(i = 0; i < 16; i++) { if ((c = ib[i]) > 16) return(-1); if (c > 8) { nh = c - 8; nl = 8; } else { nh = 0; nl = c; } if (i % 2) { ob[j] |= xt[nl]; ob[(j++) - 8] |= xt[nh]; } else { ob[j] |= (xt[nl] << 4); ob[j - 8] |= (xt[nh] << 4); } /* int odd; ob[j] |= (odd = (i % 2)) ? xt[nl] : (xt[nl] << 4); ob[j - 8] |= odd ? xt[nh] : (xt[nh] << 4); if (odd) { ++j; odd = 0; } */ } imonSendCommand(im, ob[0x00], ob[0x01], ob[0x02], ob[0x03], ob[0x04], ob[0x05], 0xff, 0x40); delay(dt); imonSendCommand(im, ob[0x06], ob[0x07], ob[0x08], ob[0x09], ob[0x0a], ob[0x0b], 0xff, 0x42); delay(dt); imonSendCommand(im, ob[0x0c], ob[0x0d], ob[0x0e], ob[0x0f], 0x00, 0xff, 0xff, 0x44); delay(dt); return(0); } after the driver is in place, i might add a plugin for xmms to take advantage of this. given that all of the marketing photos of this (the antec veris elite) display this "equalizer" bargraph, i'm highly surprised that none of the linux people have bothered to reverse-engineer it and take advantage of it. oh well, they can port it from freebsd when i'm done. heh! is this level of bit-fiddling acceptable in the kernel? this is the most efficient version of doing this that i have come up with so far. the bit with the rval conditionals was just fucking around, and not intended for production code. jim From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:21:22 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0817910656AB for ; Fri, 27 Aug 2010 07:21:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 8DA698FC20 for ; Fri, 27 Aug 2010 07:21:21 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=lVe/gw8n+Sg6VfbntC6ksM24ozRLXC8p6LIuM5gXbf8= c=1 sm=1 a=aoo70D9LGfsA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8Udrz-bVZcSzH66LA3MA:9 a=OaTVDRmhdsEP9wSuL1Kf2PbxNxQA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 12625467; Fri, 27 Aug 2010 09:21:14 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 27 Aug 2010 09:17:21 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C776684.6000707@gmail.com> In-Reply-To: <4C776684.6000707@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270917.21098.hselasky@c2i.net> Cc: Subject: Re: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:21:22 -0000 On Friday 27 August 2010 09:17:24 Jim Bryant wrote: > is this level of bit-fiddling acceptable in the kernel? Yes, this is Ok. One more thing: Add a mutex pointer argument to functions that can sleep. Is the code you showed doing control requests? --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 07:22:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5B931065698 for ; Fri, 27 Aug 2010 07:22:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.freebsd.org (Postfix) with ESMTP id 6D4498FC24 for ; Fri, 27 Aug 2010 07:22:59 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=skgvEfutgnGSr0/z2w9BnbiJ4B+NZJZqOB5vgMWy4GQ= c=1 sm=1 a=aoo70D9LGfsA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=WhfvXyeiZWEuNZ-oznUA:9 a=NT95jmDdqolcbpjabGyef_aQD9QA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11355560; Fri, 27 Aug 2010 09:22:53 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 27 Aug 2010 09:18:58 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C776684.6000707@gmail.com> In-Reply-To: <4C776684.6000707@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008270918.58584.hselasky@c2i.net> Cc: Subject: Re: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 07:23:00 -0000 On Friday 27 August 2010 09:17:24 Jim Bryant wrote: > unsigned char Try to use the: uint8_t uint16_t uint32_t int8_t int16_t int32_t types when describing data types. Also think about endianness and that 32-bit reads/writes must be 32-bit aligned. Else use UGETDW() and similar functions. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 08:00:21 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1A1510656B3 for ; Fri, 27 Aug 2010 08:00:21 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id B3CE28FC12 for ; Fri, 27 Aug 2010 08:00:06 +0000 (UTC) Received: by ywt2 with SMTP id 2so1204947ywt.13 for ; Fri, 27 Aug 2010 01:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Z4MqYnftTibck+rjqXtk6uAMYBJ9kkj5nysn5VVrejs=; b=nqIoJNCCIQUvfBNlGxN+hhYnpHUq3ftQoCboHjdvJ8DtLXb+hfMpxvPn9mr9oZkpdZ CcopZarvpI4qji4eqslImyO6oq+TTWcrp8noEypO0uDYYnqXuSqj2u4h8LaVPbRltWP3 BYU/mYmfAkJH5McBugnB/CF3um0LGkGI1f5AE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=pOUBtKQIhBRNWcYDAJK6/tE1Oe9Yx83cLNVnxN+PF+poVJXZRHhdXHYl3oX3BO32qN 2lATuQAIw45Y0SevdSBHDhWWYps/3pgVwOChoB/zSWvZDVPe2t0vLaLtoVIlCWnz4wiJ HOhJoE54Fo/EOVKwWdjf3hB7sfmop49SFxOGg= Received: by 10.101.154.30 with SMTP id g30mr409483ano.256.1282896005727; Fri, 27 Aug 2010 01:00:05 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id h8sm3452188ibk.3.2010.08.27.01.00.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 01:00:05 -0700 (PDT) Message-ID: <4C777083.5080709@gmail.com> Date: Fri, 27 Aug 2010 03:00:03 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C776684.6000707@gmail.com> <201008270917.21098.hselasky@c2i.net> In-Reply-To: <201008270917.21098.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:00:21 -0000 yes, i will use mutexes in the kernel code. what i pasted was one function from a userland libusb-1 test program. the imonSendCommand(); function encapsulates the control request. Hans Petter Selasky wrote: > On Friday 27 August 2010 09:17:24 Jim Bryant wrote: > >> is this level of bit-fiddling acceptable in the kernel? >> > > Yes, this is Ok. > > One more thing: Add a mutex pointer argument to functions that can sleep. > > Is the code you showed doing control requests? > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 08:10:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9619B10656A9 for ; Fri, 27 Aug 2010 08:10:46 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 590008FC15 for ; Fri, 27 Aug 2010 08:10:45 +0000 (UTC) Received: by iwn36 with SMTP id 36so2704239iwn.13 for ; Fri, 27 Aug 2010 01:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=PL6dr4wLsIGYTTHd0E1rqZfMh/buOEbGifobf5HaTk8=; b=N2aiWK5NwpixXxT9jZ0eBohwahPogUqCSFq5iYOFAdK0HICNbb/X5RdzZOFiWhfiGh iOdW/xvbFxC2amdoa62qrsswzVz0E/LcE4w/kCR0EonNxvvz1xumLoxrB9d9kCb2mG8A PdO3XsxksZo4dvrvTgo/1ZRIh80160Xy7JtPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Hj+qbINttC4bPhlNj0HvV04k47QgeZhfIhktAzIOuP+8dgoKl4VXo1i36s6KHdlVZa RHDC4W0lA4X3nIHgnDQ23INmiWTTRYkdQPCTu2T16MoDaeWjIramTs/DDR7UrPY2zV2g j8aPPLM+LbKMrkMgepg0TXB5cxfxKipfiBXtM= Received: by 10.231.146.212 with SMTP id i20mr776441ibv.52.1282896645293; Fri, 27 Aug 2010 01:10:45 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id h8sm3462283ibk.3.2010.08.27.01.10.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 01:10:44 -0700 (PDT) Message-ID: <4C777302.7070108@gmail.com> Date: Fri, 27 Aug 2010 03:10:42 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C776684.6000707@gmail.com> <201008270918.58584.hselasky@c2i.net> In-Reply-To: <201008270918.58584.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: imon vfd driver complexity question X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:10:46 -0000 will do, thanks. as far as alignment, i'll try to align on 64 for more efficient intel/amd. and there shall be no holy wars, all values are broken down to bytes or nybbles, peace shall prevail. buffer lengths are fixed at 8 bytes. Hans Petter Selasky wrote: > On Friday 27 August 2010 09:17:24 Jim Bryant wrote: > >> unsigned char >> > > Try to use the: > > uint8_t > uint16_t > uint32_t > > int8_t > int16_t > int32_t > > types when describing data types. Also think about endianness and that 32-bit > reads/writes must be 32-bit aligned. Else use UGETDW() and similar functions. > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 08:53:42 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF6C10656A8 for ; Fri, 27 Aug 2010 08:53:42 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id C52738FC1D for ; Fri, 27 Aug 2010 08:53:41 +0000 (UTC) Received: by iwn36 with SMTP id 36so2740394iwn.13 for ; Fri, 27 Aug 2010 01:53:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=XqEY3yK0AKYXV4uTO3qjC2vxhH0+X3Nmzij+wxxJxA4=; b=Rdhon0KDBmp/bn6zNoaSA4+96YlFQqrOXUzOiIaxFBcHcXwEnQLqvLffBvZs9WxjcQ 19ukciSTxxemfogAumDAdtc3M1iGK1w9t5M9/ohLrp2lHr+vEaqpbOoXYElWbB6TCqJM J6+KE9vuI3Bl7Vrb5T7a8asrb/AEzwurr4HaE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=esHJ0uzScu67c6JQyfVpbcieDhhBv1bvmMNtXWwtTnGwLaWclLiNaj9gNiNpQd0x3N aVovTjJ8uADvS44kqwrWkwTrvyoFwGOSBEmQrB4xmBooqfSCp0G4wHukvWtq1/t0XKuU m0LYQo4XPoOlmOLB+1HwAMkUptd5Atz+6oNE8= Received: by 10.231.174.72 with SMTP id s8mr842994ibz.41.1282899221038; Fri, 27 Aug 2010 01:53:41 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id e8sm3500757ibb.2.2010.08.27.01.53.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 01:53:40 -0700 (PDT) Message-ID: <4C777D12.3040900@gmail.com> Date: Fri, 27 Aug 2010 03:53:38 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> <4C76DCBF.3080904@gmail.com> <201008270856.43512.hselasky@c2i.net> In-Reply-To: <201008270856.43512.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:53:42 -0000 it'll be a pair of character devices. the imon vfd is oem'ed to virtually EVERY high-end vfd-equipped htpc case on the market, all such tend to have the remote control interface as well built into the unit. the difference exists with the knob/button, some have it, others don't. the knob/button uses interrupt packets like the remote, but a totally different kind of packet, and i don't see support for it in lirc, so, i'll probably integrate it into the vfd device as the only read, and leave the remote as a seperate 100% lirc device. if people want to tie the knob/button to the volume/mute function exclusively, they can do so outside of the lirc framework. imho, the knob/button has better use as a function selector associated with menus on the vfd, although it can be used for volume/mute with little modification to existing lirc-related code. another possibility would be to use a function in the vfd driver to switch it between the vfd device for discrete use, or to switch it to the /dev/lirc device and have it link directly to the lirc codes for the remote for the volume up/down/mute buttons, with the capability to switch it back with another call to the /dev/vfd device. this is the direction i'm leaning. since the vfd panel, knob/button, and lirc-compat remote are all going to be in this driver, it's kind of a no-brainer. the option to use the knob/button for either should be left to the end-user/programmer. most people would rather use a remote control for volume/mute anyway. although there is very rudimentary support in linux under LCDd for the imon vfd, i'm thinking about not going that route. the end product may not end up being lcdproc /dev/lcd compat. it has limitations i don't like, and it wouldn't take advantage of the features the imon has. lirc compat is a goal of this project though. most of the work is done on that front, i just need to port that over from linux. the features of the imon remote control are well-supported in lirc. /dev/lirc will exist in my driver. Hans Petter Selasky wrote: > On Thursday 26 August 2010 23:29:35 Jim Bryant wrote: > >> Actually, all of my test programs (for testing my reverse engineering >> efforts) have been done in libusb-1.0. >> >> I would actually like to write kernel-level drivers though for these. >> >> > > Then you should look at existing drivers in /sys/dev/usb/xxx, which match your > device class. What kind of API do you want to userspace? tty-device, character > device? > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 08:57:29 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D38941065694 for ; Fri, 27 Aug 2010 08:57:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 595C78FC12 for ; Fri, 27 Aug 2010 08:57:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sIybwy0z7bWw0ilx/SziPN3xnsQN4yn8NMXKZM3k7p4= c=1 sm=1 a=bKZ37gBxqdwA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=MAsKJ6DvgYo3mToQDMYA:9 a=MDTkdWTsriXjEDy2E0R5ZasNT80A:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 11897976; Fri, 27 Aug 2010 10:57:26 +0200 From: Hans Petter Selasky To: Jim Bryant Date: Fri, 27 Aug 2010 10:53:27 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> In-Reply-To: <4C777D12.3040900@gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008271053.27731.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:57:29 -0000 On Friday 27 August 2010 10:53:38 Jim Bryant wrote: > it'll be a pair of character devices. > > lirc compat is a goal of this project though. most of the work is done > on that front, i just need to port that over from linux. the features > of the imon remote control are well-supported in lirc. /dev/lirc will > exist in my driver. See sys/dev/usb/input/ulpt.c driver for how to create cdevs. Don't use cdev directly in the kernel. --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 10:04:06 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7EF710656AB for ; Fri, 27 Aug 2010 10:04:06 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5B2638FC0C for ; Fri, 27 Aug 2010 10:04:05 +0000 (UTC) Received: by gyg4 with SMTP id 4so1227829gyg.13 for ; Fri, 27 Aug 2010 03:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=oTW2tzeVvAc3u8gCroXDHwnfx9XOt0/2QpuatKmxOcc=; b=Ztx0A9kdEDwzwYvx2fhIUh6B54W2abmt3ONWo2x99JPjhttLem/jUjC/5IHIaken1h DADpNoB68pgqIz1tMGrI2VrF5eW28COtj784Lot/hx5AQQKU2l1AKhu7KG6lXYKvdEfx K7MVS+oe36ZxO7UEmkKDPFWXeruLQiH2h5A2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=IAQiXC11K29RTuIW/eCLVtk/qh9UReAEksUAO7sXfxgVrlkr4rpgYwCeD8/geXvNpr v0Zt+67F9v70m9b1nbvBYtO+a2HnOU68Ni1WyA8FJ/Iaj1djC/jt9mRvxocs129P7OHM 1nztIRVsS981v+B1D0BLqKloFMEFha8G6F57E= Received: by 10.151.6.4 with SMTP id j4mr1591753ybi.274.1282903445104; Fri, 27 Aug 2010 03:04:05 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id h8sm3559866ibk.21.2010.08.27.03.04.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 03:04:04 -0700 (PDT) Message-ID: <4C778D92.5030003@gmail.com> Date: Fri, 27 Aug 2010 05:04:02 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008262232.44775.hselasky@c2i.net> <4C76DCBF.3080904@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> In-Reply-To: <4C777D12.3040900@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 10:04:06 -0000 since the display is 16x2, i kind of think a tty device would be gumming up the works. no sense in cooking the output. scrolling is done manually. the entire display of both lines has to be sent in every write. the samsung vfd panel itself has far more features than soundgraph (the manufacturer of the imon) has put into this (at least based on what their windows software does.. i'd kind of doubt that they are holding back features from their own software teams). i've only witnessed six types of transactions in their software. vfd text downstream. bargraph downstream. set/display static standby text. set/display freerunning standby clock/date. knob/button upstream. remote control upstream. all upstream is interrupt. i have verified all funtions in small test programs. bargraph is munged (i'm assuming that the bargraph is partially obfuscated by the fact that their display buffer seems to be only 16 bytes per line, when the samsung panel itself has 40 byte buffers for each 16 char line. line 1 left char is address 0 in the panel, and line 2 left char is address 40h, with 40 chars (28h) per line's display ram. i also suspect some intentional obfuscation involved in their bargraph scheme in a lame anti-reverse engineering attempt (their windows software always lags the music, and that's on an intel E8200, with large disk and 4 gigs of ram (3.9G addressable) the low-speed interface might also be a factor. personally, i'd do this at no less than 12mbit if i was the engineer...the chips are cheap enough. there seems to also be no support for the panel's on/off command (although i'm willing to bet it's there). there is no apparent support for the clear screen function (soundgraph's software does this by writing spaces to the display in five packets, when the vfd display itself supports a one-byte command to do so). no cursor functions (the cursor line is only active in bargraph mode). no brightness control (the panel supports 4 brightness levels). the display's built-in scrolling only scrolls both lines left or right, not individual lines, so, i can see why they chose to not use that. the panel supports blinking text, but that is also unsupported. some of the information that does not apply to my unit, i will derive from Alexander Popov's imon-0.1 driver which is not 8.x compat. he lists several other id's for enumeration, and has a quirk for some older versions that need a 6th fixed dummy packet for writing text to the display. the current generation drive-bay version mass-marketed by antec (veris elite) which i have doesn't require it, but apparently, his silverstone lc16 chassis does. he also didn't figure out the bargraph, knob/button, or clock/static standby display, his driver only displayed text, decoded the remote. overall, the device is rather simplistic as packaged with the soundgraph controller board backing the panel. the samsung vfd used seems to be far more powerful than the soundgraph endpoint supports. again, i'm using their own software, sniffed, to determine the functionality and commands. the display is so simplistic, a tty interface would be overkill. just character devices in this, and due to the multiple functions, the write() interface will be via variable length typed packets (type, length, data), the read() interface envisioned will be similar if i implement buffering of knob input, or single bytes otherwise, one for each of the three active states. anyhow. time for bed. nite. Jim Bryant wrote: > it'll be a pair of character devices. > > the imon vfd is oem'ed to virtually EVERY high-end vfd-equipped htpc > case on the market, all such tend to have the remote control interface > as well built into the unit. the difference exists with the > knob/button, some have it, others don't. the knob/button uses > interrupt packets like the remote, but a totally different kind of > packet, and i don't see support for it in lirc, so, i'll probably > integrate it into the vfd device as the only read, and leave the > remote as a seperate 100% lirc device. if people want to tie the > knob/button to the volume/mute function exclusively, they can do so > outside of the lirc framework. imho, the knob/button has better use > as a function selector associated with menus on the vfd, although it > can be used for volume/mute with little modification to existing > lirc-related code. > > another possibility would be to use a function in the vfd driver to > switch it between the vfd device for discrete use, or to switch it to > the /dev/lirc device and have it link directly to the lirc codes for > the remote for the volume up/down/mute buttons, with the capability to > switch it back with another call to the /dev/vfd device. this is the > direction i'm leaning. since the vfd panel, knob/button, and > lirc-compat remote are all going to be in this driver, it's kind of a > no-brainer. the option to use the knob/button for either should be > left to the end-user/programmer. most people would rather use a > remote control for volume/mute anyway. > > although there is very rudimentary support in linux under LCDd for the > imon vfd, i'm thinking about not going that route. the end product > may not end up being lcdproc /dev/lcd compat. it has limitations i > don't like, and it wouldn't take advantage of the features the imon has. > > lirc compat is a goal of this project though. most of the work is > done on that front, i just need to port that over from linux. the > features of the imon remote control are well-supported in lirc. > /dev/lirc will exist in my driver. > > Hans Petter Selasky wrote: >> On Thursday 26 August 2010 23:29:35 Jim Bryant wrote: >> >>> Actually, all of my test programs (for testing my reverse engineering >>> efforts) have been done in libusb-1.0. >>> >>> I would actually like to write kernel-level drivers though for these. >>> >>> >> >> Then you should look at existing drivers in /sys/dev/usb/xxx, which >> match your device class. What kind of API do you want to userspace? >> tty-device, character device? >> >> --HPS >> >> > From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 11:36:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 813341065672; Fri, 27 Aug 2010 11:36:40 +0000 (UTC) Date: Fri, 27 Aug 2010 11:36:40 +0000 From: Alexander Best To: Jim Bryant Message-ID: <20100827113640.GA52791@freebsd.org> References: <20100826105814.GA86800@freebsd.org> <4C76A73E.9070509@gmail.com> <20100826221938.GA90296@freebsd.org> <4C76F677.9020000@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C76F677.9020000@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 11:36:40 -0000 On Thu Aug 26 10, Jim Bryant wrote: > oh freaking wow!!! > > this just got weirder!!! > > i haven't had the two-press thing again, but since you listed the status > of the keys themselves, i decided to check just now... > > numlock off = numbers > numlock on = cursor pad nope. not the case here neither on the console nor under Xorg: numlock off = cursor pad numlock on = numbers i'm not sure however if the issue where i need to press num lock multiple times occurs only under Xorg or also when i'm just on the console and haven't started Xorg at all. i'll get back to you on that one. cheers. alex > > we have two different behaviors here. please double check yours just in > case. i just double-checked, my keypad is operating opposite the way it > should be. > > motherboard: intel dq45ek, most recent bios (mid august), numlock > defaults to on in bios cmos setting. > > just in case, i double-checked, my external keypad is hooked up to the > laptop, not this - no conflicts there. > > xorg is configured or default behavior, as is kde4. > > this might be a xorg or kde issue. i just checked syscons. normal > behavior there. nums only when numlock is on. > > in kde system settings: "leave unchanged" is the enabled option. > > if you have kde4 installed (or any other wm) please check under x for > reverse behavior. > > Alexander Best wrote: > >On Thu Aug 26 10, Jim Bryant wrote: > > > >>when you had to press it twice, was that only for the first attempt, and > >>did pressing it once after that turn it off? and once after that, on? > >> > > > >exactly. it might be a bit easier to understand if i explain it this way: > > > >instance | num lock led | number keys working > >--------------- | --------------------- | ------------------------- > >no key press | on | no > >1st key press | on | no > >2nd key press | off | no > >3rd key press | on | yes > >4th key press | off | no > >5th key press | on | yes > >... > > > >(key press refering to the num lock key) > > > >cheers. > >alex > > > > > >>i just read your note here, and the following one about the long delays > >>(kern/99538), and was able to duplicate the two-press thing. > >> > >>amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a > >>generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: > >> > >>ukbd1: > >>on usbus2 > >>ums1: > >>on usbus2 > >> > >>it seems that the press-twice scenario was only needed the first > >>attempt. normal behaviour after that. > >> > >>8.1-stable last cvsup/build: > >> > >>FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug > >>25 03:44:55 CDT 2010 > >>jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 > >> > >> > >>Alexander Best wrote: > >> > >>>hi there, > >>> > >>>i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in > >>>my > >>>bios i have enabled the "boot with num lock enabled" feature. when i > >>>fire up > >>>freebsd the num lock light on my keyboard is on. however the num lock > >>>keys > >>>don't work. if i press the num lock button once nothing happens. if i > >>>hit it > >>>twice the num lock led goes off. to make the num lock feature work i > >>>have to > >>>actually hit the num lock key thrice. > >>> > >>>is this a known issue? > >>> > >>>cheers. > >>>alex > >>> > >>> > >>> > > > > -- a13x From owner-freebsd-usb@FreeBSD.ORG Fri Aug 27 12:05:07 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id AA29C10656AB; Fri, 27 Aug 2010 12:05:07 +0000 (UTC) Date: Fri, 27 Aug 2010 12:05:07 +0000 From: Alexander Best To: Jim Bryant Message-ID: <20100827120507.GA57877@freebsd.org> References: <20100826105814.GA86800@freebsd.org> <4C76A73E.9070509@gmail.com> <20100826221938.GA90296@freebsd.org> <4C76F677.9020000@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C76F677.9020000@gmail.com> Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 12:05:07 -0000 On Thu Aug 26 10, Jim Bryant wrote: > oh freaking wow!!! > > this just got weirder!!! just found PR 139144. maybe that's the cause for the problem? are you loading a a specific keymap? i'm using german.iso cheers. alex > > i haven't had the two-press thing again, but since you listed the status > of the keys themselves, i decided to check just now... > > numlock off = numbers > numlock on = cursor pad > > we have two different behaviors here. please double check yours just in > case. i just double-checked, my keypad is operating opposite the way it > should be. > > motherboard: intel dq45ek, most recent bios (mid august), numlock > defaults to on in bios cmos setting. > > just in case, i double-checked, my external keypad is hooked up to the > laptop, not this - no conflicts there. > > xorg is configured or default behavior, as is kde4. > > this might be a xorg or kde issue. i just checked syscons. normal > behavior there. nums only when numlock is on. > > in kde system settings: "leave unchanged" is the enabled option. > > if you have kde4 installed (or any other wm) please check under x for > reverse behavior. > > Alexander Best wrote: > >On Thu Aug 26 10, Jim Bryant wrote: > > > >>when you had to press it twice, was that only for the first attempt, and > >>did pressing it once after that turn it off? and once after that, on? > >> > > > >exactly. it might be a bit easier to understand if i explain it this way: > > > >instance | num lock led | number keys working > >--------------- | --------------------- | ------------------------- > >no key press | on | no > >1st key press | on | no > >2nd key press | off | no > >3rd key press | on | yes > >4th key press | off | no > >5th key press | on | yes > >... > > > >(key press refering to the num lock key) > > > >cheers. > >alex > > > > > >>i just read your note here, and the following one about the long delays > >>(kern/99538), and was able to duplicate the two-press thing. > >> > >>amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a > >>generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: > >> > >>ukbd1: > >>on usbus2 > >>ums1: > >>on usbus2 > >> > >>it seems that the press-twice scenario was only needed the first > >>attempt. normal behaviour after that. > >> > >>8.1-stable last cvsup/build: > >> > >>FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug > >>25 03:44:55 CDT 2010 > >>jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 > >> > >> > >>Alexander Best wrote: > >> > >>>hi there, > >>> > >>>i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in > >>>my > >>>bios i have enabled the "boot with num lock enabled" feature. when i > >>>fire up > >>>freebsd the num lock light on my keyboard is on. however the num lock > >>>keys > >>>don't work. if i press the num lock button once nothing happens. if i > >>>hit it > >>>twice the num lock led goes off. to make the num lock feature work i > >>>have to > >>>actually hit the num lock key thrice. > >>> > >>>is this a known issue? > >>> > >>>cheers. > >>>alex > >>> > >>> > >>> > > > > -- a13x From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 01:36:22 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id D489510656A9; Sat, 28 Aug 2010 01:36:22 +0000 (UTC) Date: Sat, 28 Aug 2010 01:36:22 +0000 From: Alexander Best To: Jim Bryant Message-ID: <20100828013622.GA36331@freebsd.org> References: <20100826105814.GA86800@freebsd.org> <4C76A73E.9070509@gmail.com> <20100826221938.GA90296@freebsd.org> <4C76F677.9020000@gmail.com> <20100827120507.GA57877@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100827120507.GA57877@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: tiny ukbd num lock issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 01:36:22 -0000 On Fri Aug 27 10, Alexander Best wrote: > On Thu Aug 26 10, Jim Bryant wrote: > > oh freaking wow!!! > > > > this just got weirder!!! > > just found PR 139144. maybe that's the cause for the problem? are you loading a > a specific keymap? > > i'm using german.iso > > cheers. > alex > > > > > i haven't had the two-press thing again, but since you listed the status > > of the keys themselves, i decided to check just now... > > > > numlock off = numbers > > numlock on = cursor pad > > > > we have two different behaviors here. please double check yours just in > > case. i just double-checked, my keypad is operating opposite the way it > > should be. > > > > motherboard: intel dq45ek, most recent bios (mid august), numlock > > defaults to on in bios cmos setting. > > > > just in case, i double-checked, my external keypad is hooked up to the > > laptop, not this - no conflicts there. > > > > xorg is configured or default behavior, as is kde4. > > > > this might be a xorg or kde issue. i just checked syscons. normal > > behavior there. nums only when numlock is on. ok. i did some tests and it seems this is indeed an xorg problen. i couldn't reproduce this on the console. i think this is an issue with hal. because i also noticed that if i unplug my keyboard or mouse and plug it in again it won't work properly under xorg (some keys don't work anymore). what i need to do is switch to the console using ctrl+alt+[1-9] and then switch back to xorg again. after that everything's back to normal. so this not an usb issue it seems but related to xorg (most likely hal). cheers. alex > > > > in kde system settings: "leave unchanged" is the enabled option. > > > > if you have kde4 installed (or any other wm) please check under x for > > reverse behavior. > > > > Alexander Best wrote: > > >On Thu Aug 26 10, Jim Bryant wrote: > > > > > >>when you had to press it twice, was that only for the first attempt, and > > >>did pressing it once after that turn it off? and once after that, on? > > >> > > > > > >exactly. it might be a bit easier to understand if i explain it this way: > > > > > >instance | num lock led | number keys working > > >--------------- | --------------------- | ------------------------- > > >no key press | on | no > > >1st key press | on | no > > >2nd key press | off | no > > >3rd key press | on | yes > > >4th key press | off | no > > >5th key press | on | yes > > >... > > > > > >(key press refering to the num lock key) > > > > > >cheers. > > >alex > > > > > > > > >>i just read your note here, and the following one about the long delays > > >>(kern/99538), and was able to duplicate the two-press thing. > > >> > > >>amd64 here, under kde, and the keyboard is a compaq pos ps/2 via a > > >>generic mouse/kb dongle/adapter for usb i got on ebay from hong kong: > > >> > > >>ukbd1: > > >>on usbus2 > > >>ums1: > > >>on usbus2 > > >> > > >>it seems that the press-twice scenario was only needed the first > > >>attempt. normal behaviour after that. > > >> > > >>8.1-stable last cvsup/build: > > >> > > >>FreeBSD orb.electron-tube.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Aug > > >>25 03:44:55 CDT 2010 > > >>jbryant@orb.electron-tube.net:/usr/obj/usr/src/sys/ORB amd64 > > >> > > >> > > >>Alexander Best wrote: > > >> > > >>>hi there, > > >>> > > >>>i have a very tiny num lock issue with ukbd on HEAD (amd64; r211393). in > > >>>my > > >>>bios i have enabled the "boot with num lock enabled" feature. when i > > >>>fire up > > >>>freebsd the num lock light on my keyboard is on. however the num lock > > >>>keys > > >>>don't work. if i press the num lock button once nothing happens. if i > > >>>hit it > > >>>twice the num lock led goes off. to make the num lock feature work i > > >>>have to > > >>>actually hit the num lock key thrice. > > >>> > > >>>is this a known issue? > > >>> > > >>>cheers. > > >>>alex > > >>> > > >>> > > >>> > > > > > > > > -- > a13x -- a13x From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 05:40:11 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF88310656A7 for ; Sat, 28 Aug 2010 05:40:11 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter68.ihug.co.nz (mailfilter68.ihug.co.nz [203.109.136.68]) by mx1.freebsd.org (Postfix) with ESMTP id 5AC968FC1B for ; Sat, 28 Aug 2010 05:40:10 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlYGAMs2eEx2XRG0/2dsb2JhbACTOY0lcrs9hTcEigmHEw X-IronPort-AV: E=Sophos;i="4.56,282,1280664000"; d="scan'208";a="292194379" Received: from 118-93-17-180.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.93.17.180]) by cust.filter4.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Aug 2010 17:10:39 +1200 Received: from mylar.luckie.org.nz ([192.168.1.24]) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OpDgc-000IJ0-Iy for freebsd-usb@freebsd.org; Sat, 28 Aug 2010 17:10:38 +1200 Message-ID: <4C789A4E.9030409@luckie.org.nz> Date: Sat, 28 Aug 2010 17:10:38 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100814 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 05:40:11 -0000 Hi I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick bought in New Zealand. With FreeBSD 8.0 it prints this when I insert the stick: usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS ugen6.2: at usbus6 ugen6.2: at usbus6 (disconnected) ugen6.2: at usbus6 u3g0: on usbus6 u3g0: Found 5 ports. umass0: on usbus6 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0:-1: Attached to scbus2 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present (probe0:umass-sim0:0:0:0): Unretryable error da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present [mjl@mylar mjl]$ sudo usbconfig -u 6 dump_info ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON On FreeBSD 8.1 it prints this: ugen6.2: at usbus6 (and nothing else) [mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x2000 bcdDevice = 0x0000 iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 06:48:45 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DEEA10656A5 for ; Sat, 28 Aug 2010 06:48:45 +0000 (UTC) (envelope-from kc5vdj.freebsd@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 501A78FC0C for ; Sat, 28 Aug 2010 06:48:44 +0000 (UTC) Received: by iwn36 with SMTP id 36so3741503iwn.13 for ; Fri, 27 Aug 2010 23:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=zhTHztVfxTSE1KKUhWCg8B1qwv2bCiqgNtM6vEHMwl4=; b=QxIx/O8WCAg8VWUzTgOiieVJl0U+62983oLVLVKH9dDTCpDJXUKTxXjnVjqaAeYYEv Q+mWLTGc7KC5PMuBWTVkNrftPmzeIJh2FTjH4isxPfcuu+pi7dsu9M9v9A3Fn0HTJkSo myP8Syo/EQNvHxbunslUJEKpFzQu0jVqEjPoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=QQ9mUSj91auLthKX9SWUdNaO7kS+vsMYmMsORZh9Dc+SC0wygt+Tqyp24nLu2CxexI KR+i2ILZRaSKFncKuaSiP/n89Gf6XmbrXufhnuB4PNNaEC78Q73k1Ci4Kgn0HPrNDQMN 9Z+RYTUyP1zL5FXl64wuDiCQ/1tqVac0JTIYE= Received: by 10.231.151.135 with SMTP id c7mr1554079ibw.184.1282978039334; Fri, 27 Aug 2010 23:47:19 -0700 (PDT) Received: from orb.electron-tube.net (71-217-215-181.cdrr.qwest.net [71.217.215.181]) by mx.google.com with ESMTPS id h8sm4519232ibk.3.2010.08.27.23.47.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 23:47:18 -0700 (PDT) Message-ID: <4C78B0F4.4020002@gmail.com> Date: Sat, 28 Aug 2010 01:47:16 -0500 From: Jim Bryant User-Agent: Thunderbird 2.0.0.24 (X11/20100731) MIME-Version: 1.0 To: Hans Petter Selasky References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> In-Reply-To: <201008271053.27731.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 06:48:45 -0000 thanks. am doing that now. I already have one patch for this one.... what kind of idiot defines a constant assignment for a 32k buffer as a 15 bit left shift of 1? clever, yes. but in production, stupid. a constant should be just that, a constant, and thus require no computation at runtime. i'm old school, and what a lot of kids don't understand today is that small and efficient is still as applicable today as it was then. *** ulpt.c~ Thu May 6 22:28:17 2010 --- ulpt.c Sat Aug 28 01:42:11 2010 *************** *** 87,93 **** &ulpt_debug, 0, "Debug level"); #endif ! #define ULPT_BSIZE (1<<15) /* bytes */ #define ULPT_IFQ_MAXLEN 2 /* units */ #define UR_GET_DEVICE_ID 0x00 --- 87,93 ---- &ulpt_debug, 0, "Debug level"); #endif ! #define ULPT_BSIZE 0x8000 /* bytes */ #define ULPT_IFQ_MAXLEN 2 /* units */ #define UR_GET_DEVICE_ID 0x00 Hans Petter Selasky wrote: > On Friday 27 August 2010 10:53:38 Jim Bryant wrote: > >> it'll be a pair of character devices. >> >> > > >> lirc compat is a goal of this project though. most of the work is done >> on that front, i just need to port that over from linux. the features >> of the imon remote control are well-supported in lirc. /dev/lirc will >> exist in my driver. >> > > See sys/dev/usb/input/ulpt.c driver for how to create cdevs. Don't use cdev > directly in the kernel. > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 07:54:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6CD310656A7 for ; Sat, 28 Aug 2010 07:54:39 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 731A08FC28 for ; Sat, 28 Aug 2010 07:54:38 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=bqAX4Es/FymT96iuQFWdNJXS7SazJpmZM5WIJFHIREc= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=7GHwN0CSpJoA:10 a=5zRe/v73i1V8i7f9l4IPcQ==:17 a=PZJ_lyy-nK-w0Ad8ZuMA:9 a=8Z_kOnCud0xeELjqEVxDCOoSE80A:4 a=wPNLvfGTeEIA:10 a=5zRe/v73i1V8i7f9l4IPcQ==:117 Received: from [84.49.165.150] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 13031694; Sat, 28 Aug 2010 09:54:31 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sat, 28 Aug 2010 09:50:35 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4C789A4E.9030409@luckie.org.nz> In-Reply-To: <4C789A4E.9030409@luckie.org.nz> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008280950.35903.hselasky@c2i.net> Cc: Matthew Luckie Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 07:54:40 -0000 On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: > Hi > > I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd > 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick > bought in New Zealand. > > With FreeBSD 8.0 it prints this when I insert the stick: > > usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS > ugen6.2: at usbus6 > ugen6.2: at usbus6 (disconnected) > ugen6.2: at usbus6 > u3g0: 2.00/0.00, addr 2> on usbus6 > u3g0: Found 5 ports. > umass0: 2.00/0.00, addr 2> on usbus6 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:2:0:-1: Attached to scbus2 > (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 > (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition > (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 > (probe0:umass-sim0:0:0:0): Medium not present > (probe0:umass-sim0:0:0:0): Unretryable error > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > > [mjl@mylar mjl]$ sudo usbconfig -u 6 dump_info > ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > ugen6.2: at usbus6, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON > > On FreeBSD 8.1 it prints this: > > ugen6.2: at usbus6 > > (and nothing else) > > [mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc > ugen6.2: at usbus6, cfg=255 > md=HOST spd=HIGH (480Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x19d2 > idProduct = 0x2000 > bcdDevice = 0x0000 > iManufacturer = 0x0002 > iProduct = 0x0001 > iSerialNumber = 0x0003 > bNumConfigurations = 0x0001 Have you loaded the u3g driver before plugging the device. Also try: usbconfig -d 6.2 set_config 0 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 11:49:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 165661065672 for ; Sat, 28 Aug 2010 11:49:47 +0000 (UTC) (envelope-from mjl@luckie.org.nz) Received: from mailfilter70.ihug.co.nz (mailfilter70.ihug.co.nz [203.109.136.70]) by mx1.freebsd.org (Postfix) with ESMTP id B299B8FC13 for ; Sat, 28 Aug 2010 11:49:46 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAE6UeEx2XRG0/2dsb2JhbACgXnK4LoU3BIoJhxM X-IronPort-AV: E=Sophos;i="4.56,283,1280664000"; d="scan'208";a="65319269" Received: from 118-93-17-180.dsl.dyn.ihug.co.nz (HELO spandex.luckie.org.nz) ([118.93.17.180]) by cust.filter7.content.vf.net.nz with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Aug 2010 23:49:44 +1200 Received: from mylar.luckie.org.nz ([192.168.1.24]) by spandex.luckie.org.nz with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OpJup-000JGD-Ku; Sat, 28 Aug 2010 23:49:43 +1200 Message-ID: <4C78F7D7.7010507@luckie.org.nz> Date: Sat, 28 Aug 2010 23:49:43 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100814 Thunderbird/3.1.2 MIME-Version: 1.0 To: Hans Petter Selasky References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> In-Reply-To: <201008280950.35903.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 11:49:47 -0000 On 08/28/10 19:50, Hans Petter Selasky wrote: > On Saturday 28 August 2010 07:10:38 Matthew Luckie wrote: >> Hi >> >> I've got a 3g usb stick that works fine with 8.0-STABLE from Jan 3rd >> 2010, but does not with 8.1-RELEASE. Its a Vodafone branded stick >> bought in New Zealand. >> >> With FreeBSD 8.0 it prints this when I insert the stick: >> >> usb_test_autoinstall: Eject CD command status: USB_ERR_PENDING_REQUESTS >> ugen6.2: at usbus6 >> ugen6.2: at usbus6 (disconnected) >> ugen6.2: at usbus6 >> u3g0:> 2.00/0.00, addr 2> on usbus6 >> u3g0: Found 5 ports. >> umass0:> 2.00/0.00, addr 2> on usbus6 >> umass0: SCSI over Bulk-Only; quirks = 0x0000 >> umass0:2:0:-1: Attached to scbus2 >> (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 >> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 >> (probe0:umass-sim0:0:0:0): Medium not present >> (probe0:umass-sim0:0:0:0): Unretryable error >> da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 >> da0: Removable Direct Access SCSI-2 device >> da0: 40.000MB/s transfers >> da0: Attempt to query device size failed: NOT READY, Medium not present >> >> [mjl@mylar mjl]$ sudo usbconfig -u 6 dump_info >> ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=ON >> >> ugen6.2: at usbus6, cfg=0 >> md=HOST spd=HIGH (480Mbps) pwr=ON >> >> On FreeBSD 8.1 it prints this: >> >> ugen6.2: at usbus6 >> >> (and nothing else) >> >> [mjl@mylar mjl]$ sudo usbconfig -d 6.2 dump_device_desc >> ugen6.2: at usbus6, cfg=255 >> md=HOST spd=HIGH (480Mbps) pwr=ON >> >> bLength = 0x0012 >> bDescriptorType = 0x0001 >> bcdUSB = 0x0200 >> bDeviceClass = 0x0000 >> bDeviceSubClass = 0x0000 >> bDeviceProtocol = 0x0000 >> bMaxPacketSize0 = 0x0040 >> idVendor = 0x19d2 >> idProduct = 0x2000 >> bcdDevice = 0x0000 >> iManufacturer = 0x0002 >> iProduct = 0x0001 >> iSerialNumber = 0x0003 >> bNumConfigurations = 0x0001 > > Have you loaded the u3g driver before plugging the device. Also try: Yes, I have. [mjl@mylar mjl]$ sudo kldload /boot/kernel/u3g.ko kldload: can't load /boot/kernel/u3g.ko: File exists module_register: module uhub/u3g already exists! Module uhub/u3g failed to register: 17 > usbconfig -d 6.2 set_config 0 ugen6.2: at usbus6 umass0: on usbus6 cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: Removable CD-ROM SCSI-2 device cd1: 40.000MB/s transfers cd1: cd present [31484 x 2048 byte records] Sadly no /dev/cuaU* entries. After the set_config, I have new /dev entries for cd1, iso9660, pass1, and of course ugen6.2. [mjl@mylar ~]$ sudo usbconfig -d 6.2 dump_device_desc ugen6.2: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x19d2 idProduct = 0x2000 bcdDevice = 0x0000 iManufacturer = 0x0002 iProduct = 0x0001 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 23:00:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EBAB106567A for ; Sat, 28 Aug 2010 23:00:59 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2EF8FC16 for ; Sat, 28 Aug 2010 23:00:59 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o7SN0vtA014961 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Aug 2010 16:00:57 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o7SN0vIe014960; Sat, 28 Aug 2010 16:00:57 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA23954; Sat, 28 Aug 10 15:54:31 PDT Date: Sat, 28 Aug 2010 15:54:11 -0700 From: perryh@pluto.rain.com To: kc5vdj.freebsd@gmail.com Message-Id: <4c799393.wU/d2YpTieErDrD7%perryh@pluto.rain.com> References: <4C76AB76.4070806@gmail.com> <201008270856.43512.hselasky@c2i.net> <4C777D12.3040900@gmail.com> <201008271053.27731.hselasky@c2i.net> <4C78B0F4.4020002@gmail.com> In-Reply-To: <4C78B0F4.4020002@gmail.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: writing usb drivers under 8.x X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 23:00:59 -0000 Jim Bryant wrote: > what kind of idiot defines a constant assignment for a 32k buffer as a > 15 bit left shift of 1? > > clever, yes. but in production, stupid. > > a constant should be just that, a constant, and thus require no > computation at runtime. Er, did you bother to look at the generated code before spouting off? Most compilers, even as far back as K&R 1st edition, will compute constant expressions like that at compile time. From owner-freebsd-usb@FreeBSD.ORG Sat Aug 28 23:22:26 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C7461065694 for ; Sat, 28 Aug 2010 23:22:26 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2-6.sentex.ca [IPv6:2607:f3e0:80:80::2]) by mx1.freebsd.org (Postfix) with ESMTP id 185A18FC19 for ; Sat, 28 Aug 2010 23:22:25 +0000 (UTC) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost2.sentex.ca (8.14.4/8.14.4) with ESMTP id o7SNMGTw096247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 28 Aug 2010 19:22:16 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.14.4/8.14.3) with ESMTP id o7SNME6T077721; Sat, 28 Aug 2010 19:22:15 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <201008282322.o7SNME6T077721@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Sat, 28 Aug 2010 19:22:08 -0400 To: Matthew Luckie , Hans Petter Selasky From: Mike Tancsa In-Reply-To: <4C78F7D7.7010507@luckie.org.nz> References: <4C789A4E.9030409@luckie.org.nz> <201008280950.35903.hselasky@c2i.net> <4C78F7D7.7010507@luckie.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Scanned-By: MIMEDefang 2.67 on 205.211.164.50 Cc: freebsd-usb@freebsd.org Subject: Re: ZTE USB 3g stick X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 23:22:26 -0000 At 07:49 AM 8/28/2010, Matthew Luckie wrote: ugen6.2: at usbus6 >umass0: 2.00/0.00, addr 2> on usbus6 >cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 >cd1: Removable CD-ROM SCSI-2 device >cd1: 40.000MB/s transfers >cd1: cd present [31484 x 2048 byte records] > >Sadly no /dev/cuaU* entries. After the set_config, I have new /dev >entries for cd1, iso9660, pass1, and of course ugen6.2. What if you do a camcontrol eject pass0 (or pass1 if its 1) I have also found the odd ZTE stick where post power up, I need to do a reset for some odd reason. Perhaps a firmware issue with some ZTE sticks ? not sure usbconfig -d 6.2 reset or usbconfig -d 6.2 power_off usbconfig -d 6.2 power_on ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike