You are not logged in.

#1 2022-12-24 17:41:59

lambdcalculus
Member
Registered: 2022-12-24
Posts: 1

Linux 6.1.1 breaks suspend on AMD laptop

First of all, my hardware is an Ideapad 3 15ALC6 (CPU: AMD Ryzen 5 5500U, with integrated graphics).

systemctl suspend

doesn't work, the system goes to sleep for a second but then immediately comes back. Closing the lid does the same. Here are what seemed like the relevant logs:

Dec 24 14:05:30 calculus systemd[1]: Starting System Suspend...
Dec 24 14:05:30 calculus wpa_supplicant[926]: wlp1s0: CTRL-EVENT-DSCP-POLICY clear_all
Dec 24 14:05:30 calculus kernel: PM: suspend entry (deep)
Dec 24 14:05:30 calculus systemd-sleep[26087]: Entering sleep state 'suspend'...
Dec 24 14:05:30 calculus wpa_supplicant[926]: wlp1s0: CTRL-EVENT-DSCP-POLICY clear_all
Dec 24 14:05:30 calculus wpa_supplicant[926]: nl80211: deinit ifname=wlp1s0 disabled_11b_rates=0
Dec 24 14:05:30 calculus kernel: Filesystems sync: 0.323 seconds
Dec 24 14:05:33 calculus kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Dec 24 14:05:33 calculus kernel: OOM killer disabled.
Dec 24 14:05:33 calculus kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Dec 24 14:05:33 calculus kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Dec 24 14:05:33 calculus kernel: [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3
Dec 24 14:05:33 calculus kernel: amdgpu 0000:03:00.0: amdgpu: free PSP TMR buffer
Dec 24 14:05:33 calculus kernel: ACPI: EC: interrupt blocked
Dec 24 14:05:33 calculus kernel: ACPI: PM: Preparing to enter system sleep state S3
Dec 24 14:05:33 calculus kernel: ACPI: EC: event blocked
Dec 24 14:05:33 calculus kernel: ACPI: EC: EC stopped
Dec 24 14:05:33 calculus kernel: ACPI: PM: Saving platform NVS memory
Dec 24 14:05:33 calculus kernel: Disabling non-boot CPUs ...
Dec 24 14:05:33 calculus kernel: smpboot: CPU 1 is now offline
...
repeat for CPU 2 to CPU 10
...
Dec 24 14:05:33 calculus kernel: Spectre V2 : Update user space SMT mitigation: STIBP off
Dec 24 14:05:33 calculus kernel: smpboot: CPU 11 is now offline
Dec 24 14:05:33 calculus kernel: ACPI: PM: Low-level resume complete
Dec 24 14:05:33 calculus kernel: ACPI: EC: EC started
Dec 24 14:05:33 calculus kernel: ACPI: PM: Restoring platform NVS memory
Dec 24 14:05:33 calculus kernel: AMD-Vi: Virtual APIC enabled
Dec 24 14:05:33 calculus kernel: AMD-Vi: Virtual APIC enabled
Dec 24 14:05:33 calculus kernel: LVT offset 0 assigned for vector 0x400
Dec 24 14:05:33 calculus kernel: Enabling non-boot CPUs ...
Dec 24 14:05:33 calculus kernel: x86: Booting SMP configuration:
Dec 24 14:05:33 calculus kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Dec 24 14:05:33 calculus kernel: microcode: CPU1: patch_level=0x08608103
Dec 24 14:05:33 calculus kernel: ACPI: \_SB_.PLTF.C001: Found 3 idle states
Dec 24 14:05:33 calculus kernel: Spectre V2 : Update user space SMT mitigation: STIBP always-on
Dec 24 14:05:33 calculus kernel: CPU1 is up
...
repeat for each CPU
...
Dec 24 14:05:33 calculus kernel: ACPI: PM: Waking up from system sleep state S3
...

If other logs would be useful, I can also provide them. Downgrading to 6.0.12 fixed the issue, so it seems to be a recent kernel version thing. I don't really know how to report issues to the kernel, so if someone more experienced could do that, or provide a source on how to do it, that'd be nice.

Last edited by lambdcalculus (2022-12-24 17:42:55)

Offline

#2 2022-12-25 05:03:50

I'm not creative
Member
Registered: 2022-12-25
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

I had the same issue (the same behavior), downgrading to `6.0.0-zen` (+headers) solved it for me, as a workaround.

My hardware: huawei matebook 14 amd ryzen 5 5500u

What I tried and it didn't help:

➜  ~ cat /proc/acpi/wakeup
Device	S-state	  Status   Sysfs node
GPP2	  S0	*disabled
GPP3	  S0	*disabled
GPP4	  S0	*disabled  pci:0000:00:02.2
GPP5	  S0	*disabled
XHC0	  S3	*enabled   pci:0000:03:00.3
XHC1	  S3	*enabled   pci:0000:03:00.4
GP19	  S0	*disabled

I tried disabling enabled items and it didn't help

Setting these as kernel params

pcie_port_pm=off pcie_pme=nomsi`

didn't help.

Disabling `other wakeup sources` in the firmware settings didn't help.

Removing all USB devices didn't help.

dmesg:

[  106.382527] pci 0000:00:00.2: can't derive routing for PCI INT A
[  106.382532] pci 0000:00:00.2: PCI INT A: no GSI
[  106.382589] [drm] PCIE GART of 1024M enabled.
[  106.382590] [drm] PTB located at 0x000000F41FC00000
[  106.382616] [drm] PSP is resuming...
[  106.402634] [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR
[  106.513126] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[  106.523473] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[  106.527899] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[  106.528573] amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
[  106.529498] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[  106.530081] [drm] DMUB hardware initialized: version=0x01010023
[  106.623929] usb 3-3: reset full-speed USB device number 2 using xhci_hcd
[  106.708031] nvme nvme0: 8/0/0 default/read/poll queues
[  106.871022] usb 3-4: reset high-speed USB device number 3 using xhci_hcd
[  107.209856] [drm] kiq ring mec 2 pipe 1 q 0
[  107.213408] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[  107.213499] [drm] JPEG decode initialized successfully.
[  107.213507] amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[  107.213508] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[  107.213509] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[  107.213510] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[  107.213511] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[  107.213512] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[  107.213513] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[  107.213513] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[  107.213514] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[  107.213515] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[  107.213516] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[  107.213517] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[  107.213517] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[  107.213518] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[  107.213519] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[  107.219419] OOM killer enabled.
[  107.219422] Restarting tasks ... 
[  107.220559] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[  107.222535] Bluetooth: hci0: RTL: rom_version status=0 version=3
[  107.222542] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[  107.223268] done.
[  107.223287] random: crng reseeded on system resumption
[  107.223937] PM: suspend exit
[  107.227894] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[  107.230861] Bluetooth: hci0: RTL: cfg_sz 6, total sz 35458
[  107.539570] Bluetooth: hci0: RTL: fw version 0xffb8abd3
[  107.668700] Bluetooth: hci0: AOSP extensions version v1.00
[  107.668709] Bluetooth: hci0: AOSP quality report is supported
[  107.669023] Bluetooth: MGMT ver 1.22
[  107.741751] Bluetooth: hci0: Bad flag given (0x1) vs supported (0x0)
[  111.102368] wlp1s0: authenticate with 8c:de:f9:a9:0a:01
[  111.389859] wlp1s0: send auth to 8c:de:f9:a9:0a:01 (try 1/3)
[  111.420651] wlp1s0: authenticated
[  111.422725] wlp1s0: associate with 8c:de:f9:a9:0a:01 (try 1/3)
[  111.446839] wlp1s0: RX AssocResp from 8c:de:f9:a9:0a:01 (capab=0x31 status=0 aid=1)
[  111.447233] wlp1s0: associated
[  112.276114] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[  152.175830] wlp1s0: deauthenticating from 8c:de:f9:a9:0a:01 by local choice (Reason: 3=DEAUTH_LEAVING)
[  152.955713] PM: suspend entry (deep)
[  152.966102] Filesystems sync: 0.010 seconds
[  152.985113] Freezing user space processes ... (elapsed 0.002 seconds) done.
[  152.987385] OOM killer disabled.
[  152.987385] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  152.988790] printk: Suspending console(s) (use no_console_suspend to debug)
[  153.101679] amdgpu 0000:03:00.0: amdgpu: free PSP TMR buffer
[  153.170374] ACPI: EC: interrupt blocked
[  153.204004] ACPI: PM: Preparing to enter system sleep state S3
[  153.204892] ACPI: EC: event blocked
[  153.204893] ACPI: EC: EC stopped
[  153.204894] ACPI: PM: Saving platform NVS memory
[  153.205450] Disabling non-boot CPUs ...
[  153.208046] smpboot: CPU 1 is now offline
[  153.210783] smpboot: CPU 2 is now offline
[  153.213244] smpboot: CPU 3 is now offline
[  153.215669] smpboot: CPU 4 is now offline
[  153.217900] smpboot: CPU 5 is now offline
[  153.219780] smpboot: CPU 6 is now offline
[  153.221682] smpboot: CPU 7 is now offline
[  153.223563] smpboot: CPU 8 is now offline
[  153.225356] smpboot: CPU 9 is now offline
[  153.228407] smpboot: CPU 10 is now offline
[  153.229068] Spectre V2 : Update user space SMT mitigation: STIBP off
[  153.230631] smpboot: CPU 11 is now offline
[  153.230728] ACPI: PM: Low-level resume complete
[  153.230728] ACPI: EC: EC started
[  153.230728] ACPI: PM: Restoring platform NVS memory
[  153.230728] AMD-Vi: Virtual APIC enabled
[  153.230728] AMD-Vi: Virtual APIC enabled
[  153.230728] LVT offset 0 assigned for vector 0x400
[  153.230728] Enabling non-boot CPUs ...
[  153.230728] x86: Booting SMP configuration:
[  153.230728] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  153.207981] microcode: CPU1: patch_level=0x08608102
[  153.231851] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[  153.232072] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[  153.232086] CPU1 is up
[  153.232128] smpboot: Booting Node 0 Processor 2 APIC 0x2
[  153.231673] microcode: CPU2: patch_level=0x08608102
[  153.232712] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[  153.233085] CPU2 is up
[  153.233114] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  153.232383] microcode: CPU3: patch_level=0x08608102
[  153.233579] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[  153.233870] CPU3 is up
[  153.233894] smpboot: Booting Node 0 Processor 4 APIC 0x4
[  153.233377] microcode: CPU4: patch_level=0x08608102
[  153.234660] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[  153.235146] CPU4 is up
[  153.235175] smpboot: Booting Node 0 Processor 5 APIC 0x5
[  153.234416] microcode: CPU5: patch_level=0x08608102
[  153.235608] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[  153.235963] CPU5 is up
[  153.235981] smpboot: Booting Node 0 Processor 6 APIC 0x8
[  153.235425] microcode: CPU6: patch_level=0x08608102
[  153.236545] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[  153.236966] CPU6 is up
[  153.236991] smpboot: Booting Node 0 Processor 7 APIC 0x9
[  153.236364] microcode: CPU7: patch_level=0x08608102
[  153.237461] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[  153.238449] CPU7 is up
[  153.238471] smpboot: Booting Node 0 Processor 8 APIC 0xa
[  153.237303] microcode: CPU8: patch_level=0x08608102
[  153.239074] ACPI: \_SB_.PLTF.C008: Found 3 idle states
[  153.239981] CPU8 is up
[  153.240012] smpboot: Booting Node 0 Processor 9 APIC 0xb
[  153.238807] microcode: CPU9: patch_level=0x08608102
[  153.240598] ACPI: \_SB_.PLTF.C009: Found 3 idle states
[  153.241236] CPU9 is up
[  153.241266] smpboot: Booting Node 0 Processor 10 APIC 0xc
[  153.240390] microcode: CPU10: patch_level=0x08608102
[  153.241936] ACPI: \_SB_.PLTF.C00A: Found 3 idle states
[  153.242773] CPU10 is up
[  153.242793] smpboot: Booting Node 0 Processor 11 APIC 0xd
[  153.241626] microcode: CPU11: patch_level=0x08608102
[  153.243296] ACPI: \_SB_.PLTF.C00B: Found 3 idle states
[  153.244043] CPU11 is up
[  153.245371] ACPI: PM: Waking up from system sleep state S3
[  153.246187] ACPI: EC: interrupt unblocked
[  153.247977] ACPI: EC: event unblocked
[  153.248126] pci 0000:00:00.2: can't derive routing for PCI INT A
[  153.248131] pci 0000:00:00.2: PCI INT A: no GSI
[  153.248190] [drm] PCIE GART of 1024M enabled.
[  153.248192] [drm] PTB located at 0x000000F41FC00000
[  153.248206] [drm] PSP is resuming...
[  153.268223] [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR
[  153.378665] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[  153.389032] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[  153.393454] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[  153.393882] amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
[  153.394912] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[  153.395517] [drm] DMUB hardware initialized: version=0x01010023
[  153.496436] usb 3-4: reset high-speed USB device number 3 using xhci_hcd
[  153.573973] nvme nvme0: 8/0/0 default/read/poll queues
[  153.741758] usb 3-3: reset full-speed USB device number 2 using xhci_hcd
[  154.075335] [drm] kiq ring mec 2 pipe 1 q 0
[  154.078401] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[  154.078446] [drm] JPEG decode initialized successfully.
[  154.078454] amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[  154.078456] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[  154.078457] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[  154.078457] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[  154.078458] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[  154.078459] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[  154.078459] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[  154.078460] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[  154.078461] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[  154.078462] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[  154.078462] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[  154.078463] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[  154.078464] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[  154.078465] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[  154.078466] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[  154.083746] OOM killer enabled.
[  154.083747] Restarting tasks ... 
[  154.085170] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[  154.086118] done.
[  154.086137] random: crng reseeded on system resumption
[  154.086995] PM: suspend exit
[  154.087135] Bluetooth: hci0: RTL: rom_version status=0 version=3
[  154.087139] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[  154.087169] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[  154.087194] Bluetooth: hci0: RTL: cfg_sz 6, total sz 35458
[  154.396210] Bluetooth: hci0: RTL: fw version 0xffb8abd3
[  154.526403] Bluetooth: hci0: AOSP extensions version v1.00
[  154.526412] Bluetooth: hci0: AOSP quality report is supported
[  154.526811] Bluetooth: MGMT ver 1.22
[  154.583483] Bluetooth: hci0: Bad flag given (0x1) vs supported (0x0)
[  158.078477] wlp1s0: authenticate with 8c:de:f9:a9:0a:01
[  158.369075] wlp1s0: send auth to 8c:de:f9:a9:0a:01 (try 1/3)
[  158.400064] wlp1s0: authenticated
[  158.400752] wlp1s0: associate with 8c:de:f9:a9:0a:01 (try 1/3)
[  158.426550] wlp1s0: RX AssocResp from 8c:de:f9:a9:0a:01 (capab=0x31 status=0 aid=1)
[  158.427031] wlp1s0: associated
[  159.053125] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[ 1035.968486] wlp1s0: deauthenticating from 8c:de:f9:a9:0a:01 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1036.750243] PM: suspend entry (deep)
[ 1036.759859] Filesystems sync: 0.009 seconds
[ 1036.776011] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 1036.777888] OOM killer disabled.
[ 1036.777889] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
[ 1036.778871] printk: Suspending console(s) (use no_console_suspend to debug)
[ 1036.902132] amdgpu 0000:03:00.0: amdgpu: free PSP TMR buffer
[ 1036.962895] ACPI: EC: interrupt blocked
[ 1036.991529] ACPI: PM: Preparing to enter system sleep state S3
[ 1036.992801] ACPI: EC: event blocked
[ 1036.992803] ACPI: EC: EC stopped
[ 1036.992804] ACPI: PM: Saving platform NVS memory
[ 1036.993291] Disabling non-boot CPUs ...
[ 1036.995289] smpboot: CPU 1 is now offline
[ 1036.997812] smpboot: CPU 2 is now offline
[ 1036.999978] smpboot: CPU 3 is now offline
[ 1037.002185] smpboot: CPU 4 is now offline
[ 1037.004230] smpboot: CPU 5 is now offline
[ 1037.006728] smpboot: CPU 6 is now offline
[ 1037.009008] smpboot: CPU 7 is now offline
[ 1037.011235] smpboot: CPU 8 is now offline
[ 1037.013313] smpboot: CPU 9 is now offline
[ 1037.015327] smpboot: CPU 10 is now offline
[ 1037.015581] Spectre V2 : Update user space SMT mitigation: STIBP off
[ 1037.017183] smpboot: CPU 11 is now offline
[ 1037.017254] ACPI: PM: Low-level resume complete
[ 1037.017254] ACPI: EC: EC started
[ 1037.017254] ACPI: PM: Restoring platform NVS memory
[ 1037.017254] AMD-Vi: Virtual APIC enabled
[ 1037.017254] AMD-Vi: Virtual APIC enabled
[ 1037.017254] LVT offset 0 assigned for vector 0x400
[ 1037.017254] Enabling non-boot CPUs ...
[ 1037.017254] x86: Booting SMP configuration:
[ 1037.017254] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 1036.995208] microcode: CPU1: patch_level=0x08608102
[ 1037.018192] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[ 1037.018410] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[ 1037.018426] CPU1 is up
[ 1037.018521] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 1037.018023] microcode: CPU2: patch_level=0x08608102
[ 1037.019052] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[ 1037.019423] CPU2 is up
[ 1037.019449] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 1037.018790] microcode: CPU3: patch_level=0x08608102
[ 1037.019943] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[ 1037.020208] CPU3 is up
[ 1037.020236] smpboot: Booting Node 0 Processor 4 APIC 0x4
[ 1037.019707] microcode: CPU4: patch_level=0x08608102
[ 1037.021004] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[ 1037.021482] CPU4 is up
[ 1037.021508] smpboot: Booting Node 0 Processor 5 APIC 0x5
[ 1037.020743] microcode: CPU5: patch_level=0x08608102
[ 1037.022004] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[ 1037.022342] CPU5 is up
[ 1037.022369] smpboot: Booting Node 0 Processor 6 APIC 0x8
[ 1037.021785] microcode: CPU6: patch_level=0x08608102
[ 1037.023056] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[ 1037.023924] CPU6 is up
[ 1037.024376] smpboot: Booting Node 0 Processor 7 APIC 0x9
[ 1037.022762] microcode: CPU7: patch_level=0x08608102
[ 1037.024805] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[ 1037.025318] CPU7 is up
[ 1037.025343] smpboot: Booting Node 0 Processor 8 APIC 0xa
[ 1037.024669] microcode: CPU8: patch_level=0x08608102
[ 1037.025943] ACPI: \_SB_.PLTF.C008: Found 3 idle states
[ 1037.026899] CPU8 is up
[ 1037.026955] smpboot: Booting Node 0 Processor 9 APIC 0xb
[ 1037.025683] microcode: CPU9: patch_level=0x08608102
[ 1037.027370] ACPI: \_SB_.PLTF.C009: Found 3 idle states
[ 1037.028011] CPU9 is up
[ 1037.028042] smpboot: Booting Node 0 Processor 10 APIC 0xc
[ 1037.027190] microcode: CPU10: patch_level=0x08608102
[ 1037.028638] ACPI: \_SB_.PLTF.C00A: Found 3 idle states
[ 1037.029420] CPU10 is up
[ 1037.029446] smpboot: Booting Node 0 Processor 11 APIC 0xd
[ 1037.028392] microcode: CPU11: patch_level=0x08608102
[ 1037.029893] ACPI: \_SB_.PLTF.C00B: Found 3 idle states
[ 1037.030613] CPU11 is up
[ 1037.031726] ACPI: PM: Waking up from system sleep state S3
[ 1037.032470] ACPI: EC: interrupt unblocked
[ 1037.033604] ACPI: EC: event unblocked
[ 1037.033729] pci 0000:00:00.2: can't derive routing for PCI INT A
[ 1037.033732] pci 0000:00:00.2: PCI INT A: no GSI
[ 1037.033845] [drm] PCIE GART of 1024M enabled.
[ 1037.033847] [drm] PTB located at 0x000000F41FC00000
[ 1037.033857] [drm] PSP is resuming...
[ 1037.053877] [drm] reserve 0x400000 from 0xf400c00000 for PSP TMR
[ 1037.164450] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 1037.174812] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 1037.179259] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[ 1037.179372] amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
[ 1037.180339] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[ 1037.180946] [drm] DMUB hardware initialized: version=0x01010023
[ 1037.280158] usb 3-3: reset full-speed USB device number 2 using xhci_hcd
[ 1037.360249] nvme nvme0: 8/0/0 default/read/poll queues
[ 1037.526169] usb 3-4: reset high-speed USB device number 3 using xhci_hcd
[ 1037.860154] [drm] kiq ring mec 2 pipe 1 q 0
[ 1037.862931] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[ 1037.862976] [drm] JPEG decode initialized successfully.
[ 1037.862984] amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[ 1037.862986] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 1037.862987] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 1037.862987] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[ 1037.862988] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[ 1037.862989] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[ 1037.862990] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[ 1037.862990] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[ 1037.862991] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[ 1037.862992] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[ 1037.862993] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[ 1037.862994] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[ 1037.862994] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[ 1037.862995] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[ 1037.862996] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[ 1037.869985] OOM killer enabled.
[ 1037.869988] Restarting tasks ... 
[ 1037.872299] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 1037.873793] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 1037.873801] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[ 1037.873975] done.
[ 1037.873988] random: crng reseeded on system resumption
[ 1037.874565] PM: suspend exit
[ 1037.878623] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[ 1037.881025] Bluetooth: hci0: RTL: cfg_sz 6, total sz 35458
[ 1038.189833] Bluetooth: hci0: RTL: fw version 0xffb8abd3
[ 1038.318909] Bluetooth: hci0: AOSP extensions version v1.00
[ 1038.318919] Bluetooth: hci0: AOSP quality report is supported
[ 1038.319267] Bluetooth: MGMT ver 1.22
[ 1038.379020] Bluetooth: hci0: Bad flag given (0x1) vs supported (0x0)
[ 1041.745351] wlp1s0: authenticate with 8c:de:f9:a9:0a:01
[ 1042.044837] wlp1s0: send auth to 8c:de:f9:a9:0a:01 (try 1/3)
[ 1042.075528] wlp1s0: authenticated
[ 1042.076722] wlp1s0: associate with 8c:de:f9:a9:0a:01 (try 1/3)
[ 1042.100926] wlp1s0: RX AssocResp from 8c:de:f9:a9:0a:01 (capab=0x31 status=0 aid=1)
[ 1042.101321] wlp1s0: associated
[ 1042.774942] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready

Last edited by I'm not creative (2022-12-25 05:11:17)

Offline

#3 2022-12-25 05:04:46

tfkhdyt
Member
Registered: 2022-12-25
Posts: 1

Re: Linux 6.1.1 breaks suspend on AMD laptop

It's happened to me as well. My hardware is IdeaPad 3 14ALC6 (Ryzen 3 5300U).
My mouse and headset backlit are turned on again after I close the lid.
I'm using the latest kernel (6.1.1-arch1-1)

Offline

#4 2022-12-25 06:47:37

tomz17
Member
Registered: 2018-11-15
Posts: 7

Re: Linux 6.1.1 breaks suspend on AMD laptop

Same exact problem here : Lenovo T14s second Gen AMD 5850u

Edit: downgrading kernel+headers to 6.0.8-arch1-1 indeed fixed the problem.

Last edited by tomz17 (2022-12-25 06:56:13)

Offline

#5 2022-12-28 21:13:48

DreckSoft
Member
Registered: 2022-12-28
Posts: 3

Re: Linux 6.1.1 breaks suspend on AMD laptop

Same here Dell G5 5505 with AMD Ryzen 7 4800H with Radeon Graphics

After reboot it works ONCE. But second suspend will always fail, even though I disables ALL acpi wakeup events.

Suspend has always been an issue with this machine. It was mostly impossible to suspend with lid open. In earlier kernels blacklisting pinctrl_amd worked but since this is no longer allowed to build as module I always had to close the lid. Now it won't work at all.

Offline

#6 2022-12-29 21:21:36

DreckSoft
Member
Registered: 2022-12-28
Posts: 3

Re: Linux 6.1.1 breaks suspend on AMD laptop

6.0.15 does have the same issue.

Offline

#7 2022-12-30 11:08:32

obelisk
Member
Registered: 2021-01-10
Posts: 63

Re: Linux 6.1.1 breaks suspend on AMD laptop

Same issue here with a Desktop-PC:
6.1.1-arch1-1
AMD Ryzen 7 5800X

Offline

#8 2023-01-04 19:48:55

SansNom01
Member
Registered: 2023-01-02
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

Same issue with my laptop Huawei MateBook D 16 2021
6.1.2-zen1-1-zen

Offline

#9 2023-01-04 20:01:22

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,276

Re: Linux 6.1.1 breaks suspend on AMD laptop

I have seen suggestions elsewhere that adding the kernel parameter "amd_iommu=off" to the boot line brings back the ability to suspend in recent kernels. I have not tried it but might be worth testing to see if this helps for the latest kernel?

Edit: Also this may be relevant: https://www.phoronix.com/news/AMD-s2idle-Check-FW

Last edited by mcloaked (2023-01-04 20:06:17)


Mike C

Offline

#10 2023-01-04 21:11:22

bttger
Member
Registered: 2023-01-04
Posts: 4

Re: Linux 6.1.1 breaks suspend on AMD laptop

Is this really only and AMD issue? I just created this post[0] but in my case I have an Intel processor and it does not wake up again but instead hangs up with a black screen. Though the journcalctl logs look like the suspend was successful.

[0] https://bbs.archlinux.org/viewtopic.php?id=282556

Offline

#11 2023-01-06 10:37:12

DreckSoft
Member
Registered: 2022-12-28
Posts: 3

Re: Linux 6.1.1 breaks suspend on AMD laptop

6.0.15 actually bahaves different.

First time I can suspend even with lid open. Second and on I must close the lid but contrary to 6.1.x it suspeds.

Offline

#12 2023-01-06 11:47:39

I'm not creative
Member
Registered: 2022-12-25
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

Tried 6.1.3, and still having the problem, wasn't fixed. Keep using 6.0

Offline

#13 2023-01-12 23:16:08

hydrolytic
Member
Registered: 2023-01-12
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

I have the same problem on a 4800H. Did anyone find a solution?

Offline

#14 2023-01-13 07:49:48

SilentPuffer101
Member
Registered: 2016-07-21
Posts: 8

Re: Linux 6.1.1 breaks suspend on AMD laptop

This might be related to a kernel bug report at https://bugzilla.kernel.org/show_bug.cgi?id=216782 and https://bugzilla.kernel.org/show_bug.cgi?id=216877.

The reports did mention a couple of workarounds:
1. Remove "pcie_aspm=force" and use "pcie_aspm=off" instead.
2. Patch out the call to pci_restore_aspm_l1ss_state() in drivers/pci/pci.c (from bug 216782)
3. Revert commits 5e85eba6f50d and 4ff116d0d5fd (from bug 216877)
4. Use the any kernel version prior to 6.1.

The first workaround will probably disable ASPM entirely which may result to increase power consumption (and maybe heat generation).
The second and third will require compiling a custom kernel from source. ASPM should now work the same way as in 6.0 (*)
The fourth one is probably the simplest and easiest workaround where suspend/resume works while keeping ASPM unchanged(*)

(*)Until someone suspends the machine which may result the L1ss being disabled upon resume by the firmware, which the 4ff116d0d5fd tries to fix.

Thanks!

Offline

#15 2023-01-13 11:11:48

solatle
Member
Registered: 2023-01-13
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

6.1.5 here, still have the problem.

Offline

#16 2023-01-13 17:08:14

tshrpl
Member
Registered: 2022-11-06
Posts: 7

Re: Linux 6.1.1 breaks suspend on AMD laptop

bttger wrote:

.. but in my case I have an Intel processor and it does not wake up again but instead hangs up with a black screen. Though the journcalctl logs look like the suspend was successful.

my laptop has `i3-6006U` and `Radeon R7 M520`, and anything after 6.0.12 just hangs at boot, i can't even login or change tty, firmware's probably not the issue because i downgraded just the kernel from the archive while having everything else including firmware and headers from the latest repo

Offline

#17 2023-01-13 18:08:42

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: Linux 6.1.1 breaks suspend on AMD laptop

Does the patch from https://lore.kernel.org/all/20230104150 … @bhelgaas/ referenced by SilentPuffer101 help?  Which would indicate the issue is 216877.

https://drive.google.com/file/d/12WdL7c … share_link linux-6.1.5.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pCc7H9 … share_link linux-headers-6.1.5.arch2-1.1-x86_64.pkg.tar.zst

Offline

#18 2023-01-13 21:52:14

hydrolytic
Member
Registered: 2023-01-12
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

loqs wrote:

Does the patch from https://lore.kernel.org/all/20230104150 … @bhelgaas/ referenced by SilentPuffer101 help?  Which would indicate the issue is 216877.

https://drive.google.com/file/d/12WdL7c … share_link linux-6.1.5.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pCc7H9 … share_link linux-headers-6.1.5.arch2-1.1-x86_64.pkg.tar.zst

I tried the patch on 6.1.3 with no sucess. System still comes back in ~1sec from sleep.

Offline

#19 2023-01-13 22:46:15

tshrpl
Member
Registered: 2022-11-06
Posts: 7

Re: Linux 6.1.1 breaks suspend on AMD laptop

loqs wrote:

Does the patch from https://lore.kernel.org/all/20230104150 … @bhelgaas/ referenced by SilentPuffer101 help?  Which would indicate the issue is 216877.

https://drive.google.com/file/d/12WdL7c … share_link linux-6.1.5.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pCc7H9 … share_link linux-headers-6.1.5.arch2-1.1-x86_64.pkg.tar.zst

nothing changed, tty freezes before login

Offline

#20 2023-01-18 22:46:57

dobo
Member
Registered: 2010-07-09
Posts: 21

Re: Linux 6.1.1 breaks suspend on AMD laptop

I'm having the same issue on Lenovo X13 Gen 2 with Ryzen 5850U.  Suspend was working fine until kernel version 6.0.19 (I was compiling it on my own). After switching to 6.0.1 it broke (and it is broken in 6.1.5).

But I've noticed one thing that might be relevant. All the time I was having Sleep State set to Linux inside BIOS (resulting in [deep] in /sys/power/mem_sleep). After switching it to Windows 10 ([s2idle] in /sys/power/mem_sleep), suspending works fine again on 6.1.y kernels. For those having the same issue I would recommend to test it with s2idle. It's possible to debug s2idle suspend on AMD systems by using that script https://gitlab.freedesktop.org/drm/amd/ … _s2idle.py. To use it install python-systemd, python-pyudev and run it.

Offline

#21 2023-01-20 17:36:49

obelisk
Member
Registered: 2021-01-10
Posts: 63

Re: Linux 6.1.1 breaks suspend on AMD laptop

Today I have found a point by chance!

I cannot enter suspend to ram (S2) with my Desktop-PC, it has an AMD Ryzen 7 5800X.
Now I found that the issue has  something to do with my new Mouse. I have since end of last year an new Logitech M650 Mouse. This mouse is wireless and is delivered with an USB receiver.

...and this receiver is a Logi Bolt USB-Receiver. This USB receiver is not a receiver for only one mouse. It has also a build in Bluetooth receiver, where several devices can be paired.

> lsusb | grep -i logitech
Bus 003 Device 004: ID 046d:c548 Logitech, Inc. USB Receiver

When I disconnect the USB receiver before press (keyboard) key to shutdown to sleep mode S2/to ram, then it works. My PC is not shutting down and is not awaking immediately again.
When I let the USB receiver connected on my USB, then suspend is not working.

I checked it several times, with USB2 and USB3 ports pf my PC. All with the same result. Without the Logitech Bolt-Receiver suspend always works fine.

The most of you seems to have the suspend trouble on a laptop.
My question: How you connected a mouse?
- With a USB receiver? Try remove it before suspend mode.
- With Bluetooth-Mouse or any other Bluetooth device or no Bluetooth device used? Can you try to disable Bluetooth before trying suspend mode?

The result my be interested.
Now I have no idea how I get suspend working with connected mouse receiver... neutral

Offline

#22 2023-01-21 14:23:38

dropsonde
Member
Registered: 2021-02-09
Posts: 1

Re: Linux 6.1.1 breaks suspend on AMD laptop

obelisk wrote:

Today I have found a point by chance!

I cannot enter suspend to ram (S2) with my Desktop-PC, it has an AMD Ryzen 7 5800X.
Now I found that the issue has  something to do with my new Mouse. I have since end of last year an new Logitech M650 Mouse. This mouse is wireless and is delivered with an USB receiver.

...and this receiver is a Logi Bolt USB-Receiver. This USB receiver is not a receiver for only one mouse. It has also a build in Bluetooth receiver, where several devices can be paired.

> lsusb | grep -i logitech
Bus 003 Device 004: ID 046d:c548 Logitech, Inc. USB Receiver

When I disconnect the USB receiver before press (keyboard) key to shutdown to sleep mode S2/to ram, then it works. My PC is not shutting down and is not awaking immediately again.
When I let the USB receiver connected on my USB, then suspend is not working.

I checked it several times, with USB2 and USB3 ports pf my PC. All with the same result. Without the Logitech Bolt-Receiver suspend always works fine.

The most of you seems to have the suspend trouble on a laptop.
My question: How you connected a mouse?
- With a USB receiver? Try remove it before suspend mode.
- With Bluetooth-Mouse or any other Bluetooth device or no Bluetooth device used? Can you try to disable Bluetooth before trying suspend mode?

The result my be interested.
Now I have no idea how I get suspend working with connected mouse receiver... neutral

Reading this i tried suspending after removing my USB bluetooth receiver, and lo and behold the computer woke from sleep just fine. I did this as a workaround for the problem.

❯ cat /usr/lib/systemd/system-sleep/toggle-bluetooth.sh
#!/bin/sh
if [ "$1" == "pre" ]
then
    bluetoothctl power off
elif [ "$1" == "post" ]
then
    bluetoothctl power on
fi

With this script in place my computer will sleep and wake normally again. A caveat to this would be i suppose that you can not wake the computer from sleep with devices through bluetooth connected devices.

Offline

#23 2023-01-21 16:00:32

obelisk
Member
Registered: 2021-01-10
Posts: 63

Re: Linux 6.1.1 breaks suspend on AMD laptop

That's sound as a good workaround wot laptops, which maybe all have bluetooth.

My Desktop PC has no bluetooth, which means bluetoothctl or something else installed. And the Logitech M650 mouse with the bolt receiver acts as classical HID device (HID++ 4.5). I have not to pair it manually with the delivered receiver. I think it is delivered already paired or it is permanent paired with the bolt USB-receiver.


However, I also noticed something else today:
The Logitech bold receiver can be configured with the program "solaar"

What I noticed today:
After a new boot of the Computer, suspend is not working. Also also a few times in a row. When I open solaar just one time, then suspend is working again. Also when I close solaar application, the PC enters suspend to ram normal.
I have no idea how this is connected. But I have tested it a few times and it has so worked every time on the PC.

My workaround is now to just load solaar with login into xfce (command: solaar -w hide. I hope that I don't need the workaround someday in the future after a kernel update. But for the moment I'm happy that I found a solution without removing always the bolt receive before I want enter suspend to ram.

Offline

#24 2023-01-27 20:45:25

rrvv33
Member
Registered: 2017-04-19
Posts: 2

Re: Linux 6.1.1 breaks suspend on AMD laptop

Lenovo 15ALC6 (same as original poster); found this:

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

This fixes the issue for me:
echo disabled > /sys/bus/i2c/devices/i2c-MSFT0001:00/power/wakeup

Offline

#25 2023-01-28 14:14:51

blacksheepccd
Member
Registered: 2022-06-15
Posts: 1

Re: Linux 6.1.1 breaks suspend on AMD laptop

Lenovo yoga14s 2021 with amd 4800h , this fixes the issue for me too
echo disabled > /sys/bus/i2c/devices/i2c-MSFT0001:00/power/wakeup

Offline

Board footer

Powered by FluxBB