USB EHCI VIA disconnect problem
Hi!
I forward this mail to this list because there might be a connection to the VIA IDE drivers. Maybe the two described problems are related, maybe not. Transferrates experiment is however influenced by ehci-hcd. In one post from Alan Stern it's however noticed that the disconnect problem maybe solved in an other way.
The mail originates on the linux-usb-devel list:
http://marc.theaimsgroup.com/?l=linux-usb-devel&w=2&r=1&s=USB+EHCI+VIA&q=b
Maybe someone has at least an explanation about this.
TIA
Helmut
---------- Forwarded Message ----------
Subject: Re: [linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem
Date: Thursday 05 January 2006 23:09
From: Helmut Toplitzer <[email protected]>
To: [email protected]
Cc: [email protected], Rene Herman <[email protected]>, David Brownell <[email protected]>
Ok because of the long thread a short summary:
My transferrate tests were running on a normal IDE device.
VIA IDE, USB and so on ... systems are intefering. USB-system affects IDE system, sometimes in a dramatic way (diff. 20MB/s on IDE transferrate).
Beside this sometimes the ehci-driver disconnects USB devices without any reason. This is a big problem in streaming data etc. It looks like this:
22:36 kernel: hub 4-0:1.0: state 5 ports 6 chg 0000 evt 0008 22:36 kernel: ehci_hcd 0000:00:10.3: GetStatus port 3 status 00180b POWER sig=j PEC \
CSC CONNECT 22:36 kernel: hub 4-0:1.0: port 3, status 0501, change 0003, 480 Mb/s
22:36 kernel: usb 4-3: USB disconnect, address 2
22:36 kernel: usb 4-3: usb_disable_device nuking all URBs
22:36 kernel: ehci_hcd 0000:00:10.3: shutdown urb ca6e53c0 pipe c0420280 ep4in-bulk
22:36 kernel: ehci_hcd 0000:00:10.3: shutdown urb ca6e5440 pipe c0420280 ep4in-bulk
22:36 kernel: ehci_hcd 0000:00:10.3: shutdown urb ce69ce20 pipe c0420280 ep4in-bulk
22:36 kernel: ehci_hcd 0000:00:10.3: shutdown urb c0417f60 pipe c0420280 ep4in-bulk
....
All VIA motherboards with the IDE problem have
the problem with the disconnects to (AFAIK).
That's the story. It was startet by Rene Hermann on linux-devel without solution, when I came up with my usb-disconnect problem and we found the similarities about this. See the same thread on linux-usb-user
http://marc.theaimsgroup.com/?t=113506436100003&r=1&w=2
and thread "External USB2 HDD affects speed hda"
http://marc.theaimsgroup.com/?t=111749614000002&r=1&w=2
on linux-devel about this.
So. The question is: How broken is the VIAchipset/driver/etc. How to solve this? What's the role of the usb-driver in this story.
- E.g. Loading/Unloading ehci-hcd uhci-hcd affects ide-transferrates.
- Making the CPU utilized !!!increases!!!! the IDE transfer rate.
- Streaming data on ehci-hcd causes disconnects of devices after some time.
Normal IDE transferrate : 36MB/s
lircd with lirc_i2c and lirc_dev loaded : 14MB/s
ehci-hcd loaded and once used : 22MB/s
cpu 100% utilized : 55MB/s
This is "just" doubling transfer rates with a snip.
So whats going on here? It looks like DMA/BusMastering is taking place when CPU is utilized (Not realy knowing). But what happens when ehci-hcd, lircd are loaded which only use the usb-system?
Any ideas?
Helmut
--
My GNUpg fingerprint http://www.gnupg.org
4563 F4FB 0B7E 8698 53CD 00E9 E319 35BD 6A91 1656
-------------------------------------------------------