Suspend works on kernel 5.7.19 but not any newer ones

Hi,
I have a Lenovo Yoga 530-14ARR with an AMD Ryzen 7 2700U with Radeon Vega Mobile Gfx.

lspci -k:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
	Subsystem: Lenovo Device 380a
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
	Subsystem: Lenovo Device 3809
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
	Kernel driver in use: pcieport
00:01.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
	Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
	Subsystem: Lenovo Device 3818
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Lenovo Device 3819
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
	Subsystem: Lenovo ThinkPad E595
	Kernel driver in use: rtw_pci
	Kernel modules: rtwpci
02:00.0 Non-Volatile memory controller: Sandisk Corp Device 5005 (rev 01)
	Subsystem: Sandisk Corp Device 5005
	Kernel driver in use: nvme
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c3)
	DeviceName: Broadcom 5762
	Subsystem: Lenovo Device 39ff
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
	Subsystem: Lenovo Device 3803
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
03:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Lenovo Device 3804
	Kernel driver in use: ccp
	Kernel modules: ccp
03:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
	Subsystem: Lenovo Device 3805
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
03:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
	Subsystem: Lenovo Device 3806
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
03:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
	Subsystem: Lenovo Device 380c
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
03:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
	Subsystem: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub
	Kernel driver in use: i2c_amd_mp2
	Kernel modules: i2c_amd_mp2_pci
04:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 61)
	Subsystem: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
	Kernel driver in use: ahci

I was just installing Manjaro (again) after having problems with the suspend-functionality on several other distros.
By reading the forum and using the “kernel”-GUI program in “Manjaro settings manager” I have tried different kernels and found that any kernel (of those I can choose in the menu) older than 5.7.19 work fine while all newer kernels will not work.
On the newer kernels the suspend functionality does not work at all, i.e. when giving the command
systemctl suspend
the screen goes black and is not usable at all (either via secondary tty nor SSH) but fans and power LED light is still on, while on older kernels the system works as expected.

The journalctl shows that my system freezes right after the log-message
PM: suspend entry (deep)
is printed.
On success that message is followed by
Filesystems sync: 0.004 seconds, and others, see output below.

Sucess: Success.txt

Failure: Failure.txt

I know that one solution is to use the LTS-kernel (5.4-ish) but I want to dig further into this if the problem should resurface along the way and do not really know where to start.
What would be the best way of debugging this issue?
I have though of reading the release docs for the first kernel with the issue (5.8.xx) and try to figure out what has changed, but where should I start?
I.e. is this a problem with the amdgpu-driver or filesystem or something else of all the different things that where changed between 5.7 and 5.8.

Anyone have any ideas? :smiley:

/L

[Update]
I have done some more debugging and found that it is probably a kernel bug.

It seems as if any kernel prior to 5.8 works but 5.8 and newer does not.

I have therefore, by using git bisect, found this commit that seems to be the root cause of my problem.
When manually reverting this commit on a kernel which prior to patching did not work, i.e. suspending made the computer freeze, the patched version works just fine.

I have started a conversation with the maintainer of the iommu subsystem to further investigate a possible fix to this issue.

/L

Hi Blaklinten,

I’ve had the same problem as you and switching to a kernel version below 5.8 has worked, thank you.

I’ve also got some news for you tho.
In the recently released kernel 5.11, the bug has been fixed.
At least, I’ve tested kernel 5.11 briefly and my Lenovo Yoga 530-14ARR does not freeze in the suspend sequence.

Hope this also helps!

Kind regards!

Thank you for your input rickiewars. The new kernel fixes my issue as well.

/L

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.