AMDGPU: Screen frequently and suddenly freezes. Hard reboot necessary. AMD Ryzen

Bug #2033295 reported by GT
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Frequently, when I just use the computer, the mouse cursor freezes, the screen starts to flicker and freezes (screen flickers between entirely black and desktop visible). No interaction possible. In most cases Ctrl-Alt-Prnt-REISUB works to hard reboot the system.

Frequency: Freezes happen several times a day. Unsaved work is lost.

I noticed that:
* The freezes usually happen when an external display is connected (it does not matter whether USB-C or HDMI). The freezes rarely happen when no external display is connected.
* The freezes happen with Wayland and X11, with Ubuntu UI and Gnome Shell.
* The freezes happen randomly, but I have the feeling that they happen more often when "something graphical" happens, e.g. when I go to the Gnome Shell overview, desktop switching, or when I switch to/from full screen mode, click on an image to scale it, or when I use map services in the web browser like Google Maps or radio.garden.
* The freezes even more often happened when WebGL is active in Firefox or Chomium.
* I encounter these annoying freezes already for several weeks.

Having looked at the log files, I assume that AMDGPU is at the core of the problem.

System:
Ubuntu 23.04 (up to date), Wayland (freezes also happen with X11), Gnome 44.3.
Linux 6.2.0-31-generic
Lenovo ThinkPad T14s Gen 1 (with most recent BIOS/UEFI 1.44), AMD Ryzen™ 7 PRO 4750U with Radeon™ Graphics × 16.
---
ProblemType: Bug
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
DistroRelease: Ubuntu 23.04
InstallationDate: Installed on 2021-06-06 (813 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
MachineType: LENOVO 20UJS00K00
Package: linux (not installed)
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-31-generic root=UUID=9eae73b3-aab9-4f80-9203-01ac00f03c33 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 6.2.0-31.31-generic 6.2.15
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-31-generic N/A
 linux-backports-modules-6.2.0-31-generic N/A
 linux-firmware 20230323.gitbcdcfbcf-0ubuntu1.6
Tags: lunar wayland-session
Uname: Linux 6.2.0-31-generic x86_64
UpgradeStatus: Upgraded to lunar on 2023-05-11 (110 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/13/2023
dmi.bios.release: 1.44
dmi.bios.vendor: LENOVO
dmi.bios.version: R1CET75W(1.44 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20UJS00K00
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.44
dmi.modalias: dmi:bvnLENOVO:bvrR1CET75W(1.44):bd06/13/2023:br1.44:efr1.44:svnLENOVO:pn20UJS00K00:pvrThinkPadT14sGen1:rvnLENOVO:rn20UJS00K00:rvrNotDefined:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20UJ_BU_Think_FM_ThinkPadT14sGen1:
dmi.product.family: ThinkPad T14s Gen 1
dmi.product.name: 20UJS00K00
dmi.product.sku: LENOVO_MT_20UJ_BU_Think_FM_ThinkPad T14s Gen 1
dmi.product.version: ThinkPad T14s Gen 1
dmi.sys.vendor: LENOVO

Revision history for this message
GT (gleppert) wrote :
Revision history for this message
GT (gleppert) wrote :
Revision history for this message
GT (gleppert) wrote :
Revision history for this message
GT (gleppert) wrote :
Revision history for this message
GT (gleppert) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2033295/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
GT (gleppert) wrote :

Selection of specific source package: I am not sure in which package the Linux Kernel AMD Ryzen graphic drivers are located. I chose "libdrm" as it includes libdrm-amdgpu. I hope that this is correct.

affects: ubuntu → libdrm (Ubuntu)
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

amdgpu.ko is provided by the kernel

affects: libdrm (Ubuntu) → linux (Ubuntu)
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 2033295

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
GT (gleppert) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected lunar wayland-session
description: updated
Revision history for this message
GT (gleppert) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
GT (gleppert) wrote : CRDA.txt

apport information

Revision history for this message
GT (gleppert) wrote : CurrentDmesg.txt

apport information

Revision history for this message
GT (gleppert) wrote : IwConfig.txt

apport information

Revision history for this message
GT (gleppert) wrote : Lspci.txt

apport information

Revision history for this message
GT (gleppert) wrote : Lspci-vt.txt

apport information

Revision history for this message
GT (gleppert) wrote : Lsusb.txt

apport information

Revision history for this message
GT (gleppert) wrote : Lsusb-t.txt

apport information

Revision history for this message
GT (gleppert) wrote : Lsusb-v.txt

apport information

Revision history for this message
GT (gleppert) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
GT (gleppert) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
GT (gleppert) wrote : ProcEnviron.txt

apport information

Revision history for this message
GT (gleppert) wrote : ProcInterrupts.txt

apport information

Revision history for this message
GT (gleppert) wrote : ProcModules.txt

apport information

Revision history for this message
GT (gleppert) wrote : RfKill.txt

apport information

Revision history for this message
GT (gleppert) wrote : UdevDb.txt

apport information

Revision history for this message
GT (gleppert) wrote : WifiSyslog.txt

apport information

Revision history for this message
GT (gleppert) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
GT (gleppert) wrote :

I am not sure whether these discussion threads are helpful in identifying the cause of the freezes. To me, they seem to related to the bug reported here. There also seems to be a *bug fix* for 6.5.x available (if this is the same problem in the discussions below). Can this be backported to the Linux Kernel in Ubuntu 23.04?

Discussions:
https://www.reddit.com/r/Fedora/comments/124vdu7/amd_integrated_gpu_freezes_after_62_kernel_update/
https://gitlab.freedesktop.org/drm/amd/-/issues/2447#note_2020862

Revision history for this message
Martin Randau (cmmrandau) wrote :

Kernel >6.3 and amd_pstate=active (not needed for kernel >6.5) solves the problem on my Thinkpad P14s gen 3.

Revision history for this message
Alexandre Hen (atropine07) wrote :

Same problem here on Ubuntu 22.04.3 with latest and updated 6.2 kernel.
On a Thinkpad P14s gen1 20Y with a Ryzen 4750u pro.

It is not possible to use this laptop with Ubuntu 23.04 (I tried, same problem because same kernel I guess) nor 22.04.3.

Revision history for this message
atactic (atactic) wrote :

Same problem at my end:
Ubuntu 23.10 Kernel 6.5.0-10
AMD Ryzen 9 7940HS w/ RADEON 780M Graphics
2x 16 GB RAM

To post a comment you must log in.