Closed davidak closed 2 months ago
I have this issue on and off with an AMD RX 5700XT and I also believe this is caused by the amdgpu driver.
edit: hibernating/suspending few times is enough to trigger the bug. The number of times I can suspend/hibernate varies before my desktop session is unusable (Sway) and my USB devices stop working.
@berbiche thanks. can you try if you can reproduce it reliably with the steps to reproduce?
@davidak I couldn't reproduce the problem reliably. The system's memory usage did not seem to matter.
i think have this same issue and using zram helps
@Artturin i think that only obfuscates the issue. like having swap or more ram does also help, because the ram does not get full
I still have this issue.
NixOS 22.05.3373.13cbe534ebe Linux 5.15.70 AMD RX 6600XT
Commented upstream: https://gitlab.freedesktop.org/drm/amd/-/issues/1575#note_1576703
No one at AMD noticed my report for a year now, so i e-mailed them...
They told me they only support the operating systems RHEL, Ubuntu, SLED / SLES and Windows. So we don't get any support.
For a screenshot of their reply, see my social media post: https://chaos.social/@davidak/109127096164812811
So i think the only thing we can do is using a kernel version that works stable and avoid those that crash often.
I was able to reproduce the issue on Ubuntu and created a new issue: https://gitlab.freedesktop.org/drm/amd/-/issues/2223
I was not able to create a new support ticket since their contact form is broken:
Fixed upstream in https://gitlab.freedesktop.org/drm/amd/-/issues/2223
I leave this open until it is in our kernel. It will probably be in 6.2.
Describe the bug When i suspend my system and try to resume again by hitting a key on the keyboard, the computer turns on (power supply clicks, fans turn on) but the screen stays black.
I have to turn it off hard by holding the power button for several seconds, to start it clean.
I'm able to reproduce it reliably with the provided steps to reproduce.
When RAM is not full, i don't have this issue.
There are also mentions of
amdgpu
. Maybe it could be related to that?In any case, this looks like a kernel/driver issue and not caused by nixos itself.
This is the log from the time i suspended:
``` Apr 18 10:41:22 gaming io.elementary.wingpanel.desktop[43402]: JavaScript warning: https://s3-eu-central-1.amazonaws.com/prod.iqdcontroller.iqdigital/cdn_wissenschaft_dt/live/iqadcontroller.js.gz, line 7: unreachable code after return statement Apr 18 10:44:51 gaming io.elementary.wingpanel.desktop[43233]: ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost Apr 18 10:46:37 gaming io.elementary.wingpanel.desktop[43379]: JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. Apr 18 10:46:37 gaming io.elementary.wingpanel.desktop[43379]: JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory. Apr 18 10:46:47 gaming ModemManager[2134]:This is the log from the time i tried to resume:
``` Apr 18 10:46:48 gaming kernel: Filesystems sync: 0.035 seconds Apr 19 05:11:28 gaming kernel: Freezing user space processes ... (elapsed 0.001 seconds) done. Apr 19 05:11:28 gaming kernel: OOM killer disabled. Apr 19 05:11:28 gaming kernel: Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done. Apr 19 05:11:28 gaming kernel: printk: Suspending console(s) (use no_console_suspend to debug) Apr 19 05:11:28 gaming kernel: serial 00:01: disabled Apr 19 05:11:28 gaming kernel: sd 4:0:0:0: [sda] Synchronizing SCSI cache Apr 19 05:11:28 gaming kernel: sd 4:0:0:0: [sda] Stopping disk Apr 19 05:11:28 gaming kernel: kworker/u32:13: page allocation failure: order:0, mode:0x104c02(GFP_NOIO|__GFP_HIGHMEM|__GFP_RETRY_MAYFAIL|__GFP_HARDWALL), nodemask=(null),cpuset=/,mems_allowed=0 Apr 19 05:11:28 gaming kernel: CPU: 12 PID: 53970 Comm: kworker/u32:13 Not tainted 5.10.29 #1-NixOS Apr 19 05:11:28 gaming kernel: Hardware name: Gigabyte Technology Co., Ltd. Z390 UD/Z390 UD, BIOS F6 01/16/2019 Apr 19 05:11:28 gaming kernel: Workqueue: events_unbound async_run_entry_fn Apr 19 05:11:28 gaming kernel: Call Trace: Apr 19 05:11:28 gaming kernel: dump_stack+0x6b/0x83 Apr 19 05:11:28 gaming kernel: warn_alloc.cold+0x78/0xdc Apr 19 05:11:28 gaming kernel: ? unreserve_highatomic_pageblock+0x192/0x1d0 Apr 19 05:11:28 gaming kernel: __alloc_pages_slowpath.constprop.0+0xc6e/0xca0 Apr 19 05:11:28 gaming kernel: __alloc_pages_nodemask+0x308/0x340 Apr 19 05:11:28 gaming kernel: ttm_alloc_new_pages.isra.0+0x98/0x2f0 [ttm] Apr 19 05:11:28 gaming kernel: ttm_pool_populate.part.0+0xaf/0x480 [ttm] Apr 19 05:11:28 gaming kernel: ttm_populate_and_map_pages+0x4a/0x1d0 [ttm] Apr 19 05:11:28 gaming kernel: ttm_tt_populate+0x2b/0x80 [ttm] Apr 19 05:11:28 gaming kernel: ttm_bo_handle_move_mem+0x42b/0x460 [ttm] Apr 19 05:11:28 gaming kernel: ttm_bo_evict+0x120/0x170 [ttm] Apr 19 05:11:28 gaming kernel: ttm_mem_evict_first+0x10c/0x3b0 [ttm] Apr 19 05:11:28 gaming kernel: ttm_resource_manager_force_list_clean+0xb9/0x1d0 [ttm] Apr 19 05:11:28 gaming kernel: amdgpu_device_suspend+0x8b/0x2a0 [amdgpu] Apr 19 05:11:28 gaming kernel: pci_pm_suspend+0x74/0x160 Apr 19 05:11:28 gaming kernel: ? pci_pm_freeze+0xb0/0xb0 Apr 19 05:11:28 gaming kernel: dpm_run_callback+0x4c/0x120 Apr 19 05:11:28 gaming kernel: __device_suspend+0xfa/0x410 Apr 19 05:11:28 gaming kernel: async_suspend+0x1b/0x90 Apr 19 05:11:28 gaming kernel: async_run_entry_fn+0x37/0x140 Apr 19 05:11:28 gaming kernel: process_one_work+0x1df/0x370 Apr 19 05:11:28 gaming kernel: worker_thread+0x50/0x400 Apr 19 05:11:28 gaming kernel: ? process_one_work+0x370/0x370 Apr 19 05:11:28 gaming kernel: kthread+0x11b/0x140 Apr 19 05:11:28 gaming kernel: ? __kthread_bind_mask+0x60/0x60 Apr 19 05:11:28 gaming kernel: ret_from_fork+0x22/0x30 Apr 19 05:11:28 gaming kernel: Mem-Info: Apr 19 05:11:28 gaming kernel: active_anon:2 inactive_anon:7362988 isolated_anon:0 active_file:117 inactive_file:152 isolated_file:0 unevictable:20 dirty:52 writeback:0 slab_reclaimable:43643 slab_unreclaimable:41377 mapped:135 shmem:2312044 pagetables:38398 bounce:0 free:100456 free_pcp:0 free_cma:0 Apr 19 05:11:28 gaming kernel: Node 0 active_anon:8kB inactive_anon:29451952kB active_file:468kB inactive_file:608kB unevictable:80kB isolated(anon):0kB isolated(file):0kB mapped:540kB dirty:208kB writeback:0kB shmem:9248176kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 16384kB writeback_tmp:0kB kernel_stack:27904kB all_unreclaimable? no Apr 19 05:11:28 gaming kernel: Node 0 DMA free:15900kB min:32kB low:44kB high:56kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15984kB managed:15900kB mlocked:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Apr 19 05:11:28 gaming kernel: lowmem_reserve[]: 0 891 32013 32013 32013 Apr 19 05:11:28 gaming kernel: Node 0 DMA32 free:126368kB min:1880kB low:2792kB high:3704kB reserved_highatomic:0KB active_anon:0kB inactive_anon:741048kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:996632kB managed:931096kB mlocked:0kB pagetables:1904kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Apr 19 05:11:28 gaming kernel: lowmem_reserve[]: 0 0 31122 31122 31122 Apr 19 05:11:28 gaming kernel: Node 0 Normal free:259556kB min:259772kB low:291640kB high:323508kB reserved_highatomic:0KB active_anon:8kB inactive_anon:28710876kB active_file:468kB inactive_file:608kB unevictable:80kB writepending:208kB present:32473088kB managed:31874352kB mlocked:80kB pagetables:151688kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB Apr 19 05:11:28 gaming kernel: lowmem_reserve[]: 0 0 0 0 0 Apr 19 05:11:28 gaming kernel: Node 0 DMA: 1*4kB (U) 1*8kB (U) 1*16kB (U) 0*32kB 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15900kB Apr 19 05:11:28 gaming kernel: Node 0 DMA32: 2734*4kB (ME) 945*8kB (UME) 452*16kB (ME) 233*32kB (UME) 140*64kB (ME) 46*128kB (ME) 10*256kB (UME) 4*512kB (ME) 0*1024kB 2*2048kB (E) 17*4096kB (M) = 126368kB Apr 19 05:11:28 gaming kernel: Node 0 Normal: 63847*4kB (UME) 521*8kB (UM) 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 259556kB Apr 19 05:11:28 gaming kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Apr 19 05:11:28 gaming kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB Apr 19 05:11:28 gaming kernel: 2312313 total pagecache pages Apr 19 05:11:28 gaming kernel: 0 pages in swap cache Apr 19 05:11:28 gaming kernel: Swap cache stats: add 430109, delete 430137, find 31465/51866 Apr 19 05:11:28 gaming kernel: Free swap = 6922492kB Apr 19 05:11:28 gaming kernel: Total swap = 8388604kB Apr 19 05:11:28 gaming kernel: 8371426 pages RAM Apr 19 05:11:28 gaming kernel: 0 pages HighMem/MovableOnly Apr 19 05:11:28 gaming kernel: 166089 pages reserved Apr 19 05:11:28 gaming kernel: 0 pages cma reserved Apr 19 05:11:28 gaming kernel: [TTM] Buffer eviction failed Apr 19 05:11:28 gaming kernel: [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* suspend of IP blockAnother kernel issue from another try:
``` Apr 19 07:27:28 gaming kernel: ACPI: Waking up from system sleep state S3 Apr 19 07:27:28 gaming kernel: sd 4:0:0:0: [sda] Starting disk Apr 19 07:27:28 gaming kernel: serial 00:01: activated Apr 19 07:27:28 gaming kernel: nvme nvme0: Shutdown timeout set to 8 seconds Apr 19 07:27:28 gaming kernel: nvme nvme0: 16/0/0 default/read/poll queues Apr 19 07:27:28 gaming kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400000000). Apr 19 07:27:28 gaming kernel: ata1: SATA link down (SStatus 4 SControl 300) Apr 19 07:27:28 gaming kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) Apr 19 07:27:28 gaming kernel: ata4: SATA link down (SStatus 4 SControl 300) Apr 19 07:27:28 gaming kernel: ata6: SATA link down (SStatus 4 SControl 300) Apr 19 07:27:28 gaming kernel: ata3: SATA link down (SStatus 4 SControl 300) Apr 19 07:27:28 gaming kernel: ata2: SATA link down (SStatus 4 SControl 300) Apr 19 07:27:28 gaming kernel: ata5.00: supports DRM functions and may not be fully accessible Apr 19 07:27:28 gaming kernel: ata5.00: disabling queued TRIM support Apr 19 07:27:28 gaming kernel: ata5.00: supports DRM functions and may not be fully accessible Apr 19 07:27:28 gaming kernel: ata5.00: disabling queued TRIM support Apr 19 07:27:28 gaming kernel: ata5.00: configured for UDMA/133 Apr 19 07:27:28 gaming kernel: amdgpu 0000:01:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring gfx test failed (-110) Apr 19 07:27:28 gaming kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP blockwith kernel 5.4.111:
``` Apr 19 08:33:51 gaming kernel: BUG: kernel NULL pointer dereference, address: 0000000000000008 Apr 19 08:33:51 gaming kernel: #PF: supervisor read access in kernel mode Apr 19 08:33:51 gaming kernel: #PF: error_code(0x0000) - not-present page Apr 19 08:33:51 gaming kernel: PGD 0 P4D 0 Apr 19 08:33:51 gaming kernel: Oops: 0000 [#2] SMP NOPTI Apr 19 08:33:51 gaming kernel: CPU: 9 PID: 4555 Comm: chromium:shlo3 Tainted: G D 5.4.111 #1-NixOS Apr 19 08:33:51 gaming kernel: Hardware name: Gigabyte Technology Co., Ltd. Z390 UD/Z390 UD, BIOS F6 01/16/2019 Apr 19 08:33:51 gaming kernel: RIP: 0010:amdgpu_vm_sdma_commit+0x45/0x120 [amdgpu] Apr 19 08:33:51 gaming kernel: Code: 8b 04 25 28 00 00 00 48 89 44 24 08 48 8b 47 08 4c 8b a2 88 01 00 00 41 8b 54 24 08 4c 8b a8 80 00 00 00 48 8b 80 c8 00 00 00 <48> 8b 40 08 48 8d 78 88 85 d2 0f 84 b3 00 00 00 48 8b 40 90 4c 89 Apr 19 08:33:51 gaming kernel: RSP: 0018:ffff9b58c3fab950 EFLAGS: 00010286 Apr 19 08:33:51 gaming kernel: RAX: 0000000000000000 RBX: ffff9b58c3fab9f0 RCX: 0000000000100400 Apr 19 08:33:51 gaming kernel: RDX: 0000000000000014 RSI: ffff9b58c3fabab0 RDI: ffff9b58c3fab9f0 Apr 19 08:33:51 gaming kernel: RBP: ffff9b58c3fabab0 R08: 0000000000000000 R09: 0000000000000011 Apr 19 08:33:51 gaming kernel: R10: 000000000000000f R11: 000000000000000d R12: ffff8b8ad69b11f8 Apr 19 08:33:51 gaming kernel: R13: ffff8b83d45cf800 R14: 0000000000200000 R15: 0000000000100200 Apr 19 08:33:51 gaming kernel: FS: 0000000000000000(0000) GS:ffff8b8adda40000(0000) knlGS:0000000000000000 Apr 19 08:33:51 gaming kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Apr 19 08:33:51 gaming kernel: CR2: 0000000000000008 CR3: 0000000202a0a003 CR4: 00000000003606e0 Apr 19 08:33:51 gaming kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Apr 19 08:33:51 gaming kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Apr 19 08:33:51 gaming kernel: Call Trace: Apr 19 08:33:51 gaming kernel: amdgpu_vm_bo_update_mapping+0x5d1/0x800 [amdgpu] Apr 19 08:33:51 gaming kernel: amdgpu_vm_clear_freed+0xd2/0x1d0 [amdgpu] Apr 19 08:33:51 gaming kernel: amdgpu_gem_object_close+0x156/0x1c0 [amdgpu] Apr 19 08:33:51 gaming kernel: drm_gem_object_release_handle+0x30/0x90 [drm] Apr 19 08:33:51 gaming kernel: ? drm_gem_object_handle_put_unlocked+0xa0/0xa0 [drm] Apr 19 08:33:51 gaming kernel: idr_for_each+0x5e/0xd0 Apr 19 08:33:51 gaming kernel: drm_gem_release+0x1c/0x30 [drm] Apr 19 08:33:51 gaming kernel: drm_file_free.part.0+0x259/0x2c0 [drm] Apr 19 08:33:51 gaming kernel: drm_release+0x4b/0x80 [drm] Apr 19 08:33:51 gaming kernel: __fput+0xb9/0x250 Apr 19 08:33:51 gaming kernel: task_work_run+0x8a/0xb0 Apr 19 08:33:51 gaming kernel: do_exit+0x35d/0xa00 Apr 19 08:33:51 gaming kernel: do_group_exit+0x33/0xa0 Apr 19 08:33:51 gaming kernel: get_signal+0x16e/0x890 Apr 19 08:33:51 gaming kernel: ? __handle_mm_fault+0xa8b/0x1170 Apr 19 08:33:51 gaming kernel: do_signal+0x36/0x630 Apr 19 08:33:51 gaming kernel: ? __x64_sys_futex+0x134/0x170 Apr 19 08:33:51 gaming kernel: exit_to_usermode_loop+0x6c/0xc0 Apr 19 08:33:51 gaming kernel: do_syscall_64+0xff/0x120 Apr 19 08:33:51 gaming kernel: entry_SYSCALL_64_after_hwframe+0x44/0xa9 Apr 19 08:33:51 gaming kernel: RIP: 0033:0x7f1205d7415d Apr 19 08:33:51 gaming kernel: Code: Bad RIP value. Apr 19 08:33:51 gaming kernel: RSP: 002b:00007f11da1a8540 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca Apr 19 08:33:51 gaming kernel: RAX: fffffffffffffe00 RBX: 00001f9800526330 RCX: 00007f1205d7415d Apr 19 08:33:51 gaming kernel: RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00001f9800526358 Apr 19 08:33:51 gaming kernel: RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000003 Apr 19 08:33:51 gaming kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00001f9800526308 Apr 19 08:33:51 gaming kernel: R13: 0000000000000000 R14: 00001f9800526358 R15: 0000000000000000 Apr 19 08:33:51 gaming kernel: Modules linked in: af_packet rfcomm nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype br_netfilter overlay xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle> Apr 19 08:33:51 gaming kernel: x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_intel amd_iommu_v2 crct10dif_pclmul snd_intel_nhlt crc32_pclmul gpu_sched ghash_clmulni_intel evdev mac_hid sch_fq_codel snd_hda_codec ttm aesni_intel cry> Apr 19 08:33:51 gaming kernel: CR2: 0000000000000008 Apr 19 08:33:51 gaming kernel: ---[ end trace fcc74a8db9ca9156 ]--- Apr 19 08:33:51 gaming kernel: RIP: 0010:amdgpu_vm_sdma_commit+0x45/0x120 [amdgpu] Apr 19 08:33:51 gaming kernel: Code: 8b 04 25 28 00 00 00 48 89 44 24 08 48 8b 47 08 4c 8b a2 88 01 00 00 41 8b 54 24 08 4c 8b a8 80 00 00 00 48 8b 80 c8 00 00 00 <48> 8b 40 08 48 8d 78 88 85 d2 0f 84 b3 00 00 00 48 8b 40 90 4c 89 Apr 19 08:33:51 gaming kernel: RSP: 0018:ffff9b58c118fa88 EFLAGS: 00010286 Apr 19 08:33:51 gaming kernel: RAX: 0000000000000000 RBX: ffff9b58c118fb28 RCX: 0000000000102840 Apr 19 08:33:51 gaming kernel: RDX: 0000000000000034 RSI: ffff9b58c118fbe8 RDI: ffff9b58c118fb28 Apr 19 08:33:51 gaming kernel: RBP: ffff9b58c118fbe8 R08: 0000000000000000 R09: 0000000000000000 Apr 19 08:33:51 gaming kernel: R10: 0000000000000031 R11: 0000000000000021 R12: ffff8b844b0155f8 Apr 19 08:33:51 gaming kernel: R13: ffff8b8ab2b5b000 R14: 0000000000061000 R15: 00000000001024a2 Apr 19 08:33:51 gaming kernel: FS: 0000000000000000(0000) GS:ffff8b8adda40000(0000) knlGS:0000000000000000 Apr 19 08:33:51 gaming kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Apr 19 08:33:51 gaming kernel: CR2: 00007f1205d74133 CR3: 0000000202a0a003 CR4: 00000000003606e0 Apr 19 08:33:51 gaming kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Apr 19 08:33:51 gaming kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Apr 19 08:33:51 gaming kernel: Fixing recursive fault but reboot is needed! ```This is a log from a working resume:
``` Apr 19 06:34:37 gaming systemd[1]: Starting Pre-Sleep Actions... Apr 19 06:34:37 gaming systemd[1]: pre-sleep.service: Succeeded. Apr 19 06:34:37 gaming systemd[1]: Finished Pre-Sleep Actions. Apr 19 06:34:37 gaming systemd[1]: Reached target Sleep. Apr 19 06:34:37 gaming systemd[1]: Starting Restart Syncthing after resume... Apr 19 06:34:37 gaming systemd[1]: Starting Suspend... Apr 19 06:34:37 gaming systemd-sleep[6290]: Suspending system... Apr 19 06:34:37 gaming kernel: PM: suspend entry (deep) Apr 19 06:34:37 gaming kernel: Filesystems sync: 0.006 seconds Apr 19 06:39:42 gaming kernel: Freezing user space processes ... (elapsed 0.001 seconds) done. Apr 19 06:39:42 gaming kernel: OOM killer disabled. Apr 19 06:39:42 gaming kernel: Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done. Apr 19 06:39:42 gaming kernel: printk: Suspending console(s) (use no_console_suspend to debug) Apr 19 06:39:42 gaming kernel: serial 00:01: disabled Apr 19 06:39:42 gaming kernel: sd 4:0:0:0: [sda] Synchronizing SCSI cache Apr 19 06:39:42 gaming kernel: sd 4:0:0:0: [sda] Stopping disk Apr 19 06:39:42 gaming kernel: ACPI: Preparing to enter system sleep state S3 Apr 19 06:39:42 gaming kernel: PM: Saving platform NVS memory Apr 19 06:39:42 gaming kernel: Disabling non-boot CPUs ... Apr 19 06:39:42 gaming kernel: smpboot: CPU 1 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 2 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 3 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 4 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 5 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 6 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 7 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 8 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 9 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 10 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 11 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 12 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 13 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 14 is now offline Apr 19 06:39:42 gaming kernel: smpboot: CPU 15 is now offline Apr 19 06:39:42 gaming kernel: ACPI: Low-level resume complete Apr 19 06:39:42 gaming kernel: PM: Restoring platform NVS memory Apr 19 06:39:42 gaming kernel: smpboot: Scheduler frequency invariance went wobbly, disabling! Apr 19 06:39:42 gaming kernel: Enabling non-boot CPUs ... Apr 19 06:39:42 gaming kernel: x86: Booting SMP configuration: Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2 Apr 19 06:39:42 gaming kernel: CPU1 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4 Apr 19 06:39:42 gaming kernel: CPU2 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6 Apr 19 06:39:42 gaming kernel: CPU3 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 4 APIC 0x8 Apr 19 06:39:42 gaming kernel: CPU4 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 5 APIC 0xa Apr 19 06:39:42 gaming kernel: CPU5 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 6 APIC 0xc Apr 19 06:39:42 gaming kernel: CPU6 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 7 APIC 0xe Apr 19 06:39:42 gaming kernel: CPU7 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 8 APIC 0x1 Apr 19 06:39:42 gaming kernel: CPU8 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 9 APIC 0x3 Apr 19 06:39:42 gaming kernel: CPU9 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 10 APIC 0x5 Apr 19 06:39:42 gaming kernel: CPU10 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 11 APIC 0x7 Apr 19 06:39:42 gaming kernel: CPU11 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 12 APIC 0x9 Apr 19 06:39:42 gaming kernel: CPU12 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 13 APIC 0xb Apr 19 06:39:42 gaming kernel: CPU13 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 14 APIC 0xd Apr 19 06:39:42 gaming kernel: CPU14 is up Apr 19 06:39:42 gaming kernel: smpboot: Booting Node 0 Processor 15 APIC 0xf Apr 19 06:39:42 gaming kernel: CPU15 is up Apr 19 06:39:42 gaming kernel: ACPI: Waking up from system sleep state S3 Apr 19 06:39:42 gaming kernel: serial 00:01: activated Apr 19 06:39:42 gaming kernel: nvme nvme0: Shutdown timeout set to 8 seconds Apr 19 06:39:42 gaming kernel: sd 4:0:0:0: [sda] Starting disk Apr 19 06:39:42 gaming kernel: nvme nvme0: 16/0/0 default/read/poll queues Apr 19 06:39:42 gaming kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400000000). Apr 19 06:39:42 gaming kernel: ata4: SATA link down (SStatus 4 SControl 300) Apr 19 06:39:42 gaming kernel: ata1: SATA link down (SStatus 4 SControl 300) Apr 19 06:39:42 gaming kernel: ata3: SATA link down (SStatus 4 SControl 300) Apr 19 06:39:42 gaming kernel: ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300) Apr 19 06:39:42 gaming kernel: ata6: SATA link down (SStatus 4 SControl 300) Apr 19 06:39:42 gaming kernel: ata2: SATA link down (SStatus 4 SControl 300) Apr 19 06:39:42 gaming kernel: ata5.00: supports DRM functions and may not be fully accessible Apr 19 06:39:42 gaming kernel: ata5.00: disabling queued TRIM support Apr 19 06:39:42 gaming kernel: ata5.00: supports DRM functions and may not be fully accessible Apr 19 06:39:42 gaming kernel: ata5.00: disabling queued TRIM support Apr 19 06:39:42 gaming kernel: ata5.00: configured for UDMA/133 Apr 19 06:39:42 gaming kernel: [drm] Fence fallback timer expired on ring sdma0 Apr 19 06:39:42 gaming kernel: [drm] Fence fallback timer expired on ring sdma0 Apr 19 06:39:42 gaming kernel: [drm] UVD and UVD ENC initialized successfully. Apr 19 06:39:42 gaming kernel: [drm] VCE initialized successfully. Apr 19 06:39:42 gaming kernel: acpi LNXPOWER:04: Turning OFF Apr 19 06:39:42 gaming kernel: acpi LNXPOWER:00: Turning OFF Apr 19 06:39:42 gaming kernel: OOM killer enabled. Apr 19 06:39:42 gaming kernel: Restarting tasks ... Apr 19 06:39:42 gaming kernel: pwc: Logitech QuickCam 4000 Pro USB webcam detected. Apr 19 06:39:42 gaming kernel: done. Apr 19 06:39:42 gaming rtkit-daemon[1742]: The canary thread is apparently starving. Taking action. Apr 19 06:39:42 gaming io.elementary.wingpanel.desktop[2370]: [2370:2390:0419/063942.319124:ERROR:connection_factory_impl.cc(428)] Failed to connect to MCS endpoint with error -106 Apr 19 06:39:42 gaming rtkit-daemon[1742]: Demoting known real-time threads. Apr 19 06:39:42 gaming systemd[1]: syncthing.service: Succeeded. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 2038 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 2030 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 2029 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 2026 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 2025 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Successfully demoted thread 1997 of process 1997. Apr 19 06:39:42 gaming rtkit-daemon[1742]: Demoted 6 threads. Apr 19 06:39:42 gaming systemd-sleep[6290]: System resumed. Apr 19 06:39:42 gaming bluetoothd[949]: Controller resume with wake event 0x0 Apr 19 06:39:42 gaming kernel: PM: suspend exit Apr 19 06:39:42 gaming systemd[1]: systemd-suspend.service: Succeeded. Apr 19 06:39:42 gaming systemd[1]: Finished Suspend. Apr 19 06:39:42 gaming systemd[1]: Stopped target Sleep. Apr 19 06:39:42 gaming systemd[1]: Reached target Suspend. Apr 19 06:39:42 gaming systemd[1]: Starting Post-Resume Actions... Apr 19 06:39:42 gaming systemd-logind[835]: Operation 'sleep' finished. Apr 19 06:39:42 gaming systemd[1]: Stopped target Suspend. Apr 19 06:39:42 gaming ModemManager[2163]:no amdgpu or kernel errors
To Reproduce
With this i'm able to reproduce it reliably:
close every program except terminal
disable swap
Expected behavior Suspend and resume without issues
Additional context I'm using the Pantheon desktop and have an AMD RX 480.
Upstream issue: https://gitlab.freedesktop.org/drm/amd/-/issues/1575
Notify maintainers
Metadata
"x86_64-linux"
Linux 5.10.29, NixOS, 21.05pre283151.e5cc06a1e80 (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"home-manager-20.09, nixos-21.05pre283151.e5cc06a1e80, nixos-hardware, nixos-unstable"
/nix/var/nix/profiles/per-user/root/channels/nixos
Also reproducible with linux kernel version:
Maintainer information: