Bug 204885

Summary: ryzen 2500U cause graphics glitch in all browsers with kernel version 5.2.x+
Product: Other Reporter: no2stable (pRoMMMModE)
Component: OtherAssignee: drivers_video-dri
Status: RESOLVED CODE_FIX    
Severity: normal CC: pierre-eric.pelloux-prayer, pRoMMMModE
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.3.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg
5.3.0 kernel config
a picture of the graphic glitch
anathor picture of the graphic glitch

Description no2stable 2019-09-17 04:55:51 UTC
Created attachment 285017 [details]
dmesg

I have a ryzen 2500U laptop running archlinux, after I upgrade the kernel from 5.1.16 to 5.2.x, firefox start to have those wired lines graphic glitch when browsing web pages, especially when browsing a page contain video.

This graphic glitch happens to every browser I tried: Chromium, qutebrowser(webkit engine), I tried to turn off hardware acceleration, it dose helped on Chromium, but not on firefox, so I guess it is a bug related to driver.

Currently I have 2 kernel installed on my laptop, one is the official kernel package from arhclinux with kernel version 5.1.16. I also compiled a 5.3.0 kernel using the archlinux official 5.3.0 kernel .config file.

I am new to linux, so I dont really know hot to debug this problem, but I'm willing to learn how if somebody give me a hint.
Comment 1 no2stable 2019-09-17 04:56:28 UTC
Created attachment 285019 [details]
5.3.0 kernel config
Comment 2 no2stable 2019-09-17 05:01:07 UTC
Created attachment 285021 [details]
a picture of the graphic glitch
Comment 3 no2stable 2019-09-17 05:02:34 UTC
Created attachment 285023 [details]
anathor picture of the graphic glitch
Comment 4 Pierre-Eric Pelloux-Prayer 2019-10-08 12:07:48 UTC
This bug looks similar to https://bugs.freedesktop.org/show_bug.cgi?id=111122

Could you try the various workarounds proposed there and see if it helps:
  - adding the iommu=pt kernel boot parameter (see https://wiki.archlinux.org/index.php/kernel_parameters#GRUB)
  - or using the AMD_DEBUG=nodcc environment variable (for instance, try adding a new line with "AMD_DEBUG=nodcc" in the /etc/environment file and reboot)
  - or updating Mesa to the latest version
Comment 5 no2stable 2019-10-09 10:16:04 UTC
(In reply to Pierre-Eric Pelloux-Prayer from comment #4)
> This bug looks similar to https://bugs.freedesktop.org/show_bug.cgi?id=111122
> 
> Could you try the various workarounds proposed there and see if it helps:
>   - adding the iommu=pt kernel boot parameter (see
> https://wiki.archlinux.org/index.php/kernel_parameters#GRUB)
>   - or using the AMD_DEBUG=nodcc environment variable (for instance, try
> adding a new line with "AMD_DEBUG=nodcc" in the /etc/environment file and
> reboot)
>   - or updating Mesa to the latest version

So adding "iommu=pt" to the kernel parameter dose help, thanks a lot!