Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] USB Mass Storage Device (EHCI) problems with OHCI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Tue Mar 27, 2007 3:26 pm    Post subject: [SOLVED] USB Mass Storage Device (EHCI) problems with OHCI Reply with quote

I'm using 2.6.19-gentoo-r5 and have tried ehci-ohcd and ohci-hcd as compiled-in and as modules. When the ohci-hcd-module is loaded, the cached reads also get to the USB 2.0 level, but the buffered disk reads stay at 1 MB/s. (measurement done with hdparm -tT) But with the ohci-hcd unloaded, the buffered disk reads get up to 20 MB/s, which is the maximum speed of the disk.
Anyone has an idea why ohci is blocking the buffered disk reads of my ehci-connected-Disk? (it really works with the ehci-module according to dmesg)


Last edited by deen on Fri Apr 13, 2007 2:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Mar 28, 2007 9:48 pm    Post subject: Reply with quote

I'm guessing the problem might be that your device is plugged into a usb < 2 port. From menuconfig:

Code:
 CONFIG_USB_EHCI_ROOT_HUB_TT:
Some EHCI chips have vendor-specific extensions to integrate
controller is needed.  It's safe to say "y" even if your
controller doesn't support this feature.

This supports the EHCI implementation that's originally   
from ARC, and has since changed hands a few times.

Symbol: USB_EHCI_ROOT_HUB_TT [=y]
Prompt: Root Hub Transaction Translators (EXPERIMENTAL)
Defined at drivers/usb/host/Kconfig:41
Depends on: USB_EHCI_HCD && EXPERIMENTAL
Location:   
 -> Device Drivers       
   -> USB support   
     -> Support for Host-side USB (USB [=y])
        -> EHCI HCD (USB 2.0) support (USB_EHCI_HCD [=y])


Perhaps when the ohci module is loaded, it takes control from the EHCI controller and gives it to the OHCI controller instead.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Thu Mar 29, 2007 8:13 am    Post subject: Reply with quote

I've already tried to use the EHCI Root Hub Transaction Translator, but it didn't change anything.
And I also think the OHCI module steals the control, but how to stop it doing that?
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Mar 29, 2007 4:06 pm    Post subject: Reply with quote

don't use the ohci module -- just use ehci !
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Sat Mar 31, 2007 7:39 am    Post subject: Reply with quote

I've also tried that, but my USB-1.1-Devices, like my mouse don't work then. What's the reason for that? For example, on the grml-0.9-liveCD my usb-hdd works with full speed as well as my mouse.
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Fri Apr 06, 2007 11:20 pm    Post subject: Reply with quote

push
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Apr 07, 2007 4:47 pm    Post subject: Reply with quote

I don't know why it wouldn't work. Maybe my understanding of what the root hub translators do is wrong, or maybe your system is out of date, your bios needs updating or reconfiguring, or the hardware on your pc is buggy (not bloody likely! unless it's on a via apollo chipset...) The only other thing I can think of is that maybe you should be using usb-uhci instead of ohci ... most Intel and Via chips use UHCI, whilst nforce-based boards and compaq boards seem to use OHCI. The help on OHCI kernel support suggests checking lspci -v to see which you need. However, I don't think modules without corresponding hardware would be likely to mess stuff up. While I was there, I noticed that the help file on
Quote:

Device Drivers --->USB support --->
[ ] Improved Transaction Translator scheduling (EXPERIMENTAL)

Made it sound like what you're looking for ... but keep in mind this is on a 2.6.18-gentoo-r3 menuconfig.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Sat Apr 07, 2007 9:58 pm    Post subject: Reply with quote

I'm using an nforce2-based mainboard, so I have to use OHCI and not UHCI.
I've already tried to enable the "Improved Transaction Translator scheduling" in my kernel, but it is without any effect.
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Sun Apr 08, 2007 8:22 pm    Post subject: Reply with quote

Little update: Although my USB-HDD is still recognized as a USB-2.0-Device and being accessed by ehci-hcd, now high-speed-disk-reads don't work at all; even with ohci-hcd not loaded.
I don't know the reason for that, because I didn't even change my kernel... (still using 2.6.19-r5, but I also tried 2.6.20-r5 -> same problem)
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Tue Apr 10, 2007 8:38 pm    Post subject: Reply with quote

Nobody has an idea?
Back to top
View user's profile Send private message
deen
n00b
n00b


Joined: 25 Dec 2006
Posts: 28
Location: /germany/bw

PostPosted: Thu Apr 12, 2007 1:18 pm    Post subject: Reply with quote

I really hate pushing, but the hdd-speed is so annoying.
Edit: WTF: I did neither change nor update anything but now it works with USB-2.0-speed. :P
Edit2: After a reboot it isn't working anymore, have to find the problem...
Edit3: Found it: The problem has to be somewhere in hdparm, which shows me the high speed only after I copied something on the disk. BTW: Copying always works fast. :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum