Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49600 - USB devices causes sytem to freeze when used with OHCI and EHCI modules
Summary: USB devices causes sytem to freeze when used with OHCI and EHCI modules
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 49599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-01 08:18 UTC by Andrew Yates
Modified: 2004-05-07 13:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
RedHat patches that fixed the problem. (redhat-usb-patches.tar.bz2,13.11 KB, patch)
2004-05-01 08:19 UTC, Andrew Yates
Details | Diff
one of the patches (linux-2.4.18-usb-bug56856.patch,2.17 KB, patch)
2004-05-01 08:43 UTC, Andrew Yates
Details | Diff
another patch (linux-2.4.20-usb-bug82546.patch,635 bytes, patch)
2004-05-01 08:44 UTC, Andrew Yates
Details | Diff
3rd patch (linux-2.4.22-usb-storage-deadlock.patch,390 bytes, patch)
2004-05-01 08:44 UTC, Andrew Yates
Details | Diff
4th patch (linux-2.4.23-usb-bug-107929.patch,1.35 KB, patch)
2004-05-01 08:45 UTC, Andrew Yates
Details | Diff
5th patch (linux-2.4.23-usb-bug-110307.patch,17.48 KB, patch)
2004-05-01 08:45 UTC, Andrew Yates
Details | Diff
6th patch (linux-2.4.23-usb-bug-110872.patch,5.26 KB, patch)
2004-05-01 08:46 UTC, Andrew Yates
Details | Diff
7th patch (linux-2.4.23-usb-bug-90442.patch,7.91 KB, patch)
2004-05-01 08:46 UTC, Andrew Yates
Details | Diff
8th and final patch (linux-2.4.23-usb-bug-storage240.patch,539 bytes, patch)
2004-05-01 08:47 UTC, Andrew Yates
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Yates 2004-05-01 08:18:32 UTC
My motherboard is a Biostar M75NCD Pro, with USB 2.0 ports. The only usb drivers that will work with those ports are the usb-ohci and ehci-hcd modules. When I plug in a Linksys WUSB11 v2.6 wireless adapter, the system totally freezes (keyboard, mouse don't respond, doesn't respond to pings). This did not occur in Fedora Core 1.

I know why it works in Fedora but not in Gentoo; some of RedHat's kernel patches fix the problem. After applying the patches to the latest gentoo-sources, plugging the device in no longer causes the system to freeze. The RedHat patches I applied are attached. It said that a few of the patches were already applied and asked me what I wanted to do, I hit enter to all the questions asked during the patch process.

I'm requesting that any of those patches that are not already distributed in gentoo-sources be considered for inclusion. 

Reproducible: Always
Steps to Reproduce:
1. Load usb-ohci and ehci-hcd modules.
2. Load 3rd party modules for device (http://at76c503a.berlios.de)
3. Plug in the device, system will freeze.
Comment 1 Andrew Yates 2004-05-01 08:19:15 UTC
Created attachment 30449 [details, diff]
RedHat patches that fixed the problem.

These are the RedHat patches that fix the problem. Please consider them for
inclusion in the gentoo-sources kernel.
Comment 2 Bryan Østergaard (RETIRED) gentoo-dev 2004-05-01 08:21:38 UTC
*** Bug 49599 has been marked as a duplicate of this bug. ***
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-01 08:33:17 UTC
Please do not attach binary blobs here.  Can you attach the text version of the patch?
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-01 08:35:20 UTC
What kernel version are you having problems with here?

Also, you included a module from a third party, please contact them about problems (and ask them to submit the driver for inclusion in the main kernel tree so that we can support it and you will not have to add it to the machine on your own.)
Comment 5 Andrew Yates 2004-05-01 08:42:26 UTC
Already contacted the providers of the driver, it seems to be a rare problem, and they don't want to include the drivers in the kernel.
I'll attach the patches in text format.
Comment 6 Andrew Yates 2004-05-01 08:43:56 UTC
Created attachment 30450 [details, diff]
one of the patches

don't know which of these patches are already included. submitting all of them.
Comment 7 Andrew Yates 2004-05-01 08:44:37 UTC
Created attachment 30451 [details, diff]
another patch
Comment 8 Andrew Yates 2004-05-01 08:44:58 UTC
Created attachment 30452 [details, diff]
3rd patch
Comment 9 Andrew Yates 2004-05-01 08:45:30 UTC
Created attachment 30453 [details, diff]
4th patch
Comment 10 Andrew Yates 2004-05-01 08:45:57 UTC
Created attachment 30454 [details, diff]
5th patch
Comment 11 Andrew Yates 2004-05-01 08:46:28 UTC
Created attachment 30455 [details, diff]
6th patch
Comment 12 Andrew Yates 2004-05-01 08:46:56 UTC
Created attachment 30456 [details, diff]
7th patch
Comment 13 Andrew Yates 2004-05-01 08:47:37 UTC
Created attachment 30457 [details, diff]
8th and final patch
Comment 14 Andrew Yates 2004-05-01 08:48:04 UTC
I added all 8 patches. Some are already included in gentoo-sources, don't know which. I reccommend including the other ones.
Comment 15 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-01 08:58:53 UTC
Comment on attachment 30450 [details, diff]
one of the patches

has nothing to do with this issue
Comment 16 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-01 09:03:19 UTC
None of these patches would help (they are all usb-serial, usblp, or usb-storage specific).

Again, which kernel version are you using?

And if the author of the driver doesn't want it included in the main kernel trees,
then you are going to have to work with them, we can't help out much at all, sorry.
Comment 17 Andrew Yates 2004-05-01 11:40:09 UTC
are you positive they wouldn't help?
I'm using latest gentoo-sources. 2.4.25-r2.
I'll work with the driver's author, I guess. Thanks for your help.
Comment 18 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-05-01 15:42:28 UTC
Yeah, I'm sure.  I think I know the linux usb code pretty well :)

Please work with the driver author, that's the only way to work on fixing this.
Comment 19 virpiH 2004-05-07 12:46:18 UTC
Hi! Just to let you know, I think I have a similar problem. I have tested versions 2.4.25-r1 and 2.4.25-r2 of gentoo-sources as well as vanilla-sources 2.4.26. I have tried versions 0.10 and 0.11 of the berlios driver for Atmel AT76C503A based USB WLAN adapters. My motherboard is Abit NF7-S ver. 2.0 (nForce 2).

My system doesn't usually freeze when I plug in a TekComm USB WLAN adapter (fccid: IIO-0232USB611, vid: 0x1371, pid: 0x0002). Only the network "freezes" after a while (from seconds to tens of minutes). Unplugging the USB device, trying to restart (or stop) the interface or shutting down the computer after the freeze will cause a kernel panic (This msg with ver. 0.10. Hopefully correctly hand-copied):

kernel BUG at usb-ohci.h: 464!
invalid operand: 0000
CPU:0
EIP: 0010 [<e090c7d1>] Not tainted
EFLAGS: 00010046
eax: 00000000 ebx: df64b000 ecx: df64b000 edx: f000e2c0
esi: e0910000 edi: df64b000 ebp: 00000004 esp: c0149f04
ds: 0018 es: 0018 ss: 0018
Process swapper (pid:0, stackpage=c0149000)
Stack: 
c3dcb3c0 02100000 c3dcb3c0 d7719800 c3cd1000 00000000 00000000 c0148000
df6487f0 00000282 df64b000 e0910000 00000001 00000004 e090d658 df64b000
00000000 c3dab8c0 04000001 c0149fa0 00000014 c01a4c25 00000014 df64b000
CallTrace: 
[<e090d658>][<c01a4c25>][<c01a1683>][<c01a4e6f>]
[<c01a74e3>][<c01a1660>][<c01a1683>][<c01a16f2>]
Code of 0b d0 01 85 e3 90 e0 e9 81 fc ff ff 0f 0b d0 01 85 e3 90

The last line dmesg shows is 
at76c503.c: wlan0: lost beacon bssid 02:00:57:08:8d:d9

Since last week, I used the berlios driver (ver. 0.10) without any problems under Debian Woody. It worked fine with kernel versions 2.4.25 and 2.4.26 (both downloaded directly from www.kernel.org). 

I will send this information also to the author of driver. But, if there is something that I could check, please, let me know what (and how :) Thanks. 

Comment 20 Andrew Yates 2004-05-07 13:25:13 UTC
Try applying the RedHat patches I attached to the kernel. I doubt it will work, bu t it's worth a try.
Or you can try the latest Gentoo 2.6 kernel, I'm running that with no patches, and my internet runs fine.