From owner-freebsd-usb@FreeBSD.ORG Sat Nov 25 23:21:18 2006 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3408816A407 for ; Sat, 25 Nov 2006 23:21:18 +0000 (UTC) (envelope-from pete@altadena.net) Received: from gooney.altadena.net (gooney.altadena.net [207.215.170.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03E6E43D67 for ; Sat, 25 Nov 2006 23:20:26 +0000 (GMT) (envelope-from pete@altadena.net) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=2.gooney; d=altadena.net; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:Subject:X-Enigmail-Version:Content-Type:Content-Transfer-Encoding; b=cmSbEO8zvVHMYhJ4Mdb3drtguj++c9qClIl7vA0hIM2f5Q8rm3JmUoWVHhUT6stv9SgIyvz3FuNbBH2daNy1Wtj2p9o4jbPAn+cqILo2YZHZv5wbtWWN6eh/5ksFYkyQIrx5NeCU05LxJXTGMpeZZxCJUUbAhGYGl+wkK3F+VCU=; Received: from c-68-50-108-92.hsd1.md.comcast.net ([68.50.108.92] helo=[192.168.170.201]) by gooney.altadena.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Go6pT-000M0Q-AY; Sat, 25 Nov 2006 15:21:03 -0800 Message-ID: <4568CFDD.9030004@altadena.net> Date: Sat, 25 Nov 2006 18:21:01 -0500 From: Peter Carah Organization: Altadena Internet Communications User-Agent: Thunderbird 1.5.0.8 (X11/20061120) MIME-Version: 1.0 To: Hans Petter Selasky , usb@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Test (belated) of new umass driver 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, 25 Nov 2006 23:21:18 -0000 I just noticed today your call from a couple of months ago to try the new umass driver; just did so and noticed only a 2-3% improvement. the sys and int times were all over the map so couldn't tell what to say about them. (likely from running X doing all this :-) The problem removing active umass devices applies to *all* usb that have secondary drivers, though I presume you all know about that... umodem, uftdi, uplcom all panic on removal if the secondary device is open. I presume this is due to a lack of callbacks into the secondary driver to cause it to clean up before the lower-level driver does. Unfortunately I don't know what the inter-layer linkages look like and don't at the moment have much time to look into it. (the worst one of these is my verizon card which adds yet another extra layer - the usb ohci is a cardbus device...) (and it used to panic whether or not the tty layer was open; something (probably newbus and the bus-dma stuff) fixed that). Also I haven't seen anything about this on the mailing list for the last month or so. At least the new driver works. I also have problems with data transfers on libusb+ugen, on every device I have that needs libusb; this includes two cameras, a scanner, and a tripp-lite ups. The device opens properly but transfers either time out or fail. I don't know if the new structure is likely to help there... (btw this happens on 3 different computers with totally different I/O structures; this laptop, whose dmesg appears below, one with an Intel 865 board, and a soekris (on which I've only tried the ups...) UMASS works fine with one of the cameras, so I think this is a fbsd-side problem. -- Pete ---------------------------------------------------------------------------------- dmesg from new driver: (stick is Kingston. Improvement appears to be about 2.8 percent.) ---------------------- Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-PRERELEASE #1: Sat Nov 25 17:28:44 EST 2006 pete@port3.altadena.net:/usr/obj/usr/src/sys/PORT3 ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 Mobile Technology ML-28 (1595.37-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20f42 Stepping = 2 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 2012151808 (1918 MB) avail memory = 1963589632 (1872 MB) ioapic0 irqs 0-23 on motherboard wlan: mac acl policy registered ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 21 acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_lid0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) ohci0: mem 0xc0000000-0xc0000fff irq 19 at device 19.0 on pci0 usb0: usb0: SMM does not respond, resetting usb0: on ohci0 ohci1: mem 0xc0001000-0xc0001fff irq 19 at device 19.1 on pci0 usb1: usb1: SMM does not respond, resetting usb1: on ohci1 ehci0: mem 0xc0002000-0xc0002fff irq 19 at device 19.2 on pci0 usb2: EHCI version 1.0 usb2: on ehci0 pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8410-0x841f at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci5: on pcib2 rl0: port 0xa000-0xa0ff mem 0xc0208000-0xc02080ff irq 18 at device 0.0 on pci5 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:c0:9f:97:63:2c pci5: at device 2.0 (no driver attached) cbb0: at device 9.0 on pci5 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xc0208800-0xc0208fff,0xc0200000-0xc0203fff irq 22 at device 9.2 on pci5 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:c0:9f:00:00:51:9b:93 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci5: at device 9.3 (no driver attached) pci5: at device 9.4 (no driver attached) pcm0: mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0 pci0: at device 20.6 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Synaptics Touchpad, device ID 0 acpi_acad0: on acpi0 battery0: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xdc000-0xdffff,0xe0000-0xe3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1595368899 Hz quality 800 Timecounters tick every 1.000 msec usb0: USB revision 1.0 uhub0: (0x1002) OHCI root hub, class 9/0, rev 1.00/1.00, addr 127 uhub0: 4 ports with 4 removable, self powered usb1: USB revision 1.0 uhub1: (0x1002) OHCI root hub, class 9/0, rev 1.00/1.00, addr 127 uhub1: 4 ports with 4 removable, self powered usb2: USB revision 2.0 uhub2: (0x1002) EHCI root hub, class 9/0, rev 2.00/1.00, addr 127 uhub2: 8 ports with 8 removable, self powered ad0: 95396MB at ata0-master UDMA100 acd0: DVDR at ata1-master PIO4 pcm0: cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad0s2a ath0: mem 0xc0210000-0xc021ffff irq 17 at device 0.0 on cardbus0 ath0: Ethernet address: 00:0f:b5:37:e6:bc ath0: mac 5.9 phy 4.3 radio 3.6 module_register: module pci/radeon already exists! Module pci/radeon failed to register: 17 arp: 192.168.170.1 moved from 00:0b:6b:35:8d:2d to 00:00:24:c2:a5:75 on ath0 umass0: umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 978MB (2002944 512 byte sectors: 64H 32S/T 978C) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 umass0: at uhub2 port 3 (addr 126) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached umass0: umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:3:0:-1: Attached to scbus3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 978MB (2002944 512 byte sectors: 64H 32S/T 978C) =================================================================== old driver: (sys and interrupt were varying all over the map...) port3# time dd if=/dev/da0 of=/dev/null bs=131072 7824+0 records in 7824+0 records out 1025507328 bytes transferred in 110.108888 secs (9313574 bytes/sec) 0.007u 0.452s 1:50.11 0.4% 21+528k 0+0io 0pf+0w port3# time dd if=/dev/da0 of=/dev/null bs=524288 1956+0 records in 1956+0 records out 1025507328 bytes transferred in 109.984381 secs (9324118 bytes/sec) 0.023u 0.415s 1:49.99 0.3% 21+1542k 0+0io 0pf+0w ========================================================================== new driver: (sys ~~ 1%, int from 2% - 7%) port3# time dd if=/dev/da0 of=/dev/null bs=131072 7824+0 records in 7824+0 records out 1025507328 bytes transferred in 107.565025 secs (9533836 bytes/sec) 0.007u 0.299s 1:47.57 0.2% 22+546k 0+0io 0pf+0w port3# time dd if=/dev/da0 of=/dev/null bs=524288 1956+0 records in 1956+0 records out 1025507328 bytes transferred in 107.705277 secs (9521421 bytes/sec) 0.021u 0.327s 1:47.71 0.3% 18+1304k 0+0io 0pf ==================================================== From owner-freebsd-usb@FreeBSD.ORG Sun Nov 26 07:59:50 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B99316A403 for ; Sun, 26 Nov 2006 07:59:50 +0000 (UTC) (envelope-from crossd@cs.rpi.edu) Received: from cliffclavin.cs.rpi.edu (cliffclavin.cs.rpi.edu [128.213.1.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5898043D55 for ; Sun, 26 Nov 2006 07:58:57 +0000 (GMT) (envelope-from crossd@cs.rpi.edu) Received: from [10.1.2.205] (cpe-74-70-181-55.nycap.res.rr.com [74.70.181.55]) (authenticated bits=0) by cliffclavin.cs.rpi.edu (8.13.6/8.13.6) with ESMTP id kAQ7xatd002657 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 26 Nov 2006 02:59:42 -0500 (EST) From: "David E. Cross" To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Sun, 26 Nov 2006 02:59:36 -0500 Message-Id: <1164527976.18604.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Report: Spam Report from cliffclavin.cs.rpi.edu: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Scanned-By: MIMEDefang 2.57 on 128.213.1.9 Subject: Problem with 6.2-RC1 da0/umass and Mitsumi FDD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 07:59:50 -0000 I have a mitsumi USB FDD as follows under 6.2-RC1 (the same problem existed under 6.1-p10) umass0: MITSUMI MITSUMI USB FDD, rev 1.10/1.00, addr 2 umass0: UFI over CBI with CCI (using CBI); quirks = 0x0000 umass0:6:0:-1: Attached to scbus6 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers (as you can see I have already enabled USB_DEBUG) Reading from the device works, although it is SLOW. 4K/sec slow. Writing to the device does NOT work, it just hangs indefinitely (but the machine stays responsive, until I unplug the device at which point it panics.. but that's for another email) Kernel messages from writing are: umass0: CBI reset failed, TIMEOUT umass0: CBI bulk-in stall clear failed, TIMEOUT umass0: CBI bulk-out stall clear failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI bulk-in stall clear failed, TIMEOUT umass0: CBI bulk-out stall clear failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI bulk-in stall clear failed, TIMEOUT umass0: CBI bulk-out stall clear failed, TIMEOUT umass0: CBI reset failed, TIMEOUT umass0: CBI bulk-in stall clear failed, TIMEOUT umass0: CBI bulk-out stall clear failed, TIMEOUT umass0: CBI reset failed, TIMEOUT What I have tried (to date) to resolve this issue: 1) USB quirk to force the protocol to USB_CBI (instead of USB_CBI_I) 2) SCSI DA quirk to set NO_SYNC (a previous kernel message which I don't have a copy of made mention that there was an unsupported UFI call of 0x35 (verbage of that is wrong, but "unsupported" "UFI" and "0x35" is right) followed by a sync failure. Also in the mailing list I noticed some other similar problems with other devices were cured by that. Anyway, I am looking for some guidance before I beat against this some more. -- David E. Cross From owner-freebsd-usb@FreeBSD.ORG Sun Nov 26 10:18:14 2006 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E38BD16A4B3 for ; Sun, 26 Nov 2006 10:18:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swip.net [212.247.155.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91EA643D67 for ; Sun, 26 Nov 2006 10:17:20 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: 1yoZIIrJifi9k2x23EpYZw== X-Cloudmark-Score: 0.000000 [] Received: from [193.217.132.116] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 168943398; Sun, 26 Nov 2006 11:18:11 +0100 From: Hans Petter Selasky To: Peter Carah Date: Sun, 26 Nov 2006 11:17:50 +0100 User-Agent: KMail/1.7 References: <4568CFDD.9030004@altadena.net> In-Reply-To: <4568CFDD.9030004@altadena.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611261117.51441.hselasky@c2i.net> Cc: usb@freebsd.org Subject: Re: Test (belated) of new umass driver X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 10:18:15 -0000 On Sunday 26 November 2006 00:21, Peter Carah wrote: > I just noticed today your call from a couple of months ago to try the new > umass driver; just did so and noticed only a 2-3% improvement. the sys and > int times were all over the map so couldn't tell what to say about them. > (likely from running X doing all this :-) If you have a faster memory stick, you should see more improvement. > > The problem removing active umass devices applies to *all* usb that have > secondary drivers, though I presume you all know about that... Yes. I have asked Scott Long to come up with a solution for it. So far no solution. > umodem, > uftdi, uplcom all panic on removal if the secondary device is open. Have you tried this with the new USB stack? I tried to fix these issues with all the drivers in the "UCOM" layer. Maybe you could send me a backtrace, if it still panics. > I > presume this is due to a lack of callbacks into the secondary driver to > cause it to clean up before the lower-level driver does. Unfortunately I > don't know what the inter-layer linkages look like and don't at the moment > have much time to look into it. The problem is simply that many abstraction layers in the kernel where not designed to allow device detach. > (the worst one of these is my verizon card > which adds yet another extra layer - the usb ohci is a cardbus device...) > (and it used to panic whether or not the tty layer was open; something > (probably newbus and the bus-dma stuff) fixed that). Also I haven't seen > anything about this on the mailing list for the last month or so. At least > the new driver works. > > I also have problems with data transfers on libusb+ugen, on every device I > have that needs libusb; this includes two cameras, a scanner, and a > tripp-lite ups. The device opens properly but transfers either time out or > fail. I don't know if the new structure is likely to help there... (btw > this happens on 3 different computers with totally different I/O > structures; this laptop, whose dmesg appears below, one with an Intel 865 > board, and a soekris (on which I've only tried the ups...) > UMASS works fine with one of the cameras, so I think this is a fbsd-side > problem. Did you have the same problems before with libusb+ugen ? Thanks for testing, --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Nov 26 17:18:54 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7047C16A47E; Sun, 26 Nov 2006 17:18:54 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C8B843E1B; Sun, 26 Nov 2006 17:15:55 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAQHGcxb066139; Sun, 26 Nov 2006 17:16:38 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAQHGbqZ066135; Sun, 26 Nov 2006 17:16:37 GMT (envelope-from maxim) Date: Sun, 26 Nov 2006 17:16:37 GMT From: Maxim Konovalov Message-Id: <200611261716.kAQHGbqZ066135@freefall.freebsd.org> To: szalai.andras@t-online.hu, maxim@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/96901: [patch] Add support for X-Micro Flash Disk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 17:18:54 -0000 Synopsis: [patch] Add support for X-Micro Flash Disk State-Changed-From-To: open->patched State-Changed-By: maxim State-Changed-When: Sun Nov 26 17:16:19 UTC 2006 State-Changed-Why: Committed to HEAD. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=96901 From owner-freebsd-usb@FreeBSD.ORG Sun Nov 26 17:21:48 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D4DE16A40F for ; Sun, 26 Nov 2006 17:21:48 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B8F143DCD for ; Sun, 26 Nov 2006 17:19:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAQHKHXr066295 for ; Sun, 26 Nov 2006 17:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAQHKHjK066294; Sun, 26 Nov 2006 17:20:17 GMT (envelope-from gnats) Date: Sun, 26 Nov 2006 17:20:17 GMT Message-Id: <200611261720.kAQHKHjK066294@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/96901: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 17:21:48 -0000 The following reply was made to PR usb/96901; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/96901: commit references a PR Date: Sun, 26 Nov 2006 17:15:52 +0000 (UTC) maxim 2006-11-26 17:13:24 UTC FreeBSD src repository Modified files: sys/cam/scsi scsi_da.c Log: o Add a quirk for X-Micro Flash Disk. PR: usb/96901 Submitted by: Szalai Andras Reviewed by: nate (a half of year ago) MFC after: 3 weeks Revision Changes Path 1.197 +8 -0 src/sys/cam/scsi/scsi_da.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Nov 27 04:30:33 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E1BE16A416; Mon, 27 Nov 2006 04:30:33 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A3E43D4C; Mon, 27 Nov 2006 04:29:35 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAR4UWfg051811; Mon, 27 Nov 2006 04:30:32 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAR4UVxo051759; Mon, 27 Nov 2006 04:30:31 GMT (envelope-from maxim) Date: Mon, 27 Nov 2006 04:30:31 GMT From: Maxim Konovalov Message-Id: <200611270430.kAR4UVxo051759@freefall.freebsd.org> To: eu@grosbein.pp.ru, maxim@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: usb/96599: [usb] [patch] Sony Handycam DCR-HC32E memory stick slot 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, 27 Nov 2006 04:30:33 -0000 Synopsis: [usb] [patch] Sony Handycam DCR-HC32E memory stick slot State-Changed-From-To: open->closed State-Changed-By: maxim State-Changed-When: Mon Nov 27 04:29:31 UTC 2006 State-Changed-Why: iedowse has committed the quirk a year ago. http://www.freebsd.org/cgi/query-pr.cgi?pr=96599 From owner-freebsd-usb@FreeBSD.ORG Mon Nov 27 11:09:38 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5220016A531 for ; Mon, 27 Nov 2006 11:09:38 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id D287743DDC for ; Mon, 27 Nov 2006 11:07:50 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kARB8oGZ092155 for ; Mon, 27 Nov 2006 11:08:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kARB8mCe092149 for freebsd-usb@FreeBSD.org; Mon, 27 Nov 2006 11:08:48 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Nov 2006 11:08:48 GMT Message-Id: <200611271108.kARB8mCe092149@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon 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, 27 Nov 2006 11:09:38 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa o usb/91629 usb usbd_abort_pipe() may result in infinite loop 2 problems total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/40792 usb signals lead to data loss on device ugen o usb/46176 usb [panic] umass causes kernel panic if device removed be o i386/46371 usb USB controller cannot be initialized on IBM Netfinity f usb/55555 usb [ums] system freezes with access to /dev/ums0 o bin/57255 usb usbd and multi-function devices o usb/62088 usb [usb] Logitech Cordless/Optical Mouse not working o usb/62309 usb [ugen] [panic] panic: ugen(4) driver o usb/63621 usb [usb] USB MemoryStick Reader stalls/crashes system o usb/69006 usb [patch] Apple Cinema Display hangs USB ports o usb/71155 usb [usb] misbehaving usb-printer hangs processes, causes o usb/73307 usb [panic] Kernel panics on USB disconnect o usb/74771 usb [umass] mounting write-protected umass device as read/ o usb/75705 usb [panic] da0 attach / Optio S4 (with backtrace) o usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, But can not f f usb/76204 usb panic while using usb attached modem o usb/76395 usb USB printer does not work, usbdevs says "addr 0 should f usb/76684 usb [hang] Toshiba PDR-M4 camera connected via USB hangs s o usb/77184 usb kernel panic on USB device disconnect o usb/77294 usb ucom + ulpcom panic o usb/77940 usb [patch] [panic] insertion of usb keyboard panics syste f i386/78218 usb [kue] kue not detected on Sony PCG-F370 VAIO o usb/78989 usb please add USB keyboard support to install CD's o usb/79140 usb WD Firewire/USB Combo hangs under load on USB interfac o usb/79269 usb USB ohci da0 plug/unplug causes crashes and lockups. o usb/79287 usb UHCI hang after interrupt transfer o usb/79524 usb printing to Minolta PagePro 1[23]xxW via USB fails wit f usb/79656 usb [usb] RHSC interrupts lost o usb/79722 usb [usb] wrong alignments in ehci.h o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua f usb/80260 usb Travan USB tape drive fails to write o usb/80361 usb mounting of usb-stick fails o usb/80373 usb usb keyboard does not respond o usb/80829 usb possible panic when loading USB-modules o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/81308 usb [ugen] [patch] polling a ugen(4) control endpoint caus f usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 player f usb/82272 usb Can not recognize Casio camera EX-Z40 as a umass devic o usb/82350 usb [usb] null pointer dereference in USB stack o usb/82520 usb Reboot when USL101 connected o usb/82569 usb [usb] USB mass storage plug/unplug causes system panic o usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o usb/83504 usb [usb] SpeedTouch USB stop working on recent current (a o usb/83563 usb [panic] Page Fault while detaching Mpman Usb device o usb/83677 usb [usb] usb controller often not detected (Sun W2100z) o usb/83756 usb Microsoft Intellimouse Explorer 4.0A doesn't work. o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84936 usb install - usb keyboard not recognized o usb/86031 usb need support usb nic rt2500 in my 5.4 STABLE o usb/86767 usb [usb] bogus "slice starts beyond end of the disk:..." o usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not found o usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS cards o usb/88743 usb [hang] USB makes kernel hang at boot (regression in 6. o usb/88966 usb kldunload ucom.ko returns "Device busy" error. o usb/89003 usb LaCie Firewire drive not properly supported under 6.0 o usb/89218 usb flash disk o usb/89954 usb [usb] USB Disk driver race condition? f usb/89997 usb [umass] [panic] panic on iPod mini detach o usb/90162 usb [usb] [patch] Add support for the MS Wireless USB Mous o usb/90700 usb Kernel panic on connect/mount/use umass device o usb/91238 usb USB tape unit fails to write a second tape file to the o usb/91263 usb [patch] USB quirk needed for Logitec USB Hard disk LHD o usb/91283 usb booting very slow with usb devices connection (regress o usb/91538 usb Unable to print to EPSON CX3500 o usb/91906 usb FreeBSD hangs while booting with USB legacy support on o usb/92052 usb usbd causes defunct process with busy file-handle o usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors from usb drivers o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/93155 usb /dev/ulpt0: device busy USB printer does not work o usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy m f usb/93496 usb USB2.0 umass stalls on VIA o usb/93640 usb device ehci causes interrupt storm on this MSI amd64 m o usb/93828 usb ohci causes panic on boot (HP Pavillion d4100e) o usb/93949 usb ugen(4)-related repeatable kernel panic in 6.1-PRERELE o usb/94166 usb btx halted with a flashcard plugged o usb/94384 usb kernel panic with usb2 hardware o usb/94717 usb Reading from /dev/ulpt can break work of a UHCI hub o usb/94742 usb [umass] [patch] umass driver does not recognise YANO e o usb/94813 usb mounting write-protected umass device freezes computer o usb/94897 usb Kernel Panic when cleanly unmounting USB disk o usb/95131 usb Boot/setup process does not accept key strokes o usb/95348 usb USB keyboard unplug causes noise on screen o usb/95562 usb Write Stress in USB Mass drive cause: [vinvalbuf: dir o usb/95636 usb [boot] 5 minute delay at boot when using VT6205 based o usb/96120 usb USB mouse not always detected o usb/96224 usb [usb] mount_msdosfs cause page fault in syncer process o usb/96457 usb fatback on umass = reboot o usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doesn't work o usb/99431 usb FreeBSD on MSI 6566E (Intel 845E motherboards) doesn't o usb/101096 usb USB WLAN occasionally causes kernel-panics during larg o usb/101752 usb [panic] 6.1-RELEASE kernel panic on usb device inserti o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/102096 usb /usr/sbin/usbd does not handle multiple devices in one o i386/103025 usb [USB] the wrong in USB device for freeBSD 6.1 and AMD o usb/104292 usb system lockup on forced umount of usb-storage device o usb/104810 usb [usb] panic: ohci_add_done: addr 0x3fef1ba0 not found o usb/104830 usb system crashes when copying data to umass devices o usb/105186 usb USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 crashes box 99 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem s usb/32653 usb Added patches to improve USB scanner supportOB o usb/40948 usb [usb] USB HP CDW8200 does not work f usb/41415 usb [usb] [patch] Some USB scanners cannot talk to uscanne o usb/48342 usb [PATCH] usbd dynamic device list. o kern/51958 usb [usb] [patch] update for urio driver o kern/52026 usb [usb] feature request: umass driver support for InSyst o usb/53025 usb [ugen] [patch] ugen does not allow O_NONBLOCK for inte o usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fails to work o kern/59698 usb [kbd] [patch] Rework of ukbd HID to AT code translatio f usb/60248 usb [patch] Problem with USB printer HP LaserJet 1300 o usb/61234 usb [usb] [patch] usbhidaction(1) doesn't support using an o usb/63837 usb [uhid] [patch] USB: hid_is_collection() only looks for o kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops input on usb- o kern/66547 usb [usb] Palm Tungsten T USB does not initialize correctl o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB MP3 player o usb/70523 usb [usb] [patch] umct sending/receiving wrong characters o usb/70942 usb [usb] Genius Wireless USB mouse: moused doesn't work c o usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) detach is no o usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) communicatio o usb/71455 usb [usb] Slow USB umass performance of 5.3 o usb/71605 usb [umass] [patch] umass doesn't recognize multiple slots o usb/72380 usb [usb] USB does not work [dual Celeron Abit] o usb/72732 usb [patch] Kyocera 7135 quirk. o usb/72733 usb Kyocera 7135 Palm OS connection problem. o usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse not working in f usb/73553 usb [usb] Microsoft USB Internet Keyboard not recongized o usb/74211 usb USB flash drive causes CAM status 0x4 on 4.10Release f usb/74358 usb [umass] unplugging at boot time an umass device crashe o usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R chipset) doe o usb/74557 usb imation 500mb usb key can only be written halfway on f o usb/74609 usb [usb] [patch] allowing cdma modems to work at full spe o usb/74849 usb [usb] [patch] Samsung SPH-i500 does not attach properl o usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm fails to atac o usb/75800 usb ucom1: init failed STALLED error in time of sync with o usb/75928 usb Cytronix SmartMedia card (SMC) reader has problems whe o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76732 usb Mouse problems with USB KVM Switch f usb/78371 usb Philips Wearable Audio Player (128) fails to attach f usb/78984 usb Creative MUVO umass failure o usb/79723 usb [usb] prepare for high speed isochronous transfers o usb/79725 usb [usb] [patch] USB device speed is not double-checked o usb/79893 usb [umass] [patch] new usbdevs/umass quirks derived from o usb/80010 usb [aue] [patch] add support for the AEI USB to LAN adapt f usb/80420 usb atapicam stops iPod functionality f usb/80773 usb "usbd_get_string()" could have taken a length paramete o usb/80774 usb have "usbd_find_desc" in line with the other "usbd_fin o usb/80776 usb [udav] UDAV device driver shouldn't use usb_add_task o usb/80777 usb usb_rem_task() should wait for callback to complete? o usb/80854 usb suggestion for new iface-no-probe mechanism o usb/80935 usb uvisor.c is not work with CLIE TH55. o usb/81191 usb Support for Curitel HX-550C USB modem to 5.4 RELEASE. f usb/81621 usb external hd hangs under load on ehci o usb/82436 usb [patch] USL101 Host-to-Host bridge support on FreeBSD o usb/83022 usb ALI USB 2.0 EHCI Controller is not detected o usb/83863 usb Communication problem between opensc/openct via USB wi o usb/85067 usb Cannot attach ScanJet 4300C to usb device o usb/85992 usb [uhid] [patch] USB stops working when trying to read f o usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECOM LD-USB20" t o usb/86298 usb Known good USB mouse won't work with correct settings o usb/86438 usb Fix for non-working iPod over USB is in NetBSD CVS o usb/87224 usb Cannot mount USB Zip750 o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/88408 usb axe0 read PHY failed o usb/88939 usb Fix cheapy Myson USB-IDE adapter f usb/89087 usb usb external harddrive hangs with BBB reset failed, TI f usb/91191 usb HP LaserJet 1020 (USB printer) not recognized f usb/91516 usb [umass] umass0 problems, with Freecom Classic SL Hard o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91811 usb Compact Flash in HP Photosmart 2610 return " Medium n o usb/91896 usb Serial Number of USB Memory Sticks is not passed throu o usb/92306 usb [quirk] [patch] Support for iRiver U10 USB media playe o usb/92403 usb [uplcom] uplcom.c needs new entry for 4.00 revision of o usb/92852 usb Vertical scroll not working properly on A4Tech WOP-49 f usb/93011 usb HP ScanJet 6200C & uscanner problem o usb/93389 usb Digital Camera Pentax S60 don't work o usb/93872 usb [patch] SCSI quirk required for ELTA 8061 OL USB memor o usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclosure f usb/94147 usb doesn't recognise my USB keyboard o usb/94148 usb Make if_cdce work with ARM linux handhelds o usb/94311 usb [ugen][PATCH] allow interrupt IN transactions to be af o usb/94439 usb [patch] Add support for JNC MP3 Player o usb/94946 usb [uhub][patch] code dynamic status size for status chan o usb/95037 usb USB disk didnt recognized on hot-plug. o usb/95173 usb [usb] cannot mount external usb harddisk VIA Technolog o usb/95241 usb Patch to add USB ID for OEM Pharos 360 GPS o usb/95803 usb Add support for AnyData ADU-E100H o usb/95805 usb Add Support for Siemens ES75 modem o usb/96381 usb [patch] add a quirk table entry for a flash ram usb st o usb/96546 usb [usb] [patch] Add support (quirk) for EasyMP3 EM732X U o usb/96714 usb Update uvisor to support the Fossil Abacus Wrist PDA p usb/96901 usb [patch] Add support for X-Micro Flash Disk o usb/97175 usb USB cardreader hangs system o usb/97472 usb [patch] add support for Olympus C150,D390 o usb/98343 usb BBB reset failed errors with Creative Muvo MP3 player; o usb/99419 usb external usb harddrive slow to accept f usb/99538 usb [kbd] while using USB keyboard default params of atkbd o usb/100746 usb [kbd] system does not boot due to USB keyboard problem o usb/101757 usb [patch] uhid.4: correct structure field names to match o usb/101761 usb [patch] usb.h: increase maximal size of report descrip o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/102976 usb Casio Exilim Digital Camera cause panic o usb/103046 usb [patch] ulpt event driven I/O with select(2) and nonbl o usb/103289 usb USB 2.0 problems on AMD LX-800 CPU and CS-5536 chipset o usb/103418 usb [usb] [patch] usbhidctl: add ability to write output a o usb/103917 usb USB driver reports "Addr 0 should never happen" o usb/104290 usb QUIRK: TOSHIBA DVD-RAM drive (libretto DVD Dock) o usb/104352 usb [ural] ural driver doesnt work o usb/104645 usb QUIRK: Rave C-201 MP3 player o usb/105065 usb SATA - USB Bridge o usb/105361 usb Kernel panic during unmounting mass storage (Creative o usb/105518 usb epson perfection 3490 usb scanner def o usb/105669 usb [patch] MetaGeek Wi-Spy device recognized as keyboard 114 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Nov 27 16:58:19 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D94B716AA2E for ; Mon, 27 Nov 2006 16:58:19 +0000 (UTC) (envelope-from bastienmeng@mancini.net) Received: from falkenstein-willard.com (d01m-213-44-214-53.d4.club-internet.fr [213.44.214.53]) by mx1.FreeBSD.org (Postfix) with SMTP id DFC0043DE7 for ; Mon, 27 Nov 2006 16:56:45 +0000 (GMT) (envelope-from bastienmeng@mancini.net) Message-ID: <000001c71245$236b5ab0$6545a8c0@vrhoek> From: "Mehalia Pitre" To: freebsd-usb@freebsd.org Date: Mon, 27 Nov 2006 08:57:35 -0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: kukr X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mehalia Pitre List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 16:58:20 -0000 Hi, =20 VjAGRA_xz_$1,78 CjALiS_vr_$3,00 LEVjTRA_il_$3,33 =20 www [dot] rx44 [dot] info _____ =20 already. From owner-freebsd-usb@FreeBSD.ORG Mon Nov 27 20:29:42 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC45A16A69E for ; Mon, 27 Nov 2006 20:29:42 +0000 (UTC) (envelope-from up@3.am) Received: from richard2.pil.net (mail.pil.net [207.7.198.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E61544CB4 for ; Mon, 27 Nov 2006 19:12:55 +0000 (GMT) (envelope-from up@3.am) Received: (qmail 74053 invoked by uid 1825); 27 Nov 2006 19:13:56 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 27 Nov 2006 19:13:56 -0000 Date: Mon, 27 Nov 2006 14:13:56 -0500 (EST) From: up@3.am X-X-Sender: up@richard2.pil.net To: Christopher Sean Hilton In-Reply-To: <1164212795.1087.12.camel@dagobah.vindaloo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: External USB drive kernel problems 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, 27 Nov 2006 20:29:42 -0000 On Wed, 22 Nov 2006, Christopher Sean Hilton wrote: > In all likelyhood FreeBSD needs some quirk to work with the IDE bridge > chipset in your enclosure. I have noticed that the plain jane enclosures > seem to work fine but the ones with special features fail. In particular > I have an enclosure with both a disk and an SD media slot purchased from > and branded by Compusa that does not work with FreeBSD. I have also > noticed that the enclosures with a one touch backup button aren't > supported. I unfortunately do not know how to debug these enclosures. Well, it looks like we have a winner (loser, actually). This has the "1 button instant backup" feature. I didn't expect that to work, I just presumed that this sort of application was sufficiently generic that existing drivers would at least function with it. > They tend to be so cheap that I just home in on the ones that are > supported. I've noticed that the local Best Buy is carrying an Adaptec > enclosure. I have two of the 2.5" ones and they seem to work fine. > Here's a link to the 3.5" version which I assume uses that same chipset > as the 2.5" one: Would you or anyone happen to have a link to a more comprehensive list to those that are supported, or which of the required drivers I should look at for that info? Thanks again! James Smallacombe PlantageNet, Inc. CEO and Janitor up@3.am http://3.am ========================================================================= From owner-freebsd-usb@FreeBSD.ORG Tue Nov 28 13:20:48 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F3E216A47B for ; Tue, 28 Nov 2006 13:20:48 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36A5343CC5 for ; Tue, 28 Nov 2006 13:20:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kASDKVhm000633 for ; Tue, 28 Nov 2006 13:20:32 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kASDKVkQ000629; Tue, 28 Nov 2006 13:20:31 GMT (envelope-from gnats) Date: Tue, 28 Nov 2006 13:20:31 GMT Message-Id: <200611281320.kASDKVkQ000629@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Henrik Brix Andersen Cc: Subject: Re: usb/105669: [patch] MetaGeek Wi-Spy device recognized as keyboard X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henrik Brix Andersen List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 13:20:48 -0000 The following reply was made to PR usb/105669; it has been noted by GNATS. From: Henrik Brix Andersen To: bug-followup@FreeBSD.org, henrik@brixandersen.dk Cc: flz@FreeBSD.org Subject: Re: usb/105669: [patch] MetaGeek Wi-Spy device recognized as keyboard Date: Tue, 28 Nov 2006 13:48:02 +0100 Here is an updated patch as discussed with flz on #bsdports. Setting the UQ_KBD_IGNORE flag now makes both ukbd(4) and uhid(4) ignore the device. --- usbdevs.orig Tue Nov 28 12:44:14 2006 +++ usbdevs Tue Nov 28 12:45:10 2006 @@ -804,6 +804,7 @@ product CURITEL PC5740 0x3701 Broadband /* Cypress Semiconductor products */ product CYPRESS MOUSE 0x0001 mouse product CYPRESS THERMO 0x0002 thermometer +product CYPRESS WISPY 0x0bad MetaGeek Wi-Spy product CYPRESS FMRADIO 0x1002 FM Radio product CYPRESS SLIM_HUB 0x6560 Slim Hub --- usb_quirks.h.orig Tue Nov 28 12:42:17 2006 +++ usb_quirks.h Tue Nov 28 12:46:04 2006 @@ -55,6 +55,7 @@ struct usbd_quirks { #define UQ_ASSUME_CM_OVER_DATA 0x1000 /* modem device breaks on cm over data */ #define UQ_BROKEN_BIDIR 0x2000 /* printer has broken bidir mode */ #define UQ_HID_IGNORE 0x8000 /* device should be ignored by hid class */ +#define UQ_KBD_IGNORE 0x18000 /* device should be ignored by both kbd and hid class */ }; --- usb_quirks.c.orig Tue Nov 28 12:46:30 2006 +++ usb_quirks.c Tue Nov 28 12:47:27 2006 @@ -116,6 +116,9 @@ Static const struct usbd_quirk_entry { ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2, ANY, { UQ_HID_IGNORE }}, + /* Devices which should be ignored by both ukbd and uhid */ + { USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_WISPY, + ANY, { UQ_KBD_IGNORE }}, { 0, 0, 0, { 0 } } }; --- ukbd.c.orig Tue Nov 28 12:47:56 2006 +++ ukbd.c Tue Nov 28 12:48:52 2006 @@ -150,6 +150,9 @@ USB_MATCH(ukbd) if ((*sw->probe)(unit, (void *)arg, 0)) return (UMATCH_NONE); + if (usbd_get_quirks(uaa->device)->uq_flags & UQ_KBD_IGNORE) + return (UMATCH_NONE); + return (UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO); } -- Henrik Brix Andersen From owner-freebsd-usb@FreeBSD.ORG Tue Nov 28 21:15:39 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2DB8F16A500; Tue, 28 Nov 2006 21:15:39 +0000 (UTC) (envelope-from flz@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C009B43CC6; Tue, 28 Nov 2006 21:14:25 +0000 (GMT) (envelope-from flz@FreeBSD.org) Received: from freefall.freebsd.org (flz@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kASLESgb007783; Tue, 28 Nov 2006 21:14:28 GMT (envelope-from flz@freefall.freebsd.org) Received: (from flz@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kASLEStf007779; Tue, 28 Nov 2006 21:14:28 GMT (envelope-from flz) Date: Tue, 28 Nov 2006 21:14:28 GMT From: Florent Thoumie Message-Id: <200611282114.kASLEStf007779@freefall.freebsd.org> To: henrik@brixandersen.dk, flz@FreeBSD.org, freebsd-usb@FreeBSD.org, flz@FreeBSD.org Cc: Subject: Re: usb/105669: [patch] MetaGeek Wi-Spy device recognized as keyboard 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, 28 Nov 2006 21:15:39 -0000 Synopsis: [patch] MetaGeek Wi-Spy device recognized as keyboard State-Changed-From-To: open->patched State-Changed-By: flz State-Changed-When: Tue Nov 28 21:14:10 UTC 2006 State-Changed-Why: Committed to HEAD, MFC after 1 week. Responsible-Changed-From-To: freebsd-usb->flz Responsible-Changed-By: flz Responsible-Changed-When: Tue Nov 28 21:14:10 UTC 2006 Responsible-Changed-Why: Grab. http://www.freebsd.org/cgi/query-pr.cgi?pr=105669 From owner-freebsd-usb@FreeBSD.ORG Thu Nov 30 03:20:21 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2038E16A4B3 for ; Thu, 30 Nov 2006 03:20:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0559143CA6 for ; Thu, 30 Nov 2006 03:20: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.4/8.13.4) with ESMTP id kAU3KJbs006450 for ; Thu, 30 Nov 2006 03:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAU3KIux006449; Thu, 30 Nov 2006 03:20:18 GMT (envelope-from gnats) Resent-Date: Thu, 30 Nov 2006 03:20:18 GMT Resent-Message-Id: <200611300320.kAU3KIux006449@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, Andrew Johnson Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B751416A415 for ; Thu, 30 Nov 2006 03:15:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3453143C9D for ; Thu, 30 Nov 2006 03:14:58 +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 kAU3F3YX018585 for ; Thu, 30 Nov 2006 03:15:03 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kAU3F2ND018574; Thu, 30 Nov 2006 03:15:02 GMT (envelope-from nobody) Message-Id: <200611300315.kAU3F2ND018574@www.freebsd.org> Date: Thu, 30 Nov 2006 03:15:02 GMT From: Andrew Johnson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/106041: FreeBSD does not recognise Mustek BearPaw 2400TA usb scanner X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 03:20:21 -0000 >Number: 106041 >Category: usb >Synopsis: FreeBSD does not recognise Mustek BearPaw 2400TA usb scanner >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Nov 30 03:20:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andrew Johnson >Release: 6.2-PRERELEASE >Organization: Australia West Papua Association >Environment: FreeBSD certhas.balfour 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Nov 29 08:58:59 EST 2006 root@certhas.balfour:/usr/obj/usr/src/sys/ANDRE amd64 >Description: FreeBSD misidentifies USB scanner as ugen. >How-To-Repeat: >Fix: Update /usr/src/sys/dev/usb with product code 0x0218 for Mustek BearPaw 2400TA ; please note system already has info for Mustek's BearPaw 1200TA. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Nov 30 09:08:35 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CA8216A49E; Thu, 30 Nov 2006 09:08:35 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D71A43CA2; Thu, 30 Nov 2006 09:08:28 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAU98Yn8044792; Thu, 30 Nov 2006 09:08:34 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAU98YeC044788; Thu, 30 Nov 2006 09:08:34 GMT (envelope-from linimon) Date: Thu, 30 Nov 2006 09:08:34 GMT From: Mark Linimon Message-Id: <200611300908.kAU98YeC044788@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Cc: Subject: Re: kern/106033: [usb] [patch] support for 3G/WCDMA cards Option Globetrotter, Novatel Merlin U740 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 09:08:35 -0000 Synopsis: [usb] [patch] support for 3G/WCDMA cards Option Globetrotter, Novatel Merlin U740 Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu Nov 30 09:07:35 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=106033 From owner-freebsd-usb@FreeBSD.ORG Thu Nov 30 15:41:11 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C557716A47B for ; Thu, 30 Nov 2006 15:41:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C537243DB7 for ; Thu, 30 Nov 2006 15:40:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAUFeDDD084387 for ; Thu, 30 Nov 2006 15:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAUFeD7o084384; Thu, 30 Nov 2006 15:40:13 GMT (envelope-from gnats) Resent-Date: Thu, 30 Nov 2006 15:40:13 GMT Resent-Message-Id: <200611301540.kAUFeD7o084384@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, Kay Abendroth Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 681CD16A403 for ; Thu, 30 Nov 2006 15:31:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ABD343CA3 for ; Thu, 30 Nov 2006 15:31:44 +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 kAUFVqxV048664 for ; Thu, 30 Nov 2006 15:31:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id kAUFVqHF048663; Thu, 30 Nov 2006 15:31:52 GMT (envelope-from nobody) Message-Id: <200611301531.kAUFVqHF048663@www.freebsd.org> Date: Thu, 30 Nov 2006 15:31:52 GMT From: Kay Abendroth To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: usb/106070: devd recognizes ucom, but ttyU is the device actually X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 15:41:11 -0000 >Number: 106070 >Category: usb >Synopsis: devd recognizes ucom, but ttyU is the device actually >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: Thu Nov 30 15:40:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kay Abendroth >Release: 6.2 >Organization: >Environment: FreeBSD halo 6.2-RC1 FreeBSD 6.2-RC1 #0: Thu Nov 16 22:50:15 CET 2006 root@halo:/usr/obj/usr/src/sys/HALO i386 >Description: I was trying to sync my (USB) Palm Zire with FreeBSD, but had problems doing so. devd creates a ttyU[0-9]+ and cuaU[0-9]+ device but devd.conf-settings only work with devicename ucom[0-9]+, because devd's recognizing only ucom[0-9]+. This should - at least - be mentioned elsewhere (man page of devd devd.conf) or changed to be more consistent with the real device-name(s). >How-To-Repeat: 1.) Add the following to your devd.conf: attach 0 { device-name "ttyU[0-9]+"; action "ln -s /dev/$device-name /dev/pilot"; }; 2.) Start devd. 3.) HotSync your USB-Palm. No link will be created. 4.) Change your entry in devd.conf to the following instead: attach 0 { device-name "ucom[0-9]+"; action "ln -s /dev/ttyU0 /dev/pilot"; }; 5.) Now everything works fine. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Nov 30 20:02:03 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E3DE16A7B5 for ; Thu, 30 Nov 2006 20:02:03 +0000 (UTC) (envelope-from chris@vindaloo.com) Received: from corellia.vindaloo.com (corellia.vindaloo.com [64.51.148.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE6FB43CF9 for ; Thu, 30 Nov 2006 20:00:18 +0000 (GMT) (envelope-from chris@vindaloo.com) Received: from yavin.vindaloo.com (yavin.vindaloo.com [172.24.144.34]) by corellia.vindaloo.com (Postfix) with ESMTP id 6E82F5CD4; Thu, 30 Nov 2006 15:00:21 -0500 (EST) Received: from dagobah.vindaloo.com (dagobah.vindaloo.com [172.24.145.68]) by yavin.vindaloo.com (Postfix) with ESMTP id 05962253A1; Thu, 30 Nov 2006 15:00:20 -0500 (EST) Received: from localhost.vindaloo.com (localhost.vindaloo.com [IPv6:::1]) by dagobah.vindaloo.com (8.13.8/8.13.8) with ESMTP id kAUJxv9f001148; Thu, 30 Nov 2006 14:59:57 -0500 (EST) (envelope-from chris@vindaloo.com) From: Christopher Sean Hilton To: Bo Granlund In-Reply-To: <20061125090630.GC17442@sushi.tonnikala.net> References: <20061125032050.GA17442@sushi.tonnikala.net> <4567D5A9.5010602@totalterror.net> <20061125090630.GC17442@sushi.tonnikala.net> Content-Type: text/plain Date: Thu, 30 Nov 2006 14:59:56 -0500 Message-Id: <1164916796.1054.6.camel@dagobah.vindaloo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: USB GPS receiver as reference clock X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 20:02:03 -0000 On Sat, 2006-11-25 at 11:06 +0200, Bo Granlund wrote: [ snip ] > > I loaded the uplcom module and reattached the gps receiver. And then I > linked /dev/cuaU0 to /dev/gps1. Cat'ing /dev/gps1 returns NMEA data, but > when I try start ntpd this comes to the logs: > > Nov 25 10:58:24 battleangel ntpd[798]: refclock_nmea: time_pps_create > failed: Inappropriate ioctl for device > > Do you have any clue as to why it complains about an inappropriate ioctl? > > Thanks for the uplcom pointer, now I got somewhat forward in my attempts to > make ntpd work with my usb receiver. > GPS Clocks for ntp synchronization need to do something called "Pulse Per Second". This involves toggling the state of one of the serial control lines once every second to indicate the edge of a measured time period. I'm not sure if ntp can sync to a clock using nmea data alone. It's possible since the nmea sentences have the full time information embeded withing them but I don't know how accurate it would be. There may be an ntp configuration option for gathering time data from within the nmea sentence itself but I'm not familiar enough with ntd to actually set that up. -- Chris From owner-freebsd-usb@FreeBSD.ORG Thu Nov 30 22:14:26 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6A26516A415 for ; Thu, 30 Nov 2006 22:14:26 +0000 (UTC) (envelope-from w0lfie@clear.net.nz) Received: from smtp4.clear.net.nz (smtp4.clear.net.nz [203.97.37.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7EA143CA8 for ; Thu, 30 Nov 2006 22:14:15 +0000 (GMT) (envelope-from w0lfie@clear.net.nz) Received: from clear.net.nz (lb1-srcnat.clear.net.nz [203.97.32.236]) by smtp4.clear.net.nz (CLEAR Net Mail) with SMTP id <0J9K00ESFDS1LD10@smtp4.clear.net.nz> for freebsd-usb@freebsd.org; Fri, 01 Dec 2006 11:14:25 +1300 (NZDT) Date: Fri, 01 Dec 2006 11:14:25 +1300 From: Sam Banks Sender: w0lfie@clear.net.nz To: freebsd-usb@freebsd.org Message-id: <456f57c1.bb.4c0a.23915@clear.net.nz> X-Mailer: CLEAR Net WebMail; webmail.clear.net.nz; user: w0lfie; ip: 210.55.18.198 Priority: normal X-Mailman-Approved-At: Thu, 30 Nov 2006 22:21:34 +0000 Subject: Looking for a starting point on how the USB subsystem works X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: w0lfie@clear.net.nz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 22:14:26 -0000 Hey all, I am having a problem with a USB keyboard I use (http://lists.freebsd.org/pipermail/freebsd-hackers/2006-November/018764.html). I have a feeling that my problems relate to something external to the ukbd driver. I am wanting to dig around to find out how the ukbd driver is actually sent the information from the physical keyboard. I assume it is something like a generic USB driver that forwards the data on? I have searched around the mailing lists and the internet and have found very little (none to be exact) information about how the FreeBSD USB subsystem works. Can anyone recommend any resources where I could find any of this info? Cheers, Sam. From owner-freebsd-usb@FreeBSD.ORG Fri Dec 1 19:17:32 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 08E2416A407; Fri, 1 Dec 2006 19:17:32 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31D8343CA6; Fri, 1 Dec 2006 19:17:16 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C650B1A4D9E; Fri, 1 Dec 2006 11:17:31 -0800 (PST) Date: Fri, 1 Dec 2006 11:17:31 -0800 From: Alfred Perlstein To: freebsd-usb@freebsd.org, freebsd-smp@freebsd.org Message-ID: <20061201191731.GR38808@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: RFC: Fixing USB ethernet for FreeBSD 7.0. 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, 01 Dec 2006 19:17:32 -0000 [I am not subscribed to these lists, please do not trim me off the cc list.] This email is has a short war story and a request for comments. I recently had the displeasure of trying to use an USB etherdongle under FreeBSD. Result: panic when the interface was started. I fixed it using a stopgap: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/if_aue.c?rev=1.101&content-type=text/x-cvsweb-markup There are still some major issues: 1) requires Giant. 2) several error paths will still panic the kernel. I would like to fix them, however that does not seem easy given the existing infrastructure. I'm going to walk you through my thought process on the whole system and I would like feedback please. Basically, consider this a one-way conversation that you may interrupt at any time to correct me or to make suggestions. If there is a major flaw in anything I've said, then feel free to discard the following points and we will start up from the flaw. NOTE: I am interested in minimizing the impact of handling a "slow bus" on the rest of the kernel, but at the same time I am not interested in saving nanoseconds off IO time at the expense of having a programmatically dismal API. Meaning, I will be happy to sacrifice a modicum of performance in order to provide a programming model that allows us to have a stable device driver base. Onto the RFC: ********************************************************************** RFC: Fixing USB ethernet API: Statement #1: USB is a slow bus. While doing IO to the usb bus one should be able to yeild the CPU to another thread. Hence an interrupt can not use DELAY() to wait for data, instead it should arrainge for a callback upon completion of IO, and userspace should use tsleep to wait for data. Statement #2: Using callbacks to do all IO during an interrupt is programatically complex and painful. For instance, take the case of the following code pulled from aue_stop() (which can be called from interrupt context): AUE_LOCK(sc); ... aue_csr_write_1(sc, AUE_CTL0, 0); aue_csr_write_1(sc, AUE_CTL1, 0); aue_reset(sc); ... /* Stop transfers. */ if (sc->aue_ep[AUE_ENDPT_RX] != NULL) { err = usbd_abort_pipe(sc->aue_ep[AUE_ENDPT_RX]); if (err) { printf("aue%d: abort rx pipe failed: %s\n", sc->aue_unit, usbd_errstr(err)); } err = usbd_close_pipe(sc->aue_ep[AUE_ENDPT_RX]); There are probably about a dozen IOs here, splitting this into callbacks would be terribly inconvenient. Note the aue_reset() call which does several syncronous IOs that should not be interrupted! Statement #3: We need to provide the same atomic guarantees that we give other device drivers, specifically the ability to do FOO_LOCK/FOO_UNLOCK and not have to worry about user contexts sneaking into interrupt contexts. (we do not have these problems on "fast bus" devices because of per-driver locks (FXP_LOCK/FXP_UNLOCK)) Statement #4: To do all of this in a manner that provides a programmitically safe way we need to run some drivers under a full kthread process context even under interrupts. Statement #5: We have only a minor mechanism to do so at the current time, only the usb_taskqs exist. Using just the usb_taskqs would serialize IO too much and slow down USB IO, additionally if any device or driver wedges, the whole stack will stop working. Proposal: Each USB device that needs this (I envision most devices moving to this model) will require the following: A process context. A process style recursive lock (lockmgr). I am leaning towards 1 thread per device instance, the reason being that if a device (or its driver) goes out to lunch, it should not bring down the whole stack. If anyone has the "thousands of usb devices" then they can invent some sort of "usb taskq pool" to make life easier. What I will provide is: API for creating a per-device kthread. API for deleteing per-device kthread. API for recursive process locks. (simple layer over lockmgr) What I would like from FreeBSD is a discussion about if there could be a "better way" that _IS PROGRAMMITICALLY FEASABLE_. Sounds good? Let me know, now is the time to discuss this with me before I waste a lot of time writing something that someone may have to rewrite in a few months because they didn't speak up now. I'm available for phone calls if that will help. thank you, -- - Alfred Perlstein, RED Incorporated Consulting. - coder / sysadmin / FreeBSD Hacker / All that jazz - From owner-freebsd-usb@FreeBSD.ORG Fri Dec 1 19:28:48 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 155C616A403; Fri, 1 Dec 2006 19:28:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6128043CBB; Fri, 1 Dec 2006 19:28:30 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id kB1JNiBr060040; Fri, 1 Dec 2006 12:23:45 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 01 Dec 2006 12:24:33 -0700 (MST) Message-Id: <20061201.122433.-749245269.imp@bsdimp.com> To: alfred@freebsd.org From: "M. Warner Losh" In-Reply-To: <20061201191731.GR38808@elvis.mu.org> References: <20061201191731.GR38808@elvis.mu.org> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 01 Dec 2006 12:23:45 -0700 (MST) Cc: freebsd-smp@freebsd.org, freebsd-usb@freebsd.org Subject: Re: RFC: Fixing USB ethernet for FreeBSD 7.0. 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, 01 Dec 2006 19:28:48 -0000 Have you looked at the usb work that Hans Petter Selasky at http://www.turbocat.net/~hselasky/usb4bsd yet? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 1 19:43:24 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 139E316A50E; Fri, 1 Dec 2006 19:43:24 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13D8543CA7; Fri, 1 Dec 2006 19:43:08 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id ADF181A4D9B; Fri, 1 Dec 2006 11:43:23 -0800 (PST) Date: Fri, 1 Dec 2006 11:43:23 -0800 From: Alfred Perlstein To: "M. Warner Losh" Message-ID: <20061201194323.GT38808@elvis.mu.org> References: <20061201191731.GR38808@elvis.mu.org> <20061201.122433.-749245269.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061201.122433.-749245269.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-smp@freebsd.org, freebsd-usb@freebsd.org Subject: Re: RFC: Fixing USB ethernet for FreeBSD 7.0. 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, 01 Dec 2006 19:43:24 -0000 * M. Warner Losh [061201 11:30] wrote: > Have you looked at the usb work that Hans Petter Selasky > at http://www.turbocat.net/~hselasky/usb4bsd yet? I just did, while it solves a lock order problem, this doesn't appear to solve the programmitic issues, namely multiple usb IOs requiring callbacks and how to issue a series of complex usb IOs from interrupt context. Basically, I need to be able to do USB IO as if I was doing normal BUS IO, usb does not offer this in interrupt context except as a series of callbacks that appear to be programmatically impossible to implement. Have a look at if_aue.c, then look at any of the error cases that might be called from interrupt context, they wind up doing sync IO to the device which is illegal (sleeping while holding a driver lock). Hans Petter Selasky's work is nice, however it doesn't solve these issues, the lock would still have to be held. Do you understand that I'm trying to give usb ethernet the same ease of programming that other devices on a "fast bus" have? -- - Alfred Perlstein, RED Incorporated Consulting. - coder / sysadmin / FreeBSD Hacker / All that jazz - From owner-freebsd-usb@FreeBSD.ORG Fri Dec 1 22:32:35 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D4AC616A47B; Fri, 1 Dec 2006 22:32:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 302D643CA7; Fri, 1 Dec 2006 22:32:17 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: NtQinKAjKMU7NZuf7ppucg== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.121.55] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe06.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 344676319; Fri, 01 Dec 2006 23:32:31 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 1 Dec 2006 23:32:10 +0100 User-Agent: KMail/1.7 References: <20061201191731.GR38808@elvis.mu.org> <20061201.122433.-749245269.imp@bsdimp.com> <20061201194323.GT38808@elvis.mu.org> In-Reply-To: <20061201194323.GT38808@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612012332.12796.hselasky@c2i.net> Cc: Alfred Perlstein , freebsd-smp@freebsd.org Subject: Re: RFC: Fixing USB ethernet for FreeBSD 7.0. 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, 01 Dec 2006 22:32:35 -0000 On Friday 01 December 2006 20:43, Alfred Perlstein wrote: > * M. Warner Losh [061201 11:30] wrote: > > Have you looked at the usb work that Hans Petter Selasky > > at http://www.turbocat.net/~hselasky/usb4bsd yet? > > I just did, while it solves a lock order problem, this doesn't > appear to solve the programmitic issues, namely multiple usb IOs > requiring callbacks and how to issue a series of complex usb > IOs from interrupt context. > > Basically, I need to be able to do USB IO as if I was doing normal > BUS IO, usb does not offer this in interrupt context except as a > series of callbacks that appear to be programmatically impossible > to implement. Yes, yes, this is supported. See the USBD_USE_POLLING flag. > > Have a look at if_aue.c, then look at any of the error cases that > might be called from interrupt context, they wind up doing sync IO > to the device which is illegal (sleeping while holding a driver > lock). > > Hans Petter Selasky's work is nice, however it doesn't solve > these issues, the lock would still have to be held. You don't want to do things without holding a lock. > Do you understand that I'm trying to give usb ethernet the > same ease of programming that other devices on a "fast bus" > have? Yes, but that comes at an expense. Higher CPU usage, more delay. --HPS