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 ====================================================