RT73 in Hardy Beta

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4702

markus.haider

28-03-2008 18:03:16

I'm using Ubuntu 8.04 Beta AMD64 (Kernel 2.6.24-12) and have a Linksys WUSB54GC which is rt73 based.

When starting up it works fine, but after some time, I get disconnected, and dmesg gives me a lot of lines like
[ 7128.966297] phy0 -> rt2x00usb_write_tx_data Error - Arrived at non-free entry in the non-full queue 2.
[ 7128.966301] Please file bug report to http//rt2x00.serialmonkey.com.
[ 7128.980278] phy0 -> rt2x00usb_write_tx_data Error - Arrived at non-free entry in the non-full queue 2.
[ 7128.980281] Please file bug report to http//rt2x00.serialmonkey.com.

after rebooting, it works again.

IvD

28-03-2008 18:37:41

As discussed on the forum (use the search button on this forum), bugzilla and mailinglists
This issue has been resolved in rt2x00 2.1.0
Current rt2x00 version is 2.1.4

AdamBaker

28-03-2008 21:34:34

There's going to be a lot of people using 8.04 for a long time though (it is Ubuntu's long term support release) so it would be good to see if it is possible to apply Mattias's Allow rt61 to catch up after a missing tx report patch to their kernel.

Does the OP know how to patch and rebuild an ubuntu kernel? If so it would be appreciated if you would see if http//kerneltrap.org/mailarchive/git-c ... /13/564368
fixes the problem.

It is also worth flagging that this occurs with an RT73 - I believe all previous reports have been for RT61 and certainly I saw it frequently on RT61 and never saw it on RT73.

IvD

28-03-2008 21:51:44

I have seen the report for 2500pci more often then for rt2500usb and rt73usb...

IvD

28-03-2008 22:12:56

Additionally I have to add is that the bug for non-rt61pci is caused by the queue indexing race conditions. It cannot be as easily solved as rt61pci because it could end up completely breaking the entire queue indexing that could end in panics because of invalid queue access.

markus.haider

28-03-2008 22:23:23

Does the OP know how to patch and rebuild an ubuntu kernel?[/quote26hyejkm]

Unfortunatly no, I just switched to Linux. I would need some instructions...

Will the new driver be included in the final Hardy version, so that this problem is fixed?

AdamBaker

28-03-2008 23:24:43

No, the fix is unlikely to make it into the release version of Hardy. If it had just been the simple fix that Ivo says only addresses the rt61 problem that was needed it might have been possible to push for that to get in. The full fix with reworked queue handling requires substantial changes elsewhere so won't see an official release until kernel version 2.6.26.

Your best bet for now is probably to try the legacy driver and I might have a go at downloading Hardy and see if this is a generic problem with RT73 and the ubuntu kernel or if it is specific to your combination of hardware.

The instructions for building the legacy driver at section 4 of
https//help.ubuntu.com/community/WifiD ... RalinkRT73
should be reasonably straightforward to follow except I'd recommend getting the enhanced version from http//rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz rather than getting it from ralink.

AdamBaker

02-04-2008 20:45:31

Well I tried running hardy from the Kubuntu KDE4 x86 beta CD last night and rt73 worked out of the box and kept working while I spent quite a while doing performance tests on it (results weren't bad, peaked at 19 Mb/s).

That points to the sort of subtle hardware dependent problem that there isn't much chance of fixing without the complete rewrite of the queue handling that's going in 2.6.26

Unfortunately building custom kernels for Ubuntu (or Debian) isn't trivial - to do it properly you either need to build and install an initrd as well or you need to modify the kernel config to include the components needed to boot your system (sata or ide, ext3 or reiserfs usually) in the kernel instead of as modules. I normally use the distro .config as a starting point and then makeoldconfig to just change any config options introduced since then.

There are instructions on how to do a build "The Debian Way" in section 4.3 of http//kernel-handbook.alioth.debian.or ... tasks.html. As ubuntu is derived from Debian you should be able to substitute Ubuntu in that.

alex-it

09-04-2008 15:48:12

I report my test with d-link dwl-g122 and Hardy beta.

Driver in stock with 2.6.24 kernel are at version 2.0.10.
It works out-of-the-box, I can connect to router but it's very slowly.

I tried to update driver to last revision with "compat-wireless" package (http//linuxwireless.org/en/users/Download) which update stack and ralink modules to version 2.1.14.
This versioni DIDN'T work at all, and hung the system.

The only recent stable and fast version of the rt73usb driver I've found is 2.0.14, that works fine in gutsy and hardy.

Hope it helps...

chrisV

09-04-2008 19:39:06

I tried to update driver to last revision with "compat-wireless" package (http//linuxwireless.org/en/users/Download) which update stack and ralink modules to version 2.1.14.
This versioni DIDN'T work at all, and hung the system.
[/quote2oq729ry]

It doesn't hang the system but it does get it into a busy loop. The patch "Use lib->config_filter() during scheduled packet filter config" has been slow in getting into compat-wireless, but if you download the one from today (or if not, tomorrow, I am not sure when they come out) you should be OK. Looking at git, the patch got in last night. You can also get the patch directly from git, if you want.

Chris

alex-it

10-04-2008 13:59:10


It doesn't hang the system but it does get it into a busy loop. The patch "Use lib->config_filter() during scheduled packet filter config" has been slow in getting into compat-wireless, but if you download the one from today (or if not, tomorrow, I am not sure when they come out) you should be OK. Looking at git, the patch got in last night. You can also get the patch directly from git, if you want.

Chris[/quotepxb9s7n3]Thank you for the reply!
I'm waiting for the updated compat-wireless package, then wink

alex-it

18-04-2008 10:02:25

Last compat-wireless update made my rt73 chip working great wink

Another thing I want to say in Hardy there is a package with backported modules, which updated rt2x00 modules with full working ones.

Simply install

sudo apt-get install [bouk4i2sp]linux-backports-modules-hardy[/bouk4i2sp]

Bye, and thank you for your great work, guys! D

markus.haider

18-04-2008 22:51:38

I've installed the backports, but that didn't resolve the queue issue for me. Or has this nothing to do with the backports? Are there any other updates necessary?

I think I made an error, when installing the backports

markus.haider

28-04-2008 20:04:31

Now Hardy final version is out. After installing the backports, the issue with the queue error is resolved, and my wlan works perfect now. Thank you guys, for the great work.