Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE Freezing After Sleep
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
paintchip
n00b
n00b


Joined: 02 Jan 2010
Posts: 56

PostPosted: Fri May 05, 2023 6:14 pm    Post subject: KDE Freezing After Sleep Reply with quote

Hello all,

I have a Gentoo install on a new AMD computer that is working pretty well other than the fact that it freezes after coming back from sleep. I am running KDE and it brings up a frozen lock screen after resuming from sleep. I see a mouse and a background, but nothing works. Sometimes I can quickly switch to another terminal and login in/run commands, but if I switch back to the terminal running X everything locks up and I can’t even switch terminals again. I installed Gentoo from Mint on a different disk and sleep works normally on Mint so I think I just misconfigured something. Most of the search results related to the errors I saw were about bugs in older kernels and mostly on the Arch forums. I’d appreciate any help.

CPU: Ryzen 7 6800H
GPU: Radeon 6850M XT

Errors I see when switching to another terminal after a freeze and checking dmesg, syslog, and kern.log

Code:
May  2 20:21:05 localhost kernel: OOM killer enabled.  May  2 20:21:05
localhost kernel: Restarting tasks ... done.
May  2 20:21:05 localhost kernel: random: crng reseeded on system resumption
May  2 20:21:05 localhost kernel: snd_hda_intel 0000:03:00.1: Refused to change power state from D0 to D3hot
May  2 20:21:05 localhost kernel: PM: suspend exit
May  2 20:21:05 localhost kernel: RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-600:00: attached PHY driver (mii_bus:phy_addr=r8169-0-600:00, irq=MAC)
May  2 20:21:05 localhost kernel: r8169 0000:06:00.0 enp6s0: Link is Down
May  2 20:21:10 localhost kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disallow df cstate
May  2 20:21:10 localhost kernel: ------------[ cut here ]------------
May  2 20:21:10 localhost kernel: WARNING: CPU: 9 PID: 4064 at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2481 dm_suspend+0x199/0x1b0 [amdgpu]
May  2 20:21:10 localhost kernel: Modules linked in: iptable_nat iptable_raw amdgpu drm_ttm_helper ttm mfd_core gpu_sched i2c_algo_bit drm_buddy drm_display_helper drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ccp drm sha1_generic
May  2 20:21:10 localhost kernel: CPU: 9 PID: 4064 Comm: kworker/9:3 Not tainted 6.1.19-gentoo #17
May  2 20:21:10 localhost kernel: Hardware name: LENOVO 82UH/LNVNB161216, BIOS K9CN34WW 07/22/2022
May  2 20:21:10 localhost kernel: Workqueue: pm pm_runtime_work
May  2 20:21:10 localhost kernel: RIP: 0010:dm_suspend+0x199/0x1b0 [amdgpu]
May  2 20:21:10 localhost kernel: Code: 4c 89 e7 e8 69 be 1c 00 48 89 ef e8 c1 af 00 00 4c 89 f7 e8 79 c5 ff ff e9 f4 fe ff ff 4c 89 e6 4c 89 ef e8 e9 e0 1c 00 eb d6 <0f> 0b e9 9f fe ff ff e8 0b 29 9a e4 66 66 2e 0f 1f 84 00 00 00 00
May  2 20:21:10 localhost kernel: RSP: 0018:ffffb1138627fca0 EFLAGS: 00010282
May  2 20:21:10 localhost kernel: RAX: 0000000000000000 RBX: ffffa0c792e97458 RCX: 0000000000000000
May  2 20:21:10 localhost kernel: RDX: 0000000000000000 RSI: ffffffffa580aa81 RDI: ffffa0c792e80000
May  2 20:21:10 localhost kernel: RBP: ffffa0c792e80000 R08: 00000000ffffdfff R09: 00000000ffffdfff
May  2 20:21:10 localhost kernel: R10: ffffffffa5a55b20 R11: ffffffffa5a55b20 R12: ffffa0c792e80000
May  2 20:21:10 localhost kernel: R13: 0000000000000000 R14: ffffa0c792e954f8 R15: ffffa0ce9e874205
May  2 20:21:10 localhost kernel: FS:  0000000000000000(0000) GS:ffffa0ce9e840000(0000) knlGS:0000000000000000
May  2 20:21:10 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May  2 20:21:10 localhost kernel: CR2: 00007f77ec064118 CR3: 0000000519c0b000 CR4: 0000000000750ee0
May  2 20:21:10 localhost kernel: PKRU: 55555554
May  2 20:21:10 localhost kernel: Call Trace:
May  2 20:21:10 localhost kernel:  <TASK>
May  2 20:21:10 localhost kernel:  amdgpu_device_ip_suspend_phase1+0x68/0xc0 [amdgpu]
May  2 20:21:10 localhost kernel:  amdgpu_device_suspend+0x73/0x140 [amdgpu]
May  2 20:21:10 localhost kernel:  amdgpu_pmops_runtime_suspend+0xb1/0x190 [amdgpu]
May  2 20:21:10 localhost kernel:  pci_pm_runtime_suspend+0x54/0x150
May  2 20:21:10 localhost kernel:  ? pci_dev_put+0x20/0x20
May  2 20:21:10 localhost kernel:  __rpm_callback+0x3c/0x160
May  2 20:21:10 localhost kernel:  ? pci_dev_put+0x20/0x20
May  2 20:21:10 localhost kernel:  rpm_callback+0x54/0x60
May  2 20:21:10 localhost kernel:  ? pci_dev_put+0x20/0x20
May  2 20:21:10 localhost kernel:  rpm_suspend+0x112/0x710
May  2 20:21:10 localhost kernel:  ? _raw_spin_unlock+0xd/0x20
May  2 20:21:10 localhost kernel:  ? finish_task_switch.isra.0+0x89/0x250
May  2 20:21:10 localhost kernel:  pm_runtime_work+0x8f/0xa0
May  2 20:21:10 localhost kernel:  process_one_work+0x1db/0x390
May  2 20:21:10 localhost kernel:  worker_thread+0x45/0x3a0
May  2 20:21:10 localhost kernel:  ? _raw_spin_lock_irqsave+0x12/0x40
May  2 20:21:10 localhost kernel:  ? rescuer_thread+0x390/0x390
May  2 20:21:10 localhost kernel:  kthread+0xe1/0x110
May  2 20:21:10 localhost kernel:  ? kthread_complete_and_exit+0x20/0x20
May  2 20:21:10 localhost kernel:  ret_from_fork+0x1f/0x30
May  2 20:21:10 localhost kernel:  </TASK>
May  2 20:21:10 localhost kernel: ---[ end trace 0000000000000000 ]---


Code:
May  2 20:21:10 localhost kernel: amdgpu 0000:03:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring kiq_2.1.0 test failed (-110)
May  2 20:21:10 localhost kernel: [drm:gfx_v10_0_hw_fini [amdgpu]] *ERROR* KGQ disable failed
May  2 20:21:15 localhost kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000036 SMN_C2PMSG_82:0x00000000
May  2 20:21:15 localhost kernel: amdgpu 0000:03:00.0: amdgpu: Failed to disable smu features.
May  2 20:21:15 localhost kernel: amdgpu 0000:03:00.0: amdgpu: Fail to disable dpm features!
May  2 20:21:15 localhost kernel: [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* suspend of IP block <smu> failed -62
May  2 20:21:20 localhost kernel: amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000036 SMN_C2PMSG_82:0x00000000
May  2 20:21:20 localhost kernel: amdgpu 0000:03:00.0: amdgpu: [PrepareMp1] Failed!
May  2 20:21:20 localhost kernel: [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* SMC failed to set mp1 state 2, -62
May  2 20:21:20 localhost kernel: amdgpu 0000:03:00.0: Refused to change power state from D0 to D3hot


Last edited by paintchip on Sat May 27, 2023 8:56 pm; edited 3 times in total
Back to top
View user's profile Send private message
paintchip
n00b
n00b


Joined: 02 Jan 2010
Posts: 56

PostPosted: Sat May 27, 2023 8:01 pm    Post subject: Reply with quote

EDIT: This didn't solve the issue, but it seems to have moved it forward. Now I have mouse movement when coming back from sleep and can more reliably switch between virtual terminals. Unfortunately there is no login prompt on the lock screen and trying to startx from a different terminal freezes everything

I think I figured it out. I was missing a kernel option for the AMD Ryzen processor. I already can't remember exactly which one, but I believe it was this one:

Code:
Performance monitoring  --->
  <*> AMD Processor Power Reporting Mechanism
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum