You are not logged in.

#1 2016-07-03 11:08:48

nanobot
Member
Registered: 2016-07-03
Posts: 3

rt61pci and resume

Hi all,

I'm not sure if this is the correct subforum, but otherwise please move the thread.

So, after resuming from suspend or hibernation, my wifi ping to the router next room becomes mildly absurd (reproducably). The numbers are like ~2ms to the router and ~30ms to websites after a clean boot, and 200-2000ms to both after resuming from a suspended or hibernated state, with packet losses between 2-20%. This will reliably change after another reboot (but not before).

Mobile phones work fine in the same wifi. Windows 7 on the same computer works fine as well.

I also tried setting:

% cat /etc/modprobe.d/rt61pci.conf 
options rt61pci nohwcrypt=1

I will attach some outputs.

lspci:

03:06.0 Network controller [0280]: Ralink corp. RT2561/RT61 802.11g PCI [1814:0301]
	Subsystem: ASUSTeK Computer Inc. Device [1043:837e]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 21
	NUMA node: 0
	Region 0: Memory at fe9f0000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: [40] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: rt61pci
	Kernel modules: rt61pci

iwconfig:

wlp3s6    IEEE 802.11bg  ESSID:"Box Fritz"  
          Mode:Managed  Frequency:2.432 GHz  Access Point: 00:15:0C:EC:89:3B   
          Bit Rate=54 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=64/70  Signal level=-46 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:5870   Missed beacon:0

uname:

Linux pc 4.4.13-1-lts #1 SMP Wed Jun 8 16:44:31 CEST 2016 x86_64 GNU/Linux

However, it happens similar with the standard kernel.

An interesting part of journalctl -b around suspend and resume:

Jul 03 07:36:21 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 29
Jul 03 07:37:53 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 12
Jul 03 07:38:16 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 13
Jul 03 07:38:34 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 16
Jul 03 07:38:34 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 7
Jul 03 07:38:35 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 9
Jul 03 07:38:46 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 17
Jul 03 07:39:58 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 14
Jul 03 07:39:59 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 26
Jul 03 07:41:03 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 0
Jul 03 07:42:48 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 6
Jul 03 07:43:49 pc kernel: ieee80211 phy0: rt61pci_txdone: Warning - TX status report missed for entry 28
Jul 03 07:44:45 pc systemd[1]: Reached target Sleep.
Jul 03 07:44:45 pc systemd[1]: Starting Suspend...
Jul 03 07:44:45 pc systemd-sleep[2704]: Suspending system...
Jul 03 07:44:46 pc root[2708]: ACPI group/action undefined: button/volumeup / VOLUP
Jul 03 07:44:46 pc kernel: PM: Syncing filesystems ... done.
Jul 03 07:44:46 pc kernel: PM: Preparing system for sleep (mem)
Jul 03 12:33:28 pc kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Jul 03 12:33:28 pc kernel: Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
Jul 03 12:33:28 pc kernel: PM: Suspending system (mem)
Jul 03 12:33:28 pc kernel: Suspending console(s) (use no_console_suspend to debug)
Jul 03 12:33:28 pc kernel: wlp3s6: deauthenticating from 00:15:0c:ec:89:3b by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 03 12:33:28 pc kernel: sd 2:0:0:0: [sdb] Synchronizing SCSI cache
Jul 03 12:33:28 pc kernel: sd 1:0:0:0: [sda] Synchronizing SCSI cache
Jul 03 12:33:28 pc kernel: sd 1:0:0:0: [sda] Stopping disk
Jul 03 12:33:28 pc kernel: sd 2:0:0:0: [sdb] Stopping disk
Jul 03 12:33:28 pc kernel: i8042 kbd 00:03: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: queueing ieee80211 work while going to suspend
Jul 03 12:33:28 pc kernel: ieee80211 phy0: rt61pci_set_device_state: Error - Device failed to enter state 1 (-16)
Jul 03 12:33:28 pc kernel: ieee80211 phy0: rt2x00lib_suspend: Warning - Device failed to enter sleep state, continue suspending
Jul 03 12:33:28 pc kernel: PM: suspend of devices complete after 2485.789 msecs
Jul 03 12:33:28 pc kernel: PM: late suspend of devices complete after 0.408 msecs
Jul 03 12:33:28 pc kernel: pcieport 0000:00:09.0: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:16.2: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:16.0: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:14.5: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:13.2: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:13.0: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:12.2: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:12.0: System wakeup enabled by ACPI
Jul 03 12:33:28 pc kernel: PM: noirq suspend of devices complete after 19.683 msecs
Jul 03 12:33:28 pc kernel: ACPI: Preparing to enter system sleep state S3
Jul 03 12:33:28 pc kernel: PM: Saving platform NVS memory
Jul 03 12:33:28 pc kernel: Disabling non-boot CPUs ...
Jul 03 12:33:28 pc kernel: smpboot: CPU 1 is now offline
Jul 03 12:33:28 pc kernel: ACPI: Low-level resume complete
Jul 03 12:33:28 pc kernel: PM: Restoring platform NVS memory
Jul 03 12:33:28 pc kernel: PCI-DMA: Resuming GART IOMMU
Jul 03 12:33:28 pc kernel: PCI-DMA: Restoring GART aperture settings
Jul 03 12:33:28 pc kernel: LVT offset 1 assigned for vector 0x400
Jul 03 12:33:28 pc kernel: IBS: LVT offset 1 assigned
Jul 03 12:33:28 pc kernel: microcode: CPU0: new patch_level=0x010000c8
Jul 03 12:33:28 pc kernel: Enabling non-boot CPUs ...
Jul 03 12:33:28 pc kernel: x86: Booting SMP configuration:
Jul 03 12:33:28 pc kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Jul 03 12:33:28 pc kernel:  cache: parent cpu1 should not be sleeping
Jul 03 12:33:28 pc kernel: microcode: CPU1: new patch_level=0x010000c8
Jul 03 12:33:28 pc kernel: CPU1 is up
Jul 03 12:33:28 pc kernel: ACPI: Waking up from system sleep state S3
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:12.0: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:13.0: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:14.5: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ohci-pci 0000:00:16.0: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: pcieport 0000:00:09.0: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:16.2: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:12.2: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: ehci-pci 0000:00:13.2: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: PM: noirq resume of devices complete after 14.577 msecs
Jul 03 12:33:28 pc kernel: PM: early resume of devices complete after 0.288 msecs
Jul 03 12:33:28 pc kernel: rtc_cmos 00:00: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: i8042 kbd 00:03: System wakeup disabled by ACPI
Jul 03 12:33:28 pc kernel: usb usb1: root hub lost power or was reset
Jul 03 12:33:28 pc kernel: usb usb2: root hub lost power or was reset
Jul 03 12:33:28 pc kernel: sd 1:0:0:0: [sda] Starting disk
Jul 03 12:33:28 pc kernel: sd 2:0:0:0: [sdb] Starting disk
Jul 03 12:33:28 pc kernel: ata4: SATA link down (SStatus 0 SControl 300)
Jul 03 12:33:28 pc kernel: ata1: SATA link down (SStatus 0 SControl 300)
Jul 03 12:33:28 pc kernel: usb 4-5: reset full-speed USB device number 5 using ohci-pci
Jul 03 12:33:28 pc kernel: PM: resume of devices complete after 652.444 msecs
Jul 03 12:33:28 pc kernel: PM: Finishing wakeup.
Jul 03 12:33:28 pc systemd[1]: Time has been changed

Could the "ieee80211 phy0: rt61pci_set_device_state: Error - Device failed to enter state 1 (-16)" be the problem here?

Last edited by nanobot (2016-07-03 18:44:24)

Offline

#2 2016-07-03 11:17:13

nanobot
Member
Registered: 2016-07-03
Posts: 3

Re: rt61pci and resume

I tried also the hints from https://bugs.launchpad.net/ubuntu/+sour … bug/323922

Reloading the kernel module with "rmmod rt61pci; modprobe rt61pci" as root seems to help here, so the rt61pci_set_device_state problem could in fact be the culprit here.

Offline

#3 2016-07-03 11:30:07

thorstenhirsch
Member
Registered: 2005-08-03
Posts: 102

Re: rt61pci and resume

nanobot wrote:

iwconfig:

...
          Power Management:off
...

You could try activating power management.
However, I've got the same wifi chipset and had to turn off power management, because the connection was very unreliable otherwise. So activating pm might fix your problem with suspend, but the whole situation might get worse.

Last edited by thorstenhirsch (2016-07-03 11:30:46)

Offline

#4 2016-07-03 11:42:05

nanobot
Member
Registered: 2016-07-03
Posts: 3

Re: rt61pci and resume

Same for me, I actually can only connect with power management off.

Offline

Board footer

Powered by FluxBB