Freeze after waking up from suspend on a Ryzen 3000 based system

Bug #1842785 reported by Don Gi Min
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My system is a newly build Ryzen 3600 based system with Vega 56 graphics.

On suspend wakeup, the entire system locks up. A workaround is booting with linux kernel version 4.19.69.

Using newer linux versions (5.3-rc7) did not fix the issue.

The motherboard is an MSI B450I gaming plus ac board; I've loaded up both the official non-beta BIOS (7A40vA8) and the newest beta BIOS (7A40vA91) and both have this issue.

No dmesg logs are available after the suspend wakeup (last message is putting the system to sleep)

I have a r8169 and iwlwifi based ethernet and wifi cards, but I've tentatively isolated that those two are not an issue by blacklisting the respective modules.

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: linux-image-5.0.0-27-generic 5.0.0-27.28
ProcVersionSignature: Ubuntu 5.0.0-27.28-generic 5.0.21
Uname: Linux 5.0.0-27-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: hatsu 2282 F.... pulseaudio
 /dev/snd/controlC2: hatsu 2282 F.... pulseaudio
 /dev/snd/controlC0: hatsu 2282 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 4 23:14:34 2019
InstallationDate: Installed on 2019-08-27 (9 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
MachineType: Micro-Star International Co., Ltd. MS-7A40
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-27-generic root=UUID=4b8b9e96-fd23-4ade-bcd2-19b9795bd4e6 ro quiet splash vt.handoff=1
RelatedPackageVersions:
 linux-restricted-modules-5.0.0-27-generic N/A
 linux-backports-modules-5.0.0-27-generic N/A
 linux-firmware 1.178.3
SourcePackage: linux
UpgradeStatus: Upgraded to disco on 2019-08-27 (9 days ago)
dmi.bios.date: 08/19/2019
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: A.91
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: B450I GAMING PLUS AC (MS-7A40)
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: 2.0
dmi.chassis.asset.tag: To be filled by O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: 2.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrA.91:bd08/19/2019:svnMicro-StarInternationalCo.,Ltd.:pnMS-7A40:pvr2.0:rvnMicro-StarInternationalCo.,Ltd.:rnB450IGAMINGPLUSAC(MS-7A40):rvr2.0:cvnMicro-StarInternationalCo.,Ltd.:ct3:cvr2.0:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: MS-7A40
dmi.product.sku: To be filled by O.E.M.
dmi.product.version: 2.0
dmi.sys.vendor: Micro-Star International Co., Ltd.

Revision history for this message
Don Gi Min (dongimin2) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please perform a kernel bisection?

Revision history for this message
Anthony (craigslistamc) wrote :

A kernel log would be super helpful too. Like this here that shows exactly where it fails the suspend process https://paste.ubuntu.com/p/HbFnZ2n9Rd/
My own situation has led me to find:
https://bugs.freedesktop.org/show_bug.cgi?id=110258
https://cgit.freedesktop.org/drm/drm/commit/?h=drm-fixes&id=72cda9bb5e219aea0f2f62f56ae05198c59022a7
I haven't tested the patch yet to verify.

Revision history for this message
Don Gi Min (dongimin2) wrote :

Hey sorry for the lack of updates. Been busy with school... I'll hopefully get that thing done Friday night (US time)

Revision history for this message
Don Gi Min (dongimin2) wrote :

Quick update--the newest BIOS update to my motherboard seems to have fixed this issue.

I am using the MSI B450i MB and the new AMD ComboPI1.0.0.3abba seems to make this issue go away.

Revision history for this message
Jiří Forst (jiriforst) wrote :

Having the same problem with 20.04 and kernel `5.3.0-24`.

Notebook suspends fine but after waking up, i cant even get to different TTY.

Bios update did not help.

Notebook Dell Latitude 14 5495, Ryzen 5 PRO 2500U, Vega 8

glxinfo: AMD RAVEN (DRM 3.33.0, 5.3.0-24-generic, LLVM 9.0.0)

Revision history for this message
Jiří Forst (jiriforst) wrote :

auth, kern and xorg conf

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Jiří,

The issue you described seems to be quite different.
Anyway I can't reproduce the issue on Latitude 5495 at my side.

Revision history for this message
jman6495 (jman6495) wrote :
Revision history for this message
jman6495 (jman6495) wrote :

In some cases this appears to be linked to the use of s2-idle.

If you only see s2-idle when you run cat /sys/power/mem_sleep, then try these steps:

https://gitlab.freedesktop.org/drm/amd/-/issues/1230#note_580057

Revision history for this message
gunwald (gunwald) wrote :

This bug effects Ubuntu 21.04 and even the mainline kernel 5.12 too. My system:

CPU: AMD Ryzen 5 4500U with Radeon Graphics (6) @ 2.375GHz
GPU: AMD ATI 03:00.0 Renoir
Model: Acer Swift 3 (SF314-42-R2UX)
OS: Ubuntu 21.04

Could not make it work by compiling a patched kernel as described here till now:
https://gitlab.freedesktop.org/drm/amd/-/issues/1230#note_580057

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.