You are not logged in.

#1 2023-04-05 20:37:32

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

[SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

After updating to aforementioned linux-lts kernel version my ASUS VivoBook S14 with AMD Ryzen 7 4700U stopped waking up from hibernation correctly.
Symptoms are: blank screen, unresponsive. When I tried to switch virtual consoles I was able to get to GDM, but it was glitching and could not start GNOME. I suspect GPU issues.

After rolling back to 6.1.21 everything is OK.

Last edited by rudolf_schlepke (2023-04-12 07:21:30)

Offline

#2 2023-04-06 07:51:30

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,823

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

Is this limited to S4 (hibernation) or is S3 (STR) affected as well?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#3 2023-04-11 19:19:02

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

seth wrote:

Is this limited to S4 (hibernation) or is S3 (STR) affected as well?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

I do not use S3 because it's inherently broken with my current laptop. S4 seems to be reliably working though.
Here's the kernel log of one of the failed hibernation wakeups.

Offline

#4 2023-04-11 19:27:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,823

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

I do not use S3 because it's inherently broken with my current laptop.

You might want to elaborate on that…

Apr 05 20:29:46 spock kernel: DMI: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X421IA_M433IA/X421IA, BIOS X421IA.312 10/26/2021

Is there a newer BIOS/Firmware available for the system?

Apr 05 20:38:57 spock kernel: ------------[ cut here ]------------
Apr 05 20:38:57 spock kernel: Unbalanced IRQ 1 wake disable
Apr 05 20:38:57 spock kernel: WARNING: CPU: 7 PID: 16652 at kernel/irq/manage.c:907 irq_set_irq_wake+0x15e/0x1b0
Apr 05 20:38:57 spock kernel: Modules linked in: xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c xt_addrtype iptable_filter br_netfilter bridge stp llc ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device cmac algif_hash algif_skcipher af_alg overlay bnep intel_rapl_msr intel_rapl_common edac_mce_amd kvm_amd iwlmvm kvm mac80211 irqbypass crct10dif_pclmul libarc4 crc32_pclmul polyval_clmulni polyval_generic gf128mul snd_hda_codec_realtek ghash_clmulni_intel joydev snd_hda_codec_generic mousedev snd_hda_codec_hdmi uvcvideo btusb sha512_ssse3 videobuf2_vmalloc snd_hda_intel btrtl videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 btbcm snd_intel_sdw_acpi aesni_intel snd_hda_codec btintel videobuf2_common iwlwifi snd_hda_core asus_nb_wmi btmtk asus_wmi snd_hwdep crypto_simd ledtrig_audio hid_multitouch snd_pcm bluetooth cryptd videodev snd_timer sparse_keymap cfg80211 sp5100_tco ecdh_generic rapl platform_profile wmi_bmof
Apr 05 20:38:57 spock kernel:  pcspkr snd soundcore ccp mc i2c_piix4 k10temp rfkill i2c_hid_acpi i2c_hid acpi_cpufreq amd_pmc mac_hid crypto_user loop fuse dm_mod bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 nvme vivaldi_fmap nvme_core crc32c_intel xhci_pci i8042 xhci_pci_renesas nvme_common serio amdgpu drm_ttm_helper ttm video wmi gpu_sched drm_buddy drm_display_helper cec
Apr 05 20:38:57 spock kernel: CPU: 7 PID: 16652 Comm: systemd-sleep Not tainted 6.1.22-1-lts #1 02c705b2622f5880472106cc9c036d083019749f
Apr 05 20:38:57 spock kernel: Hardware name: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X421IA_M433IA/X421IA, BIOS X421IA.312 10/26/2021
Apr 05 20:38:57 spock kernel: RIP: 0010:irq_set_irq_wake+0x15e/0x1b0
Apr 05 20:38:57 spock kernel: Code: f6 e8 f6 ff ed 00 89 c5 85 c0 74 38 c7 83 c4 00 00 00 01 00 00 00 e9 32 ff ff ff 44 89 e6 48 c7 c7 30 16 ac 9d e8 72 bc f7 ff <0f> 0b 31 ed e9 1a ff ff ff 48 8b 43 78 31 ed 81 08 00 40 00 00 e9
Apr 05 20:38:57 spock kernel: RSP: 0018:ffffa85c8335fc70 EFLAGS: 00010082
Apr 05 20:38:57 spock kernel: RAX: 0000000000000000 RBX: ffff912e0013c600 RCX: 0000000000000027
Apr 05 20:38:57 spock kernel: RDX: ffff9130ff7e1668 RSI: 0000000000000001 RDI: ffff9130ff7e1660
Apr 05 20:38:57 spock kernel: RBP: 00000000ffffffea R08: ffffffff9e25c7a0 R09: 0000000000000000
Apr 05 20:38:57 spock kernel: R10: 3fffffffffffffff R11: ffffffff9eb5c268 R12: 0000000000000001
Apr 05 20:38:57 spock kernel: R13: 0000000000000000 R14: 0000000000000000 R15: ffff912e611099e0
Apr 05 20:38:57 spock kernel: FS:  00007fc88f4582c0(0000) GS:ffff9130ff7c0000(0000) knlGS:0000000000000000
Apr 05 20:38:57 spock kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 05 20:38:57 spock kernel: CR2: 00007fc88f730850 CR3: 0000000105b7a000 CR4: 0000000000350ee0
Apr 05 20:38:57 spock kernel: Call Trace:
Apr 05 20:38:57 spock kernel:  <TASK>
Apr 05 20:38:57 spock kernel:  ? acpi_subsys_suspend_noirq+0x50/0x50
Apr 05 20:38:57 spock kernel:  amd_pmc_suspend_handler+0x8b/0xc0 [amd_pmc 4b832c57f8993e96fc3d69294bcfb5a621230bd5]
Apr 05 20:38:57 spock kernel:  ? acpi_subsys_freeze+0x14/0x20
Apr 05 20:38:57 spock kernel:  dpm_run_callback+0x4a/0x150
Apr 05 20:38:57 spock kernel:  __device_suspend+0x10a/0x4e0
Apr 05 20:38:57 spock kernel:  dpm_suspend+0x13d/0x270
Apr 05 20:38:57 spock kernel:  hibernation_snapshot+0x80/0x520
Apr 05 20:38:57 spock kernel:  hibernate.cold+0x99/0x2d0
Apr 05 20:38:57 spock kernel:  state_store+0xc3/0xd0
Apr 05 20:38:57 spock kernel:  kernfs_fop_write_iter+0x122/0x200
Apr 05 20:38:57 spock kernel:  vfs_write+0x239/0x3f0
Apr 05 20:38:57 spock kernel:  ksys_write+0x6f/0xf0
Apr 05 20:38:57 spock kernel:  do_syscall_64+0x5f/0x90
Apr 05 20:38:57 spock kernel:  ? syscall_exit_to_user_mode+0x1b/0x40
Apr 05 20:38:57 spock kernel:  ? do_syscall_64+0x6b/0x90
Apr 05 20:38:57 spock kernel:  ? exc_page_fault+0x74/0x170
Apr 05 20:38:57 spock kernel:  entry_SYSCALL_64_after_hwframe+0x63/0xcd
Apr 05 20:38:57 spock kernel: RIP: 0033:0x7fc88f70f9d4
Apr 05 20:38:57 spock kernel: Code: 15 a1 13 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 80 3d 2d 9a 0e 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 48 89 54 24 18 48
Apr 05 20:38:57 spock kernel: RSP: 002b:00007ffca94142e8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
Apr 05 20:38:57 spock kernel: RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fc88f70f9d4
Apr 05 20:38:57 spock kernel: RDX: 0000000000000005 RSI: 00007ffca94143d0 RDI: 0000000000000004
Apr 05 20:38:57 spock kernel: RBP: 00007ffca94143d0 R08: 000055a236749570 R09: 000055a23533f560
Apr 05 20:38:57 spock kernel: R10: 000055a23533fda8 R11: 0000000000000202 R12: 0000000000000005
Apr 05 20:38:57 spock kernel: R13: 000055a2367482d0 R14: 0000000000000005 R15: 00007fc88f7edb20
Apr 05 20:38:57 spock kernel:  </TASK>
Apr 05 20:38:57 spock kernel: ---[ end trace 0000000000000000 ]---
amdgpu.dpm=0

but that'll likely prevent booting altogether?
Is there a parallel windows installation?

Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
Apr 05 20:38:57 spock kernel: [drm] psp gfx command LOAD_TA(0x1) failed and response status is (0x7)
Apr 05 20:38:57 spock kernel: [drm] psp gfx command INVOKE_CMD(0x3) failed and response status is (0x4)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: Secure display: Generic Failure.
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: query securedisplay TA failed. ret 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
Apr 05 20:38:57 spock kernel: [drm] DMUB hardware initialized: version=0x01010026
Apr 05 20:38:57 spock kernel: usb 3-2: reset full-speed USB device number 2 using xhci_hcd
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: [gfxhub0] no-retry page fault (src_id:0 ring:222 vmid:3 pasid:0, for process  pid 0 thread  pid 0)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000800000001000 from IH client 0x1b (UTCL2)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x003009BD
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          Faulty UTCL2 client ID: CPF (0x4)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          MORE_FAULTS: 0x1
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          WALKER_ERROR: 0x6
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          PERMISSION_FAULTS: 0xb
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          MAPPING_ERROR: 0x1
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          RW: 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: [gfxhub0] no-retry page fault (src_id:0 ring:222 vmid:3 pasid:0, for process  pid 0 thread  pid 0)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x0000800000002000 from IH client 0x1b (UTCL2)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00000000
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          Faulty UTCL2 client ID: CB (0x0)
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          MORE_FAULTS: 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          WALKER_ERROR: 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          PERMISSION_FAULTS: 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          MAPPING_ERROR: 0x0
Apr 05 20:38:57 spock kernel: amdgpu 0000:03:00.0: amdgpu:          RW: 0x0
Apr 05 20:38:57 spock kernel: [drm] kiq ring mec 2 pipe 1 q 0

And another one… https://bbs.archlinux.org/viewtopic.php?id=284076

Offline

#5 2023-04-11 20:18:01

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

seth wrote:

You might want to elaborate on that…

Only S2idle is available for this model: https://wiki.archlinux.org/title/ASUS_X … ibernation

seth wrote:

Is there a newer BIOS/Firmware available for the system?

There actually is! I'll go ahead and update that.

seth wrote:
amdgpu.dpm=0

but that'll likely prevent booting altogether?
Is there a parallel windows installation?

It kinda boots. Just won't start GNOME I guess. I'd assume GPU issues.

Anyway, thanks for the pointers

Offline

#6 2023-04-11 20:48:37

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

OK, I have just updated the BIOS and installed the latest package updates (including the kernel version 6.1.23-1) and the hibernation is working as expected.
I guess it really was a firmware deficiency.

Thank you, Seth!

Offline

#7 2023-04-12 06:05:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,823

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Does (deep) S3 now work as well?

Offline

#8 2023-04-12 07:23:52

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

If I understand correctly, there is no hardware support for S3 on this laptop. And suspend has always been unreliable however I configured it.
So I just don't bother experimenting anymore. Hibernation pretty much covers all my needs at this point.

BTW, I forgot to mention that I do not use dual boot on this machine.

Last edited by rudolf_schlepke (2023-04-12 07:24:54)

Offline

#9 2023-04-12 08:14:23

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,823

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

In case of sudden curiosity:

cat /sys/power/mem_sleep

Offline

#10 2023-04-13 06:54:26

rudolf_schlepke
Member
From: Ukraine
Registered: 2021-02-27
Posts: 22
Website

Re: [SOLVED] Linux LTS 6.1.22-1 breaks hibernation on AMD Ryzen 4700U CPUs

seth wrote:

In case of sudden curiosity:

cat /sys/power/mem_sleep

Been there, done that. It's

s2idle

Offline

Board footer

Powered by FluxBB