reset high speed USB device using ehci_hcd and address x in squeeze

Juan R. de Silva's picture

Forums: 

I have a NexStar multi interface to USB adapter which I wanted to use to
connect my old IDE HDD to wipe it out before giving it away. While trying
to use it I hit the problem in subject line. That is:"Reset high speed
USB
device using ehci_hcd and address x" in loop message. (Looks like its an
old bug while googling.)

I've tried to unload ehci_hcd and load uhci_hcd module instead in attempt
to resolve the problem. Unfortunatelly this not only caused me loosing my
mouse but appeared to be useless, since the unloaded ehci_hcd module was
fired by OS again automatically, and here we go - same vicious circle.

So, I gave up on it, and then, just out of curiosity, connected the damn
thing to my laptop with Ubuntu Lucid. To my huge surprise Lucid did not
have any problem with it, and right now I'm running shred on the device
writing it with 0's.

How do they manage it, and why it is (still ?) a problem on Debian?

reset high speed USB device using ehci_hcd and address x in sque

William Hopkins's picture

On 05/30/11 at 02:09am, Juan R. de Silva wrote:
> I have a NexStar multi interface to USB adapter which I wanted to use to
> connect my old IDE HDD to wipe it out before giving it away. While trying
> to use it I hit the problem in subject line. That is:"Reset high speed
> USB
> device using ehci_hcd and address x" in loop message. (Looks like its an
> old bug while googling.)

Did you try the fix google returns? `echo 64 > /sys/block/{device}/device/max_sectors`
Is your device USB-powered or does it have a power supply?

> I've tried to unload ehci_hcd and load uhci_hcd module instead in attempt
> to resolve the problem. Unfortunatelly this not only caused me loosing my
> mouse but appeared to be useless, since the unloaded ehci_hcd module was
> fired by OS again automatically, and here we go - same vicious circle.

You should not remove ehci_hcd as it is required for USB 2.0 operation. Even if you truly knew what you were doing (and what chipset you have as far as OHCI vs UHCI is concerned), you would need to blacklist the ehci driver, as it is registered for your hardware and the kernel will always attempt to insert it.

> So, I gave up on it, and then, just out of curiosity, connected the damn
> thing to my laptop with Ubuntu Lucid. To my huge surprise Lucid did not
> have any problem with it, and right now I'm running shred on the device
> writing it with 0's.
>
> How do they manage it, and why it is (still ?) a problem on Debian?

What is fixed in one distribution may be broken in another, and vice versa. But over time they will ultimately converge.
If you can find the bugfix in Ubuntu it will help either fix it in Debian or discover why it hasn't yet applied to stable.

reset high speed USB device using ehci_hcd and address x in sque

Juan R. de Silva's picture

On Mon, 30 May 2011 02:11:34 -0400, William Hopkins wrote:

> On 05/30/11 at 02:09am, Juan R. de Silva wrote:
>> I have a NexStar multi interface to USB adapter which I wanted to use
>> to connect my old IDE HDD to wipe it out before giving it away. While
>> trying to use it I hit the problem in subject line. That is:"Reset high
>> speed USB
>> device using ehci_hcd and address x" in loop message. (Looks like its
>> an old bug while googling.)
>
> Did you try the fix google returns? `echo 64 >
> /sys/block/{device}/device/max_sectors`

Well, this required the device being present in the system. Since the
device as soon as attached get reset forever, `cat /sys/block/{device}/
device/max_sectors` returned:"No such file or directory". So, I couldn't
do it.

> Is your device USB-powered or does it have a power supply?

Yes the device has a power supply.

> You should not remove ehci_hcd as it is required for USB 2.0 operation.
> Even if you truly knew what you were doing (and what chipset you have as
> far as OHCI vs UHCI is concerned), you would need to blacklist the ehci
> driver, as it is registered for your hardware and the kernel will always
> attempt to insert it.

Right, I forgotten to blacklist ehci driver.

> What is fixed in one distribution may be broken in another, and vice
> versa. But over time they will ultimately converge. If you can find the
> bugfix in Ubuntu it will help either fix it in Debian or discover why it
> hasn't yet applied to stable.

I'll try to locate it. So far as I can see from lsmod output Lucid does
not even list neither ehci nor uhci modules.

reset high speed USB device using ehci_hcd and address x in sque

Hans-J. Ullrich's picture

> Maybe a different kernel version makes the difference here, not Debian.
>
> Greetings,

Hello,

same pobem here. I managed to solve that problem for me, by installing an
older kernel from backports.org. Use a kernel with version 2.6.32-2-amd64 or
former. Every later kernel got this problem, also from experimental. I got a
patch sent by someone, tested it, but it failed.

I reported the failure of the test, too, but since then no one seemed to care
any more.

I already filed a bugreport, were I told this (sorry, got the number not
available at the moment). Additionally I tried the kernels from experimental,
too - with no success.

This is not a denbian specific problem, as also other systems got this (for
example Backtrack5, which is based on 2.6.38).

As I have only 32-bit systems and a very old 32-bit system (an A78 mainboard
with a Nvidia GF 5700 ultra), this problem appeared only on my 64-bit notebook
(I have a Acer Aspire 7520G).

Hope, I could help little bit.

Best regards

Hans

reset high speed USB device using ehci_hcd and address x in sque

Juan R. de Silva's picture

On Mon, 30 May 2011 02:11:34 -0400, William Hopkins wrote:

> If you can find the
> bugfix in Ubuntu it will help either fix it in Debian or discover why it
> hasn't yet applied to stable.

BTW, I wanted to report a bug in Squeeze but which package do I report it
against? I have not idea. I've tried ehci_hcd in reportbug and get
"invalid package name" in response.

Could you suggest, please?

reset high speed USB device using ehci_hcd and address x in sque

William Hopkins's picture

On 05/30/11 at 08:18pm, Juan R. de Silva wrote:
> On Mon, 30 May 2011 02:11:34 -0400, William Hopkins wrote:
>
> > If you can find the
> > bugfix in Ubuntu it will help either fix it in Debian or discover why it
> > hasn't yet applied to stable.
>
> BTW, I wanted to report a bug in Squeeze but which package do I report it
> against? I have not idea. I've tried ehci_hcd in reportbug and get
> "invalid package name" in response.
>
> Could you suggest, please?

ehci_hcd is the kernel module responsible for USB2.0 virtual drivers. It is provided by the kernel, not a package.

reset high speed USB device using ehci_hcd and address x in sque

Camaleón's picture

On Mon, 30 May 2011 02:09:04 +0000, Juan R. de Silva wrote:

> I have a NexStar multi interface to USB adapter which I wanted to use to
> connect my old IDE HDD to wipe it out before giving it away. While
> trying to use it I hit the problem in subject line. That is:"Reset high
> speed USB
> device using ehci_hcd and address x" in loop message. (Looks like its an
> old bug while googling.)

Yep, it seems that many people (not only in Debian) have been bitten by
that Sad

> I've tried to unload ehci_hcd and load uhci_hcd module instead in
> attempt to resolve the problem. Unfortunatelly this not only caused me
> loosing my mouse but appeared to be useless, since the unloaded ehci_hcd
> module was fired by OS again automatically, and here we go - same
> vicious circle.

I'm afraid USB kernel modules are loaded on demand, so as soon as you
have plugged any USB device, the kernel (in join with that udev "thingy")
will try to load the module again.

> So, I gave up on it, and then, just out of curiosity, connected the damn
> thing to my laptop with Ubuntu Lucid. To my huge surprise Lucid did not
> have any problem with it, and right now I'm running shred on the device
> writing it with 0's.
>
> How do they manage it, and why it is (still ?) a problem on Debian?

Maybe a different kernel version makes the difference here, not Debian.

Greetings,

reset high speed USB device using ehci_hcd and address x in sque

Juan R. de Silva's picture

On Mon, 30 May 2011 14:36:02 +0000, Camaleón wrote:

> On Mon, 30 May 2011 02:09:04 +0000, Juan R. de Silva wrote:
>
>> I have a NexStar multi interface to USB adapter which I wanted to use
>> to connect my old IDE HDD to wipe it out before giving it away. While
>> trying to use it I hit the problem in subject line. That is:"Reset high
>> speed USB
>> device using ehci_hcd and address x" in loop message. (Looks like its
>> an old bug while googling.)
>
> Yep, it seems that many people (not only in Debian) have been bitten by
> that Sad
>
>> I've tried to unload ehci_hcd and load uhci_hcd module instead in
>> attempt to resolve the problem. Unfortunatelly this not only caused me
>> loosing my mouse but appeared to be useless, since the unloaded
>> ehci_hcd module was fired by OS again automatically, and here we go -
>> same vicious circle.
>
> I'm afraid USB kernel modules are loaded on demand, so as soon as you
> have plugged any USB device, the kernel (in join with that udev
> "thingy") will try to load the module again.
>
>> So, I gave up on it, and then, just out of curiosity, connected the
>> damn thing to my laptop with Ubuntu Lucid. To my huge surprise Lucid
>> did not have any problem with it, and right now I'm running shred on
>> the device writing it with 0's.
>>
>> How do they manage it, and why it is (still ?) a problem on Debian?
>
> Maybe a different kernel version makes the difference here, not Debian.
>

At least I was able to blank my old IDE's in Lucid. It's good to have
more than one PC with different OS's on them. Smile