[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-usb-users
Subject:    [Linux-usb-users] PROBLEM: Slow throughput with Flash Drive
From:       Kevin Gilbert <kev.gilbert () cdu ! edu ! au>
Date:       2003-10-02 23:36:02
[Download RAW message or body]

Hi All,

Sorry if you've received this twice - I've resent this message as I 
think the first one went into write-only memory.

I have a Transend Flash Drive that is presenting problems with later 
Linux kernels.

The device operates perfectly under the kernel distributed with 
RedHat8.0 (2.4.18-14) but has problems with all later kernels - 
including the one in RH9.0 (2.4.20-8). In the past I have installed 
RH9.0 and run into this problem and I have reverted to RH8.0 so the 
information below is obtained from a "roll-your-own" version of the 
2.4.22 kernel.

The problem is one of _very_ slow throughput to the device - up to 10 
seconds to get output from an ls -l /mnt/flash. I suspect that this may, 
in some way, be connected with the fact the the drive is not recognised 
at boot time.

I have tried both UHCI drivers. With the usb-uhci driver the USB buses 
are recognised at boot time but the Flash Drive is not. With the uchi 
driver, the USB buses are _not_ recognised at boot time - however 
manually loading the modules overcomes this. With _both_ drivers, the 
slow throughput problem is evident.

NOTE: This problem _only_ occurs on a Dell Optiplex GX240 system I use 
at work. My system at home (not a Dell) has no problems with any kernel 
revision - up to, and including, 2.6.0-test5-mm4. Neither does the 
problem occur on an older Dell Optiplex GX110 - running vanilla RH9.0.

All the following information was taken from the 2.4.22 system:

-------------------------------

lspci -v

00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host 
Bridge (rev 03)
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: bus master, fast devsel, latency 0
       Memory at f4000000 (32-bit, prefetchable) [size=64M]
       Capabilities: [e4] #09 [0104]
       Capabilities: [a0] AGP version 2.0

00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge 
(rev 03) (prog-if 00 [Normal decode])
       Flags: bus master, 66Mhz, fast devsel, latency 64
       Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
       I/O behind bridge: 0000e000-0000efff
       Memory behind bridge: ff900000-ffafffff
       Prefetchable memory behind bridge: f8000000-fbffffff

00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 12) 
(prog-if 00 [Normal decode])
       Flags: bus master, fast devsel, latency 0
       Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
       I/O behind bridge: 0000d000-0000dfff
       Memory behind bridge: ff700000-ff8fffff

00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 12)
       Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 12) (prog-if 80 
[Master])
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: bus master, medium devsel, latency 0
       I/O ports at ffa0 [size=16]

00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 12) 
(prog-if 00 [UHCI])
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: bus master, medium devsel, latency 0, IRQ 19
       I/O ports at ff80 [size=32]

00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 12)
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: medium devsel, IRQ 17
       I/O ports at ccd0 [size=16]

00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 12) 
(prog-if 00 [UHCI])
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: bus master, medium devsel, latency 0, IRQ 18
       I/O ports at ff60 [size=32]

00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio 
(rev 12)
       Subsystem: Dell Computer Corporation: Unknown device 010e
       Flags: bus master, medium devsel, latency 0, IRQ 17
       I/O ports at c800 [size=256]
       I/O ports at cc40 [size=64]

01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro 
Ultra TF (prog-if 00 [VGA])
       Subsystem: ATI Technologies Inc: Unknown device 0408
       Flags: stepping, 66Mhz, medium devsel, IRQ 16
       Memory at f8000000 (32-bit, prefetchable) [size=64M]
       I/O ports at ec00 [size=256]
       Memory at ff9fc000 (32-bit, non-prefetchable) [size=16K]
       Expansion ROM at 80000000 [disabled] [size=128K]
       Capabilities: [50] AGP version 2.0
       Capabilities: [5c] Power Management version 2

02:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] 
(rev 30)
       Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
       Flags: bus master, medium devsel, latency 64, IRQ 18
       I/O ports at dc80 [size=128]
       Memory at ff7ffc00 (32-bit, non-prefetchable) [size=128]
       Expansion ROM at ff800000 [disabled] [size=128K]
       Capabilities: [dc] Power Management version 1

02:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] 
(rev 78)
       Subsystem: Dell Computer Corporation: Unknown device 00fe
       Flags: bus master, medium devsel, latency 64, IRQ 18
       I/O ports at dc00 [size=128]
       Memory at ff7ff800 (32-bit, non-prefetchable) [size=128]
       Expansion ROM at ff800000 [disabled] [size=128K]
       Capabilities: [dc] Power Management version 2

-------------------------------

lspci -v from the GX110 that doesn't have the problem (kernel version 
2.4.20-8)

00:00.0 Host bridge: Intel Corp. 82810E DC-133 GMCH [Graphics Memory 
Controller Hub] (rev 03)
       Subsystem: Dell Computer Corporation: Unknown device 00b4
       Flags: bus master, fast devsel, latency 0

00:01.0 VGA compatible controller: Intel Corp. 82810E DC-133 CGC 
[Chipset Graphics Controller] (rev 03) (prog-if 00 [VGA])
       Subsystem: Dell Computer Corporation: Unknown device 00b4
       Flags: bus master, 66Mhz, medium devsel, latency 0, IRQ 9
       Memory at f4000000 (32-bit, prefetchable) [size=64M]
       Memory at ff000000 (32-bit, non-prefetchable) [size=512K]
       Capabilities: [dc] Power Management version 1

00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02) (prog-if 00 
[Normal decode])
       Flags: bus master, fast devsel, latency 0
       Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
       I/O behind bridge: 0000e000-0000efff
       Memory behind bridge: fc000000-feffffff
       Prefetchable memory behind bridge: f8000000-f9ffffff

00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02)
       Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02) (prog-if 80 
[Master])
       Subsystem: Intel Corp. 82801AA IDE
       Flags: bus master, medium devsel, latency 0
       I/O ports at ffa0 [size=16]

00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02) (prog-if 00 
[UHCI])
       Subsystem: Intel Corp. 82801AA USB
       Flags: bus master, medium devsel, latency 0, IRQ 11
       I/O ports at ff80 [size=32]

00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02)
       Subsystem: Intel Corp. 82801AA SMBus
       Flags: medium devsel, IRQ 10
       I/O ports at dcd0 [size=16]

00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio 
(rev 02)
       Subsystem: Dell Computer Corporation: Unknown device 00b4
       Flags: bus master, medium devsel, latency 0, IRQ 10
       I/O ports at d800 [size=256]
       I/O ports at dc80 [size=64]

01:07.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 
Model 64/Model 64 Pro] (rev 15) (prog-if 00 [VGA])
       Subsystem: nVidia Corporation: Unknown device 0006
       Flags: 66Mhz, medium devsel, IRQ 9
       Memory at fd000000 (32-bit, non-prefetchable) [disabled] [size=16M]
       Memory at f8000000 (32-bit, prefetchable) [disabled] [size=32M]
       Expansion ROM at <unassigned> [disabled] [size=64K]
       Capabilities: [60] Power Management version 1

01:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] 
(rev 78)
       Subsystem: Dell Computer Corporation: Unknown device 00b4
       Flags: bus master, medium devsel, latency 64, IRQ 5
       I/O ports at ec80 [size=128]
       Memory at fcfffc00 (32-bit, non-prefetchable) [size=128]
       Expansion ROM at fe000000 [disabled] [size=128K]
       Capabilities: [dc] Power Management version 2

-------------------------------

cat /proc/bus/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=ff60
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0c76 ProdID=0005 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI-alt Root Hub
S:  SerialNumber=ff80
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

-------------------------------

lsmod

Module                  Size  Used by    Not tainted
uhci                   30040   0  (unused)
usb-storage            50000   1
sd_mod                 12588   2  (autoclean)
scsi_mod               67188   2  (autoclean) [usb-storage sd_mod]
i810_audio             26972   0  (autoclean)
ac97_codec             16692   0  (autoclean) [i810_audio]
soundcore               5956   2  (autoclean) [i810_audio]
binfmt_misc             7560   1
autofs                 13076   0  (autoclean) (unused)
3c59x                  30032   2
floppy                 57660   0  (autoclean)
nls_cp437               5116   2  (autoclean)
vfat                   12812   2  (autoclean)
fat                    37112   0  (autoclean) [vfat]
nls_iso8859-1           3516   3  (autoclean)
ntfs                   59328   1  (autoclean)
ext3                   68868   4  (autoclean)
jbd                    49460   4  (autoclean) [ext3]
mousedev                5524   1
keybdev                 2980   0  (unused)
hid                    24676   0  (unused)
input                   5312   0  [mousedev keybdev hid]
usbcore                82540   1  [uhci usb-storage hid]
rtc                     8328   0  (autoclean)

-------------------------------

Slightly edited extract from /var/log/messages

Oct  2 09:55:59  kernel: Initializing USB Mass Storage driver...
Oct  2 09:55:59  kernel: usb.c: registered new driver usb-storage
Oct  2 09:55:59  kernel: USB Mass Storage support registered.
Oct  2 09:56:30  kernel: uhci.c: USB Universal Host Controller Interface 
driver v1.1
Oct  2 09:56:30  kernel: uhci.c: USB UHCI at I/O 0xff80, IRQ 19
Oct  2 09:56:30  kernel: usb.c: new USB bus registered, assigned bus 
number 1
Oct  2 09:56:30  kernel: uhci.c: detected 2 ports
Oct  2 09:56:30  kernel: Product: USB UHCI-alt Root Hub
Oct  2 09:56:30  kernel: SerialNumber: ff80
Oct  2 09:56:30  kernel: hub.c: USB hub found
Oct  2 09:56:30  kernel: hub.c: 2 ports detected
Oct  2 09:56:30  kernel: uhci.c: USB UHCI at I/O 0xff60, IRQ 18
Oct  2 09:56:30  kernel: usb.c: new USB bus registered, assigned bus 
number 2
Oct  2 09:56:30  kernel: uhci.c: detected 2 ports
Oct  2 09:56:30  kernel: Product: USB UHCI-alt Root Hub
Oct  2 09:56:30  kernel: SerialNumber: ff60
Oct  2 09:56:30  kernel: hub.c: USB hub found
Oct  2 09:56:30  kernel: hub.c: 2 ports detected
Oct  2 09:56:30  default.hotplug[1199]: arguments (usb) env 
(DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin 
ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEVICE=/proc/bus/usb/002/001 
PRODUCT=0/0/0 TYPE=9/0/0 DEBUG=kernel _=/bin/env)
Oct  2 09:56:30  default.hotplug[1199]: invoke /etc/hotplug/usb.agent ()
Oct  2 09:56:30  default.hotplug[1195]: arguments (usb) env 
(DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin 
ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEVICE=/proc/bus/usb/001/001 
PRODUCT=0/0/0 TYPE=9/0/0 DEBUG=kernel _=/bin/env)
Oct  2 09:56:30  default.hotplug[1195]: invoke /etc/hotplug/usb.agent ()
Oct  2 09:56:31  kernel: hub.c: new USB device 00:1f.4-2, assigned 
address 2
Oct  2 09:56:33  usb.agent[1199]: Setup usbcore for USB product 0/0/0
Oct  2 09:56:33  usb.agent[1195]: Setup usbcore for USB product 0/0/0
Oct  2 09:56:33  usb.agent[1199]: missing kernel or user mode driver 
usbcore
Oct  2 09:56:33  usb.agent[1195]: missing kernel or user mode driver 
usbcore
Oct  2 09:56:33  usb.agent[1199]: Setup usbcore for USB product 0/0/0
Oct  2 09:56:33  usb.agent[1195]: Setup usbcore for USB product 0/0/0
Oct  2 09:56:33  usb.agent[1199]: missing kernel or user mode driver 
usbcore
Oct  2 09:56:33  usb.agent[1195]: missing kernel or user mode driver 
usbcore
Oct  2 09:56:35  kernel: scsi0 : SCSI emulation for USB Mass Storage 
devices
Oct  2 09:56:35  kernel:   Vendor:           Model:                   Rev:
Oct  2 09:56:35  kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 02
Oct  2 09:56:35  kernel: Attached scsi removable disk sda at scsi0, 
channel 0, id 0, lun 0
Oct  2 09:56:38  kernel: SCSI device sda: 253400 512-byte hdwr sectors 
(130 MB)
Oct  2 09:56:39  kernel: sda: Write Protect is off
Oct  2 09:56:39  kernel:  sda:<7>usb-storage: queuecommand() called
Oct  2 09:56:40  kernel:  sda1
Oct  2 09:56:40  default.hotplug[1280]: arguments (usb) env 
(DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin 
ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=2 DEVICE=/proc/bus/usb/002/002 
INTERFACE=8/6/80 PRODUCT=c76/5/100 TYPE=0/0/0 DEBUG=kernel _=/bin/env)
Oct  2 09:56:40  default.hotplug[1280]: invoke /etc/hotplug/usb.agent ()
Oct  2 09:56:43  kernel: usb_control/bulk_msg: timeout
Oct  2 09:56:45  last message repeated 12 times
Oct  2 09:56:45  usb.agent[1280]: Setup usb-storage for USB product 
c76/5/100
Oct  2 09:56:45  usb.agent[1280]: missing kernel or user mode driver 
usb-storage
Oct  2 09:56:45  kernel: usb_control/bulk_msg: timeout
Oct  2 09:56:45  kernel: usb_control/bulk_msg: timeout
Oct  2 09:56:55  su(pam_unix)[1343]: session opened for user root by 
kmg(uid=500)
Oct  2 09:56:57  kernel: usb_control/bulk_msg: timeout
Oct  2 09:56:59  last message repeated 16 times

-------------------------------

If required I will forward the .config file used to produce the 2.4.22 
kernel.

Regards,

Kevin Gilbert




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic