Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311329 - sys-kernel/gentoo-sources >=2.6.32: driver rt2500usb slow and unstable
Summary: sys-kernel/gentoo-sources >=2.6.32: driver rt2500usb slow and unstable
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 18:17 UTC by Paulo da Silva
Modified: 2011-10-30 23:17 UTC (History)
1 user (show)

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


Attachments
emerge --info (einfo,4.14 KB, text/plain)
2010-03-25 18:19 UTC, Paulo da Silva
Details
.config (G_config,66.57 KB, text/plain)
2010-03-26 16:49 UTC, Paulo da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo da Silva 2010-03-25 18:17:13 UTC
Driver wireless rt2500usb
Strange behaviour in special when accessing via ssh:
1. Typing a few characters of a command only displays (echoes) part of then, generally only the first, a wait of more than 5 secs and then another part echoes eventually executing the command. The output of the command seems to come fast and at once but not always.
2. The connection breaks from time to time (I only saw this on 2.6.32 so far).


Reproducible: Always

Steps to Reproduce:
1. Trying to execute a command via ssh from another computer





I didn't observe any problem in kernels before 2.6.32.
I just left k 2.6.31-r10 because of bug #307671.
Comment 1 Paulo da Silva 2010-03-25 18:19:10 UTC
Created attachment 225235 [details]
emerge --info
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2010-03-26 06:24:18 UTC
Please attach your kernel .config
Comment 3 Paulo da Silva 2010-03-26 16:49:33 UTC
Created attachment 225347 [details]
.config
Comment 4 Paulo da Silva 2010-03-26 16:54:16 UTC
...
> 2. The connection breaks from time to time (I only saw this on 2.6.32 so far).

I could already see several breaks also on 2.6.33.
The "intensity" of problem depends a lot on the load (emerging, for ex.) of the computer but also occurs when nothing is running.
Comment 5 Paulo da Silva 2010-03-28 22:21:24 UTC
Additional info:

When typing let's say a 5 chars command and only the 1st char is displayed, the led of the router, that indicates wireless traffic, blinks a lot as when transferring data, in general for more than 5 seconds. Then either the rest of chars are displayed and the command executed or the connection breaks.
This also disturbs the rest of PCs using the router.
Comment 6 Paulo da Silva 2010-03-30 18:18:01 UTC
(In reply to comment #5)
> Additional info:
> 
> When typing let's say a 5 chars command and only the 1st char is displayed, the
> led of the router, that indicates wireless traffic, blinks a lot as when
> transferring data, in general for more than 5 seconds. Then either the rest of
> chars are displayed and the command executed or the connection breaks.
> This also disturbs the rest of PCs using the router.
> 
This does not always happen.
I could verify a high rate of broken connections, even when not using ssh.
In general rt2x00 drivers (at least 2500usb) seem to be broken on kernel 2.6.32 and 2.6.33.
Comment 7 Mike Pagano gentoo-dev 2010-03-30 21:59:36 UTC
anything in dmesg during problem times?
Comment 8 Paulo da Silva 2010-03-30 22:20:38 UTC
(In reply to comment #7)
> anything in dmesg during problem times?
> 
No.
Anyway the problem seems to be being fixed upstream.
I saw this in the rt2x00 mailing list

"This seems to be due to powersaving issues in the driver, which got enabled by default after 2.6.31.
We are working on this, and patches for this should be going upstream soon.

In the meantime you can use the workaround to disable powersaving by executing:
iwconfig wlan0 power off
at any time.

This should make your connection more stable.
"
Comment 9 Mike Pagano gentoo-dev 2010-04-25 12:08:41 UTC
Does the workaround work for you?
Comment 10 Paulo da Silva 2010-04-25 15:31:03 UTC
(In reply to comment #9)
> Does the workaround work for you?
> 

Yes. I inserted it in my wireless script and it works now.
Comment 11 Mike Pagano gentoo-dev 2010-04-25 18:07:06 UTC
Ok, great, I'll close as upstream for now and we can reopen if there's ever a backport fix from the developers.
Comment 12 Porcupine of the Moon 2010-04-26 12:43:25 UTC
I would like to add that this workaround does not work for everybody.
This problem concerns both rt2500usb and rt2500pci (see rt2x00 mailing list). I myself am using rt2500pci and switching power management off does not improve the situation. I've got the impression that with power management on it works better.
I even tried the patch being discussed in the rt2x00 mailing list. Unfortunately it didn't work either.

Does it work for you to set the card manually in awake (state 3) with "iwconfig wlan0 power saving 3"?
Everytime I try this the following error occurs:

Error for wireless request "Set Power Management" (8B2C) :
    invalid argument "3".

Is there another possibility to set the state of the card? Tried to edit the file /sys/devices/pci0000:00/0000:00:0e.0/0000:02:06.0/net/wlan0/dormant . But it didn't work.