You are not logged in.

#1 2021-06-07 08:42:16

tubize
Member
Registered: 2021-06-07
Posts: 17

Laptop randomly unable to wake from suspend state

Hey!

Been lurking on this forum since the beginning of this year, when I installed Arch on my Lenovo T495. This forum is a fantastic resource, with which I've been able to fix all my problems so far. I never like signing up and creating account, that's why I've waited so long smile But this issue is becoming quite frustrating and I can't find anything else I could try.

The problem is that my laptop sometimes fails to wake from suspend state. I just get a black screen and no response whatsoever. When I hold the power button for 4 seconds, the cursor appears, but that's it.
Oftentimes, it wakes just fine. It's very hard to find a pattern in this behaviour, but I think it happens more, as the sleep time is longer if that makes sense.

My laptop is a T495 with an AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx.
DWM as WM, X11. I am using amdgpu driver.
inxi -Fxz:

System:    Kernel: 5.12.9-arch1-1 x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: dwm 6.2 Distro: Arch Linux
Machine:   Type: Laptop System: LENOVO product: 20NKS03P00 v: ThinkPad T495 serial: <filter>
           Mobo: LENOVO model: 20NKS03P00 serial: <filter> UEFI: LENOVO v: R12ET57W(1.27 ) date: 11/24/2020
Battery:   ID-1: BAT0 charge: 21.2 Wh (41.2%) condition: 51.5/50.5 Wh (101.9%) volts: 11.5 min: 11.6 model: LGC 02DL007
           status: Unknown
CPU:       Info: Quad Core model: AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen/Zen+
           note: check rev: 1 cache: L2: 2 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36750
           Speed: 1225 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 1225 2: 1225 3: 1219 4: 1223 5: 1346
           6: 1223 7: 1221 8: 1223
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Picasso vendor: Lenovo driver: amdgpu v: kernel bus-ID: 06:00.0
           Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo bus-ID: 4-2.1:4
           Display: x11 server: X.Org 1.20.11 driver: loaded: amdgpu resolution: 1920x1080~60Hz
           Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo
           driver: snd_hda_intel v: kernel bus-ID: 06:00.1
           Device-2: Advanced Micro Devices [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo
           driver: snd_pci_acp3x v: kernel bus-ID: 06:00.5
           Device-3: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
           bus-ID: 06:00.6
           Sound Server-1: ALSA v: k5.12.9-arch1-1 running: yes
           Sound Server-2: JACK v: 0.125.0 running: no
           Sound Server-3: PulseAudio v: 14.2 running: yes
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus-ID: 01:00.0
           IF: wlp1s0 state: up mac: <filter>
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3400
           bus-ID: 03:00.0
           IF: enp3s0f0 state: down mac: <filter>
           Device-3: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 2000
           bus-ID: 04:00.0
           IF: enp4s0 state: down mac: <filter>
Drives:    Local Storage: total: 476.94 GiB used: 147.42 GiB (30.9%)
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L7 size: 476.94 GiB
Partition: ID-1: / size: 467.18 GiB used: 147.42 GiB (31.6%) fs: ext4 dev: /dev/nvme0n1p3
Swap:      ID-1: swap-1 type: partition size: 1024 MiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p2
Sensors:   System Temperatures: cpu: 66.1 C mobo: 0.0 C gpu: amdgpu temp: 66.0 C
           Fan Speeds (RPM): cpu: 0
Info:      Processes: 246 Uptime: 1h 10m Memory: 13.61 GiB used: 1.98 GiB (14.6%) Init: systemd Compilers: gcc: 11.1.0
           Packages: 916 Shell: Zsh v: 5.8 inxi: 3.3.04

When I run journalctl -b -1, this seems to be the error that's causing the crash (kernel panic?)

[drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] flip_done timed out

and 10 seconds later:

[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] flip_done timed out

I've tried booting with kernel options IOMMU=soft, amdgpu.noretry=0 and intremap=off
Each time I thought it fixed it, but no cigar..
I'm running the early microcode updates from amd-ucode

I read somewhere that it might have something to do with processor C-states, and that disabling C6 state was a workaround for some error, but it seems my AMD only supports two C-states?
grep . /sys/devices/system/cpu/cpu0/cpuidle/state*/name:

/sys/devices/system/cpu/cpu0/cpuidle/state0/name:POLL
/sys/devices/system/cpu/cpu0/cpuidle/state1/name:C1
/sys/devices/system/cpu/cpu0/cpuidle/state2/name:C2

Anyone that can point me in the right direction?
Thanks in advance!
Kind regards

Last edited by tubize (2021-06-08 09:43:09)

Offline

#2 2021-06-07 09:03:09

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Previous errors (related I think) that I had (that seem to have gone with those boot options:

May 14 12:25:33 nvr kernel: irq 7: nobody cared (try booting with the "irqpoll" option)
May 14 12:25:33 nvr kernel: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           OE     5.12.3-arch1-1 #1
May 14 12:25:33 nvr kernel: Hardware name: LENOVO 20NKS03P00/20NKS03P00, BIOS R12ET57W(1.27 ) 11/24/2020
May 14 12:25:33 nvr kernel: Call Trace:
May 14 12:25:33 nvr kernel:  <IRQ>
May 14 12:25:33 nvr kernel:  dump_stack+0x76/0x94
May 14 12:25:33 nvr kernel:  __report_bad_irq+0x35/0xaa
May 14 12:25:33 nvr kernel:  note_interrupt.cold+0xb/0x64
May 14 12:25:33 nvr kernel:  handle_irq_event+0xa9/0xb0
May 14 12:25:33 nvr kernel:  handle_fasteoi_irq+0x8a/0x1f0
May 14 12:25:33 nvr kernel:  __common_interrupt+0x41/0xa0
May 14 12:25:33 nvr kernel:  common_interrupt+0x7e/0xa0
May 14 12:25:33 nvr kernel:  </IRQ>
May 14 12:25:33 nvr kernel:  asm_common_interrupt+0x1e/0x40
May 14 12:25:33 nvr kernel: RIP: 0010:cpuidle_enter_state+0xc7/0x380
May 14 12:25:33 nvr kernel: Code: 8b 3d 15 8d 40 7e e8 d8 67 8c ff 49 89 c5 0f 1f 44 00 00 31 ff e8 f9 74 8c ff 45 84 ff 0f 85 da 01 00 00 fb 66 0f 1f 44 00 00 <45> 85 f6 0f 88 11 01 00 00 4>
May 14 12:25:33 nvr kernel: RSP: 0018:ffffffff82e03e50 EFLAGS: 00000246
May 14 12:25:33 nvr kernel: RAX: ffff941fb0a2c7c0 RBX: 0000000000000002 RCX: 000000000000001f
May 14 12:25:33 nvr kernel: RDX: 0000000000000000 RSI: 0000000037c1b90d RDI: 0000000000000000
May 14 12:25:33 nvr kernel: RBP: ffff941d03ef8000 R08: 00000174dd23bd06 R09: 00000174dfd1aaf7
May 14 12:25:33 nvr kernel: R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff82f49e60
May 14 12:25:33 nvr kernel: R13: 00000174dd23bd06 R14: 0000000000000002 R15: 0000000000000000
May 14 12:25:33 nvr kernel:  cpuidle_enter+0x29/0x40
May 14 12:25:33 nvr kernel:  do_idle+0x1e3/0x280
May 14 12:25:33 nvr kernel:  cpu_startup_entry+0x19/0x20
May 14 12:25:33 nvr kernel:  start_kernel+0x876/0x89b
May 14 12:25:33 nvr kernel:  secondary_startup_64_no_verify+0xc2/0xcb
May 14 12:25:33 nvr kernel: handlers:
May 14 12:25:33 nvr kernel: [<00000000f352a4c4>] amd_gpio_irq_handler [pinctrl_amd]
May 14 12:25:33 nvr kernel: Disabling IRQ #7
amdgpu 0000:06:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113f00040 flags=0x0070]

Offline

#3 2021-06-08 12:14:54

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Laptop randomly unable to wake from suspend state

Have you read https://gitlab.freedesktop.org/drm/amd/-/issues/1553?
Although that particular issue should already be fixed.  Also look at some of the others mentioning amdgpu_dm_atomic_commit_tail https://gitlab.freedesktop.org/drm/amd/ … ommit_tail
It seems it was only partially fixed,  I was thinking of https://github.com/torvalds/linux/commi … f374409e2a
https://gitlab.freedesktop.org/agd5f/li … 75a0aaa928 has not been merged

Last edited by loqs (2021-06-08 12:37:31)

Offline

#4 2021-06-08 15:38:51

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Thanks loqs! I didn't stumble on those posts yet, and if I had, I would've probably moved on, seems a bit out of my comfort zone.
This is a good thing however ofcourse, and one of the reasons I moved to Arch, learn new things.
Seems like I will be compiling the kernel then? Or is this a kernel module?
..
I'll start reading smile

Offline

#5 2021-06-08 19:16:53

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Laptop randomly unable to wake from suspend state

Ensure you have configured Makepkg#Parallel_compilation to reduce build time and that base-devel,  git and pacman-contrib are installed

git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/linux" #obtain the PKGBUILD
cd packages trunk

Edit the PKGBUILD to add the patch.  Below is a diff of the change.  See Patching_packages#Applying_patches for more details.  The linux package auto applies patches so in this case all that is being done is adding the patch and checksum to the PKGBUILD.

git diff
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index 23d2f96..20786d2 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -17,6 +17,7 @@ options=('!strip')
 _srcname=archlinux-linux
 source=(
   "$_srcname::git+https://git.archlinux.org/linux.git?signed#tag=$_srctag"
+  https://gitlab.freedesktop.org/agd5f/linux/-/commit/260c4c06b9c05265099545fd1be81e75a0aaa928.patch
   config         # the main kernel config file
 )
 validpgpkeys=(
updpkgsums #requires pacman-contrib
makepkg -rsi #build and install package

Offline

#6 2021-06-08 19:49:02

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Hey!
Wow thanks for those tips!!
Saw your post a little too late and I'm already at the install step of this article
https://wiki.archlinux.org/title/Kernel … stallation

make modules_install

So I will let it run and see what happens.. I took the 5.12.9 sources and manually added the first six commits on this page:
https://gitlab.freedesktop.org/agd5f/li … its/s0ix-8
The reason is, that I was also really disappointed in the standby times of this machine, losing lots of battery % overnight.
Now I might know the reason why (only going into s2idle instead of suspend to ram)

We'll see smile Anyhow will be cool, running my first 'custom' kernel, even if it doesn't fix the problem.
I once compiled a kernel for an Android phone, for my day job, I think it took me a week to get it working.

Edit: installed and running this kernel now. I will check the power useage on stuspend overnight

cat /sys/power/mem_sleep

still reports s2idle [deep]. How can you tell whether your system goes to an S3 state or an S2idle?

See if I get a hangup on wakeup the next days.

Thanks a lot for your help!

Last edited by tubize (2021-06-08 20:40:55)

Offline

#7 2021-06-09 15:15:51

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Still lost 8% of battery over 11 hours of suspend, on a 51480 mWh battery. Not sure if that's normal and how I can check if the laptop really goes into S3 suspend to ram instead of s2idle?

So far no hangups on wakeup, but I've gone days without one before..

Offline

#8 2021-06-10 12:29:02

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

Hello,

I have the same wakeup issue. As loqs suggested I am testing the patched kernel and is working well so far the problem persists.

About battery consumption when in suspend state that's less than 1% per hour, so I guess that's okay (don't know for sure though).
If you're interested, to avoid battery drain I use the following systemd service which automatically hibernates the system after a given amount of time in suspend state (eg. 2 hours):

# /etc/systemd/system/suspend-to-hibernate.service

[Unit]
Description=delayed hibernation trigger
Before=suspend.target
StopWhenUnneeded=true
Conflicts=hibernate.target hybrid-suspend.target

[Service]
Type=oneshot
RemainAfterExit=yes

Environment="WAKEALARM=/sys/class/rtc/rtc0/wakealarm"

ExecStart=-/bin/sh -c 'echo -n "alarm set for "; date +%%s -d+2hour | tee $WAKEALARM'

ExecStop=-/bin/sh -c '\
  alarm=$(cat $WAKEALARM); \
  now=$(date +%%s); \
  if [ -z "$alarm" ] || [ "$now" -ge "$alarm" ]; then \
     echo "hibernate triggered"; \
     systemctl hibernate; \
  else \
     echo "normal wakeup"; \
  fi; \
  echo 0 > $WAKEALARM; \
'

[Install]
WantedBy=sleep.target

I'm not the author of this and I don't remember where I took it from, sorry if credits aren't given.

Last edited by DeletedUser210826 (2021-06-10 18:59:34)

Offline

#9 2021-08-06 19:51:01

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

Hello,

Found out there aren't hangups with kernel 5.4.

The problem persists with kernel 5.13.8-arch1-1.

Aug 06 19:11:13 thinkpad systemd-logind[397]: Lid closed.
Aug 06 19:11:13 thinkpad NetworkManager[396]: <info>  [1628269873.9306] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Aug 06 19:11:13 thinkpad NetworkManager[396]: <info>  [1628269873.9308] device (p2p-dev-wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Aug 06 19:11:13 thinkpad NetworkManager[396]: <info>  [1628269873.9316] manager: NetworkManager state is now ASLEEP
Aug 06 19:11:13 thinkpad NetworkManager[396]: <info>  [1628269873.9319] device (wlp1s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Aug 06 19:11:13 thinkpad dbus-daemon[395]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=396 comm="/usr/bin/NetworkManager --no-daemon ")
Aug 06 19:11:13 thinkpad systemd[1]: Starting Network Manager Script Dispatcher Service...
Aug 06 19:11:13 thinkpad dbus-daemon[395]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Aug 06 19:11:13 thinkpad systemd[1]: Started Network Manager Script Dispatcher Service.
Aug 06 19:11:13 thinkpad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:13 thinkpad kernel: audit: type=1130 audit(1628269873.964:120): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:13 thinkpad kernel: wlp1s0: deauthenticating from dc:39:6f:f2:25:75 by local choice (Reason: 3=DEAUTH_LEAVING)
Aug 06 19:11:13 thinkpad systemd-resolved[388]: wlp1s0: Bus client reset search domain list.
Aug 06 19:11:13 thinkpad systemd-resolved[388]: wlp1s0: Bus client set default route setting: no
Aug 06 19:11:13 thinkpad systemd-resolved[388]: wlp1s0: Bus client reset DNS server list.
Aug 06 19:11:14 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-DISCONNECTED bssid=dc:39:6f:f2:25:75 reason=3 locally_generated=1
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.0929] device (wlp1s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1150] dhcp4 (wlp1s0): canceled DHCP transaction
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1151] dhcp4 (wlp1s0): state changed bound -> terminated
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1192] device (wlp1s0): set-hw-addr: set MAC address to EE:6E:71:C1:4F:82 (scanning)
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1260] device (wlp1s0): supplicant interface state: completed -> disconnected
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1265] device (wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Aug 06 19:11:14 thinkpad NetworkManager[396]: <info>  [1628269874.1288] device (wlp1s0): set-hw-addr: reset MAC address to 98:AF:65:DC:16:F3 (unmanage)
Aug 06 19:11:14 thinkpad wpa_supplicant[429]: nl80211: deinit ifname=p2p-dev-wlp1s0 disabled_11b_rates=0
Aug 06 19:11:14 thinkpad systemd[1]: Reached target Sleep.
Aug 06 19:11:14 thinkpad systemd[1]: Starting delayed hibernation trigger...
Aug 06 19:11:14 thinkpad systemd[1]: Starting System Suspend...
Aug 06 19:11:14 thinkpad sh[1041]: alarm set for
Aug 06 19:11:14 thinkpad sh[1044]: 1628277074
Aug 06 19:11:14 thinkpad systemd[1]: Finished delayed hibernation trigger.
Aug 06 19:11:14 thinkpad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:14 thinkpad kernel: audit: type=1130 audit(1628269874.288:121): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:14 thinkpad systemd-sleep[1042]: Entering sleep state 'suspend'...
Aug 06 19:11:14 thinkpad kernel: PM: suspend entry (deep)
Aug 06 19:11:29 thinkpad kernel: Filesystems sync: 0.010 seconds
Aug 06 19:11:29 thinkpad kernel: Freezing user space processes ... (elapsed 0.024 seconds) done.
Aug 06 19:11:29 thinkpad kernel: OOM killer disabled.
Aug 06 19:11:29 thinkpad kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 06 19:11:29 thinkpad kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 06 19:11:29 thinkpad kernel: [drm] free PSP TMR buffer
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: interrupt blocked
Aug 06 19:11:29 thinkpad kernel: ACPI: Preparing to enter system sleep state S3
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: event blocked
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: EC stopped
Aug 06 19:11:29 thinkpad kernel: PM: Saving platform NVS memory
Aug 06 19:11:29 thinkpad kernel: Disabling non-boot CPUs ...
Aug 06 19:11:29 thinkpad kernel: IRQ 75: no longer affine to CPU1
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 1 is now offline
Aug 06 19:11:29 thinkpad kernel: IRQ 76: no longer affine to CPU2
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 2 is now offline
Aug 06 19:11:29 thinkpad kernel: IRQ 77: no longer affine to CPU3
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 3 is now offline
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 4 is now offline
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 5 is now offline
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 6 is now offline
Aug 06 19:11:29 thinkpad kernel: smpboot: CPU 7 is now offline
Aug 06 19:11:29 thinkpad kernel: ACPI: Low-level resume complete
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: EC started
Aug 06 19:11:29 thinkpad kernel: PM: Restoring platform NVS memory
Aug 06 19:11:29 thinkpad kernel: Enabling non-boot CPUs ...
Aug 06 19:11:29 thinkpad kernel: x86: Booting SMP configuration:
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Aug 06 19:11:29 thinkpad kernel: microcode: CPU1: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C001: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU1 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 2 APIC 0x2
Aug 06 19:11:29 thinkpad kernel: microcode: CPU2: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C002: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU2 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Aug 06 19:11:29 thinkpad kernel: microcode: CPU3: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C003: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU3 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 4 APIC 0x4
Aug 06 19:11:29 thinkpad kernel: microcode: CPU4: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C004: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU4 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 5 APIC 0x5
Aug 06 19:11:29 thinkpad kernel: microcode: CPU5: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C005: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU5 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 6 APIC 0x6
Aug 06 19:11:29 thinkpad kernel: microcode: CPU6: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C006: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU6 is up
Aug 06 19:11:29 thinkpad kernel: smpboot: Booting Node 0 Processor 7 APIC 0x7
Aug 06 19:11:29 thinkpad kernel: microcode: CPU7: patch_level=0x08108102
Aug 06 19:11:29 thinkpad kernel: ACPI: \_PR_.C007: Found 2 idle states
Aug 06 19:11:29 thinkpad kernel: CPU7 is up
Aug 06 19:11:29 thinkpad kernel: ACPI: Waking up from system sleep state S3
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: interrupt unblocked
Aug 06 19:11:29 thinkpad kernel: ACPI: EC: event unblocked
Aug 06 19:11:29 thinkpad kernel: [drm] PCIE GART of 1024M enabled.
Aug 06 19:11:29 thinkpad kernel: [drm] PTB located at 0x000000F400900000
Aug 06 19:11:29 thinkpad kernel: [drm] PSP is resuming...
Aug 06 19:11:29 thinkpad kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 06 19:11:29 thinkpad kernel: [drm] reserve 0x400000 from 0xf47fc00000 for PSP TMR
Aug 06 19:11:29 thinkpad kernel: nvme nvme0: 16/0/0 default/read/poll queues
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
Aug 06 19:11:29 thinkpad kernel: [drm] kiq ring mec 2 pipe 1 q 0
Aug 06 19:11:29 thinkpad kernel: amdgpu: dpm has been enabled
Aug 06 19:11:29 thinkpad kernel: usb 3-2: reset high-speed USB device number 2 using xhci_hcd
Aug 06 19:11:29 thinkpad kernel: [drm] VCN decode and encode initialized successfully(under SPG Mode).
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x108380060 flags=0x0070]
Aug 06 19:11:29 thinkpad kernel: amdgpu 0000:03:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x1083c0000 flags=0x0070]
Aug 06 19:11:29 thinkpad kernel: usb 3-2.1: reset high-speed USB device number 3 using xhci_hcd
Aug 06 19:11:29 thinkpad kernel: psmouse serio1: synaptics: queried max coordinates: x [..5678], y [..4694]
Aug 06 19:11:29 thinkpad kernel: psmouse serio1: synaptics: queried min coordinates: x [1266..], y [1162..]
Aug 06 19:11:29 thinkpad kernel: irq 7: nobody cared (try booting with the "irqpoll" option)
Aug 06 19:11:29 thinkpad kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-arch1-1 #1
Aug 06 19:11:29 thinkpad kernel: Hardware name: LENOVO 20NJCTO1WW/20NJCTO1WW, BIOS R12ET57W(1.27 ) 11/24/2020
Aug 06 19:11:29 thinkpad kernel: Call Trace:
Aug 06 19:11:29 thinkpad kernel:  <IRQ>
Aug 06 19:11:29 thinkpad kernel:  dump_stack+0x76/0x94
Aug 06 19:11:29 thinkpad kernel:  __report_bad_irq+0x35/0xaa
Aug 06 19:11:29 thinkpad kernel:  note_interrupt.cold+0xb/0x64
Aug 06 19:11:29 thinkpad kernel:  handle_irq_event+0xa9/0xb0
Aug 06 19:11:29 thinkpad kernel:  handle_fasteoi_irq+0x8a/0x1f0
Aug 06 19:11:29 thinkpad kernel:  __common_interrupt+0x41/0xa0
Aug 06 19:11:29 thinkpad kernel:  common_interrupt+0x7e/0xa0
Aug 06 19:11:29 thinkpad kernel:  </IRQ>
Aug 06 19:11:29 thinkpad kernel:  asm_common_interrupt+0x1e/0x40
Aug 06 19:11:29 thinkpad kernel: RIP: 0010:cpuidle_enter_state+0xc7/0x380
Aug 06 19:11:29 thinkpad kernel: Code: 8b 3d 95 14 ff 59 e8 78 0d 8b ff 49 89 c5 0f 1f 44 00 00 31 ff e8 89 1a 8b ff 45 84 ff 0f 85 da 01 00 00 fb 66 0f 1f 44 00 00 <45> 85 f6 0f 88 11 01 00 00 49 63 d6 4c 2b 2c 24 48 8d 04 52 48 8d
Aug 06 19:11:29 thinkpad kernel: RSP: 0018:ffffffffa7203e50 EFLAGS: 00000246
Aug 06 19:11:29 thinkpad kernel: RAX: ffff9b1ab0a2cc40 RBX: 0000000000000002 RCX: 000000000000001f
Aug 06 19:11:29 thinkpad kernel: RDX: 0000000000000000 RSI: 000000003d111e2e RDI: 0000000000000000
Aug 06 19:11:29 thinkpad kernel: RBP: ffff9b1802a41400 R08: 0000000c826a880a R09: 0000000c889d0e12
Aug 06 19:11:29 thinkpad kernel: R10: 0000000000000001 R11: 0000000000000001 R12: ffffffffa734c600
Aug 06 19:11:29 thinkpad kernel: R13: 0000000c826a880a R14: 0000000000000002 R15: 0000000000000000
Aug 06 19:11:29 thinkpad kernel:  cpuidle_enter+0x29/0x40
Aug 06 19:11:29 thinkpad kernel:  do_idle+0x1e1/0x270
Aug 06 19:11:29 thinkpad kernel:  cpu_startup_entry+0x19/0x20
Aug 06 19:11:29 thinkpad kernel:  start_kernel+0x86e/0x893
Aug 06 19:11:29 thinkpad kernel:  secondary_startup_64_no_verify+0xc2/0xcb
Aug 06 19:11:29 thinkpad kernel: handlers:
Aug 06 19:11:29 thinkpad kernel: [<00000000fd09bb25>] amd_gpio_irq_handler [pinctrl_amd]
Aug 06 19:11:29 thinkpad kernel: Disabling IRQ #7
Aug 06 19:11:29 thinkpad kernel: acpi LNXPOWER:00: Turning OFF
Aug 06 19:11:29 thinkpad kernel: OOM killer enabled.
Aug 06 19:11:29 thinkpad kernel: Restarting tasks ... 
Aug 06 19:11:29 thinkpad kernel: pci_bus 0000:01: Allocating resources
Aug 06 19:11:29 thinkpad kernel: pci_bus 0000:02: Allocating resources
Aug 06 19:11:29 thinkpad kernel: pcieport 0000:00:01.3: bridge window [io  0x1000-0x0fff] to [bus 02] add_size 1000
Aug 06 19:11:29 thinkpad kernel: done.
Aug 06 19:11:29 thinkpad kernel: pcieport 0000:00:01.3: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 02] add_size 200000 add_align 100000
Aug 06 19:11:29 thinkpad kernel: pcieport 0000:00:01.3: BAR 15: assigned [mem 0xd0a00000-0xd0bfffff 64bit pref]
Aug 06 19:11:29 thinkpad kernel: pcieport 0000:00:01.3: BAR 13: assigned [io  0x3000-0x3fff]
Aug 06 19:11:29 thinkpad kernel: pci_bus 0000:03: Allocating resources
Aug 06 19:11:29 thinkpad systemd-resolved[388]: Clock change detected. Flushing caches.
Aug 06 19:11:29 thinkpad wpa_supplicant[429]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Aug 06 19:11:29 thinkpad systemd-logind[397]: Lid opened.
Aug 06 19:11:29 thinkpad upowerd[831]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Aug 06 19:11:29 thinkpad upowerd[831]: treating change event as add on /sys/devices/pci0000:00/0000:00:08.1/0000:03:00.4/usb3/3-2
Aug 06 19:11:29 thinkpad systemd-sleep[1042]: System returned from sleep state.
Aug 06 19:11:29 thinkpad kernel: PM: suspend exit
Aug 06 19:11:29 thinkpad systemd[1]: systemd-suspend.service: Deactivated successfully.
Aug 06 19:11:29 thinkpad systemd[1]: Finished System Suspend.
Aug 06 19:11:29 thinkpad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:29 thinkpad audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:29 thinkpad systemd[1]: Stopped target Sleep.
Aug 06 19:11:29 thinkpad kernel: audit: type=1130 audit(1628269889.985:122): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:29 thinkpad kernel: audit: type=1131 audit(1628269889.985:123): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:29 thinkpad systemd[1]: Reached target Suspend.
Aug 06 19:11:29 thinkpad systemd-logind[397]: Operation 'sleep' finished.
Aug 06 19:11:29 thinkpad systemd[1]: Stopped target Suspend.
Aug 06 19:11:29 thinkpad NetworkManager[396]: <info>  [1628269889.9905] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Aug 06 19:11:29 thinkpad NetworkManager[396]: <info>  [1628269889.9906] device (wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Aug 06 19:11:29 thinkpad NetworkManager[396]: <info>  [1628269889.9925] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Aug 06 19:11:29 thinkpad NetworkManager[396]: <info>  [1628269889.9933] manager: NetworkManager state is now CONNECTED_LOCAL
Aug 06 19:11:30 thinkpad systemd[1]: Stopping delayed hibernation trigger...
Aug 06 19:11:30 thinkpad sh[1094]: normal wakeup
Aug 06 19:11:30 thinkpad systemd[1]: suspend-to-hibernate.service: Deactivated successfully.
Aug 06 19:11:30 thinkpad systemd[1]: Stopped delayed hibernation trigger.
Aug 06 19:11:30 thinkpad audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:30 thinkpad kernel: audit: type=1131 audit(1628269890.028:124): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0754] device (wlp1s0): supplicant interface state: internal-starting -> disconnected
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0754] device (p2p-dev-wlp1s0): state change: unavailable -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0760] Wi-Fi P2P device controlled by interface wlp1s0 created
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0763] manager: (p2p-dev-wlp1s0): new 802.11 Wi-Fi P2P device (/org/freedesktop/NetworkManager/Devices/5)
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0765] device (p2p-dev-wlp1s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0772] device (wlp1s0): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Aug 06 19:11:30 thinkpad NetworkManager[396]: <info>  [1628269890.0779] device (p2p-dev-wlp1s0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=IT
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4977] policy: auto-activating connection 'FRITZ!Box 7530 DP' (ba0175b2-2436-4153-a4e9-e0f6934c4030)
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4982] device (wlp1s0): Activation: starting connection 'FRITZ!Box 7530 DP' (ba0175b2-2436-4153-a4e9-e0f6934c4030)
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4983] device (wlp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4985] manager: NetworkManager state is now CONNECTING
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4988] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4990] device (wlp1s0): Activation: (wifi) access point 'FRITZ!Box 7530 DP' has security, but secrets are required.
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.4990] device (wlp1s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5147] device (wlp1s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5149] device (wlp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] device (wlp1s0): Activation: (wifi) connection 'FRITZ!Box 7530 DP' has security, and secrets exist.  No new secrets needed.
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] Config: added 'ssid' value 'FRITZ!Box 7530 DP'
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] Config: added 'scan_ssid' value '1'
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] Config: added 'bgscan' value 'simple:30:-70:86400'
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK'
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5151] Config: added 'psk' value '<hidden>'
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: SME: Trying to authenticate with dc:39:6f:f2:25:75 (SSID='FRITZ!Box 7530 DP' freq=2437 MHz)
Aug 06 19:11:33 thinkpad kernel: wlp1s0: authenticate with dc:39:6f:f2:25:75
Aug 06 19:11:33 thinkpad kernel: wlp1s0: send auth to dc:39:6f:f2:25:75 (try 1/3)
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5288] device (wlp1s0): supplicant interface state: disconnected -> authenticating
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.5288] device (p2p-dev-wlp1s0): supplicant management interface state: disconnected -> authenticating
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: Trying to associate with dc:39:6f:f2:25:75 (SSID='FRITZ!Box 7530 DP' freq=2437 MHz)
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.6782] device (wlp1s0): supplicant interface state: authenticating -> associating
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.6782] device (p2p-dev-wlp1s0): supplicant management interface state: authenticating -> associating
Aug 06 19:11:33 thinkpad kernel: wlp1s0: authenticated
Aug 06 19:11:33 thinkpad kernel: wlp1s0: associate with dc:39:6f:f2:25:75 (try 1/3)
Aug 06 19:11:33 thinkpad kernel: wlp1s0: RX AssocResp from dc:39:6f:f2:25:75 (capab=0x1431 status=0 aid=1)
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: Associated with dc:39:6f:f2:25:75
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Aug 06 19:11:33 thinkpad kernel: wlp1s0: associated
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.6943] device (wlp1s0): supplicant interface state: associating -> associated
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.6943] device (p2p-dev-wlp1s0): supplicant management interface state: associating -> associated
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7040] device (wlp1s0): supplicant interface state: associated -> 4way_handshake
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7040] device (p2p-dev-wlp1s0): supplicant management interface state: associated -> 4way_handshake
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: WPA: Key negotiation completed with dc:39:6f:f2:25:75 [PTK=CCMP GTK=CCMP]
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-CONNECTED - Connection to dc:39:6f:f2:25:75 completed [id=0 id_str=]
Aug 06 19:11:33 thinkpad kernel: wlp1s0: Limiting TX power to 20 (20 - 0) dBm as advertised by dc:39:6f:f2:25:75
Aug 06 19:11:33 thinkpad kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7802] device (wlp1s0): supplicant interface state: 4way_handshake -> completed
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7803] device (wlp1s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "FRITZ!Box 7530 DP"
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7803] device (p2p-dev-wlp1s0): supplicant management interface state: 4way_handshake -> completed
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7805] device (wlp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-65 noise=9999 txrate=1000
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.7870] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8112] dhcp4 (wlp1s0): state changed unknown -> bound, address=192.168.178.20
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8130] device (wlp1s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8152] device (wlp1s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8155] device (wlp1s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8162] manager: NetworkManager state is now CONNECTED_LOCAL
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8174] manager: NetworkManager state is now CONNECTED_SITE
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8175] policy: set 'FRITZ!Box 7530 DP' (wlp1s0) as default for IPv4 routing and DNS
Aug 06 19:11:33 thinkpad systemd-resolved[388]: wlp1s0: Bus client set search domain list to: fritz.box
Aug 06 19:11:33 thinkpad systemd-resolved[388]: wlp1s0: Bus client set default route setting: yes
Aug 06 19:11:33 thinkpad systemd-resolved[388]: wlp1s0: Bus client set DNS server list to: 192.168.178.1
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.8244] device (wlp1s0): Activation: successful, device activated.
Aug 06 19:11:33 thinkpad NetworkManager[396]: <info>  [1628269893.9937] manager: NetworkManager state is now CONNECTED_GLOBAL
Aug 06 19:11:37 thinkpad systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Aug 06 19:11:37 thinkpad audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:37 thinkpad kernel: audit: type=1131 audit(1628269897.115:125): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 06 19:11:40 thinkpad kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] flip_done timed out
Aug 06 19:11:40 thinkpad kernel: [drm:drm_crtc_commit_wait [drm]] *ERROR* flip_done timed out
Aug 06 19:11:40 thinkpad kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] commit wait timed out
Aug 06 19:11:52 thinkpad kernel: [drm:drm_crtc_commit_wait [drm]] *ERROR* flip_done timed out
Aug 06 19:11:52 thinkpad kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [PLANE:55:plane-3] commit wait timed out
Aug 06 19:11:52 thinkpad kernel: ------------[ cut here ]------------
Aug 06 19:11:52 thinkpad kernel: WARNING: CPU: 2 PID: 626 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8445 amdgpu_dm_atomic_commit_tail+0x2627/0x2690 [amdgpu]
Aug 06 19:11:52 thinkpad kernel: Modules linked in: ccm xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay intel_rapl_msr intel_rapl_common uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common iwlmvm videodev mc edac_mce_amd joydev mousedev mac80211 nls_iso8859_1 kvm_amd snd_ctl_led libarc4 snd_hda_codec_realtek vfat fat snd_hda_codec_generic kvm snd_hda_codec_hdmi iwlwifi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi wmi_bmof irqbypass hid_lenovo snd_hda_codec crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_core aesni_intel snd_hwdep crypto_simd cryptd psmouse cfg80211 snd_pcm rapl thinkpad_acpi ccp pcspkr k10temp sp5100_tco platform_profile snd_rn_pci_acp3x i2c_piix4 snd_timer ledtrig_audio ucsi_acpi rng_core rfkill typec_ucsi typec snd roles wmi soundcore video usbhid i2c_scmi pinctrl_amd mac_hid acpi_cpufreq crypto_user fuse
Aug 06 19:11:52 thinkpad kernel:  bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 crc32c_intel xhci_pci xhci_pci_renesas i8042 serio amdgpu drm_ttm_helper ttm gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm agpgart
Aug 06 19:11:52 thinkpad kernel: CPU: 2 PID: 626 Comm: Xorg Not tainted 5.13.8-arch1-1 #1
Aug 06 19:11:52 thinkpad kernel: Hardware name: LENOVO 20NJCTO1WW/20NJCTO1WW, BIOS R12ET57W(1.27 ) 11/24/2020
Aug 06 19:11:52 thinkpad kernel: RIP: 0010:amdgpu_dm_atomic_commit_tail+0x2627/0x2690 [amdgpu]
Aug 06 19:11:52 thinkpad kernel: Code: ff ff 01 c7 85 1c fd ff ff 37 00 00 00 c7 85 24 fd ff ff 20 00 00 00 e8 b7 43 13 00 e9 a0 fa ff ff 0f 0b e9 de f8 ff ff 0f 0b <0f> 0b e9 4e f9 ff ff 0f 0b e9 67 f9 ff ff 49 8b 06 41 0f b6 8e 2d
Aug 06 19:11:52 thinkpad kernel: RSP: 0018:ffffb5f241feb898 EFLAGS: 00010002
Aug 06 19:11:52 thinkpad kernel: RAX: 0000000000000002 RBX: 000000000000058f RCX: ffff9b180831d918
Aug 06 19:11:52 thinkpad kernel: RDX: 0000000000000001 RSI: 0000000000000297 RDI: ffff9b1809b00178
Aug 06 19:11:52 thinkpad kernel: RBP: ffffb5f241febc30 R08: 0000000000000005 R09: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: R10: ffffb5f241feb7f8 R11: ffffb5f241feb7fc R12: 0000000000000286
Aug 06 19:11:52 thinkpad kernel: R13: ffff9b180831d800 R14: ffff9b1804ac7000 R15: ffff9b1800c2bd00
Aug 06 19:11:52 thinkpad kernel: FS:  00007f9b4ee78940(0000) GS:ffff9b1ab0a80000(0000) knlGS:0000000000000000
Aug 06 19:11:52 thinkpad kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 06 19:11:52 thinkpad kernel: CR2: 00007f9b440529e0 CR3: 000000011e9a2000 CR4: 00000000003506e0
Aug 06 19:11:52 thinkpad kernel: Call Trace:
Aug 06 19:11:52 thinkpad kernel:  commit_tail+0x94/0x120 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_atomic_helper_commit+0x113/0x140 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_atomic_helper_set_config+0x70/0xb0 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_mode_setcrtc+0x203/0x730 [drm]
Aug 06 19:11:52 thinkpad kernel:  ? drm_mode_getcrtc+0x170/0x170 [drm]
Aug 06 19:11:52 thinkpad kernel:  drm_ioctl_kernel+0xb2/0x100 [drm]
Aug 06 19:11:52 thinkpad kernel:  drm_ioctl+0x22a/0x3d0 [drm]
Aug 06 19:11:52 thinkpad kernel:  ? drm_mode_getcrtc+0x170/0x170 [drm]
Aug 06 19:11:52 thinkpad kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Aug 06 19:11:52 thinkpad kernel:  __x64_sys_ioctl+0x82/0xb0
Aug 06 19:11:52 thinkpad kernel:  do_syscall_64+0x40/0x80
Aug 06 19:11:52 thinkpad kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Aug 06 19:11:52 thinkpad kernel: RIP: 0033:0x7f9b4f8c159b
Aug 06 19:11:52 thinkpad kernel: Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a5 a8 0c 00 f7 d8 64 89 01 48
Aug 06 19:11:52 thinkpad kernel: RSP: 002b:00007ffed0a12a38 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Aug 06 19:11:52 thinkpad kernel: RAX: ffffffffffffffda RBX: 00007ffed0a12a70 RCX: 00007f9b4f8c159b
Aug 06 19:11:52 thinkpad kernel: RDX: 00007ffed0a12a70 RSI: 00000000c06864a2 RDI: 000000000000000a
Aug 06 19:11:52 thinkpad kernel: RBP: 00000000c06864a2 R08: 0000000000000000 R09: 000056533be5c350
Aug 06 19:11:52 thinkpad kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: R13: 000000000000000a R14: 000056533b4b8670 R15: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: ---[ end trace 141fafd8c4a963c4 ]---
Aug 06 19:11:52 thinkpad kernel: ------------[ cut here ]------------
Aug 06 19:11:52 thinkpad kernel: WARNING: CPU: 2 PID: 626 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8030 amdgpu_dm_atomic_commit_tail+0x262e/0x2690 [amdgpu]
Aug 06 19:11:52 thinkpad kernel: Modules linked in: ccm xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay intel_rapl_msr intel_rapl_common uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common iwlmvm videodev mc edac_mce_amd joydev mousedev mac80211 nls_iso8859_1 kvm_amd snd_ctl_led libarc4 snd_hda_codec_realtek vfat fat snd_hda_codec_generic kvm snd_hda_codec_hdmi iwlwifi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi wmi_bmof irqbypass hid_lenovo snd_hda_codec crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_core aesni_intel snd_hwdep crypto_simd cryptd psmouse cfg80211 snd_pcm rapl thinkpad_acpi ccp pcspkr k10temp sp5100_tco platform_profile snd_rn_pci_acp3x i2c_piix4 snd_timer ledtrig_audio ucsi_acpi rng_core rfkill typec_ucsi typec snd roles wmi soundcore video usbhid i2c_scmi pinctrl_amd mac_hid acpi_cpufreq crypto_user fuse
Aug 06 19:11:52 thinkpad kernel:  bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 crc32c_intel xhci_pci xhci_pci_renesas i8042 serio amdgpu drm_ttm_helper ttm gpu_sched i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec drm agpgart
Aug 06 19:11:52 thinkpad kernel: CPU: 2 PID: 626 Comm: Xorg Tainted: G        W         5.13.8-arch1-1 #1
Aug 06 19:11:52 thinkpad kernel: Hardware name: LENOVO 20NJCTO1WW/20NJCTO1WW, BIOS R12ET57W(1.27 ) 11/24/2020
Aug 06 19:11:52 thinkpad kernel: RIP: 0010:amdgpu_dm_atomic_commit_tail+0x262e/0x2690 [amdgpu]
Aug 06 19:11:52 thinkpad kernel: Code: ff ff 37 00 00 00 c7 85 24 fd ff ff 20 00 00 00 e8 b7 43 13 00 e9 a0 fa ff ff 0f 0b e9 de f8 ff ff 0f 0b 0f 0b e9 4e f9 ff ff <0f> 0b e9 67 f9 ff ff 49 8b 06 41 0f b6 8e 2d 01 00 00 48 c7 c6 30
Aug 06 19:11:52 thinkpad kernel: RSP: 0018:ffffb5f241feb898 EFLAGS: 00010086
Aug 06 19:11:52 thinkpad kernel: RAX: 0000000000000001 RBX: 000000000000058f RCX: ffff9b180831d918
Aug 06 19:11:52 thinkpad kernel: RDX: 0000000000000001 RSI: 0000000000000297 RDI: ffff9b1809b00178
Aug 06 19:11:52 thinkpad kernel: RBP: ffffb5f241febc30 R08: 0000000000000005 R09: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: R10: ffffb5f241feb7f8 R11: ffffb5f241feb7fc R12: 0000000000000286
Aug 06 19:11:52 thinkpad kernel: R13: ffff9b180831d800 R14: ffff9b1804ac7000 R15: ffff9b1800c2bd00
Aug 06 19:11:52 thinkpad kernel: FS:  00007f9b4ee78940(0000) GS:ffff9b1ab0a80000(0000) knlGS:0000000000000000
Aug 06 19:11:52 thinkpad kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 06 19:11:52 thinkpad kernel: CR2: 00007f9b440529e0 CR3: 000000011e9a2000 CR4: 00000000003506e0
Aug 06 19:11:52 thinkpad kernel: Call Trace:
Aug 06 19:11:52 thinkpad kernel:  commit_tail+0x94/0x120 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_atomic_helper_commit+0x113/0x140 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_atomic_helper_set_config+0x70/0xb0 [drm_kms_helper]
Aug 06 19:11:52 thinkpad kernel:  drm_mode_setcrtc+0x203/0x730 [drm]
Aug 06 19:11:52 thinkpad kernel:  ? drm_mode_getcrtc+0x170/0x170 [drm]
Aug 06 19:11:52 thinkpad kernel:  drm_ioctl_kernel+0xb2/0x100 [drm]
Aug 06 19:11:52 thinkpad kernel:  drm_ioctl+0x22a/0x3d0 [drm]
Aug 06 19:11:52 thinkpad kernel:  ? drm_mode_getcrtc+0x170/0x170 [drm]
Aug 06 19:11:52 thinkpad kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Aug 06 19:11:52 thinkpad kernel:  __x64_sys_ioctl+0x82/0xb0
Aug 06 19:11:52 thinkpad kernel:  do_syscall_64+0x40/0x80
Aug 06 19:11:52 thinkpad kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Aug 06 19:11:52 thinkpad kernel: RIP: 0033:0x7f9b4f8c159b
Aug 06 19:11:52 thinkpad kernel: Code: ff ff ff 85 c0 79 9b 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a5 a8 0c 00 f7 d8 64 89 01 48
Aug 06 19:11:52 thinkpad kernel: RSP: 002b:00007ffed0a12a38 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Aug 06 19:11:52 thinkpad kernel: RAX: ffffffffffffffda RBX: 00007ffed0a12a70 RCX: 00007f9b4f8c159b
Aug 06 19:11:52 thinkpad kernel: RDX: 00007ffed0a12a70 RSI: 00000000c06864a2 RDI: 000000000000000a
Aug 06 19:11:52 thinkpad kernel: RBP: 00000000c06864a2 R08: 0000000000000000 R09: 000056533be5c350
Aug 06 19:11:52 thinkpad kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: R13: 000000000000000a R14: 000056533b4b8670 R15: 0000000000000000
Aug 06 19:11:52 thinkpad kernel: ---[ end trace 141fafd8c4a963c5 ]---
Aug 06 19:11:54 thinkpad wpa_supplicant[429]: wlp1s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-67 noise=9999 txrate=180000

Last edited by DeletedUser210826 (2021-08-06 19:51:17)

Offline

#10 2021-08-07 12:31:19

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Hey!
I tried with the patches in two different self-compiled kernels, but the problem still existed.
The only difference is that I don't see these errors anymore in the journal. Usually after rebooting, these red lines would show up, now the last log entry is the suspend to deep sleep one, nothing after that indicates a crash..
Right now it has been more than a week since I experienced this hangup, so maybe something changed?
Kind regards!

Offline

#11 2021-08-07 15:44:01

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Ofcourse, a few hours after posting the above, the laptop again was unable to wake from sleep. Errors are back in the journal..

Are we the only ones running arch on a laptop with AMD cpu?

Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8010] device (p2p-dev-wlp1s0): supplicant management interface state: 4way_handshake -> completed
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8011] device (wlp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8014] dhcp4 (wlp1s0): activation: beginning transaction (timeout in 45 seconds)
Aug 07 17:32:04 T49 NetworkManager[475]: libndp: ndp_sock_open: Failed to create ICMP6 socket.
Aug 07 17:32:04 T49 NetworkManager[475]: <error> [1628350324.8039] device (wlp1s0): addrconf6: failed to start neighbor discovery: failure creating libndp socket: Address family not supporte>
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8597] dhcp4 (wlp1s0): state changed unknown -> bound, address=192.168.7.5
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8636] device (wlp1s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8656] device (wlp1s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8658] device (wlp1s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8661] manager: NetworkManager state is now CONNECTED_LOCAL
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8687] manager: NetworkManager state is now CONNECTED_SITE
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8687] policy: set 'nyquist' (wlp1s0) as default for IPv4 routing and DNS
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8754] device (wlp1s0): Activation: successful, device activated.
Aug 07 17:32:04 T49 NetworkManager[475]: <info>  [1628350324.8758] manager: NetworkManager state is now CONNECTED_GLOBAL
Aug 07 17:32:08 T49 kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] flip_done timed out
Aug 07 17:32:14 T49 systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Aug 07 17:32:14 T49 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? term>
Aug 07 17:32:14 T49 kernel: audit: type=1131 audit(1628350334.786:198): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/sy>
Aug 07 17:32:16 T49 root[138814]: ACPI group/action undefined: button/f20 / F20
Aug 07 17:32:17 T49 root[138816]: ACPI group/action undefined: button/mute / MUTE
Aug 07 17:32:17 T49 root[138824]: ACPI group/action undefined: button/mute / MUTE
Aug 07 17:32:21 T49 kernel: [drm:drm_crtc_commit_wait [drm]] *ERROR* flip_done timed out
Aug 07 17:32:21 T49 kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:67:crtc-0] commit wait timed out
Aug 07 17:32:31 T49 kernel: [drm:drm_crtc_commit_wait [drm]] *ERROR* flip_done timed out
Aug 07 17:32:31 T49 kernel: [drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CONNECTOR:78:eDP-1] commit wait timed out

Last edited by tubize (2021-08-07 15:44:41)

Offline

#12 2021-08-07 16:26:21

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Laptop randomly unable to wake from suspend state

If you can half-wise reliably reproduce this try those kernel parameters (you might not be able to go w/o amdgpu.dc and amdgpu.audio is likely irrelevant - the rest is power management stuff)

amdgpu.dc=0 amdgpu.audio=0 amdgpu.dpm=0 amdgpu.aspm=0 amdgpu.runpm=0 amdgpu.bapm=0

If that makes the problem go away, try to narrow down the critical parameter.

Also https://wiki.archlinux.org/title/Lenovo … own_Issues

Offline

#13 2021-08-07 17:27:17

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

Thanks seth!
I added those parameters, except amdgpu.dpm=0 and amdgpu.dc=0 (system wouldn't boot) and I'll run it a few weeks. Will the battery life be affected with these kernel options?

Last edited by tubize (2021-08-07 18:22:46)

Offline

#14 2021-08-07 18:47:14

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Laptop randomly unable to wake from suspend state

I'm afraid so - they're explained at https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html

I'd understand that you maybe need dc, but are you positive that the system doesn't boot w/o dpm enabled (I will say that it probably also has the biggest impact on battery live)
Do you happen to have a parallel windows installation? (Because 3rd link below)

Offline

#15 2021-08-08 08:29:19

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

I've tested the parameters, the issue persists. Can also confirm the system doesn't boot with dc=0 or dpm=0

Do you happen to have a parallel windows installation?

No

Offline

#16 2021-08-08 11:54:01

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Laptop randomly unable to wake from suspend state

"no_console_suspend" (no amdgpu.), https://gitlab.freedesktop.org/drm/amd/-/issues/1414 ?
(Though the trace ends in drm_get_last_vbltimestamp …)

Offline

#17 2021-08-08 13:30:10

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

Sometimes it hangs also on suspend entry, just happened with "no_console_suspend"

Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.1306] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.1307] device (p2p-dev-wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.1315] manager: NetworkManager state is now ASLEEP
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.1318] device (wlp1s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Aug 08 14:13:57 thinkpad dbus-daemon[394]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=395 comm="/usr/bin/NetworkManager --no-daemon ")
Aug 08 14:13:57 thinkpad systemd[1]: Starting Network Manager Script Dispatcher Service...
Aug 08 14:13:57 thinkpad dbus-daemon[394]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Aug 08 14:13:57 thinkpad systemd[1]: Started Network Manager Script Dispatcher Service.
Aug 08 14:13:57 thinkpad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 08 14:13:57 thinkpad kernel: audit: type=1130 audit(1628424837.154:110): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 08 14:13:57 thinkpad kernel: wlp1s0: deauthenticating from dc:39:6f:f2:25:75 by local choice (Reason: 3=DEAUTH_LEAVING)
Aug 08 14:13:57 thinkpad systemd-resolved[383]: wlp1s0: Bus client reset search domain list.
Aug 08 14:13:57 thinkpad systemd-resolved[383]: wlp1s0: Bus client set default route setting: no
Aug 08 14:13:57 thinkpad systemd-resolved[383]: wlp1s0: Bus client reset DNS server list.
Aug 08 14:13:57 thinkpad wpa_supplicant[460]: wlp1s0: CTRL-EVENT-DISCONNECTED bssid=dc:39:6f:f2:25:75 reason=3 locally_generated=1
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.2884] device (wlp1s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3111] dhcp4 (wlp1s0): canceled DHCP transaction
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3111] dhcp4 (wlp1s0): state changed bound -> terminated
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3148] device (wlp1s0): set-hw-addr: set MAC address to 7E:7C:4F:3C:C4:83 (scanning)
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3209] device (wlp1s0): supplicant interface state: completed -> disconnected
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3214] device (wlp1s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Aug 08 14:13:57 thinkpad NetworkManager[395]: <info>  [1628424837.3244] device (wlp1s0): set-hw-addr: reset MAC address to 98:AF:65:DC:16:F3 (unmanage)
Aug 08 14:13:57 thinkpad wpa_supplicant[460]: nl80211: deinit ifname=p2p-dev-wlp1s0 disabled_11b_rates=0
Aug 08 14:13:57 thinkpad systemd[1]: Reached target Sleep.
Aug 08 14:13:57 thinkpad systemd[1]: Starting delayed hibernation trigger...
Aug 08 14:13:57 thinkpad systemd[1]: Starting System Suspend...
Aug 08 14:13:57 thinkpad sh[1049]: alarm set for
Aug 08 14:13:57 thinkpad sh[1052]: 1628432037
Aug 08 14:13:57 thinkpad systemd[1]: Finished delayed hibernation trigger.
Aug 08 14:13:57 thinkpad audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 08 14:13:57 thinkpad systemd-sleep[1050]: Entering sleep state 'suspend'...
Aug 08 14:13:57 thinkpad kernel: audit: type=1130 audit(1628424837.411:111): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=suspend-to-hibernate comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Aug 08 14:13:57 thinkpad kernel: PM: suspend entry (deep)
Aug 08 14:13:57 thinkpad kernel: Filesystems sync: 0.017 seconds
Aug 08 14:13:57 thinkpad wpa_supplicant[460]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Aug 08 14:14:00 thinkpad kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Aug 08 14:14:00 thinkpad kernel: OOM killer disabled.
Aug 08 14:14:00 thinkpad kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Aug 08 14:14:00 thinkpad kernel: [drm] free PSP TMR buffer
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: interrupt blocked
Aug 08 14:14:00 thinkpad kernel: ACPI: Preparing to enter system sleep state S3
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: event blocked
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: EC stopped
Aug 08 14:14:00 thinkpad kernel: PM: Saving platform NVS memory
Aug 08 14:14:00 thinkpad kernel: Disabling non-boot CPUs ...
Aug 08 14:14:00 thinkpad kernel: Wakeup pending. Abort CPU freeze
Aug 08 14:14:00 thinkpad kernel: Non-boot CPUs are not disabled
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: EC started
Aug 08 14:14:00 thinkpad kernel: ACPI: Waking up from system sleep state S3
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: interrupt unblocked
Aug 08 14:14:00 thinkpad kernel: hpet: Lost 45 RTC interrupts
Aug 08 14:14:00 thinkpad kernel: ACPI: EC: event unblocked
Aug 08 14:14:00 thinkpad kernel: [drm] PCIE GART of 1024M enabled.
Aug 08 14:14:00 thinkpad kernel: [drm] PTB located at 0x000000F400900000
Aug 08 14:14:00 thinkpad kernel: [drm] PSP is resuming...
Aug 08 14:14:00 thinkpad kernel: nvme nvme0: Shutdown timeout set to 8 seconds
Aug 08 14:14:00 thinkpad kernel: [drm] reserve 0x400000 from 0xf47fc00000 for PSP TMR
Aug 08 14:14:00 thinkpad kernel: nvme nvme0: 16/0/0 default/read/poll queues
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
Aug 08 14:14:00 thinkpad kernel: [drm] kiq ring mec 2 pipe 1 q 0
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring sdma0 test failed (-110)
Aug 08 14:14:00 thinkpad kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <sdma_v4_0> failed -110
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: amdgpu_device_ip_resume failed (-110).
Aug 08 14:14:00 thinkpad kernel: PM: dpm_run_callback(): pci_pm_resume+0x0/0xe0 returns -110
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: PM: failed to resume async: error -110
Aug 08 14:14:00 thinkpad kernel: acpi LNXPOWER:00: Turning OFF
Aug 08 14:14:00 thinkpad kernel: OOM killer enabled.
Aug 08 14:14:00 thinkpad kernel: Restarting tasks ... 
Aug 08 14:14:00 thinkpad kernel: pci_bus 0000:01: Allocating resources
Aug 08 14:14:00 thinkpad kernel: pci_bus 0000:02: Allocating resources
Aug 08 14:14:00 thinkpad kernel: pcieport 0000:00:01.3: bridge window [io  0x1000-0x0fff] to [bus 02] add_size 1000
Aug 08 14:14:00 thinkpad kernel: pcieport 0000:00:01.3: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 02] add_size 200000 add_align 100000
Aug 08 14:14:00 thinkpad kernel: pcieport 0000:00:01.3: BAR 15: assigned [mem 0xd0a00000-0xd0bfffff 64bit pref]
Aug 08 14:14:00 thinkpad kernel: pcieport 0000:00:01.3: BAR 13: assigned [io  0x3000-0x3fff]
Aug 08 14:14:00 thinkpad kernel: done.
Aug 08 14:14:00 thinkpad kernel: pci_bus 0000:03: Allocating resources
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: couldn't schedule ib on ring <sdma0>
Aug 08 14:14:00 thinkpad kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: couldn't schedule ib on ring <sdma0>
Aug 08 14:14:00 thinkpad kernel: [drm:amdgpu_job_run [amdgpu]] *ERROR* Error scheduling IBs (-22)
Aug 08 14:14:00 thinkpad kernel: PM: suspend exit
Aug 08 14:14:00 thinkpad kernel: PM: suspend entry (s2idle)
Aug 08 14:14:00 thinkpad kernel: Filesystems sync: 0.015 seconds
Aug 08 14:14:00 thinkpad kernel: [drm] Fence fallback timer expired on ring gfx

Could be a different issue, however it makes the wake up hangs even harder to debug

Early KMS start is enabled for amdgpu (https://wiki.archlinux.org/title/Kernel … _KMS_start), is it relevant?

Also, random wake up hangs are present in kernel 5.10 as well, so the issue has been introduced between versions 5.5 and 5.10

Offline

#18 2021-08-08 13:37:37

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Laptop randomly unable to wake from suspend state

Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring sdma0 test failed (-110)
Aug 08 14:14:00 thinkpad kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <sdma_v4_0> failed -110
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: amdgpu: amdgpu_device_ip_resume failed (-110).
Aug 08 14:14:00 thinkpad kernel: PM: dpm_run_callback(): pci_pm_resume+0x0/0xe0 returns -110
Aug 08 14:14:00 thinkpad kernel: amdgpu 0000:03:00.0: PM: failed to resume async: error -110

That's directly in dpm…

Do you have (early) https://wiki.archlinux.org/title/Microcode ?
Can you boot "nomodeset" w/o dpm?

Offline

#19 2021-08-08 13:49:59

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

Yes

Can you boot "nomodeset" w/o dpm?

Yes, but xorg fails to start

Offline

#20 2021-08-08 13:55:56

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: Laptop randomly unable to wake from suspend state

Perfectly expectable.
Can you boot the multi-user.target (see 2nd link below, or just remove the quiet parameter to see what's going on) w/o dpm?

Offline

#21 2021-08-08 14:15:57

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

Yes tty is loaded and multi-user.target is active

Last edited by DeletedUser210826 (2021-08-08 15:09:39)

Offline

#22 2021-08-09 14:22:21

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

seth wrote:

I'm afraid so - they're explained at https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html

I'd understand that you maybe need dc, but are you positive that the system doesn't boot w/o dpm enabled (I will say that it probably also has the biggest impact on battery live)
Do you happen to have a parallel windows installation? (Because 3rd link below)

I can confirm that it won't boot with dpm disabled. With DC disabled, the screen shows some weird colored lines and with dpm disabled, screen's completely black.
My system just failed to wakeup from deepsleep, so the remaining kernel options didn't help.
No windows dualbooting or any other funny business on this machine either.
I have early microcode enabled.

Thanks for helping us!

Offline

#23 2021-08-09 19:25:24

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Laptop randomly unable to wake from suspend state

https://gitlab.freedesktop.org/drm/amd/-/issues/1458

Looks like the issue has been introduced in kernel 5.10 with this commit https://git.kernel.org/pub/scm/linux/ke … 92b99ff9fc

Offline

#24 2021-10-09 09:44:49

tubize
Member
Registered: 2021-06-07
Posts: 17

Re: Laptop randomly unable to wake from suspend state

^ hmm, no idea why my fellow AMD user got banned..
I'm happy to report though, that the problem seems to be fixed. It's been over a month without crashing after suspend.
I'm on 5.14.9 now. Thanks!

Offline

#25 2021-10-09 11:03:09

Ammako
Member
Registered: 2021-07-16
Posts: 267

Re: Laptop randomly unable to wake from suspend state

tubize wrote:

^ hmm, no idea why my fellow AMD user got banned..

Judging by the username, it looks like they requested account closure+anonymization.

Offline

Board footer

Powered by FluxBB