lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <s5hzj16qmzt.wl-tiwai@suse.de>
Date:	Tue, 01 Sep 2015 15:37:26 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	netdev@...r.kernel.org
Subject: S3 resume fails with r8169 (RTL8168evl/8111evl)

Hi,

we're facing a problem where the network can't be resumed after S3
with r8169 driver.  The chip is with RTL_GIGA_MAC_VER_34,
8168evl/8111evl.

The link is up and detected at S3 resume, but there is no proceed
after that.  NetworkManager gave up after timeout.  During S3 resume,
there is no interrupt count increase, too.

S4 works fine.  It seems that only S3 suffers.

Reloading r8169 module after S3 resume also results in the failure.
Once when this happens, it can't even read the data properly, all
iomap reads via RTL_R*() seem returning 0xff.

The machine is a Baytrail-based small box.

The problem is seen from all kernel versions I tested since 3.0.* to
4.2-final.  The dmesg snippet regarding r8169 is attached below.

Please let me know if you need any specific information.


thanks,

Takashi

====
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-3.g7b8109d-default (geeko@...ldhost) (gcc version 5.1.1 20150713 [gcc-5-branch revision 225736] (SUSE Linux) ) #1 SMP Mon Aug 31 11:17:08 UTC 2015 (7b8109d)
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-3.g7b8109d-default root=UUID=d2af3e85-8ae1-4c53-abd4-4fdbffdd567e ro  resume=/dev/sda2 splash=silent quiet showopts
....
[    6.896861] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    6.896881] r8169 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[    6.897692] r8169 0000:01:00.0 eth0: RTL8168evl/8111evl at 0xffffc90000662000, 00:80:64:cd:84:ca, XID 0c900880 IRQ 91
[    6.897700] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    8.719631] r8169 0000:01:00.0 eth0: link down
[    8.719697] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    8.719720] r8169 0000:01:00.0 eth0: link down
[   11.337389] r8169 0000:01:00.0 eth0: link up
[   11.337406] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
....
[   61.642477] PM: Syncing filesystems ... done.
[   61.960567] PM: Preparing system for sleep (mem)
[   67.064302] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   67.065983] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   67.067756] PM: Suspending system (mem)
[   67.067803] Suspending console(s) (use no_console_suspend to debug)
[   67.068637] serial 00:02: disabled
[   67.070188] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[   67.070264] sd 0:0:0:0: [sda] Stopping disk
[   67.132282] PM: suspend of devices complete after 64.052 msecs
[   67.147893] PM: late suspend of devices complete after 15.570 msecs
[   67.148575] r8169 0000:01:00.0: System wakeup enabled by ACPI
[   67.148823] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
[   67.163503] PM: noirq suspend of devices complete after 15.574 msecs
[   67.163549] ACPI: Preparing to enter system sleep state S3
[   67.164057] PM: Saving platform NVS memory
[   67.164067] Disabling non-boot CPUs ...
[   67.164372] Broke affinity for irq 88
[   67.164376] Broke affinity for irq 91
[   67.165412] smpboot: CPU 1 is now offline
[   67.166298] ACPI: Low-level resume complete
[   67.166386] PM: Restoring platform NVS memory
[   67.166848] Enabling non-boot CPUs ...
[   67.166974] x86: Booting SMP configuration:
[   67.166976] smpboot: Booting Node 0 Processor 1 APIC 0x2
[   67.175206]  cache: parent cpu1 should not be sleeping
[   67.175550] CPU1 is up
[   67.176020] ACPI: Waking up from system sleep state S3
[   67.177427] acpi LNXPOWER:02: Turning OFF
[   67.177602] acpi LNXPOWER:01: Turning OFF
[   67.177749] acpi LNXPOWER:00: Turning OFF
[   67.192966] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
[   67.193241] PM: noirq resume of devices complete after 15.433 msecs
[   67.265799] PM: early resume of devices complete after 72.349 msecs
[   67.266866] rtc_cmos 00:00: System wakeup disabled by ACPI
[   67.268925] serial 00:02: activated
[   67.269217] r8169 0000:01:00.0: System wakeup disabled by ACPI
[   67.269831] r8169 0000:01:00.0 eth0: rtl_phyar_cond == 1 (loop: 20, delay: 25).
[   67.270466] r8169 0000:01:00.0 eth0: rtl_phyar_cond == 1 (loop: 20, delay: 25).
....
[   67.943469] r8169 0000:01:00.0 eth0: rtl_phyar_cond == 1 (loop: 20, delay: 25).
[   68.763630] r8169 0000:01:00.0 eth0: rtl_phy_reset_cond == 1 (loop: 100, delay: 1).
....
[   68.777722] r8169 0000:01:00.0 eth0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
[   68.779259] r8169 0000:01:00.0 eth0: rtl_csiar_cond == 1 (loop: 100, delay: 10).
....
[   68.907638] r8169 0000:01:00.0 eth0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[   68.907640] r8169 0000:01:00.0 eth0: link up
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ