All of lore.kernel.org
 help / color / mirror / Atom feed
* Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
@ 2011-02-01  9:26 Eric Fernandez
  2011-02-01 11:47 ` Johannes Stezenbach
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Fernandez @ 2011-02-01  9:26 UTC (permalink / raw)
  To: linux-wireless

Hi,

I reported this issue for two Linux distribution (Arch and Mandriva)
after upgrading to kernel 2.6.37 and is rather critical for users of
RT2573 Ralink USB Wireless adapters. This leads to complete system
crash, which is solved either by using a wired ethernet connection, or
by downgrading the kernel to 2.6.36 version. This happens in
particular when watching a streaming video (e.g. Youtube). I do not
see any entry in the log files. The sound goes to a loop, system is
completely blocked and only a hard reset will allow rebooting.

I feel this issue has been reported for other distributions too:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/673682
and this may be related:
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2011-January/002935.html

I tried to use the compat-wireless drivers (2011-01-30), which were
compiled correctly, but rt2x00 module loading segfaults when inserting
the USB adapter.

What can I do to help squashing this issue?

Many thanks in advance.
Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-01  9:26 Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37 Eric Fernandez
@ 2011-02-01 11:47 ` Johannes Stezenbach
  2011-02-01 12:29   ` Eric Fernandez
  2011-02-01 20:31   ` Eric Fernandez
  0 siblings, 2 replies; 10+ messages in thread
From: Johannes Stezenbach @ 2011-02-01 11:47 UTC (permalink / raw)
  To: Eric Fernandez; +Cc: linux-wireless

Hi,

On Tue, Feb 01, 2011 at 09:26:25AM +0000, Eric Fernandez wrote:
> I reported this issue for two Linux distribution (Arch and Mandriva)
> after upgrading to kernel 2.6.37 and is rather critical for users of
> RT2573 Ralink USB Wireless adapters. This leads to complete system
> crash, which is solved either by using a wired ethernet connection, or
> by downgrading the kernel to 2.6.36 version. This happens in
> particular when watching a streaming video (e.g. Youtube). I do not
> see any entry in the log files. The sound goes to a loop, system is
> completely blocked and only a hard reset will allow rebooting.
> 
> I feel this issue has been reported for other distributions too:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/673682
> and this may be related:
> http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2011-January/002935.html
> 
> I tried to use the compat-wireless drivers (2011-01-30), which were
> compiled correctly, but rt2x00 module loading segfaults when inserting
> the USB adapter.
> 
> What can I do to help squashing this issue?

I have no immediate idea about the cause of the crash, but
did you make sure you unloaded _all_ wireless modules
before plugging in the USB adapter after installing
compat-wireless?  "make unload" or a reboot should do the trick.

If it still crashes, can you check dmesg for the crash messages?


Thanks,
Johannes

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-01 11:47 ` Johannes Stezenbach
@ 2011-02-01 12:29   ` Eric Fernandez
  2011-02-01 20:31   ` Eric Fernandez
  1 sibling, 0 replies; 10+ messages in thread
From: Eric Fernandez @ 2011-02-01 12:29 UTC (permalink / raw)
  To: Johannes Stezenbach; +Cc: linux-wireless

2011/2/1 Johannes Stezenbach <js@sig21.net>:

> I have no immediate idea about the cause of the crash, but
> did you make sure you unloaded _all_ wireless modules
> before plugging in the USB adapter after installing
> compat-wireless?  "make unload" or a reboot should do the trick.
>
> If it still crashes, can you check dmesg for the crash messages?
>
>
> Thanks,
> Johannes
>

Hi Johannes,

This happend on reboot, yes. I rebooted without the adapter plugged
in, then I left udev load the modules upon plugging the USB adapter.
I'll send you the error message in a few hours when I am back home.
Note that when the system freezes (the original bug, with the modules
from kernel 2.6.37), I get no log messages whatsoever.

Thanks,
Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-01 11:47 ` Johannes Stezenbach
  2011-02-01 12:29   ` Eric Fernandez
@ 2011-02-01 20:31   ` Eric Fernandez
  2011-02-01 21:09     ` Johannes Stezenbach
  1 sibling, 1 reply; 10+ messages in thread
From: Eric Fernandez @ 2011-02-01 20:31 UTC (permalink / raw)
  To: Johannes Stezenbach; +Cc: linux-wireless

2011/2/1 Johannes Stezenbach <js@sig21.net>:


>
> If it still crashes, can you check dmesg for the crash messages?
>
>
> Thanks,
> Johannes
>

Hi,

this is what I get in /var/log/messages after I plug in the adapter:

Feb  1 20:22:39 localhost kernel: usb 2-2: new high speed USB device
using ehci_hcd and address 3
Feb  1 20:22:39 localhost kernel: cfg80211: Calling CRDA to update
world regulatory domain
Feb  1 20:22:39 localhost kernel: usbcore: registered new interface
driver rt2500usb
Feb  1 20:22:39 localhost kernel: PGD 154c063 PUD 1fffc067 PMD 80000000c94001e3
Feb  1 20:22:39 localhost kernel: CPU 1
Feb  1 20:22:39 localhost kernel: Modules linked in: rt73usb(+)
rt2500usb rt2x00usb rt2x00lib mac80211 cfg80211 rfkill ipv6 it87
adt7475 hwmon_vid ext3 jbd nls_cp437 vfat fat joydev usbhid hid
nvidia(P) uvcvideo videodev v4l1_compat v4l2_compat_ioctl32
snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_dummy snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device r8169 mii firewire_ohci
firewire_core crc_itu_t uhci_hcd ehci_hcd usbcore
snd_hda_codec_realtek shpchp pci_hotplug snd_hda_intel snd_hda_codec
snd_hwdep snd_pcm pcspkr snd_timer snd soundcore snd_page_alloc sg
evdev processor button i2c_i801 i2c_core iTCO_wdt iTCO_vendor_support
serio_raw ext4 mbcache jbd2 crc16 sr_mod cdrom pata_jmicron pata_acpi
sd_mod ahci libahci libata scsi_mod
Feb  1 20:22:39 localhost kernel:
Feb  1 20:22:39 localhost kernel: Pid: 7507, comm: modprobe Tainted: P
           2.6.37-ARCH #1 P55M-UD2/P55M-UD2
Feb  1 20:22:39 localhost kernel: RIP: 0010:[<ffff8800c94bcc28>]
[<ffff8800c94bcc28>] 0xffff8800c94bcc28
Feb  1 20:22:39 localhost kernel: RSP: 0018:ffff8800b6a19b20  EFLAGS: 00010286
Feb  1 20:22:39 localhost kernel: RAX: ffff8800c94bcc28 RBX:
ffff8800c1bd81a8 RCX: 0000000000000000
Feb  1 20:22:39 localhost kernel: RDX: 0000000000000000 RSI:
ffff8800c1bd81a8 RDI: ffff8800c1bd81a8
Feb  1 20:22:39 localhost kernel: RBP: ffff8800b6a19b38 R08:
0000000000000001 R09: 0000000000000000
Feb  1 20:22:39 localhost kernel: R10: 0000000000000000 R11:
0000000000000000 R12: ffff8800c94b9c30
Feb  1 20:22:39 localhost kernel: R13: ffff8800bbaf0240 R14:
ffff8800c979e2c8 R15: 0000000000000000
Feb  1 20:22:39 localhost kernel: FS:  00007f2e5b3c7700(0000)
GS:ffff8800df440000(0000) knlGS:0000000000000000
Feb  1 20:22:39 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
000000008005003b
Feb  1 20:22:39 localhost kernel: CR2: ffff8800c94bcc28 CR3:
00000000b6be9000 CR4: 00000000000006e0
Feb  1 20:22:39 localhost kernel: DR0: 0000000000000000 DR1:
0000000000000000 DR2: 0000000000000000
Feb  1 20:22:39 localhost kernel: DR3: 0000000000000000 DR6:
00000000ffff0ff0 DR7: 0000000000000400
Feb  1 20:22:39 localhost kernel: Process modprobe (pid: 7507,
threadinfo ffff8800b6a18000, task ffff880117cc29a0)
Feb  1 20:22:39 localhost kernel: ffffffff8138de74 ffff8800c94b9c30
ffff8800c1bd81a8 ffff8800b6a19b58
Feb  1 20:22:39 localhost kernel: ffffffff8138dfa2 ffff8800c979e080
ffff8800c979e090 ffff8800b6a19bd8
Feb  1 20:22:39 localhost kernel: ffffffff812ae58a ffff880000000007
0000000000000000 ffffffffa0085ea0
Feb  1 20:22:39 localhost kernel: [<ffffffff8138de74>] ?
klist_node_init+0x44/0x70
Feb  1 20:22:39 localhost kernel: [<ffffffff8138dfa2>] klist_add_tail+0x22/0x60
Feb  1 20:22:39 localhost kernel: [<ffffffff812ae58a>] device_add+0x4fa/0x5c0
Feb  1 20:22:39 localhost kernel: [<ffffffffa00846af>]
rfkill_register+0x9f/0x270 [rfkill]
Feb  1 20:22:39 localhost kernel: [<ffffffffa0cdf096>]
wiphy_register+0x246/0x340 [cfg80211]
Feb  1 20:22:39 localhost kernel: [<ffffffff81127e2b>] ? __kmalloc+0x19b/0x280
Feb  1 20:22:39 localhost kernel: [<ffffffffa0d032e7>]
ieee80211_register_hw+0x167/0x520 [mac80211]
Feb  1 20:22:39 localhost kernel: [<ffffffffa0d43e40>]
rt2x00lib_probe_dev+0x2e0/0x4c0 [rt2x00lib]
Feb  1 20:22:39 localhost kernel: [<ffffffffa01502ad>]
rt2x00usb_probe+0x14d/0x310 [rt2x00usb]
Feb  1 20:22:39 localhost kernel: [<ffffffffa02ce359>]
usb_probe_interface+0x109/0x200 [usbcore]
Feb  1 20:22:39 localhost kernel: [<ffffffff812b11e6>]
driver_probe_device+0x96/0x1c0
Feb  1 20:22:39 localhost kernel: [<ffffffff812b13ab>] __driver_attach+0x9b/0xa0
Feb  1 20:22:39 localhost kernel: [<ffffffff812b1310>] ?
__driver_attach+0x0/0xa0
Feb  1 20:22:39 localhost kernel: [<ffffffff812b012e>]
bus_for_each_dev+0x5e/0x90
Feb  1 20:22:39 localhost kernel: [<ffffffff812b0e89>] driver_attach+0x19/0x20
Feb  1 20:22:39 localhost kernel: [<ffffffff812b0a18>]
bus_add_driver+0x158/0x300
Feb  1 20:22:39 localhost kernel: [<ffffffff812b1621>]
driver_register+0x71/0x140
Feb  1 20:22:39 localhost kernel: [<ffffffff8107d50d>] ?
notifier_call_chain+0x4d/0x70
Feb  1 20:22:39 localhost kernel: [<ffffffffa02cd078>]
usb_register_driver+0xb8/0x170 [usbcore]
Feb  1 20:22:39 localhost kernel: [<ffffffffa01c8000>] ?
rt73usb_init+0x0/0x20 [rt73usb]
Feb  1 20:22:39 localhost kernel: [<ffffffffa01c801e>]
rt73usb_init+0x1e/0x20 [rt73usb]
Feb  1 20:22:39 localhost kernel: [<ffffffff8100212f>]
do_one_initcall+0x3f/0x180
Feb  1 20:22:39 localhost kernel: [<ffffffff81093ebb>]
sys_init_module+0xbb/0x200
Feb  1 20:22:39 localhost kernel: [<ffffffff8100bf12>]
system_call_fastpath+0x16/0x1b
Feb  1 20:22:39 localhost kernel: RSP <ffff8800b6a19b20>
Feb  1 20:22:39 localhost kernel: ---[ end trace 0d76df522e93fe83 ]---
Feb  1 20:23:10 localhost kernel: usb 2-2: USB disconnect, address 3
Feb  1 20:23:22 localhost kernel: CE: hpet6 increased min_delta_ns to 7500 nsec
Feb  1 20:23:22 localhost kernel: CE: hpet6 increased min_delta_ns to 11250 nsec

Hope this helps.
Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-01 20:31   ` Eric Fernandez
@ 2011-02-01 21:09     ` Johannes Stezenbach
  0 siblings, 0 replies; 10+ messages in thread
From: Johannes Stezenbach @ 2011-02-01 21:09 UTC (permalink / raw)
  To: Eric Fernandez; +Cc: linux-wireless

On Tue, Feb 01, 2011 at 08:31:33PM +0000, Eric Fernandez wrote:
> Feb  1 20:22:39 localhost kernel: PGD 154c063 PUD 1fffc067 PMD 80000000c94001e3
> Feb  1 20:22:39 localhost kernel: CPU 1
> Feb  1 20:22:39 localhost kernel: Modules linked in: rt73usb(+)
> rt2500usb rt2x00usb rt2x00lib mac80211 cfg80211 rfkill ipv6 it87
> adt7475 hwmon_vid ext3 jbd nls_cp437 vfat fat joydev usbhid hid
> nvidia(P) uvcvideo videodev v4l1_compat v4l2_compat_ioctl32
...
> Feb  1 20:22:39 localhost kernel: Pid: 7507, comm: modprobe Tainted: P

proprietary modules :-(

> Feb  1 20:22:39 localhost kernel: [<ffffffff812ae58a>] device_add+0x4fa/0x5c0
> Feb  1 20:22:39 localhost kernel: [<ffffffffa00846af>]
> rfkill_register+0x9f/0x270 [rfkill]
> Feb  1 20:22:39 localhost kernel: [<ffffffffa0cdf096>]
> wiphy_register+0x246/0x340 [cfg80211]
> Feb  1 20:22:39 localhost kernel: [<ffffffff81127e2b>] ? __kmalloc+0x19b/0x280
> Feb  1 20:22:39 localhost kernel: [<ffffffffa0d032e7>]
> ieee80211_register_hw+0x167/0x520 [mac80211]
> Feb  1 20:22:39 localhost kernel: [<ffffffffa0d43e40>]
> rt2x00lib_probe_dev+0x2e0/0x4c0 [rt2x00lib]
> Feb  1 20:22:39 localhost kernel: [<ffffffffa01502ad>]
> rt2x00usb_probe+0x14d/0x310 [rt2x00usb]

Can you double check rfkill module is from compat-wireless
and not from you kernel?
Or maybe compat-wireless is currently broken, try an older tarball.
It doesn't look at first glance like a rt2x00 specific issue.

BTW, output from dmesg also contains the actual crash
reason which is not in /var/log/messages due to your syslog config.


HTH,
Johannes

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-02 20:10 ` John W. Linville
@ 2011-02-03 14:41   ` Eric Fernandez
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Fernandez @ 2011-02-03 14:41 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless

2011/2/2 John W. Linville <linville@tuxdriver.com>:

>
> Can you use netconsole over the wired link to capture a backtrace
> when the lock-up occurs?
>
> John

Hi John,

Unfortunately I have not got another machine. I'll see what I can do.

Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-02 21:40 ` Johannes Stezenbach
@ 2011-02-02 22:54   ` Eric Fernandez
  0 siblings, 0 replies; 10+ messages in thread
From: Eric Fernandez @ 2011-02-02 22:54 UTC (permalink / raw)
  To: Johannes Stezenbach; +Cc: linux-wireless

2011/2/2 Johannes Stezenbach <js@sig21.net>:

> No solution yet, but I'd like to point you to the
> thread on the rt2x00-users list:
> http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2011-February/003109.html
>
> Johannes
>

What Leonardo is reporting might be the same manifestation of the same
issue. This crash does not happen with kernel 2.6.36, and with 2.6.37,
it happens quite rarely. However, I can increase the chances of it
happening by heavily browsing the Internet, and especially when
seekinbg in Youtube videos, leading to a lot of downloading.

Another post in this mailing list is this one:
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2011-January/002935.html
since it reports a crash issue specific to 2.6.37 that did not happen
in 2.6.36 (started with
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2010-December/002868.html).

Finally, this issue seems to affect other users:
http://ubuntuforums.org/showthread.php?t=1613049&page=2 "There is a
fairly easy to trigger crash in this one with my USB Ralink
Technology, Corp. RT2501/RT2573 Wireless Adapter (rt73/rt2x00lib). I
am trying to get a proper snapshot of the trace for a report but at
least people might want to be a bit careful."

Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-02 19:57 Eric Fernandez
  2011-02-02 20:10 ` John W. Linville
@ 2011-02-02 21:40 ` Johannes Stezenbach
  2011-02-02 22:54   ` Eric Fernandez
  1 sibling, 1 reply; 10+ messages in thread
From: Johannes Stezenbach @ 2011-02-02 21:40 UTC (permalink / raw)
  To: Eric Fernandez; +Cc: linux-wireless

On Wed, Feb 02, 2011 at 07:57:15PM +0000, Eric Fernandez wrote:
> This follows the issue I reported two days ago. I have had two crashes
> tonight using kernel 2.6.37-5 on Archlinux 64. Unfortunately, this
> leads to no log in the kernel log whatsoever. The machine freezes
> completely, if sound is played it loops. I cannot confirm if I can ssh
> to the box (have only one computer), however, this is linked to the
> usage of my wireless adapter, since switching to wired ethernet does
> not lead to this issue.
> One thing: when I reboot (hard reset), I need to unplug my adapter so
> that it works after login. Otherwise, it seems to associate fine with
> the router, but strangely I cannot download anything. Using gkrellm, I
> can see that it sends some packets to the router at regular interval,
> but does not download. I don't know if this is significant and if this
> can help identify the issue.
> 
> I would be very keen to help, but without log messages I am stuck. Any
> suggestions?

No solution yet, but I'd like to point you to the
thread on the rt2x00-users list:
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2011-February/003109.html

Johannes

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
  2011-02-02 19:57 Eric Fernandez
@ 2011-02-02 20:10 ` John W. Linville
  2011-02-03 14:41   ` Eric Fernandez
  2011-02-02 21:40 ` Johannes Stezenbach
  1 sibling, 1 reply; 10+ messages in thread
From: John W. Linville @ 2011-02-02 20:10 UTC (permalink / raw)
  To: Eric Fernandez; +Cc: linux-wireless

On Wed, Feb 02, 2011 at 07:57:15PM +0000, Eric Fernandez wrote:
> Hi,
> 
> This follows the issue I reported two days ago. I have had two crashes
> tonight using kernel 2.6.37-5 on Archlinux 64. Unfortunately, this
> leads to no log in the kernel log whatsoever. The machine freezes
> completely, if sound is played it loops. I cannot confirm if I can ssh
> to the box (have only one computer), however, this is linked to the
> usage of my wireless adapter, since switching to wired ethernet does
> not lead to this issue.
> One thing: when I reboot (hard reset), I need to unplug my adapter so
> that it works after login. Otherwise, it seems to associate fine with
> the router, but strangely I cannot download anything. Using gkrellm, I
> can see that it sends some packets to the router at regular interval,
> but does not download. I don't know if this is significant and if this
> can help identify the issue.
> 
> I would be very keen to help, but without log messages I am stuck. Any
> suggestions?
> 
> Thanks in advance.
> Eric

Can you use netconsole over the wired link to capture a backtrace
when the lock-up occurs?

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37
@ 2011-02-02 19:57 Eric Fernandez
  2011-02-02 20:10 ` John W. Linville
  2011-02-02 21:40 ` Johannes Stezenbach
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Fernandez @ 2011-02-02 19:57 UTC (permalink / raw)
  To: linux-wireless

Hi,

This follows the issue I reported two days ago. I have had two crashes
tonight using kernel 2.6.37-5 on Archlinux 64. Unfortunately, this
leads to no log in the kernel log whatsoever. The machine freezes
completely, if sound is played it loops. I cannot confirm if I can ssh
to the box (have only one computer), however, this is linked to the
usage of my wireless adapter, since switching to wired ethernet does
not lead to this issue.
One thing: when I reboot (hard reset), I need to unplug my adapter so
that it works after login. Otherwise, it seems to associate fine with
the router, but strangely I cannot download anything. Using gkrellm, I
can see that it sends some packets to the router at regular interval,
but does not download. I don't know if this is significant and if this
can help identify the issue.

I would be very keen to help, but without log messages I am stuck. Any
suggestions?

Thanks in advance.
Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-02-03 14:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01  9:26 Ralink RT2501/RT2573 USB Wireless Adapter crashes kernel 2.6.37 Eric Fernandez
2011-02-01 11:47 ` Johannes Stezenbach
2011-02-01 12:29   ` Eric Fernandez
2011-02-01 20:31   ` Eric Fernandez
2011-02-01 21:09     ` Johannes Stezenbach
2011-02-02 19:57 Eric Fernandez
2011-02-02 20:10 ` John W. Linville
2011-02-03 14:41   ` Eric Fernandez
2011-02-02 21:40 ` Johannes Stezenbach
2011-02-02 22:54   ` Eric Fernandez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.