Date: Sat, 25 Nov 2006 18:21:01 -0500 From: Peter Carah <pete@altadena.net> To: Hans Petter Selasky <hselasky@c2i.net>, usb@freebsd.org Subject: Test (belated) of new umass driver Message-ID: <4568CFDD.9030004@altadena.net>
next in thread | raw e-mail | index | archive | help
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: <PTLTD 3091 > 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> Features2=0x1<SSE3> AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow> AMD Features2=0x1<LAHF> real memory = 2012151808 (1918 MB) avail memory = 1963589632 (1872 MB) ioapic0 <Version 2.1> irqs 0-23 on motherboard wlan: mac acl policy registered ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: <HP 3091> 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: <Embedded Controller: GPE 0x18> port 0x62,0x66 on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_throttle0: <ACPI CPU Throttling> on cpu0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 pci1: <display, VGA> at device 5.0 (no driver attached) ohci0: <OHCI (generic) USB controller> mem 0xc0000000-0xc0000fff irq 19 at device 19.0 on pci0 usb0: usb0: SMM does not respond, resetting usb0: <OHCI (generic) USB controller> on ohci0 ohci1: <OHCI (generic) USB controller> mem 0xc0001000-0xc0001fff irq 19 at device 19.1 on pci0 usb1: usb1: SMM does not respond, resetting usb1: <OHCI (generic) USB controller> on ohci1 ehci0: <EHCI (generic) USB 2.0 controller> mem 0xc0002000-0xc0002fff irq 19 at device 19.2 on pci0 usb2: EHCI version 1.0 usb2: <EHCI (generic) USB 2.0 controller> on ehci0 pci0: <serial bus, SMBus> at device 20.0 (no driver attached) atapci0: <ATI IXP400 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8410-0x841f at device 20.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 isab0: <PCI-ISA bridge> at device 20.3 on pci0 isa0: <ISA bus> on isab0 pcib2: <ACPI PCI-PCI bridge> at device 20.4 on pci0 pci5: <ACPI PCI bus> on pcib2 rl0: <RealTek 8139 10/100BaseTX> port 0xa000-0xa0ff mem 0xc0208000-0xc02080ff irq 18 at device 0.0 on pci5 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:c0:9f:97:63:2c pci5: <network> at device 2.0 (no driver attached) cbb0: <PCI-CardBus Bridge> at device 9.0 on pci5 cardbus0: <CardBus bus> 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: <IEEE1394(FireWire) bus> on fwohci0 sbp0: <SBP-2/SCSI over FireWire> 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: <mass storage> at device 9.3 (no driver attached) pci5: <base peripheral> at device 9.4 (no driver attached) pcm0: <ATI IXP 400> mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0 pci0: <simple comms, generic modem> at device 20.6 (no driver attached) acpi_tz0: <Thermal Zone> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Synaptics Touchpad, device ID 0 acpi_acad0: <AC Adapter> on acpi0 battery0: <ACPI Control Method Battery> on acpi0 pmtimer0 on isa0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xdc000-0xdffff,0xe0000-0xe3fff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> 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 <FUJITSU MHV2100AT 00810099> at ata0-master UDMA100 acd0: DVDR <HL-DT-ST DVD-RW GCA-4080N/0C35> at ata1-master PIO4 pcm0: <Conexant CX20468-21 AC97 Codec> cd0 at ata1 bus 0 target 0 lun 0 cd0: <HL-DT-ST DVD-RW GCA-4080N 0C35> 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: <Atheros 5212> 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: <Kingston DataTraveler 2.0, class 0/0, rev 2.00/1.00, addr 126> 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: <Kingston DataTraveler 2.0 1.00> 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: <Kingston DataTraveler 2.0, class 0/0, rev 2.00/1.00, addr 126> 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: <Kingston DataTraveler 2.0 1.00> 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 ====================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4568CFDD.9030004>