From owner-freebsd-usb@FreeBSD.ORG Sun May 15 17:00:26 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB13616A4D0 for ; Sun, 15 May 2005 17:00:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65FAF43D8F for ; Sun, 15 May 2005 17:00:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4FH0PaL059618 for ; Sun, 15 May 2005 17:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4FH0PFD059617; Sun, 15 May 2005 17:00:25 GMT (envelope-from gnats) Resent-Date: Sun, 15 May 2005 17:00:25 GMT Resent-Message-Id: <200505151700.j4FH0PFD059617@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, "James E. Flemer" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F1F216A4CE for ; Sun, 15 May 2005 16:56:05 +0000 (GMT) Received: from psi.speednaked.com (c-24-9-89-237.hsd1.co.comcast.net [24.9.89.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id E897243DCE for ; Sun, 15 May 2005 16:56:04 +0000 (GMT) (envelope-from jflemer@speednaked.com) Received: from null.speednaked.com (localhost [127.0.0.1]) by null.speednaked.com (8.13.3/8.13.3) with ESMTP id j4FGshJl004259; Sun, 15 May 2005 10:54:43 -0600 (MDT) (envelope-from jflemer@null.speednaked.com) Received: (from jflemer@localhost) by null.speednaked.com (8.13.3/8.13.3/Submit) id j4FGsgtn004258; Sun, 15 May 2005 10:54:42 -0600 (MDT) (envelope-from jflemer) Message-Id: <200505151654.j4FGsgtn004258@null.speednaked.com> Date: Sun, 15 May 2005 10:54:42 -0600 (MDT) From: "James E. Flemer" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: jflemer@alum.rpi.edu Subject: usb/81073: [patch] fix umass NO_GETMAXLUN quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "James E. Flemer" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2005 17:00:27 -0000 >Number: 81073 >Category: usb >Synopsis: [patch] fix umass NO_GETMAXLUN quirk >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 15 17:00:24 GMT 2005 >Closed-Date: >Last-Modified: >Originator: James E. Flemer >Release: FreeBSD 6.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD null.speednaked.com 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Sun May 1 02:34:19 MDT 2005 root@null.speednaked.com:/usr/obj/usr/src/sys/NULL6 i386 >Description: The umass NO_GETMAXLUN quirk is not implemented. The flag is defined in umass.c, and several devices are tagged with it, but it is not referenced anywhere else. It would seem that this flag is there because some devices seem to get stuck when sent UR_BBB_GET_MAX_LUN. I have one such USB cd-rom device that seems to be known by the following names: Sharp CE-CD05 Panasonic KXL-840AN Kyushu Matsushita Electric (KME) UJDB131 Kyushu Matsushita Electric (KME) CD-ROM11 Apparently this drive is popular on many ultralight laptops in Japan (often rebranded). >How-To-Repeat: Load the umass driver and attach a device that has NO_GETMAXLUN as a quirk. Devices that need this quirk tend to exhibit the following behavior: umass0: Kyushu Matsushita Electric Co.,Ltd. UJDB131, rev 1.10/0.81, addr 2 umass0: Get Max Lun not supported (STALLED) umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED (cd0:umass-sim0:0:0:0): got CAM status 0x4 (cd0:umass-sim0:0:0:0): fatal error, failed to attach to device (cd0:umass-sim0:0:0:0): lost device umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED (cd0:umass-sim0:0:0:0): AutoSense Failed umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED (cd0:umass-sim0:0:0:0): removing device entry >Fix: The patch below enables the NO_GETMAXLUN quirk, and when set for a device sets the maxlun to 0. This patch also adds a new device and the appropriate quirks section. With this patch my drive attaches and works. This patch does not revoke the NO_GETMAXLUN quirk for any device that currently has it set. This patch might change how these devices work (hopefully making things better). --- umass-get-max-lun.diff begins here --- Index: umass.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/umass.c,v retrieving revision 1.121 diff -u -r1.121 umass.c --- umass.c 25 Mar 2005 01:47:01 -0000 1.121 +++ umass.c 15 May 2005 01:32:33 -0000 @@ -399,6 +399,10 @@ UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, NO_INQUIRY | NO_GETMAXLUN }, + { USB_VENDOR_PANASONIC, USB_PRODUCT_PANASONIC_KXL840AN, RID_WILDCARD, + UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, + NO_GETMAXLUN + }, { USB_VENDOR_PANASONIC, USB_PRODUCT_PANASONIC_KXLCB20AN, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS @@ -1086,7 +1090,8 @@ /* Get the maximum LUN supported by the device. */ - if ((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB) + if ((sc->proto & UMASS_PROTO_WIRE) == UMASS_PROTO_BBB && + (sc->quirks & NO_GETMAXLUN) == 0) sc->maxlun = umass_bbb_get_max_lun(sc); else sc->maxlun = 0; Index: usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.229 diff -u -r1.229 usbdevs --- usbdevs 18 Apr 2005 18:47:37 -0000 1.229 +++ usbdevs 15 May 2005 01:32:33 -0000 @@ -1252,6 +1252,7 @@ product PALM ZIRE 0x0070 Palm Zire /* Panasonic products */ +product PANASONIC KXL840AN 0x0d01 CD-R Drive KXL-840AN product PANASONIC KXLRW32AN 0x0d09 CD-R Drive KXL-RW32AN product PANASONIC KXLCB20AN 0x0d0a CD-R Drive KXL-CB20AN product PANASONIC KXLCB35AN 0x0d0e DVD-ROM & CD-R/RW --- umass-get-max-lun.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon May 16 11:02:07 2005 Return-Path: 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 4742116A4DC for ; Mon, 16 May 2005 11:02:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D31D43DD3 for ; Mon, 16 May 2005 11:02:07 +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 j4GB25XT021426 for ; Mon, 16 May 2005 11:02:05 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4GB23EV021419 for freebsd-usb@freebsd.org; Mon, 16 May 2005 11:02:03 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 16 May 2005 11:02:03 GMT Message-Id: <200505161102.j4GB23EV021419@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 Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 11:02:07 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb USB locking issues 3 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage f [2003/03/05] kern/48952 usb uscanner0 hangs o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev s [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( f [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not f [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re f [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus f [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash f [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect f [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti 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 f [2005/01/25] usb/76684 usb Toshiba PDR-M4 camera connected via USB h f [2005/01/26] usb/76727 usb usb printing locks machine f [2005/01/30] usb/76847 usb ukbd panics on boot 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 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/06] usb/80685 usb panic in usb_cold_explore() at begining 42 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 f [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. f [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected 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 f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 f [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor f [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. f [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/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/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/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] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written 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/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 f [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] kern/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 56 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon May 16 13:40:53 2005 Return-Path: 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 EE2B216A4CE for ; Mon, 16 May 2005 13:40:53 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6218943D91 for ; Mon, 16 May 2005 13:40:53 +0000 (GMT) (envelope-from maseeq@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so2546091nzk for ; Mon, 16 May 2005 06:40:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MmeBECnafZM36V1aaBNeL5Dzm4VLxapltuvwSQjBPQktAx3kVRfeo0krLOiMXnHojK6g7iXVrsWgqAxnApJf/4sgq4KHff4G/7LPKS94NHAD7xm1DkMfdrP1zJRkJKtNHBopsPknblyM/xaZFrpKk0BOpBMTlr+qJikn9+wYXuY= Received: by 10.36.118.5 with SMTP id q5mr272261nzc; Mon, 16 May 2005 06:40:52 -0700 (PDT) Received: by 10.36.101.12 with HTTP; Mon, 16 May 2005 06:40:52 -0700 (PDT) Message-ID: <22d1b18305051606404117c5ff@mail.gmail.com> Date: Mon, 16 May 2005 17:40:52 +0400 From: Maxim Azarov 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: Patch to add Curitel HX-550C USB modem support X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: maxim@azarov.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 13:40:54 -0000 Hello!=20 This patch adds support for Curitel HX-550C USB modem to 5.4 RELEASE. (http://www.curitel.com/english/Product/cdma450/HX-550C.asp). It solves the following problem with ucom when attaching device and enables to use ucom0 as modem (I was able to work with SkyLink CDMA450 provider in Moscow, Russia with no problems after that using ppp): --- May 15 07:22:35 kernel: ucom0: CURITEL Incorporated CURITEL HX-550C USB Modem, rev 1.10/0.00, addr 2, iclass 2/2 May 15 07:22:35 kernel: ucom0: data interface 1, has CM over data, has bre= ak May 15 07:22:40 kernel: ucom0: could not set data multiplex mode May 15 07:22:40 kernel: device_attach: ucom0 attach returned 6 --- Patches are against 5.4-RELEASE: ----PATCH #1--- *** /usr/src/sys/dev/usb/usb_quirks.c.original Sun May 15 12:40:43 2005 --- /usr/src/sys/dev/usb/usb_quirks.c Sun May 15 13:49:49 2005 *************** *** 99,104 **** --- 99,106 ---- ANY, { UQ_ASSUME_CM_OVER_DATA }}, { USB_VENDOR_QUALCOMM2, USB_PRODUCT_QUALCOMM_CDMA_MSM, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_PANTECH_CURITEL, USB_PRODUCT_PANTECH_CURITEL_HX550C_USB_MOD= EM, + ANY, { UQ_ASSUME_CM_OVER_DATA}}, { USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_AS64LX, 0x100, { UQ_ASSUME_CM_OVER_DATA }}, { 0, 0, 0, { 0 } } ----PATCH #2--- *** /usr/src/sys/dev/usb/usbdevs.original Mon May 16 16:15:47 2005 --- /usr/src/sys/dev/usb/usbdevs Sun May 15 12:56:11 2005 *************** *** 187,192 **** --- 187,193 ---- vendor APPLE 0x05ac Apple Computer vendor DIGI 0x05c5 Digi International vendor QUALCOMM 0x05c6 Qualcomm + vendor PANTECH_CURITEL 0x106c Pantech & Curitel vendor QTRONIX 0x05c7 Qtronix vendor ELSA 0x05cc ELSA vendor BRAINBOXES 0x05d1 Brainboxes Limited *************** *** 716,721 **** --- 717,725 ---- /* Qualcomm products */ product QUALCOMM CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMM2 CDMA_MSM 0x6000 CDMA Technologies MSM phone + + /* Pantech & Curitel products */ + product PANTECH_CURITEL HX550C_USB_MODEM 0x1101=20 Pantech-Curitel HX-550C USB Modem /* General Instruments (Motorola) products */ product GENERALINSTMNTS SB5100 0x5100 SURFboard SB5100 Cable mode= m --=20 Best regards, Maxim Azarov From owner-freebsd-usb@FreeBSD.ORG Mon May 16 14:50:14 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 316FA16A4CE for ; Mon, 16 May 2005 14:50:14 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B081343D1F for ; Mon, 16 May 2005 14:50:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4GEo6GM051777 for ; Mon, 16 May 2005 14:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4GEo62A051776; Mon, 16 May 2005 14:50:06 GMT (envelope-from gnats) Date: Mon, 16 May 2005 14:50:06 GMT Message-Id: <200505161450.j4GEo62A051776@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Richard S. Conto" Subject: Re: usb/80685: panic in usb_cold_explore() at begining X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Richard S. Conto" List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 14:50:14 -0000 The following reply was made to PR usb/80685; it has been noted by GNATS. From: "Richard S. Conto" To: jwm@CSUA.Berkeley.EDU Cc: bug-followup@FreeBSD.org, rsc@merit.edu, rsc@merit.edu Subject: Re: usb/80685: panic in usb_cold_explore() at begining Date: Mon, 16 May 2005 10:44:17 -0400 I did a little exploring of this shortly after I opened this trouble report. I modified the KASSERT() to print the value of "cold", and it was "0" for me. That didn't seem very helpful, and more trouble shooting was needed. However, as I thought it was a timing related bug at the time, I didn't try to make time to trace the problem further. A brief inspection of the code suggests a possible path whereby "usb_coldexplist" is empty when "usb_cold_explore()" is run, but I haven't tried to debug that. This machine is so old, cranky, and (temporarily) critical to me that I just haven't had the energy to follow this through. I'm tempted to throw some cheapo USB device on the interface card so I don't have to open the case and remove the card. > originally from: John Milford > originally to: bug-followup@FreeBSD.org > originally cc: rsc@merit.edu > subject: Re: usb/80685: panic in usb_cold_explore() at begining > date: Sat, 14 May 2005 12:22:38 -0700 > ref: <200505141922.j4EJMcLH044086@soda.csua.berkeley.edu> > -------- > >I have hit this too with 4.11-STABLE I cvsup'ed last night. My system >is a Dual Athlon. If there is something I can do to help with this >I'll take a shot at it. > >I say Julian had recommended some prints for debugging, and I added >those, but without a serial console it is tough for me to see if they >are getting printed early on. However the only print I can see is >right before the panic, "HEY WE GOT HERE!". > >printf("HEY WE GOT HERE!\n"); > KASSERT(cold || TAILQ_EMPTY(&usb_coldexplist), > ("usb_cold_explore: busses to explore when !cold")); > while (!TAILQ_EMPTY(&usb_coldexplist)) { > sc = TAILQ_FIRST(&usb_coldexplist); > TAILQ_REMOVE(&usb_coldexplist, sc, sc_coldexplist); >printf("probing a USB 1.1 bus.\n"); > > >With my old kernel (4.11-STABLE from end of Dec.) > >ohci0: mem 0xf1000000-0xf1000fff irq >10 at device 0.0 on pci2 >usb0: OHCI version 1.0, legacy support >usb0: on ohci0 >usb0: USB revision 1.0 >uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 >uhub0: 4 ports with 4 removable, self powered >ums0: Logitech USB Receiver, rev 1.10/16.00, addr 2, iclass 3/1 >ums0: 7 buttons and Z dir. > >!DSPAM:4286500828253684526439! -- Richard Conto * * * * * * * * * * * * * * * * * * * * * * * * Merit Network, Inc. http://www.merit.edu 1000 Oakbrook Drive phone: 734-764-9430 Suite 200 fax: 734-647-3185 Ann Arbor, MI 48104-6794 From owner-freebsd-usb@FreeBSD.ORG Tue May 17 17:01:14 2005 Return-Path: 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 53E9A16A4CE for ; Tue, 17 May 2005 17:01:14 +0000 (GMT) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2DFC43D2F for ; Tue, 17 May 2005 17:01:13 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from [192.168.1.100] (ool-18b92f9e.dyn.optonline.net [24.185.47.158]) by mta5.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IGN00KCB8LZ9F@mta5.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Tue, 17 May 2005 13:01:11 -0400 (EDT) Date: Tue, 17 May 2005 13:01:04 -0400 From: Daniel Rucci To: freebsd-usb@freebsd.org Message-id: <428A2350.6000603@warganizer.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_D5xTplFzeV2A872NWqd0GQ)" X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050416) X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 17:01:14 -0000 This is a multi-part message in MIME format. --Boundary_(ID_D5xTplFzeV2A872NWqd0GQ) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Hi, My phone (motorola razor) can be powered over usb. It seems like it charges for a second, till it ugen0 gets attached, then the power over usb stops. How can I get the power to keep going? Thanks, Dan --Boundary_(ID_D5xTplFzeV2A872NWqd0GQ)-- From owner-freebsd-usb@FreeBSD.ORG Tue May 17 20:52:37 2005 Return-Path: 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 56EAB16A4CE for ; Tue, 17 May 2005 20:52:37 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE20C43DB9 for ; Tue, 17 May 2005 20:52:36 +0000 (GMT) (envelope-from maseeq@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so2552252nzo for ; Tue, 17 May 2005 13:52:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ca1Qjj7GYYDJgGA0XA1bdjCDYoqvcvlXBG26AFvRgB8LA8agxT4NIo9GjPNvDELgD3KHYMWed5QWCDGedJBxdvTRlBuXKy/g7HcPrsM8j+ZGEDfbrjoCLgUnbmI4X28Z81TIdg0GIGMEar1LDcwVR12bR+Wf1bBc9lX4bIfuPd8= Received: by 10.36.47.13 with SMTP id u13mr2342405nzu; Tue, 17 May 2005 13:52:28 -0700 (PDT) Received: by 10.36.101.12 with HTTP; Tue, 17 May 2005 13:52:28 -0700 (PDT) Message-ID: <22d1b183050517135266cf2d0f@mail.gmail.com> Date: Wed, 18 May 2005 00:52:28 +0400 From: Maxim Azarov To: freebsd-usb@freebsd.org In-Reply-To: <428A2350.6000603@warganizer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: base64 Content-Disposition: inline References: <428A2350.6000603@warganizer.com> Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: maxim@azarov.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 20:52:37 -0000 Q2FuIHlvdSBwbGVhc2Ugc2VuZCBkbWVzZyBvdXRwdXQ/CkkgbmV2ZXIgaGFkIHN1Y2ggcHJvYmxl bXMgd2l0aCBNb3Rvcm9sYXMgKEkgaGF2ZSBWNjAwIGFuZCBWNjM1KS4gTWF5YmUKeW91ciBjYWJs ZSBkb2Vzbid0IHN1cHBvcnQgY2hhcmdlLiBBcyBmb3IgbWUsIG9yaWdpbmFsIE1vdG9yb2xhIGNh Ymxlcwpwcm92aWRlZCB3aXRoIHBob25lcyBuZXZlciBpbmNsdWRlZCBjaGFyZ2UgYWJpbGl0eSAo SSB1c2VkIGFsbW9zdCBhbGwKb2YgdXBwZXIgVjZ4LXNlcmllcykuCgpPbiA1LzE3LzA1LCBEYW5p ZWwgUnVjY2kgPHJ1Y2NpQHdhcmdhbml6ZXIuY29tPiB3cm90ZToKPiBIaSwKPiAgICAgTXkgcGhv bmUgKG1vdG9yb2xhIHJhem9yKSBjYW4gYmUgcG93ZXJlZCBvdmVyIHVzYi4gSXQgc2VlbXMgbGlr ZSBpdAo+IGNoYXJnZXMgZm9yIGEgc2Vjb25kLCB0aWxsIGl0IHVnZW4wIGdldHMgYXR0YWNoZWQs IHRoZW4gdGhlIHBvd2VyIG92ZXIKPiB1c2Igc3RvcHMuIEhvdyBjYW4gSSBnZXQgdGhlIHBvd2Vy IHRvIGtlZXAgZ29pbmc/Cj4gCj4gVGhhbmtzLAo+IERhbgo+IAo+IAo+IF9fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4gZnJlZWJzZC11c2JAZnJlZWJzZC5v cmcgbWFpbGluZyBsaXN0Cj4gaHR0cDovL2xpc3RzLmZyZWVic2Qub3JnL21haWxtYW4vbGlzdGlu Zm8vZnJlZWJzZC11c2IKPiBUbyB1bnN1YnNjcmliZSwgc2VuZCBhbnkgbWFpbCB0byAiZnJlZWJz ZC11c2ItdW5zdWJzY3JpYmVAZnJlZWJzZC5vcmciCj4gCj4gCj4gCgoKLS0gCvMg1dfB1sXOycXN LArtwcvTyc0g4drB0s/XCg== From owner-freebsd-usb@FreeBSD.ORG Wed May 18 10:00:18 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C907A16A4CE for ; Wed, 18 May 2005 10:00:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7014C43D95 for ; Wed, 18 May 2005 10:00:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4IA0IdY077344 for ; Wed, 18 May 2005 10:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4IA0IWS077338; Wed, 18 May 2005 10:00:18 GMT (envelope-from gnats) Resent-Date: Wed, 18 May 2005 10:00:18 GMT Resent-Message-Id: <200505181000.j4IA0IWS077338@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, Maxim Azarov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FF0A16A4CE for ; Wed, 18 May 2005 09:51:42 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E16A043D41 for ; Wed, 18 May 2005 09:51:41 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4I9pcFX040545 for ; Wed, 18 May 2005 09:51:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j4I9pcvU040544; Wed, 18 May 2005 09:51:38 GMT (envelope-from nobody) Message-Id: <200505180951.j4I9pcvU040544@www.freebsd.org> Date: Wed, 18 May 2005 09:51:38 GMT From: Maxim Azarov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/81191: Support for Curitel HX-550C USB modem to 5.4 RELEASE. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 10:00:19 -0000 >Number: 81191 >Category: usb >Synopsis: Support for Curitel HX-550C USB modem to 5.4 RELEASE. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed May 18 10:00:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Maxim Azarov >Release: 5.4-RELEASE >Organization: >Environment: FreeBSD 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May 15 14:04:11 MSD 2005 root@:/usr/obj/usr/src/sys/MASEEQ i386 >Description: This patch adds support for Curitel HX-550C USB modem to 5.4 RELEASE. (http://www.curitel.com/english/Product/cdma450/HX-550C.asp). >How-To-Repeat: It solves the following problem with ucom when attaching device and enables to use ucom0 as modem (I was able to work with SkyLink CDMA450 provider in Moscow, Russia with no problems after that using ppp): --- May 15 07:22:35 kernel: ucom0: CURITEL Incorporated CURITEL HX-550C USB Modem, rev 1.10/0.00, addr 2, iclass 2/2 May 15 07:22:35 kernel: ucom0: data interface 1, has CM over data, has break May 15 07:22:40 kernel: ucom0: could not set data multiplex mode May 15 07:22:40 kernel: device_attach: ucom0 attach returned 6 --- >Fix: Patches are against 5.4-RELEASE: ----PATCH #1--- *** /usr/src/sys/dev/usb/usb_quirks.c.original Sun May 15 12:40:43 2005 --- /usr/src/sys/dev/usb/usb_quirks.c Sun May 15 13:49:49 2005 *************** *** 99,104 **** --- 99,106 ---- ANY, { UQ_ASSUME_CM_OVER_DATA }}, { USB_VENDOR_QUALCOMM2, USB_PRODUCT_QUALCOMM_CDMA_MSM, ANY, { UQ_ASSUME_CM_OVER_DATA }}, + { USB_VENDOR_PANTECH_CURITEL, USB_PRODUCT_PANTECH_CURITEL_HX550C_USB_MODEM, + ANY, { UQ_ASSUME_CM_OVER_DATA}}, { USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_AS64LX, 0x100, { UQ_ASSUME_CM_OVER_DATA }}, { 0, 0, 0, { 0 } } ----PATCH #2--- *** /usr/src/sys/dev/usb/usbdevs.original Mon May 16 16:15:47 2005 --- /usr/src/sys/dev/usb/usbdevs Sun May 15 12:56:11 2005 *************** *** 187,192 **** --- 187,193 ---- vendor APPLE 0x05ac Apple Computer vendor DIGI 0x05c5 Digi International vendor QUALCOMM 0x05c6 Qualcomm + vendor PANTECH_CURITEL 0x106c Pantech & Curitel vendor QTRONIX 0x05c7 Qtronix vendor ELSA 0x05cc ELSA vendor BRAINBOXES 0x05d1 Brainboxes Limited *************** *** 716,721 **** --- 717,725 ---- /* Qualcomm products */ product QUALCOMM CDMA_MSM 0x3196 CDMA Technologies MSM modem product QUALCOMM2 CDMA_MSM 0x6000 CDMA Technologies MSM phone + + /* Pantech & Curitel products */ + product PANTECH_CURITEL HX550C_USB_MODEM 0x1101 Pantech-Curitel HX-550C USB Modem /* General Instruments (Motorola) products */ product GENERALINSTMNTS SB5100 0x5100 SURFboard SB5100 Cable modem >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu May 19 15:20:20 2005 Return-Path: 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 5684316A4F4 for ; Thu, 19 May 2005 15:20:19 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1B4D43D66 for ; Thu, 19 May 2005 15:20:08 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR010.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IGQ002ATT9I1H@VL-MO-MR010.ip.videotron.ca> for freebsd-usb@freebsd.org; Thu, 19 May 2005 11:20:06 -0400 (EDT) Date: Thu, 19 May 2005 11:20:05 -0400 From: Nicolas Blais To: freebsd-usb@freebsd.org Message-id: <200505191120.05545.nb_root@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: KMail/1.8 Subject: Prob with multi card reader, disable probe? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 15:20:20 -0000 Hi, I have a Mitsumi 7/1 multi-card reader with integrated floppy which works great in XP. In FreeBSD 6-CURRENT, the floppy part works fine (it's a seperate cable) but the memory card part causes a 5 minute delay at boot (during probe) and ends up not working at all. Here's the snipped dmesg -v: uhci0: port 0x9800-0x981f irq 21 at device 16.0 on p uhci0: Reserved 0x20 bytes for rid 0x20 type 4 at 0x9800 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 ehci0: mem 0xfb600000-0xfb6000ff irq 21 at devic ehci0: Reserved 0x100 bytes for rid 0x10 type 3 at 0xfb600000 ehci0: [GIANT-LOCKED] umass0: VIA Technologies Inc. Mitsumi multi cardreader, rev 2.00/0.03, addr 2 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): Retrying Command (probe0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:0): error 5 (probe0:umass-sim0:0:0:0): Retries Exausted At that probe part, there is about a minute between each tries which is quite long downtime. Is there a way to either fix this and make it work (prefered solution), or to disable only that umass device (but without disabling USB Drives/MP3 Players/Digital Cameras that works fine) so that I don't get that 5 minute delay. Thanks, Nicolas. FreeBSD clk01a 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Thu May 19 09:13:03 EDT 2005 root@clk01a:/usr/obj/usr/src/sys/CLK01A i386 From owner-freebsd-usb@FreeBSD.ORG Thu May 19 19:00:25 2005 Return-Path: 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 DD26416A4CE for ; Thu, 19 May 2005 19:00:24 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FE4D43D5E for ; Thu, 19 May 2005 19:00:04 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 0197AD9F3D for ; Thu, 19 May 2005 21:00:03 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id DA9DF82B35 for ; Thu, 19 May 2005 21:00:02 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id BC0C87AD3D for ; Thu, 19 May 2005 21:00:02 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 87654D9F3D for ; Thu, 19 May 2005 21:00:02 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j4JJ02gC030969 for ; Thu, 19 May 2005 21:00:02 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from coyote.q.local (localhost [127.0.0.1]) by coyote.q.local (8.13.1/8.13.1) with ESMTP id j4JJ01Dc015521 for ; Thu, 19 May 2005 21:00:02 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: (from q@localhost) by coyote.q.local (8.13.1/8.13.1/Submit) id j4JJ01ed015518 for usb@freebsd.org; Thu, 19 May 2005 21:00:01 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Date: Thu, 19 May 2005 21:00:01 +0200 From: Ulrich Spoerlein To: usb@freebsd.org Message-ID: <20050519190001.GA15230@galgenberg.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Subject: Very slow umass transfer, which quirk to try? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 19:00:25 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all, I got this lousy MP3 Player/USB Stick, and ever since I tried to upload/download some stuff from within FreeBSD it's horribly slow. I tried it with 4.something back then and even 5.4 with the updates to the USB stack didn't improve the situation. Here's the device port 3 addr 5: full speed, power 100 mA, config 1, MP3 Flash Stick(0x1004), Co Ltd(0x11e9), rev 1.00 Using cp to/from the FAT16 partition or using dd(1) on the partition results in 4kB/transfer and it even manages to bogs down the I/O throughput of the whole system (even though PREEMPTION is on). tty ad0 da0 cd0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 0 229 16.00 1 0.02 4.00 14 0.05 0.00 0 0.00 46 0 3 2 49 0 383 2.00 9 0.02 4.00 14 0.05 0.00 0 0.00 37 0 5 0 59 0 478 0.00 0 0.00 4.00 14 0.05 0.00 0 0.00 27 0 7 0 66 0 387 2.00 2 0.00 4.00 13 0.05 0.00 0 0.00 26 0 5 1 68 1 229 0.00 0 0.00 4.00 14 0.05 0.00 0 0.00 2 0 7 0 91 0 488 0.00 0 0.00 4.00 14 0.05 0.00 0 0.00 5 0 6 2 87 usb_quirks.c has nothing to offer, that springs to mind (except perhaps a typo in line 89, "farmware" ?) ISTR that there were some USB and/or SCSI (CAM?) quirks one could tweak. Could someone point me into the right direction please? Ulrich Sp=F6rlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCjOIxmArGtfDbn0QRAr9mAJ4m04j5xdKLnP58PK+IBu/1ULdQFQCgs3wb c0zBtEppDdNhL7D0j3LNIBU= =efcR -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp-- From owner-freebsd-usb@FreeBSD.ORG Thu May 19 19:51:11 2005 Return-Path: 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 2702316A4CE for ; Thu, 19 May 2005 19:51:11 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2CBD43D6B for ; Thu, 19 May 2005 19:51:08 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j4JJos4J039719 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 19 May 2005 21:50:56 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4JJnths091583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 May 2005 21:49:56 +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 j4JJntW4092542; Thu, 19 May 2005 21:49:55 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4JJnoJP092540; Thu, 19 May 2005 21:49:50 +0200 (CEST) (envelope-from ticso) Date: Thu, 19 May 2005 21:49:50 +0200 From: Bernd Walter To: Daniel Rucci Message-ID: <20050519194949.GS80082@cicely12.cicely.de> References: <428A2350.6000603@warganizer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <428A2350.6000603@warganizer.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no 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: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 19 May 2005 19:51:11 -0000 On Tue, May 17, 2005 at 01:01:04PM -0400, Daniel Rucci wrote: > Hi, > My phone (motorola razor) can be powered over usb. It seems like it > charges for a second, till it ugen0 gets attached, then the power over > usb stops. How can I get the power to keep going? ugen just want very basic USB compliance. Your device seems to be seriously broken or your port doesn't have enough power (e.g. port on a bus powered hub) to supply the needs. What does dmesg tell about your device? What FreeBSD version are you running? What kind of USB controller do you have? -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Thu May 19 20:42:32 2005 Return-Path: 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 97EE016A4CE for ; Thu, 19 May 2005 20:42:32 +0000 (GMT) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.4.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BF5C43D92 for ; Thu, 19 May 2005 20:42:31 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from [192.168.1.100] (ool-18b92f9e.dyn.optonline.net [24.185.47.158]) by mta8.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IGR00LBQ83MQC@mta8.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Thu, 19 May 2005 16:40:34 -0400 (EDT) Date: Thu, 19 May 2005 16:41:42 -0400 From: Daniel Rucci In-reply-to: <20050519194949.GS80082@cicely12.cicely.de> Cc: freebsd-usb@freebsd.org Message-id: <428CFA06.8040608@warganizer.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_BpfIcnTDO2NIrfR40yl9KA)" X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050416) X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <428A2350.6000603@warganizer.com> <20050519194949.GS80082@cicely12.cicely.de> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 20:42:32 -0000 This is a multi-part message in MIME format. --Boundary_(ID_BpfIcnTDO2NIrfR40yl9KA) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Bernd Walter wrote: >On Tue, May 17, 2005 at 01:01:04PM -0400, Daniel Rucci wrote: > > >>Hi, >> My phone (motorola razor) can be powered over usb. It seems like it >>charges for a second, till it ugen0 gets attached, then the power over >>usb stops. How can I get the power to keep going? >> >> > >ugen just want very basic USB compliance. >Your device seems to be seriously broken or your port doesn't have >enough power (e.g. port on a bus powered hub) to supply the needs. >What does dmesg tell about your device? > > this is the output that occurs when the device is plugged in uhub1: port 2, set config at addr 2 failed uhub1: device problem, disabling port 2 ugen0: Motorola Inc. Motorola Phone (V3), rev 1.10/0.01, addr 2 >What FreeBSD version are you running? > > 5.3-RELEASE-p10 >What kind of USB controller do you have? > > Intel 82801DB (ICH4) USB controller USB-A --Boundary_(ID_BpfIcnTDO2NIrfR40yl9KA)-- From owner-freebsd-usb@FreeBSD.ORG Fri May 20 11:22:11 2005 Return-Path: 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 6F18516A4CE for ; Fri, 20 May 2005 11:22:11 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 713E943D7C for ; Fri, 20 May 2005 11:22:08 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j4KBM24J064109 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 20 May 2005 13:22:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4KBLHhs097137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 May 2005 13:21:18 +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 j4KBLHAj097375; Fri, 20 May 2005 13:21:17 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4KBLFgE097374; Fri, 20 May 2005 13:21:15 +0200 (CEST) (envelope-from ticso) Date: Fri, 20 May 2005 13:21:15 +0200 From: Bernd Walter To: Daniel Rucci Message-ID: <20050520112115.GD80082@cicely12.cicely.de> References: <428A2350.6000603@warganizer.com> <20050519194949.GS80082@cicely12.cicely.de> <428CFA06.8040608@warganizer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <428CFA06.8040608@warganizer.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no 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: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 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, 20 May 2005 11:22:11 -0000 On Thu, May 19, 2005 at 04:41:42PM -0400, Daniel Rucci wrote: > Bernd Walter wrote: > > >On Tue, May 17, 2005 at 01:01:04PM -0400, Daniel Rucci wrote: > > > > > >>Hi, > >> My phone (motorola razor) can be powered over usb. It seems like it > >>charges for a second, till it ugen0 gets attached, then the power over > >>usb stops. How can I get the power to keep going? > >> > >> > > > >ugen just want very basic USB compliance. > >Your device seems to be seriously broken or your port doesn't have > >enough power (e.g. port on a bus powered hub) to supply the needs. > >What does dmesg tell about your device? > > > > > this is the output that occurs when the device is plugged in > uhub1: port 2, set config at addr 2 failed > uhub1: device problem, disabling port 2 > ugen0: Motorola Inc. Motorola Phone (V3), rev 1.10/0.01, addr 2 Interesting - the port is disabled and then you get the ugen message. Are you shure that these messages belong together? If the device really refuses set_config it is a very fundamental USB violation. I would like to know if the device is still processing requests. What does usbdevs -v say? usbdevs -v asks the device to descriptor string, so we will know if is is running. A hang device would hang output of usbdevs at a given for a few seconds until timeout. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Fri May 20 15:00:26 2005 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D40816A4D4 for ; Fri, 20 May 2005 15:00:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF51A43DC3 for ; Fri, 20 May 2005 15:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4KF0Psi054687 for ; Fri, 20 May 2005 15:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4KF0PCl054684; Fri, 20 May 2005 15:00:25 GMT (envelope-from gnats) Resent-Date: Fri, 20 May 2005 15:00:25 GMT Resent-Message-Id: <200505201500.j4KF0PCl054684@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, Dirk Gouders Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D464616A579 for ; Fri, 20 May 2005 14:50:35 +0000 (GMT) Received: from alice.et.bocholt.fh-gelsenkirchen.de (alice.et.bocholt.fh-gelsenkirchen.de [193.175.197.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30EBD43D79 for ; Fri, 20 May 2005 14:50:34 +0000 (GMT) (envelope-from gouders@et.bocholt.fh-gelsenkirchen.de) Received: from musashi.et.bocholt.fh-gelsenkirchen.de (musashi.et.bocholt.fh-gelsenkirchen.de [193.175.197.95]) j4KEoVOr004769 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 20 May 2005 16:50:31 +0200 Received: from karga.hank.home (karga.hank.home [192.168.252.2]) id j4KEoUSt005119 for ; Fri, 20 May 2005 16:50:30 +0200 (CEST) (envelope-from hank@karga.hank.home) Received: from karga.hank.home (localhost [127.0.0.1]) by karga.hank.home (8.13.3/8.13.3) with ESMTP id j4KEprg5001361 for ; Fri, 20 May 2005 16:51:53 +0200 (CEST) (envelope-from hank@karga.hank.home) Received: (from hank@localhost) by karga.hank.home (8.13.3/8.13.3/Submit) id j4KEpqoh001360; Fri, 20 May 2005 16:51:52 +0200 (CEST) (envelope-from hank) Message-Id: <200505201451.j4KEpqoh001360@karga.hank.home> Date: Fri, 20 May 2005 16:51:52 +0200 (CEST) From: Dirk Gouders To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: usb/81308: Polling a ugen(4) control endpoint causes a kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dirk Gouders List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 15:00:26 -0000 >Number: 81308 >Category: usb >Synopsis: Polling a ugen(4) control endpoint causes a kernel panic >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 20 15:00:24 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Dirk Gouders >Release: FreeBSD 4.11-STABLE i386 >Organization: FH Gelsenkirchen, Abt. Bocholt >Environment: System: FreeBSD karga.hank.home 4.11-STABLE FreeBSD 4.11-STABLE #4: Fri May 20 16:01:10 CEST 2005 root@karga.hank.home:/usr/src/sys/compile/KARGA i386 >Description: Polling a ugen control endpoint (ugen0) causes a page fault in the function ugenpoll(). >How-To-Repeat: When a USB device that is handled by ugen(4) is attached, the following program invoked with the argument /dev/ugen0 will reproduce the kernel panic. #include #include #include #include #include #include int main(int argc, char *argv[]) { int fd; int nfd; char *path = argv[1]; struct pollfd pfd[1]; fd = open(path, O_RDWR); if ( fd < 0 ) { fprintf(stderr, "%s: %s\n", path, strerror(errno)); exit(1); } pfd[0].fd = fd; pfd[0].events = POLLHUP; pfd[0].revents = 0; nfd = poll(pfd, 1, 10); if ( nfd < 0 ) { fprintf(stderr, "poll(2): %s\n", strerror(errno)); exit(1); } if ( pfd[0].revents && POLLNVAL ) printf("POLLNVAL set in revents\n"); printf("nfd = %d\n", nfd); close(fd); exit(0); } >Fix: I reported this problem to freebsd-hackers and Hans Petter Selasky noted that the control endpoint does not support polling and suggested that /sys/dev/usb/ugen.c should handle such a situation. The attached patch works for me, although I am not sure if this is the most elegant solution. On a machine running 5.4-RELEASE, this problem does not occur (poll() just returns '0') and I could not see any changes in /sys/dev/usb/ugen.c that addresses this problem. --- ugen.c.diff begins here --- --- /sys/dev/usb/ugen.c.orig Tue Apr 26 09:44:44 2005 +++ /sys/dev/usb/ugen.c Fri May 20 16:26:39 2005 @@ -1421,6 +1421,10 @@ int revents = 0; int s; + /* Do not allow to poll a control endpoint */ + if ( UGENENDPOINT(dev) == USB_CONTROL_ENDPOINT ) + return POLLNVAL; + USB_GET_SC(ugen, UGENUNIT(dev), sc); if (sc->sc_dying) --- ugen.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri May 20 19:00:42 2005 Return-Path: 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 ED9BA16A4CE for ; Fri, 20 May 2005 19:00:42 +0000 (GMT) Received: from mta8.srv.hcvlny.cv.net (mta8.srv.hcvlny.cv.net [167.206.4.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C0C743D46 for ; Fri, 20 May 2005 19:00:42 +0000 (GMT) (envelope-from rucci@warganizer.com) Received: from [192.168.1.100] (ool-18b92f9e.dyn.optonline.net [24.185.47.158]) by mta8.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IGS00LIBY2UZJ@mta8.srv.hcvlny.cv.net> for freebsd-usb@freebsd.org; Fri, 20 May 2005 14:59:19 -0400 (EDT) Date: Fri, 20 May 2005 15:00:30 -0400 From: Daniel Rucci In-reply-to: <20050520112115.GD80082@cicely12.cicely.de> To: ticso@cicely.de Message-id: <428E33CE.8060007@warganizer.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050416) X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <428A2350.6000603@warganizer.com> <20050519194949.GS80082@cicely12.cicely.de> <428CFA06.8040608@warganizer.com> <20050520112115.GD80082@cicely12.cicely.de> cc: freebsd-usb@freebsd.org Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 19:00:43 -0000 Bernd Walter wrote: >On Thu, May 19, 2005 at 04:41:42PM -0400, Daniel Rucci wrote: > > >>Bernd Walter wrote: >> >> >> >>>On Tue, May 17, 2005 at 01:01:04PM -0400, Daniel Rucci wrote: >>> >>> >>> >>> >>>>Hi, >>>> My phone (motorola razor) can be powered over usb. It seems like it >>>>charges for a second, till it ugen0 gets attached, then the power over >>>>usb stops. How can I get the power to keep going? >>>> >>>> >>>> >>>> >>>ugen just want very basic USB compliance. >>>Your device seems to be seriously broken or your port doesn't have >>>enough power (e.g. port on a bus powered hub) to supply the needs. >>>What does dmesg tell about your device? >>> >>> >>> >>> >>this is the output that occurs when the device is plugged in >>uhub1: port 2, set config at addr 2 failed >>uhub1: device problem, disabling port 2 >>ugen0: Motorola Inc. Motorola Phone (V3), rev 1.10/0.01, addr 2 >> >> > >Interesting - the port is disabled and then you get the ugen message. >Are you shure that these messages belong together? >If the device really refuses set_config it is a very fundamental >USB violation. > >I would like to know if the device is still processing requests. >What does usbdevs -v say? >usbdevs -v asks the device to descriptor string, so we will know if >is is running. >A hang device would hang output of usbdevs at a given for a few seconds >until timeout. > > # usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, Motorola Phone (V3)(0x4902), Motorola Inc.(0x22b8), rev 0.01 Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 90 mA, config 1, product 0x2441(0x2441), Actiontec Electronics(0x1668), rev 5.46 port 2 powered output did not hang. Is there anyway to change it so its not self powered? From owner-freebsd-usb@FreeBSD.ORG Fri May 20 19:24:13 2005 Return-Path: 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 CEC9D16A4CE for ; Fri, 20 May 2005 19:24:13 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B61A43D8E for ; Fri, 20 May 2005 19:24:12 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j4KJO74J081026 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 20 May 2005 21:24:10 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4KJNfhs000315 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 May 2005 21:23:42 +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 j4KJNf06000133; Fri, 20 May 2005 21:23:41 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4KJNf0Z000132; Fri, 20 May 2005 21:23:41 +0200 (CEST) (envelope-from ticso) Date: Fri, 20 May 2005 21:23:41 +0200 From: Bernd Walter To: Daniel Rucci Message-ID: <20050520192340.GP80082@cicely12.cicely.de> References: <428A2350.6000603@warganizer.com> <20050519194949.GS80082@cicely12.cicely.de> <428CFA06.8040608@warganizer.com> <20050520112115.GD80082@cicely12.cicely.de> <428E33CE.8060007@warganizer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <428E33CE.8060007@warganizer.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no 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: ticso@cicely.de cc: freebsd-usb@freebsd.org Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 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, 20 May 2005 19:24:13 -0000 On Fri, May 20, 2005 at 03:00:30PM -0400, Daniel Rucci wrote: > # usbdevs -v > Controller /dev/usb0: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 powered > port 2 addr 2: full speed, self powered, config 1, Motorola Phone > (V3)(0x4902), Motorola Inc.(0x22b8), rev 0.01 > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > Intel(0x0000), rev 1.00 > port 1 addr 2: full speed, power 90 mA, config 1, product > 0x2441(0x2441), Actiontec Electronics(0x1668), rev 5.46 > port 2 powered > > output did not hang. Is there anyway to change it so its not self powered? It is what the device tells, maybe config 1 is just the configuration for running on own power. A device may have several configs with different power/feature sets. A freshly contected device is considered unconfigured. You can use /dev/ugen to set a different one - well if your device really has different ones. Just open(2) the device and use UR_SET_CONFIG ioctl. The disabling mesage is still very strange, as the device is not disabled. Unless you need it for something else you might as well try a kernel without ugen support. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-usb@FreeBSD.ORG Fri May 20 20:51:42 2005 Return-Path: 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 B32FC16A4CE for ; Fri, 20 May 2005 20:51:42 +0000 (GMT) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA5543DB0 for ; Fri, 20 May 2005 20:51:36 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-232-171.daxnet.no ([193.217.232.171] verified) by mailfe05.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 175036530; Fri, 20 May 2005 22:51:29 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, ticso@cicely.de Date: Fri, 20 May 2005 22:52:16 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <428E33CE.8060007@warganizer.com> <20050520192340.GP80082@cicely12.cicely.de> In-Reply-To: <20050520192340.GP80082@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_B4kjCDMUIwkKptX" Message-Id: <200505202252.17614.hselasky@c2i.net> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Daniel Rucci Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 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, 20 May 2005 20:51:42 -0000 --Boundary-00=_B4kjCDMUIwkKptX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Friday 20 May 2005 21:23, Bernd Walter wrote: > On Fri, May 20, 2005 at 03:00:30PM -0400, Daniel Rucci wrote: > > # usbdevs -v > > Controller /dev/usb0: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 powered > > Controller /dev/usb1: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 powered > > port 2 addr 2: full speed, self powered, config 1, Motorola Phone > > (V3)(0x4902), Motorola Inc.(0x22b8), rev 0.01 > > Controller /dev/usb2: > > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > > Intel(0x0000), rev 1.00 > > port 1 addr 2: full speed, power 90 mA, config 1, product > > 0x2441(0x2441), Actiontec Electronics(0x1668), rev 5.46 > > port 2 powered > > > > output did not hang. Is there anyway to change it so its not self > > powered? > > It is what the device tells, maybe config 1 is just the configuration > for running on own power. > A device may have several configs with different power/feature sets. > A freshly contected device is considered unconfigured. > You can use /dev/ugen to set a different one - well if your device > really has different ones. > Just open(2) the device and use UR_SET_CONFIG ioctl. > The disabling mesage is still very strange, as the device is not > disabled. > Unless you need it for something else you might as well try a kernel > without ugen support. You can dump all configurations with the attached program "usb_dump.c", when your device is attached as ugen. cc usb_dump.c ./a.out -i -d -D -f /dev/ugen0 What does it say? --HPS --Boundary-00=_B4kjCDMUIwkKptX-- From owner-freebsd-usb@FreeBSD.ORG Sat May 21 18:00:08 2005 Return-Path: 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 7CB7716A4DA for ; Sat, 21 May 2005 18:00:08 +0000 (GMT) Received: from mail.iinet.net.au (mail-03.iinet.net.au [203.59.3.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 4953F43D5F for ; Sat, 21 May 2005 18:00:07 +0000 (GMT) (envelope-from julian@elischer.org) Received: (qmail 3452 invoked from network); 21 May 2005 18:00:04 -0000 Received: from unknown (HELO ?10.1.1.200?) (203.59.106.60) by mail.iinet.net.au with SMTP; 21 May 2005 18:00:04 -0000 Message-ID: <428F7723.8010102@elischer.org> Date: Sat, 21 May 2005 11:00:03 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: hselasky@c2i.net References: <428A2350.6000603@warganizer.com> <428E33CE.8060007@warganizer.com> <20050520192340.GP80082@cicely12.cicely.de> <200505202252.17614.hselasky@c2i.net> In-Reply-To: <200505202252.17614.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ticso@cicely.de cc: freebsd-usb@freebsd.org cc: Daniel Rucci Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2005 18:00:08 -0000 Hans Petter Selasky wrote: > > > You can dump all configurations with the attached program "usb_dump.c", when > your device is attached as ugen. The attachment got scrubbed by the list software.. but there is a port udesc_dump that effectively does the same thing. > > cc usb_dump.c > > ./a.out -i -d -D -f /dev/ugen0 > > What does it say? > > --HPS > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"