From owner-freebsd-usb@FreeBSD.ORG Mon Aug 22 11:02:32 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26A2616A427 for ; Mon, 22 Aug 2005 11:02:32 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D03043D5C for ; Mon, 22 Aug 2005 11:02:28 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j7MB2Sjw037042 for ; Mon, 22 Aug 2005 11:02:28 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7MB2Rwu037036 for freebsd-usb@freebsd.org; Mon, 22 Aug 2005 11:02:27 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 22 Aug 2005 11:02:27 GMT Message-Id: <200508221102.j7MB2Rwu037036@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 22 Aug 2005 11:02:32 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] usb/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] usb/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/20] usb/61627 usb [usb] [patch] New USB printer not support f [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not f [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/30] usb/75648 usb [panic] panic while loading usb.ko on 4.1 o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse f [2005/02/20] usb/77799 usb [panic] on attach of a mp3 player to USB o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/02] usb/79436 usb Panic: ohci_abort_xfer: not in process co o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via o [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f o [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb USB locking issues o [2005/05/20] usb/81308 usb Polling a ugen(4) control endpoint causes o [2005/05/26] usb/81524 usb panic: usb_cold_explore: busses to explor f [2005/06/01] usb/81774 usb 2nd generation iPod mini cannot be mounte o [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 o [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/16] usb/83563 usb Page Fault while detaching Mpman Usb devi o [2005/07/18] usb/83677 usb [usb] usb controller not detected o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/23] usb/83942 usb [patch] QUIRK: Langel USB flash mp3 playe o [2005/07/24] usb/83977 usb [panic] ucom1: open bulk out error (addr o [2005/07/29] usb/84295 usb Install FreeBSD with usb keyboard need st o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized 55 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo o [2003/08/28] usb/56095 usb [patch] QUIRK: Apacer Pen Drive fails to o [2003/11/11] usb/59169 usb [patch] ulpt is missing read operation o [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/03/06] usb/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] usb/65436 usb QUIRK: [patch] to add support for PNY Att o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops f [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [patch] ugen(4) isochronous handling corr o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] usb/72344 usb [patch] [usb] QUIRK: Dane-Elec zMate 512 o [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on o [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [patch] [usb] allowing cdma modems to wor o [2004/12/09] usb/74880 usb [patch] [usb] Samsung N400 cellphone/acm o [2004/12/12] usb/74989 usb (regression) Lost USB support between 5.2 o [2004/12/28] usb/75578 usb [patch] QUIRK: PNY USB flash key o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb disklabel of umass(4)-CAM(4)-da(4) not us o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch o [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [patch] [usb] USB device speed is not dou o [2005/04/14] usb/79893 usb New usbdevs/umass quirks derived from Lin o [2005/04/16] usb/80010 usb Add support for the AEI USB to LAN adapte o [2005/04/27] usb/80383 usb [PATCH] Add quirk for uhid to ignore cert o [2005/04/27] usb/80420 usb atapicam stops iPod functionality o [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb UDAV device driver shouldn't use usb_add_ o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [patch] fix umass NO_GETMAXLUN quirk o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to o [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/05/30] usb/81656 usb umass problem with Minolta DiMage S414 Di o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/12] usb/83353 usb [patch] ums driver limits number of butto o [2005/07/15] usb/83504 usb SpeedTouch USB stop working on recent cur o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/06] usb/84608 usb Sony digital camera DSC-P100, rev 2.00/5. o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device 69 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 23 14:55:38 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37DF116A41F for ; Tue, 23 Aug 2005 14:55:38 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id C991C43D45 for ; Tue, 23 Aug 2005 14:55:37 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: by wproxy.gmail.com with SMTP id i17so6257wra for ; Tue, 23 Aug 2005 07:55:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=E7xShoyknegVegCCJTGf+byLzcxMTWYhtS8jerE6+dnU8J+q0HiABTzQMER+x5ospemG2WDKtJyO0Pk2Sw8F/2xrsLqQu2i3c5VT/oG/nbdiwUjBTypciuFcvD3zCS6r2jPoioVrzMD+vBKg/98PRvdjZY1U/48izLOBx5m7ja4= Received: by 10.54.39.23 with SMTP id m23mr2289477wrm; Tue, 23 Aug 2005 07:55:37 -0700 (PDT) Received: by 10.54.3.18 with HTTP; Tue, 23 Aug 2005 07:55:37 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 08:55:37 -0600 From: John-Paul Andrusky To: freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Problems with uhid device. 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, 23 Aug 2005 14:55:38 -0000 I'm using a saitek gaming keyboard, it has: ukbd0 -> the keyboard uhid0 -> volume controls uhid1 -> the extended game pad ukbd0 and uhid1 both work fine, (I can `cat /dev/uhid1`, push buttons on th= e game pad and see results). However, `cat /dev/uhi0`, destroys the whole usb tree, i.e. no usb devices work after that. uhid0 is reported as: Report descriptor: Total input size 0 bytes Total output size 4 bytes Total feature size 1 bytes which doesn't make sense. What's the point of a hid device that you can only write to? In linux, I can cat both /dev/input/event2 and /dev/input/event3 and get results. Linux reports uhid0 as: Interface Number: 1 Name: usbhid Alternate Number: 0 Class: 03(HID ) Sub Class: 0 Protocol: 0 Number of Endpoints: 1 Endpoint Address: 82 Direction: in Attribute: 3 Type: Int. Max Packet Size: 5 Interval: 10ms I haven't had time to look into the usb code, which I'd like to. But for now, any suggestions? --=20 Cheers, John-Paul Andrusky From owner-freebsd-usb@FreeBSD.ORG Tue Aug 23 17:54:11 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0437616A41F for ; Tue, 23 Aug 2005 17:54:11 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B49443D46 for ; Tue, 23 Aug 2005 17:54:10 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: RUEXEmK3E67kOuKtzZyd+g== Received: from mp-217-199-190.daxnet.no ([193.217.199.190] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 249170721; Tue, 23 Aug 2005 19:30:12 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 23 Aug 2005 19:31:08 +0200 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508231931.09780.hselasky@c2i.net> Cc: Subject: Re: Problems with uhid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 17:54:11 -0000 On Tuesday 23 August 2005 16:55, John-Paul Andrusky wrote: > I'm using a saitek gaming keyboard, it has: > > ukbd0 -> the keyboard > uhid0 -> volume controls > uhid1 -> the extended game pad > > ukbd0 and uhid1 both work fine, (I can `cat /dev/uhid1`, push buttons on > the game pad and see results). However, `cat /dev/uhi0`, destroys the whole > usb tree, i.e. no usb devices work after that. uhid0 is reported as: > Can you compile your kernel with "options USB_DEBUG". Then "sysctl hw.usb.uhid.debug=15" and "sysctl hw.usb.debug=15". --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Aug 24 02:57:57 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68FF816A41F for ; Wed, 24 Aug 2005 02:57:57 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8C7A43D49 for ; Wed, 24 Aug 2005 02:57:56 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so16895wra for ; Tue, 23 Aug 2005 19:57:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jJcQzDa3koKGfXEhEvUPej8muy6QyimBpNin1DuNmQM39LCaaAbxeryy34Ko7fP1pnv+fkboVbnweqlxF7A1cP6H3VPHWKx2U51Zq516pPVihBkHqSw7I4IXBFQCBdx/iuu+q0NeNDdjdnZ13XZZFD+B2Q2XE8EKHJH2G3vjgDs= Received: by 10.54.48.24 with SMTP id v24mr62714wrv; Tue, 23 Aug 2005 19:57:56 -0700 (PDT) Received: by 10.54.3.18 with HTTP; Tue, 23 Aug 2005 19:57:56 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 20:57:56 -0600 From: John-Paul Andrusky To: freebsd-usb@freebsd.org In-Reply-To: <200508231931.09780.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508231931.09780.hselasky@c2i.net> Subject: Re: Problems with uhid device. 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, 24 Aug 2005 02:57:57 -0000 Here is the resulting `dmesg` from doing a `cat /dev/uhid1` (the keyboard became uhid0): uhidopen: sc=3D0xc1aa5e00 usbd_open_pipe_intr: address=3D0x82 flags=3D0x4 len=3D6 usbd_open_pipe: iface=3D0xc1aa5d1c address=3D0x82 flags=3D0x1 usbd_setup_pipe: dev=3D0xc1aa5480 iface=3D0xc1aa5d1c ep=3D0xc1aad060 pipe=3D0xd543e96c usbd_clear_endpoint_stall usbd_alloc_xfer() =3D 0xc1efbc00 usbd_transfer: xfer=3D0xc1efbc00, flags=3D2, pipe=3D0xc1aa5500, running=3D0 usbd_dump_queue: pipe=3D0xc1aa5500 usb_insert_transfer: pipe=3D0xc1aa5500 running=3D0 timeout=3D5000 usb_schedsoftintr: polling=3D0 usb_transfer_complete: pipe=3D0xc1aa5500 xfer=3D0xc1efbc00 status=3D0 actlen=3D0 usb_transfer_complete: repeat=3D0 new head=3D0 usbd_start_next: pipe=3D0xc1aa5500, xfer=3D0 usbd_free_xfer: 0xc1efbc00 usbd_alloc_xfer() =3D 0xc1efbc00 usbd_transfer: xfer=3D0xc1efbc00, flags=3D4, pipe=3D0xc1edb180, running=3D0 usbd_dump_queue: pipe=3D0xc1edb180 usb_allocmem: use frag=3D0xc1a5dd40 size=3D6 usb_insert_transfer: pipe=3D0xc1edb180 running=3D0 timeout=3D0 uhidread uhidread: sleep on 0xc1aa5e34 >>> did a ctrl-c here usb_schedsoftintr: polling=3D0 usb_transfer_complete: pipe=3D0xc1edb180 xfer=3D0xc1efbc00 status=3D13 actlen=3D6 usb_transfer_complete: repeat=3D1 new head=3D0xc1efbc00 uhid_intr: status=3D13 cc=3D6 uhid_intr: data =3D 01 20 00 00 00 01 uhid_intr: status=3D13 uhidread: woke, error=3D4 uhidclose: sc=3D0xc1aa5e00 usbd_ar_pipe: pipe=3D0xc1edb180 usbd_dump_queue: pipe=3D0xc1edb180 xfer=3D0xc1efbc00 usbd_ar_pipe: pipe=3D0xc1edb180 xfer=3D0xc1efbc00 (methods=3D0xc06daa50) usb_schedsoftintr: polling=3D0 usb_transfer_complete: pipe=3D0xc1edb180 xfer=3D0xc1efbc00 status=3D6 actlen=3D6 usb_freemem: frag=3D0xc1a5dd40 usb_transfer_complete: repeat=3D0 new head=3D0 uhid_intr: status=3D6 cc=3D6 uhid_intr: data =3D 01 20 00 00 00 01 And now of course, nothing usb works (until reboot). --=20 Cheers, John-Paul Andrusky From owner-freebsd-usb@FreeBSD.ORG Wed Aug 24 22:41:12 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7A516A421 for ; Wed, 24 Aug 2005 22:41:12 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D41843D62 for ; Wed, 24 Aug 2005 22:41:01 +0000 (GMT) (envelope-from jpandrusky@gmail.com) Received: by wproxy.gmail.com with SMTP id i1so22709wra for ; Wed, 24 Aug 2005 15:40:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M68RoS5Zyofgl2GrKXtpe+cDHho0p7j75dn94pZ4cCPhqzvFd1Sd0bCmu6ZgbZeBCLS6XGc1EkvzC0LnkGIEk48IOtdP6BN21l2/0O1yWKEEImqJamDWYV86ifA1ZBXkxC/z+86duqOp023Ew7GNqmvTYDAY55o8ISZCY9xgErk= Received: by 10.54.44.48 with SMTP id r48mr1244814wrr; Wed, 24 Aug 2005 15:40:51 -0700 (PDT) Received: by 10.54.3.18 with HTTP; Wed, 24 Aug 2005 15:40:51 -0700 (PDT) Message-ID: Date: Wed, 24 Aug 2005 16:40:51 -0600 From: John-Paul Andrusky To: hselasky@c2i.net, freebsd-usb@freebsd.org In-Reply-To: <200508240257.03931.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508231931.09780.hselasky@c2i.net> <20050823235939.GA9735@steel.dnsalias.org> <200508240257.03931.hselasky@c2i.net> Cc: Subject: Re: Problems with uhid device. 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, 24 Aug 2005 22:41:12 -0000 "dmesg | grep usb" gives "usb0: uhci_softintr (0)" repeated over and over. With just "hw.usb.uhci.debug=3D15", I get the following when I 'cat' the device, push a button and then do a ctrl-c: uhci_open: pipe=3D0xc1eda800, addr=3D4, endpt=3D130 (1) uhci_device_setintr: pipe=3D0xc1eda800 uhci_device_setintr: ival=3D10 npoll=3D13 uhci_device_setintr: bw=3D0 offs=3D2 uhci_add_intr: n=3D2 sqh=3D0xc1a58d40 uhci_add_intr: n=3D12 sqh=3D0xc1a58d20 uhci_add_intr: n=3D22 sqh=3D0xc1a58d00 uhci_add_intr: n=3D32 sqh=3D0xc1a58ce0 uhci_add_intr: n=3D42 sqh=3D0xc1a58cc0 uhci_add_intr: n=3D52 sqh=3D0xc1a58ca0 uhci_add_intr: n=3D62 sqh=3D0xc1a58c80 uhci_add_intr: n=3D72 sqh=3D0xc1a58c60 uhci_add_intr: n=3D82 sqh=3D0xc1a58c40 uhci_add_intr: n=3D92 sqh=3D0xc1a58c20 uhci_add_intr: n=3D102 sqh=3D0xc1a58c00 uhci_add_intr: n=3D112 sqh=3D0xc1a58be0 uhci_add_intr: n=3D122 sqh=3D0xc1a58bc0 uhci_device_setintr: returns 0xc1eda800 uhci_device_control type=3D0x02, request=3D0x01, wValue=3D0x0000, wIndex=3D0x0082 len=3D0, addr=3D4, endpt=3D0 uhci_device_request: before transfer TD(0xc1a57f00) at 1f3ebf00 =3D link=3D0x1f3ebee4 status=3D0x1c800000 token=3D0x00e0042d buffer=3D0x001f1d80 1f3ebee4 1c800000,errcnt=3D3,actlen=3D1 pid=3D2d,addr=3D4,endpt=3D0,D=3D0,maxlen=3D8 TD(0xc1a57ee0) at 1f3ebee0 =3D link=3D0x00000001 status=3D0x1d800000 token=3D0xffe80469 buffer=3D0x00000000 1 1d800000,errcnt=3D3,actlen=3D1 pid=3D69,addr=3D4,endpt=3D0,D=3D1,maxlen=3D0 uhci_add_ls_ctrl: sqh=3D0xc1a58d60 uhci_enter_ctl_q: follow from [0] TD(0xc1a5afc0) at 0022efc0 =3D link=3D0x0022df62 status=3D0x02000000 token=3D0x00000000 buffer=3D0x00000000 22df62 2000000,errcnt=3D0,actlen=3D1 pid=3D00,addr=3D0,endpt=3D0,= D=3D0,maxlen=3D1 QH(0xc1a59f60) at 0022df60: hlink=3D1f3ecf42 elink=3D00000001 QH(0xc1a59f60) at 0022df60: hlink=3D1f3ecf42 elink=3D00000001 QH(0xc1a58f40) at 1f3ecf40: hlink=3D0022df82 elink=3D1f3ebf80 QH(0xc1a59f80) at 0022df80: hlink=3D1f3ecd62 elink=3D00000001 QH(0xc1a58d60) at 1f3ecd60: hlink=3D0022dfa2 elink=3D1f3ebee4 QH(0xc1a59fc0) at 0022dfc0: hlink=3D0022dfe2 elink=3D00000001 QH(0xc1a59fe0) at 0022dfe0: hlink=3D00000001 elink=3D0022efe0 Enqueued QH: QH(0xc1a58d60) at 1f3ecd60: hlink=3D0022dfa2 elink=3D1f3ebee4 TD(0xc1a57f00) at 1f3ebf00 =3D link=3D0x1f3ebee4 status=3D0x1c000007 token=3D0x00e0042d buffer=3D0x001f1d80 1f3ebee4 1c000007,errcnt=3D3,actlen=3D8 pid=3D2d,addr=3D4,endpt= =3D0,D=3D0,maxlen=3D8 TD(0xc1a57ee0) at 1f3ebee0 =3D link=3D0x00000001 status=3D0x1d8807ff token=3D0xffe80469 buffer=3D0x00000000 1 1d8807ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D0,D=3D1,maxlen=3D0 usb0: uhci_softintr (0) uhci_check_intr: ii=3D0xc1c1616c done uhci_idone: ii=3D0xc1c1616c uhci_idone: ii=3D0xc1c1616c, xfer=3D0xc1c16100, pipe=3D0xc1ed5d80 ready TD(0xc1a57f00) at 1f3ebf00 =3D link=3D0x1f3ebee4 status=3D0x1c000007 token=3D0x00e0042d buffer=3D0x001f1d80 1f3ebee4 1c000007,errcnt=3D3,actlen=3D8 pid=3D2d,addr=3D4,endpt= =3D0,D=3D0,maxlen=3D8 TD(0xc1a57ee0) at 1f3ebee0 =3D link=3D0x00000001 status=3D0x1d0007ff token=3D0xffe80469 buffer=3D0x00000000 1 1d0007ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D0,D= =3D1,maxlen=3D0 uhci_idone: actlen=3D0, status=3D0x0 uhci_remove_ls_ctrl: sqh=3D0xc1a58d60 uhci_device_ctrl_done: length=3D0 uhci_idone: ii=3D0xc1c1616c done uhci_check_intr: active ii=3D0xc1c1626c uhci_check_intr: ii=3D0xc1c1626c std=3D0xc1a57f20 still active uhci_check_intr: active ii=3D0xc1a41a6c uhci_check_intr: ii=3D0xc1a41a6c std=3D0xc1a57f80 still active uhci_device_intr_transfer: xfer=3D0xc1c16100 len=3D6 flags=3D4 uhci_alloc_std_chain: addr=3D4 endpt=3D2 len=3D6 speed=3D1 flags=3D0x4 uhci_alloc_std_chain: maxp=3D5 ntd=3D2 uhci_alloc_std_chain: nexttog=3D0 uhci_device_intr_transfer: data(1) TD(0xc1a57ea0) at 1f3ebea0 =3D link=3D0x1f3ebec4 status=3D0x3c8003ff token=3D0x00810469 buffer=3D0x001f1d40 1f3ebec4 3c8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D0,maxlen=3D5 TD(0xc1a57ec0) at 1f3ebec0 =3D link=3D0x00000005 status=3D0x3d8003ff token=3D0x00090469 buffer=3D0x001f1d45 5 3d8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D1,maxlen=3D1 QH(0xc1a58d40) at 1f3ecd40: hlink=3D0022df82 elink=3D00000001 uhci_device_intr_transfer: qhs[0]=3D0xc1a58d40 uhci_device_intr_transfer: data(2) TD(0xc1a57ea0) at 1f3ebea0 =3D link=3D0x1f3ebec4 status=3D0x3c8003ff token=3D0x00810469 buffer=3D0x001f1d40 1f3ebec4 3c8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D0,maxlen=3D5 TD(0xc1a57ec0) at 1f3ebec0 =3D link=3D0x00000005 status=3D0x3d8003ff token=3D0x00090469 buffer=3D0x001f1d45 5 3d8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D1,maxlen=3D1 QH(0xc1a58d40) at 1f3ecd40: hlink=3D0022df82 elink=3D1f3ebea0 usb0: uhci_softintr (0) uhci_check_intr: ii=3D0xc1c1616c done uhci_idone: ii=3D0xc1c1616c uhci_idone: ii=3D0xc1c1616c, xfer=3D0xc1c16100, pipe=3D0xc1eda800 ready TD(0xc1a57ea0) at 1f3ebea0 =3D link=3D0x1f3ebec4 status=3D0x1c000004 token=3D0x00810469 buffer=3D0x001f1d40 1f3ebec4 1c000004,errcnt=3D3,actlen=3D5 pid=3D69,addr=3D4,endpt= =3D2,D=3D0,maxlen=3D5 TD(0xc1a57ec0) at 1f3ebec0 =3D link=3D0x00000005 status=3D0x1d500000 token=3D0x00090469 buffer=3D0x001f1d45 5 1d500000,errcnt=3D3,actlen=3D1 pid=3D69,addr=3D4,endpt=3D2,D=3D1,maxlen=3D1 uhci_idone: actlen=3D6, status=3D0x500000 uhci_idone: error, addr=3D4, endpt=3D0x82, status 0x500000 uhci_device_intr_done: length=3D6 uhci_device_intr_done: requeing uhci_alloc_std_chain: addr=3D4 endpt=3D2 len=3D6 speed=3D1 flags=3D0x4 uhci_alloc_std_chain: maxp=3D5 ntd=3D2 uhci_alloc_std_chain: nexttog=3D0 uhci_device_intr_done: data(1) TD(0xc1a57ea0) at 1f3ebea0 =3D link=3D0x1f3ebec4 status=3D0x3c8003ff token=3D0x00810469 buffer=3D0x001f1d40 1f3ebec4 3c8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D0,maxlen=3D5 TD(0xc1a57ec0) at 1f3ebec0 =3D link=3D0x00000005 status=3D0x3d8003ff token=3D0x00090469 buffer=3D0x001f1d45 5 3d8003ff,errcnt=3D3,actlen=3D0 pid=3D69,addr=3D4,endpt=3D2,D=3D1,maxlen=3D1 QH(0xc1a58d40) at 1f3ecd40: hlink=3D0022df82 elink=3D00000001 uhci_idone: ii=3D0xc1c1616c done uhci_check_intr: active ii=3D0xc1c1626c uhci_check_intr: ii=3D0xc1c1626c std=3D0xc1a57f20 still active uhci_check_intr: active ii=3D0xc1a41a6c uhci_check_intr: ii=3D0xc1a41a6c std=3D0xc1a57f80 still active uhci_device_intr_abort: xfer=3D0xc1c16100 uhci_device_intr_abort: remove uhci_abort_xfer: xfer=3D0xc1c16100, status=3D6 uhci_abort_xfer: stop ii=3D0xc1c1616c usb0: uhci_softintr (0) uhci_check_intr: aborted xfer=3D0xc1c16100 uhci_check_intr: active ii=3D0xc1c1626c uhci_check_intr: ii=3D0xc1c1626c std=3D0xc1a57f20 still active uhci_check_intr: active ii=3D0xc1a41a6c uhci_check_intr: ii=3D0xc1a41a6c std=3D0xc1a57f80 still active uhci_abort_xfer: callback uhci_device_intr_done: length=3D6 uhci_device_intr_done: removing uhci_remove_intr: n=3D2 sqh=3D0xc1a58d40 uhci_remove_intr: n=3D12 sqh=3D0xc1a58d20 uhci_remove_intr: n=3D22 sqh=3D0xc1a58d00 uhci_remove_intr: n=3D32 sqh=3D0xc1a58ce0 uhci_remove_intr: n=3D42 sqh=3D0xc1a58cc0 uhci_remove_intr: n=3D52 sqh=3D0xc1a58ca0 uhci_remove_intr: n=3D62 sqh=3D0xc1a58c80 uhci_remove_intr: n=3D72 sqh=3D0xc1a58c60 uhci_remove_intr: n=3D82 sqh=3D0xc1a58c40 uhci_remove_intr: n=3D92 sqh=3D0xc1a58c20 uhci_remove_intr: n=3D102 sqh=3D0xc1a58c00 uhci_remove_intr: n=3D112 sqh=3D0xc1a58be0 uhci_remove_intr: n=3D122 sqh=3D0xc1a58bc0 uhci_root_ctrl_control type=3D0xa3 request=3D00 uhci_root_ctrl_control type=3D0x23 request=3D01 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=3D1 feature=3D17 uhci_root_ctrl_control type=3D0x23 request=3D01 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=3D1 feature=3D16 uhub4: at uhub0 port 1 (addr 2) disconnected uhci_device_intr_abort: xfer=3D0xc1a41a00 uhci_device_intr_abort: remove uhci_abort_xfer: xfer=3D0xc1a41a00, status=3D6 uhci_abort_xfer: stop ii=3D0xc1a41a6c usb0: uhci_softintr (0) uhci_check_intr: active ii=3D0xc1c1626c uhci_check_intr: ii=3D0xc1c1626c std=3D0xc1a57f20 still active uhci_check_intr: aborted xfer=3D0xc1a41a00 uhci_abort_xfer: callback uhci_device_intr_done: length=3D1 uhci_device_intr_done: removing uhci_remove_intr: n=3D0 sqh=3D0xc1a58f40 ums0: at uhub4 port 1 (addr 3) disconnected uhci_device_intr_abort: xfer=3D0xc1c16200 uhci_device_intr_abort: remove uhci_abort_xfer: xfer=3D0xc1c16200, status=3D6 uhci_abort_xfer: stop ii=3D0xc1c1626c usb0: uhci_softintr (0) uhci_check_intr: aborted xfer=3D0xc1c16200 uhci_abort_xfer: callback uhci_device_intr_done: length=3D7 uhci_device_intr_done: removing uhci_remove_intr: n=3D1 sqh=3D0xc1a58f00 uhci_remove_intr: n=3D11 sqh=3D0xc1a58ee0 uhci_remove_intr: n=3D21 sqh=3D0xc1a58ec0 uhci_remove_intr: n=3D31 sqh=3D0xc1a58ea0 uhci_remove_intr: n=3D41 sqh=3D0xc1a58e80 uhci_remove_intr: n=3D51 sqh=3D0xc1a58e60 uhci_remove_intr: n=3D61 sqh=3D0xc1a58e40 uhci_remove_intr: n=3D71 sqh=3D0xc1a58e20 uhci_remove_intr: n=3D81 sqh=3D0xc1a58e00 uhci_remove_intr: n=3D91 sqh=3D0xc1a58de0 uhci_remove_intr: n=3D101 sqh=3D0xc1a58dc0 uhci_remove_intr: n=3D111 sqh=3D0xc1a58da0 uhci_remove_intr: n=3D121 sqh=3D0xc1a58d80 ums0: detached uhid0: at uhub4 port 2 (addr 4) disconnected uhid0: detached uhid1: at uhub4 port 2 (addr 4) disconnected uhid1: detached uhid2: at uhub4 port 2 (addr 4) disconnected uhid2: detached uhub4: detached uhci_root_ctrl_control type=3D0x23 request=3D01 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=3D1 feature=3D16 uhci_root_ctrl_control type=3D0xa3 request=3D00 --=20 Cheers, John-Paul Andrusky From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 09:37:12 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0C1D16A41F for ; Fri, 26 Aug 2005 09:37:11 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 520AF43D48 for ; Fri, 26 Aug 2005 09:37:10 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j7Q9b5BS089575 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 26 Aug 2005 11:37:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j7Q9aeKi059654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2005 11:36:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j7Q9adsM048989; Fri, 26 Aug 2005 11:36:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j7Q9acKZ048988; Fri, 26 Aug 2005 11:36:38 +0200 (CEST) (envelope-from ticso) Date: Fri, 26 Aug 2005 11:36:38 +0200 From: Bernd Walter To: User Tomdean Message-ID: <20050826093638.GU37930@cicely12.cicely.de> References: <200508200344.j7K3irmQ021004@asus.tddhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508200344.j7K3irmQ021004@asus.tddhome> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: Interfacing FT245BM With Ucom X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 09:37:12 -0000 On Fri, Aug 19, 2005 at 08:44:53PM -0700, User Tomdean wrote: > I am running FreeBSD 5.4, GENERIC. > > I have a UMP2 module based on the FTDI FT8U245BM chip, a USB to > parallel chip. The module in intended to interface processors like > the AVR or 68HC1x to the USB. I am using the FTDI ATmega16, clocked > at 16 mHz. > > My project will have 3 or 3 bytes put into the USB every 6.0 to 7.8 > uSec or every 11.2 to 12.8 uSec, depending on the degradation of > precision due to over-clocking the ATMega16 ADC. > > Most of the data flow is into FreeBSD. So, I need about 0.75 mBytes > thruput. Maybe a few bytes per second out of FreeBSD. > > The UMP2 is recognized as a ucom device, > > vendor 0x0403 > product 0x6001 > release 0x0200 > > If I 'kldload uftdi', I get uftdi.ko and ucom.ko loaded. Then, > powering up the UMP2 results in the device being connected. From > dmesg: > > ucom0: FTDI USB HS Serial Converter, rev 1.10/2.00, addr 2 > > I can connect to the device with tip. But, I cannot disconnect! '~.' > displays [EOT] but tip does not exit. I can disconnect as root! The > device is > > crw-rw---- 1 uucp dialer 232, 128 Aug 18 04:43 ucom0 > > When tip is hung, > # ps > ... > 1001 17030 553 0 6 0 1272 728 ttywai IE+ p1 0:00.00 /usr/bin/tip ucom > 1001 17031 17030 0 -84 0 0 0 - Z+ p1 0:00.00 > ... There shouldn't be any differences about which user opens the device, but you may want to retest with 6.0. PHK did a massivly update on tty-layer, lots of ucom shortcomings have been identified. > I have to cycle power on the UMP2 to get tip to exit! And, cycle > power on the UMP2 to get it recognized again!. Sometimes, it takes > several minutes before one of the drivers gets in sync with the > hardware. > > BTW, the behavior of tip has changed from a UNIX-style 0x0a to a > WINDOZE style 0x0d,0x0a to get UNIX display behavior! > > I plan to try tip with ucom0 with an echo process in the AVR to just > return any char received by the UMP2. > > Can I get the 0.75 mByte thruput with uftdi driver, accessed thru > ucom? Yes - as long a nothing else is using the same USB channel you can expect rates of up to 1MByte/s. But you shouldn't expect transmission of injected bytes in less than a few msec, as tranporting bytes mean starting a new request, which then get scheduled on the next USB frame - a USB frame is started every 1ms. In case of the FTDI-chip it is buffered by default for full 10ms unless the receive buffer of the FTDI gets full. I asume it is the AVR sending just a few bytes, otherwise you may see reduced bandwidth because of this. Ideally you should inject a few hundret bytes at once for transmission from userland to the USB hardware - don't know how good the tty-code can cache this problem by buffering. Your userland application should also read with large requests whenever possible. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 09:40:10 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6192416A41F for ; Fri, 26 Aug 2005 09:40:10 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D75443D46 for ; Fri, 26 Aug 2005 09:40:09 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j7Q9e5BS089612 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 26 Aug 2005 11:40:07 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j7Q9dFKi059664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2005 11:39:16 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j7Q9dFbh049001; Fri, 26 Aug 2005 11:39:15 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j7Q9dFNx049000; Fri, 26 Aug 2005 11:39:15 +0200 (CEST) (envelope-from ticso) Date: Fri, 26 Aug 2005 11:39:15 +0200 From: Bernd Walter To: User Tomdean Message-ID: <20050826093914.GV37930@cicely12.cicely.de> References: <200508202157.j7KLv1GF005017@asus.tddhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508202157.j7KLv1GF005017@asus.tddhome> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: Ucom/Uftdi Thru-put X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 09:40:10 -0000 On Sat, Aug 20, 2005 at 02:57:01PM -0700, User Tomdean wrote: > I am running FreeBSD 5.4 on an ASUS A7N266E. > > I have a FTDI FT8U245BM based UMP2 driven by an Atmel ATmega16, connected to ucom0. > > usb0: OHCI version 1.0 > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 3 ports with 3 removable, self powered > ohci1: mem 0xee800000-0xee800fff irq 21 at device 3.0 on pci0 > usb1: OHCI version 1.0 > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 3 ports with 3 removable, self powered > ... > ucom0: FTDI USB HS Serial Converter, rev 1.10/2.00, addr 2 > > The FT8U245BM looks like an FT8U232AM, except the 'other side' is > parallel rather than serial. From the EEPROM, > > vendor 0x0403 == USB_VENDOR_FTDI > product 0x6001 == USB_PRODUCT_FTDI_SERIAL_8U232AM > release 0x0200 > > My FreeBSD process just loops, reading ucom0. The microprocessor just > loops, waiting for space in the UMP2 transmit buffer, 'TXE#' then writes an > 'a'. > > The thru-put is 1000060 bytes in 32.26 seconds or about 31 KBytes/sec. > > The microprocessor spends most of the time waiting for TXE#. > > Is this near the max thru-put of the uftdi driver? Keep in mind that Full-Speed USB is just 12MBit/s plus much overhead. You are near the theoretical limit. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 11:25:11 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DC7916A41F for ; Fri, 26 Aug 2005 11:25:11 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8FA443D49 for ; Fri, 26 Aug 2005 11:25:10 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j7QBP6BS091484 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 26 Aug 2005 13:25:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j7QBOOKi060303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Aug 2005 13:24:25 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j7QBOOa4049656; Fri, 26 Aug 2005 13:24:24 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j7QBONRj049654; Fri, 26 Aug 2005 13:24:23 +0200 (CEST) (envelope-from ticso) Date: Fri, 26 Aug 2005 13:24:23 +0200 From: Bernd Walter To: User Tomdean Message-ID: <20050826112422.GY37930@cicely12.cicely.de> References: <200508202157.j7KLv1GF005017@asus.tddhome> <20050826093914.GV37930@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050826093914.GV37930@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: Ucom/Uftdi Thru-put X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 11:25:11 -0000 On Fri, Aug 26, 2005 at 11:39:15AM +0200, Bernd Walter wrote: > On Sat, Aug 20, 2005 at 02:57:01PM -0700, User Tomdean wrote: > > I am running FreeBSD 5.4 on an ASUS A7N266E. > > > > I have a FTDI FT8U245BM based UMP2 driven by an Atmel ATmega16, connected to ucom0. > > > > usb0: OHCI version 1.0 > > usb0: on ohci0 > > usb0: USB revision 1.0 > > uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > uhub0: 3 ports with 3 removable, self powered > > ohci1: mem 0xee800000-0xee800fff irq 21 at device 3.0 on pci0 > > usb1: OHCI version 1.0 > > usb1: on ohci1 > > usb1: USB revision 1.0 > > uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > > uhub1: 3 ports with 3 removable, self powered > > ... > > ucom0: FTDI USB HS Serial Converter, rev 1.10/2.00, addr 2 > > > > The FT8U245BM looks like an FT8U232AM, except the 'other side' is > > parallel rather than serial. From the EEPROM, > > > > vendor 0x0403 == USB_VENDOR_FTDI > > product 0x6001 == USB_PRODUCT_FTDI_SERIAL_8U232AM > > release 0x0200 > > > > My FreeBSD process just loops, reading ucom0. The microprocessor just > > loops, waiting for space in the UMP2 transmit buffer, 'TXE#' then writes an > > 'a'. > > > > The thru-put is 1000060 bytes in 32.26 seconds or about 31 KBytes/sec. > > > > The microprocessor spends most of the time waiting for TXE#. > > > > Is this near the max thru-put of the uftdi driver? > > Keep in mind that Full-Speed USB is just 12MBit/s plus much overhead. > You are near the theoretical limit. Ups - sorry, I missed that it took 32.26 seconds. It depends very much on your programming, so details would help to analyse your bootlenecks. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 12:22:56 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E15416A41F for ; Fri, 26 Aug 2005 12:22:56 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD64F43D49 for ; Fri, 26 Aug 2005 12:22:55 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-86-16.daxnet.no ([193.216.86.16] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 250667205; Fri, 26 Aug 2005 14:22:52 +0200 From: Hans Petter Selasky To: John-Paul Andrusky Date: Fri, 26 Aug 2005 14:23:45 +0200 User-Agent: KMail/1.7 References: <200508240257.03931.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200508261423.46583.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Problems with uhid device. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 12:22:56 -0000 On Thursday 25 August 2005 00:40, John-Paul Andrusky wrote: > "dmesg | grep usb" gives "usb0: uhci_softintr (0)" repeated over and > over. With just "hw.usb.uhci.debug=3D15", I get the following when I > 'cat' the device, push a button and then > do a ctrl-c: > > TD(0xc1a57ea0) at 1f3ebea0 =3D link=3D0x1f3ebec4 status=3D0x1c000004 > token=3D0x00810469 buffer=3D0x001f1d40 > 1f3ebec4 1c000004,errcnt=3D3,actlen=3D5 > pid=3D69,addr=3D4,endpt=3D2,D=3D0,maxlen=3D5 TD(0xc1a57ec0) at 1f3ebec0 = =3D > link=3D0x00000005 status=3D0x1d500000 > token=3D0x00090469 buffer=3D0x001f1d45 > 5 1d500000,errcnt=3D3,actlen=3D1 ^^^ the transfer has stalled =46rom what I can remember, the UHCI driver is not doing the interrupt pipe= s=20 right. You can choose between the following: 1) this release is a little old, and I will update it next month: Download the three files below into a new directory and type=20 "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 2) this package was updated not long ago, but it will also install an ISDN= =20 system, but that will not cause any trouble. Download the three files below into a new directory and type "make install". To uninstall type "make deinstall". http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/155/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/new_ihfc_1_5_5.tar.b= z2 http://home.c2i.net/hselasky/isdn4bsd/privat/temporary/new_ihfc_1_5_5.diff.= bz2 After install, either recompile the kernel or all USB modules, depending on= =20 how you load the USB drivers. Just ignore the "ihfc" manpage that pops up=20 when the installation is finished. If you are using modules, then you have to do the following, before rebooti= ng: cd /sys/modules/aue && make depend all install clean cd /sys/modules/axe && make depend all install clean cd /sys/modules/cdce && make depend all install clean cd /sys/modules/cue && make depend all install clean cd /sys/modules/if_ndis && make depend all install clean cd /sys/modules/kue && make depend all install clean cd /sys/modules/ndis && make depend all install clean cd /sys/modules/netgraph/bluetooth/ubtbcmfw && make depend all install clean cd /sys/modules/netgraph/bluetooth/ubt && make depend all install clean cd /sys/modules/rue && make depend all install clean cd /sys/modules/sound/driver/uaudio && make depend all install clean cd /sys/modules/ubsa && make depend all install clean cd /sys/modules/ubser && make depend all install clean cd /sys/modules/ucom && make depend all install clean cd /sys/modules/ucycom && make depend all install clean cd /sys/modules/udav && make depend all install clean cd /sys/modules/udbp && make depend all install clean cd /sys/modules/ufm && make depend all install clean cd /sys/modules/uftdi && make depend all install clean cd /sys/modules/ugen && make depend all install clean cd /sys/modules/uhid && make depend all install clean cd /sys/modules/ukbd && make depend all install clean cd /sys/modules/ulpt && make depend all install clean cd /sys/modules/umass && make depend all install clean cd /sys/modules/umct && make depend all install clean cd /sys/modules/umodem && make depend all install clean cd /sys/modules/ums && make depend all install clean cd /sys/modules/uplcom && make depend all install clean cd /sys/modules/ural && make depend all install clean cd /sys/modules/urio && make depend all install clean cd /sys/modules/usb && make depend all install clean cd /sys/modules/uscanner && make depend all install clean cd /sys/modules/uvisor && make depend all install clean cd /sys/modules/uvscom && make depend all install clean I am assuming that you are using FreeBSD 5/6/7. Turn on UHCI debugging and= =20 post the messages again, if it does not work. =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Fri Aug 26 14:07:22 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 768F216A41F for ; Fri, 26 Aug 2005 14:07:22 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4BC243D55 for ; Fri, 26 Aug 2005 14:07:17 +0000 (GMT) (envelope-from tomdean@speakeasy.org) Received: (qmail 28110 invoked from network); 26 Aug 2005 14:07:16 -0000 Received: from dsl081-020-229.sea1.dsl.speakeasy.net (HELO asus.tddhome) ([64.81.20.229]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 26 Aug 2005 14:07:16 -0000 Received: from asus.tddhome (localhost.tddhome [127.0.0.1]) by asus.tddhome (8.13.3/8.12.11) with ESMTP id j7QEA9AK024576; Fri, 26 Aug 2005 07:10:09 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Received: (from tomdean@localhost) by asus.tddhome (8.13.3/8.12.11/Submit) id j7QEA8ad024573; Fri, 26 Aug 2005 07:10:08 -0700 (PDT) (envelope-from tomdean@speakeasy.org) Date: Fri, 26 Aug 2005 07:10:08 -0700 (PDT) Message-Id: <200508261410.j7QEA8ad024573@asus.tddhome> X-Authentication-Warning: asus.tddhome: tomdean set sender to tomdean@speakeasy.org using -f From: User Tomdean To: ticso@cicely.de In-reply-to: <20050826112422.GY37930@cicely12.cicely.de> (message from Bernd Walter on Fri, 26 Aug 2005 13:24:23 +0200) References: <200508202157.j7KLv1GF005017@asus.tddhome> <20050826093914.GV37930@cicely12.cicely.de> <20050826112422.GY37930@cicely12.cicely.de> Cc: freebsd-usb@freebsd.org Subject: Re: Ucom/Uftdi Thru-put 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, 26 Aug 2005 14:07:22 -0000 Thanks for the reply, I am not home until Tuesday, so I will post code then. tomdean From owner-freebsd-usb@FreeBSD.ORG Sat Aug 27 16:05:35 2005 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A25A616A41F; Sat, 27 Aug 2005 16:05:35 +0000 (GMT) (envelope-from molter@tin.it) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45AD643D46; Sat, 27 Aug 2005 16:05:35 +0000 (GMT) (envelope-from molter@tin.it) Received: from gattaccio.codalunga (82.122.231.90) by vsmtp2.tin.it (7.2.060.1) (authenticated as molter@tin.it) id 430D83F9000C2A48; Sat, 27 Aug 2005 18:05:31 +0200 Received: by gattaccio.codalunga (Postfix, from userid 1001) id E61EAC34A; Sat, 27 Aug 2005 18:05:32 +0200 (CEST) Date: Sat, 27 Aug 2005 18:05:32 +0200 From: Marco Molteni To: usb@freebsd.org Message-Id: <20050827180532.2c4b642b.molter@tin.it> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Fw: sponsoring to port the graphire USB tablet device driver to FreeBSD 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, 27 Aug 2005 16:05:35 -0000 FYI, please reply to usb@freebsd.org only marco Begin forwarded message: Date: Sat, 27 Aug 2005 17:58:52 +0200 From: Marco Molteni To: usb-bsd@eleetbsd.org, linuxwacom-discuss@lists.sourceforge.net Cc: Arvid de Jong , haroon@khalidconsulting.com, khym@azeotrope.org, v.velox@vvelox.net, joe@tao.org.uk Subject: sponsoring to port the graphire USB tablet device driver to FreeBSD Hi, I am putting some of you in the CC list because you expressed interest in the past in having the graphire USB tablet device driver ported to FreeBSD. I'd like to sponsor a work in this direction, and I hope some of you will join in with the amount of money you feel like. There is a working device driver of the wacom USB tablet for Linux, at http://linuxwacom.sourceforge.net/, which supports FreeBSD only for serial. What I would like is support in FreeBSD for the USB tablet, more precisely I'd like at least absolute positioning (opposed to relative positioning like a mouse) and working with the Gimp. The supported tablets should be at least the graphire 2. I put 100 EUR on the table for this. Anybody interested? thanks marco -- He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me. -- Thomas Jefferson