[amdgpu] System hangs after resume from suspend

Bug #1903292 reported by Tom Cook
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm running 20.04 LTS on an HP Envy x360 Ryzen 7 3700U with Radeon Vega Mobile. The gdm3 package is at version 3.36.3-0ubuntu0.20.04.2.

When I trigger a suspend with `echo mem > /sys/power/state` the system appears to go into mem suspend correctly. Hitting a key should bring the display back with the lock screen displayed, but instead briefly brings a slightly scrambled screen to life and then the screen goes black and stays that way.

The system is still up as I can SSH into it. Killing the gdm-wayland-session process then brings me back to the GDM login screen and I can start a new session.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.10
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DisplayManager: gdm3
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2019-10-17 (388 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Package: gnome-shell 3.36.4-1ubuntu1~20.04.2
PackageArchitecture: amd64
RelatedPackageVersions: mutter-common 3.36.6-1ubuntu0.20.04.2
Tags: wayland-session third-party-packages focal
Uname: Linux 5.9.0 x86_64
UpgradeStatus: Upgraded to focal on 2020-04-28 (194 days ago)
UserGroups: adm cdrom dip disk docker lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu50
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: tkcook 2526 F.... pulseaudio
 /dev/snd/controlC0: tkcook 2526 F.... pulseaudio
CasperMD5CheckResult: skip
DistroRelease: Ubuntu 20.10
InstallationDate: Installed on 2019-10-17 (390 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: HP HP ENVY x360 Convertible 15-ds0xxx
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.8.0-26-generic root=/dev/mapper/vgubuntu-root ro splash acpi.debug_level=2 acpi.debug_layer=0xFFFFFFFF acpi_osi=Linux amd_iommu=off amdgpu.gpu_recovery=1 xhci_hcd.quirks=1074143232
ProcVersionSignature: Ubuntu 5.8.0-26.27-generic 5.8.14
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.8.0-26-generic N/A
 linux-backports-modules-5.8.0-26-generic N/A
 linux-firmware 1.190.1
StagingDrivers: ashmem_linux
Tags: groovy staging
Uname: Linux 5.8.0-26-generic x86_64
UpgradeStatus: Upgraded to groovy on 2020-11-09 (1 days ago)
UserGroups: N/A
_MarkForUpload: True
dmi.bios.date: 05/28/2020
dmi.bios.release: 15.20
dmi.bios.vendor: AMI
dmi.bios.version: F.20
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 85DD
dmi.board.vendor: HP
dmi.board.version: 40.36
dmi.chassis.type: 31
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.ec.firmware.release: 40.36
dmi.modalias: dmi:bvnAMI:bvrF.20:bd05/28/2020:br15.20:efr40.36:svnHP:pnHPENVYx360Convertible15-ds0xxx:pvr:rvnHP:rn85DD:rvr40.36:cvnHP:ct31:cvrChassisVersion:
dmi.product.family: 103C_5335KV HP Envy
dmi.product.name: HP ENVY x360 Convertible 15-ds0xxx
dmi.product.sku: 6TD06EA#ABU
dmi.sys.vendor: HP
mtime.conffile..etc.apport.crashdb.conf: 2020-11-09T09:19:45.442981

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please run this command to send us more information about the system:

  apport-collect 1903292

But also...

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

2. If step 1 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

tags: added: focal
tags: added: wayland wayland-session
affects: gdm (Ubuntu) → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Tom Cook (tom-k-cook) wrote : Dependencies.txt

apport information

tags: added: apport-collected third-party-packages
description: updated
Revision history for this message
Tom Cook (tom-k-cook) wrote : GsettingsChanges.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcEnviron.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ShellJournal.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : monitors.xml.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Re: GNOME Wayland session hangs after suspend

Hi Daniel,

Thanks for the follow-up. I've done the `apport-collect`, see above. I've also uploaded a potentially-related crash file from Xwayland, see https://errors.ubuntu.com/oops/39763900-226c-11eb-b3ef-fa163e102db1. I'm not absolutely certain this is related but the timestamp on it is about right.

Regards,
Tom

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. It seems that crash can't be traced because:

"You have some obsolete package versions installed. Please upgrade the following packages and check if the problem still occurs: libsystemd0, libudev1, zlib1g"

So please:

  sudo apt update
  sudo apt full-upgrade
  rm /var/crash/*

then reboot and follow the steps in comment #1 again.

Also, you seem to have a few non-Ubuntu extensions installed:

'<email address hidden>',
'<email address hidden>',
'<email address hidden>',
'<email address hidden>'

so please also uninstall/disable those via the Extensions app and then retest.

Revision history for this message
Tom Cook (tom-k-cook) wrote :

I've done the full-upgrade and disabled the non-Ubuntu extensions and then re-triggered the crash with `echo mem > /sys/power/state`. This now causes a hard hang of the whole system - its no longer accessible over the network when it tries to wake up. There is no new log in /var/crash and the last thing in kern.log is it going to sleep. This doesn't seem promising.

The kernel is a custom-built 5.9.0 built from Linus' repository - I'm not expecting a lot of support with that.

summary: - GNOME Wayland session hangs after suspend
+ System hangs after suspend
affects: gnome-shell (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1903292

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Tom Cook (tom-k-cook) wrote : Re: System hangs after suspend

I'm running a custom kernel build because when I installed Ubuntu on this laptop (19.10) various things were not supported in the stock kernel. I'm now trying to apply a BIOS update which apparently has some ACPI-related stuff in it, but this is proving difficult as HP's BIOS updates are somewhat Windows-centric. Once I've done that, I'll switch to the 5.8.0-26-generic kernel and report back.

Revision history for this message
Tom Cook (tom-k-cook) wrote : AlsaInfo.txt

apport information

tags: added: groovy staging
description: updated
Revision history for this message
Tom Cook (tom-k-cook) wrote : CRDA.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : IwConfig.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Lspci.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Lspci-vt.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Lsusb.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Lsusb-t.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Lsusb-v.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : PaInfo.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : ProcModules.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : RfKill.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : UdevDb.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : WifiSyslog.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : acpidump.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : modified.conffile..etc.apport.crashdb.conf.txt

apport information

Revision history for this message
Tom Cook (tom-k-cook) wrote : Re: System hangs after suspend

I've applied the latest BIOS update from HP but this has not made any difference to the problem. I've also verified the problem still exists when running the 2.8.0-26-generic kernel from groovy.

I've also run the apport-collect requested above using that kernel.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
summary: - System hangs after suspend
+ [amdgpu] System hangs after resume from suspend
no longer affects: xserver-xorg-video-amdgpu (Ubuntu)
Revision history for this message
kolAflash (colaflash) wrote :

Maybe related:

Ubuntu-22.04 Live CD not booting on HP ENVY X360 notebook (Ryzen 7 3700U)
https://bugs.launchpad.net/ubuntu/+bug/1970127

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.