[amdgpu] Horizontal graphics corruption on AMD Ryzen 2500u (Raven Ridge)

Bug #1848741 reported by arek199602
80
This bug affects 16 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Undecided
Unassigned
xserver-xorg-video-amdgpu (Ubuntu)
Undecided
Unassigned

Bug Description

I have graphics artefacts: screan tearing, pieces of the previous window appear in the newly opened window.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DisplayManager: gdm3
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-09-08 (42 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
Package: gnome-shell 3.34.1-1ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.3.0-18.19-generic 5.3.1
RelatedPackageVersions: mutter-common 3.34.1-1ubuntu1
Tags: eoan
Uname: Linux 5.3.0-18-generic x86_64
UpgradeStatus: Upgraded to eoan on 2019-10-17 (3 days ago)
UserGroups: adm cdrom dip docker input lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
arek199602 (arek199602) wrote :
Revision history for this message
Cedric (blaik59) wrote :

Hi,

I have similar problems on my Huawei matebook ryzen edition (2500u)
The problem appear randomly (firefox scroll or changing window)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Cedric (blaik59) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1848741

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

tags: added: eoan
summary: - Ubuntu 19.10 graphics artefacts on ryzen 2500u
+ Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u
Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
arek199602 (arek199602) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
arek199602 (arek199602) wrote : GsettingsChanges.txt

apport information

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

apport information

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

apport information

Revision history for this message
arek199602 (arek199602) wrote : ShellJournal.txt

apport information

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u

Thanks but that didn't attach as much info as I had hoped.

Please run:

  lspci -k > lspcik.txt
  dmesg > dmesg.txt

and then attach the files 'lspcik.txt' and 'dmesg.txt'.

Revision history for this message
arek199602 (arek199602) wrote :
Revision history for this message
arek199602 (arek199602) wrote :
summary: - Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u
+ [amdgpu] Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u
summary: - [amdgpu] Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u
+ [amdgpu] Ubuntu 19.10 horizontal graphics corruption on AMD Ryzen 2500u
+ (Raven Ridge)
tags: added: amdgpu
affects: gnome-shell (Ubuntu) → xserver-xorg-video-amdgpu (Ubuntu)
Changed in linux (Ubuntu):
status: New → Confirmed
Changed in xserver-xorg-video-amdgpu (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Arek Plich (arek-plich) wrote : [Bug 1848741] Re: Ubuntu 19.10 horizontal graphics corruption on Ryzen 2500u

what equipment do you have  on my Huawei matebook d 14 from ryzen I noticed problems waking up from sleep

⁣Pozdrawiam
Arkadiusz Plich​

Revision history for this message
arek199602 (arek199602) wrote : Re: [amdgpu] Ubuntu 19.10 horizontal graphics corruption on AMD Ryzen 2500u (Raven Ridge)

I have huwaei matebook d 14

Revision history for this message
Arek Plich (arek-plich) wrote :

I have the same computer model (huawei matebook d 14 "ryzen 2500 and vega graphics) and also under kubuntu 19.10 I have a problem with artifacts on the screen (both in firefox and e.g. application for watching popcorn time movies).

Revision history for this message
Max Mitchell (maxwellkotw) wrote :

I have a Lenovo E585 w/ a Ryzen 5 2500U. I'm having the same issues, horizontal screen tears, parts of a window showing up where they shouldn't. It's mostly on Firefox, but happens when I view PDFs as well. I'm getting different problems on Steam, there it's small colored squares that flash on and off. I'm also having a problem where every time I wake from sleep I get a black screen, not sure if related but maybe it is? I'm happy to upload lspci and dmesg info if that would help!

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

I guess this patch fixes the issue:
commit b05f65d7720b172b6fde3abfa49ed66837071d45
Author: Alex Deucher <email address hidden>
Date: Thu Aug 15 08:27:09 2019 -0500

    drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible

    We need to set certain power gating flags after we determine
    if the firmware version is sufficient to support gfxoff.
    Previously we set the pg flags in early init, but we later
    we might have disabled gfxoff if the firmware versions didn't
    support it. Move adding the additional pg flags after we
    determine whether or not to support gfxoff.

    Fixes: 005440066f92 ("drm/amdgpu: enable gfxoff again on raven series (v2)")
    Tested-by: Kai-Heng Feng <email address hidden>
    Tested-by: Tom St Denis <email address hidden>
    Signed-off-by: Alex Deucher <email address hidden>
    Cc: Kai-Heng Feng <email address hidden>

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc5/

Revision history for this message
Arek Plich (arek-plich) wrote :
Download full text (5.4 KiB)

Durning instalation this kernel i had this:

arek@matebook:~/Pobrane$ sudo dpkg -i linux-image-unsigned-5.4.0-050400rc5-generic_5.4.0-050400rc5.201910271430_amd64.deb > log
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-050400rc5-generic
W: Possible missing firmware /lib/firmware/amdgpu/navi12_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega20_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/renoir_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/raven_kicker_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi14_mec...

Read more...

Revision history for this message
elios (civo) wrote :

I am having this issue with a DELL XPS 13 (Intel HD 620).

Revision history for this message
Arek Plich (arek-plich) wrote :
Revision history for this message
Gary (wrtiap) wrote :

I fixed it by adding a few lines in my /etc/default/grub file! (not sure which exactly which one of the 3 fixed it)
In the line (GRUB_CMDLINE_LINUX_DEFAULT=) I added to the quotes: iommu=soft processor.max_cstate=5 idle=nomwait
If anyone can explain what they each do/which ones are necessary that would be great as well (if it also fixes it for other people)!

I found these commands from:
https://forum.manjaro.org/t/amd-ryzen-problems-and-fixes/55533
https://www.reddit.com/r/Amd/comments/apw8im/ryzen_freezes_in_linux_even_if_linux_is_in_vm/
https://askubuntu.com/questions/1181819/ubuntu-keeps-crashing-on-huawei-matebook-d-ryzen-5-2500u

Revision history for this message
Luigi Pezzotta (sunshadow86) wrote :

I'm on Manjaro, Huawei Matebook D (Ryzen version), but I had the same problem and I solved it by changing my /etc/default/grub file in the following way:

I changed this line:
GRUB_CMDLINE_LINUX=""
to this:
GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt"

then I did:
sudo update-grub && sudo reboot

Everything seems to be working fine now.

Solution found here: https://forum.manjaro.org/t/screen-tearing-amd/63505
(which contains a link to this previous thread: https://forum.manjaro.org/t/fix-gigabyte-970-990-amd-motherboards-and-iommu/44642 )

Revision history for this message
Leonardo da Silva (leonardodasilva1915-2) wrote :

This bug happens on ryzen 3400g with onboard graphics
the comment #23 solved my problem

Revision history for this message
Tad Marko (txtad) wrote :

Confirming that comment #23 also solved my problem on a B450 I Aorus Pro Wifi ITX motherboard with Ryzen 5 3400G.

Revision history for this message
Mohammed (collmomo) wrote :

I confirm, comment #23 fixed also for me the stuttering, graphical problem/artefacts and overall slowness.
Using HP Envy x360 Ryzen 2500U with kernel 5.4.16.

Revision history for this message
Martino Trapanotto (udinanon) wrote :

I have the Huawei Matebook D AMD and i also have ths bug, mostly when I use Firefox.
I am also experiencing a bug when the laptop wakes up from sleep, where the screen is black and seems unresponsive, the only way to use it is to reboot the machine

Revision history for this message
Fazylzhan (zfazylz) wrote :

It seems like a problem of AMD, as same issue was in Windows. Sometimes rebooting is not helping. Lenovo 530s AMD Ryzen 5 2500U.
Same problem in Ubuntu 20.04

Revision history for this message
Fazylzhan (zfazylz) wrote :

Comment #23 not working. (Ubuntu 20.04, AMD Ryzen 5 2500U)

tags: added: focal
Revision history for this message
Eithan Hernandez (eithan1) wrote :

I fixed it with :
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=pt"

solution from: panariga

https://askubuntu.com/questions/1239149/graphics-glitches-and-artifacts-with-ryzen-5-3400g-apu

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

Which kernel was in use under 20.04?

tags: removed: eoan
summary: - [amdgpu] Ubuntu 19.10 horizontal graphics corruption on AMD Ryzen 2500u
- (Raven Ridge)
+ [amdgpu] Horizontal graphics corruption on AMD Ryzen 2500u (Raven Ridge)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers