Skip to contentSkip to conversation

rt2500 suspend problems

DISCUSSION Marcus Better 4 participants 7 messages Sep 12, 2007 – Sep 24, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

my laptop with rt2500 card won't wake up from suspend-to-RAM. The cause seems to be the rt2x00 driver. Are there any known issues with this? I tried 2.6.23-rc4 from wireless-dev head (yesterday), and also an earlier commit based on 2.6.23-rc3.

(As a separate issue, it seems I cannot even associate to my AP with WEP with the latest kernel. The syslog says:

Sep 12 07:55:13 better kernel: wlan0: RX WEP frame, but no key set

.)

Here's the lspci line for the WiFi card:

08:02.0 Network controller [0280]: RaLink RT2500 802.11g Cardbus/mini-PCI [1814:0201] (rev 01)

The system is an LG LE50 Express i386 laptop.

Thanks,

Marcus

#1 lore raw
Quoted 4 lines · Marcus Better

my laptop with rt2500 card won't wake up from suspend-to-RAM. The cause seems to be the rt2x00 driver. Are there any known issues with this? I tried 2.6.23-rc4 from wireless-dev head (yesterday), and also an earlier commit based on 2.6.23-rc3.

No idea, must be a driver bug.

Quoted 4 lines

(As a separate issue, it seems I cannot even associate to my AP with WEP with the latest kernel. The syslog says:

Sep 12 07:55:13 better kernel: wlan0: RX WEP frame, but no key set

.)

known issue, actually. The driver doesn't set the IEEE80211_HW_WEP_INCLUDE_IV flag and mac80211 expects it to be set. But the driver shouldn't be changed, instead the patch "mac80211: rework hardware crypto flags" should finally be merged. John seems to hide... :)

johannes

#2 lore raw
Quoted 1 line · Johannes Berg

No idea, must be a driver bug.

Anything I can do to debug it?

Marcus

#3 lore raw
Quoted 7 lines · Marcus Better
Quoted 1 line · Johannes Berg

No idea, must be a driver bug.

Anything I can do to debug it?

Marcus

Try to use the rt2x00.git repo, available at:
git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git

Luis Correia
rt2x00 project administrator

#6 lore raw
In reply to Marcus Better
Quoted 4 lines · Marcus Better
Quoted 1 line · Johannes Berg

No idea, must be a driver bug.

Anything I can do to debug it?

At least the following:
- compiling rt2x00 with debug enabled,
- providing the debug messages after a suspend/resume
- provide more information about what is exactly is failing during resume.

Ivo

#4 lore raw
In reply to Luis Correia
Quoted 2 lines · Luis Correia

Try to use the rt2x00.git repo, available at:
git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git

I now tried with current wireless-dev everything branch (2.6.23-rc6). The driver doesn't work at all, instead I get the BUG below at startup (not sure whether on driver load or interface activation).

Sep 19 08:01:42 better kernel: BUG: unable to handle kernel paging request
at virtual address 5205fea9
Sep 19 08:01:42 better kernel:  printing eip:
Sep 19 08:01:42 better kernel: 5205fea9
Sep 19 08:01:42 better kernel: *pde = 00000000
Sep 19 08:01:42 better kernel: Oops: 0000 [#1]
Sep 19 08:01:42 better kernel: PREEMPT 
Sep 19 08:01:42 better kernel: Modules linked in: ppdev parport_pc lp

parport ipv6 acpi_cpufreq cpufreq_ondemand cpufreq_powersave cpufreq_stats freq_table cpufreq_conservative cpufreq_userspace firewire_sbp2 loop arc4 ecb blkcipher rc80211_simple pcmcia firmware_class mousedev rt2500pci rt2x00pci rt2x00lib rfkill input_polldev mac80211 cfg80211 sdhci yenta_socket rsrc_nonstatic snd_hda_intel eeprom_93cx6 mmc_core snd_pcm snd_timer snd pcmcia_core psmouse serio_raw pcspkr evdev rtc video output i2c_piix4 ati_agp soundcore snd_page_alloc sky2 battery ac button ext3 jbd mbcache usbhid hid dm_mirror dm_snapshot dm_mod ehci_hcd ohci_hcd firewire_ohci firewire_core crc_itu_t usbcore thermal processor fan

Sep 19 08:01:42 better kernel: CPU:    0
Sep 19 08:01:42 better kernel: EIP:    0060:[<5205fea9>]    Not tainted VLI
Sep 19 08:01:42 better kernel: EFLAGS: 00210297   (2.6.23-rc6-lg #1)
Sep 19 08:01:42 better kernel: EIP is at 0x5205fea9
Sep 19 08:01:42 better kernel: eax: 5205fea9   ebx: 00000000   ecx: f7a45cb4  
edx: 00000001
Sep 19 08:01:42 better kernel: esi: dfdb3600   edi: 00000001   ebp: dfdb3610  
esp: f7a45dd4
Sep 19 08:01:42 better kernel: ds: 007b   es: 007b   fs: 0000  gs: 0033  ss:
0068
Sep 19 08:01:42 better kernel: Process wpa_supplicant (pid: 4237,
ti=f7a44000 task=f615bab0 task.ti=f7a44000)
Sep 19 08:01:42 better kernel: Stack: f8dc9033 00000000 dfdb3600 f7e9fda0
ffffff97 f8dc9458 f8e4c842 f7c558ec 
Sep 19 08:01:42 better kernel:        f7e9fda0 00000004 f7e9fda0 00000000
f8e46f5d f7e9fda0 f7c55800 dfdb589c 
Sep 19 08:01:42 better kernel:        dfdb58d0 00000000 dfdb58d0 f8e45a8d
0000002c f7f32440 f7f32484 f7a1ff44 
Sep 19 08:01:42 better kernel: Call Trace:
Sep 19 08:01:42 better kernel:  [<f8dc9033>] rfkill_toggle_radio+0x33/0x70
[rfkill]
Sep 19 08:01:42 better kernel:  [<f8dc9458>] rfkill_register+0x48/0xf0
[rfkill]
Sep 19 08:01:42 better kernel:  [<f8e4c842>]
rt2x00pci_initialize+0x132/0x1b0 [rt2x00pci]
Sep 19 08:01:42 better kernel:  [<f8e46f5d>] rt2x00rfkill_register+0x2d/0xc0
[rt2x00lib]
Sep 19 08:01:42 better kernel:  [<f8e45a8d>]
rt2x00lib_initialize+0x13d/0x160 [rt2x00lib]
Sep 19 08:01:42 better kernel:  [<f8e464ed>] rt2x00mac_start+0x2d/0x60
[rt2x00lib]
Sep 19 08:01:42 better kernel:  [<f8e46ae9>]
rt2x00mac_add_interface+0x29/0xd0 [rt2x00lib]
Sep 19 08:01:42 better kernel:  [<f8ed50ae>] ieee80211_open+0x20e/0x490
[mac80211]
Sep 19 08:01:42 better kernel:  [<c02518bf>] find_lock_page+0x1f/0xf0
Sep 19 08:01:42 better kernel:  [<c03adda3>] dev_open+0x33/0x80
Sep 19 08:01:42 better kernel:  [<c03ac122>] dev_change_flags+0x82/0x1b0
Sep 19 08:01:42 better kernel:  [<c03eebb1>] devinet_ioctl+0x521/0x6c0
Sep 19 08:01:42 better kernel:  [<c025d629>] __do_fault+0x189/0x370
Sep 19 08:01:42 better kernel:  [<c03ab9bf>] __dev_get_by_name+0x6f/0x90
Sep 19 08:01:42 better kernel:  [<c03a073f>] sock_ioctl+0xbf/0x230
Sep 19 08:01:42 better kernel:  [<c03a0680>] sock_ioctl+0x0/0x230
Sep 19 08:01:42 better kernel:  [<c027e08b>] do_ioctl+0x2b/0x90
Sep 19 08:01:42 better kernel:  [<c027e14c>] vfs_ioctl+0x5c/0x290
Sep 19 08:01:42 better kernel:  [<c027e3f2>] sys_ioctl+0x72/0x90
Sep 19 08:01:42 better kernel:  [<c020413e>] sysenter_past_esp+0x5f/0x85
Sep 19 08:01:42 better kernel:  [<c0410000>] packet_rcv_spkt+0x80/0x1b0
Sep 19 08:01:42 better kernel:  =======================
Sep 19 08:01:42 better kernel: Code:  Bad EIP value.
Sep 19 08:01:42 better kernel: EIP: [<5205fea9>] 0x5205fea9 SS:ESP

0068:f7a45dd4

Suspend to RAM aborts with the following:

Sep 19 07:59:10 better kernel: Stopping tasks ... done.
Sep 19 07:59:10 better kernel: Suspending console(s)
Sep 19 07:59:10 better kernel: phy0 -> rt2x00rfkill_toggle_radio: Info -
Hardware button pressed, disabling radio.
Sep 19 07:59:10 better kernel: ACPI handle has no context!
Sep 19 07:59:10 better kernel: phy0 -> rt2x00lib_suspend: Notice - Going to
sleep.
Sep 19 07:59:10 better kernel: phy0 -> rt2x00rfkill_toggle_radio: Info -
Hardware button pressed, disabling radio.
Sep 19 07:59:10 better kernel: phy0 -> rt2500pci_set_state: Notice - Device
failed to enter state 1, current device state: bbp 3 and rf 3.
Sep 19 07:59:10 better kernel: pci_device_suspend():
rt2x00pci_suspend+0x0/0x70 [rt2x00pci]() returns -16
Sep 19 07:59:10 better kernel: suspend_device(): pci_device_suspend+0x0/0x6
() returns -16
Sep 19 07:59:10 better kernel: Could not suspend device 0000:08:02.0:

error -16

Marcus

#5 lore raw
Quoted 1 line · Marcus Better
Sep 19 08:01:42 better kernel: BUG: unable to handle kernel paging request

Ping? :-)

Marcus