! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Kernel 5.3 AMD GPU (vega graphics) random pixeling
Status:
RESOLVED: FIXED

Comments

Description Joe 2020-01-23 14:15:03 CET
So just upgraded from kernel 5.0 in Linux Mint to kernel 5.3 and the UI just crashes on each click of the mouse. New windows load as a mess just random colors and large multi-pixel blobs and changing the resolution causes the whole screen to go black. This seems very similar to this issue in the Fedora forums (https://bugzilla.redhat.com/show_bug.cgi?id=1739863).  

Works - Linux 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Doesn't work - Linux 5.3.0.26.28-18.04.01 generic

Detailed Hardware info:
Machine:   Type: Laptop System: LENOVO product: 81NB v: Lenovo IdeaPad S340-14API serial: <filter> 
           Chassis: type: 10 v: Lenovo IdeaPad S340-14API
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 UEFI: LENOVO 
           v: AMCN26WW(V1.09) date: 11/15/2019 
Battery:   ID-1: BAT1 charge: 51.5 Wh condition: 53.0/52.5 Wh (101%) volts: 12.6/11.3 
           model: 0x4C 0x47 0x43 0x00 0x32 0x30 0x 0x4C 0x31 0x38 0x4C 0x33 0x50 0x5250 
           status: Discharging 
CPU:       Topology: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen rev: 1 L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 33537 
           Speed: 1198 MHz min/max: 1400/2100 MHz Core speeds (MHz): 1: 1198 2: 1198 3: 2395 
           4: 2395 5: 1197 6: 1197 7: 1197 8: 1197 
Graphics:  Device-1: AMD Picasso vendor: Lenovo driver: amdgpu v: kernel bus ID: 04:00.0 
           chip ID: 1002:15d8 
           Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.27.0 5.0.0-37-generic LLVM 9.0.0) v: 4.5 Mesa 19.2.1 
           direct render: Yes 
Audio:     Device-1: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 04:00.1 
           chip ID: 1002:15de 
           Device-2: AMD vendor: Lenovo driver: N/A bus ID: 04:00.5 chip ID: 1022:15e2 
           Device-3: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 04:00.6 
           chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.0.0-37-generic 
Network:   Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter vendor: Lenovo 
           driver: rtw_pci v: N/A port: 2000 bus ID: 02:00.0 chip ID: 10ec:b822 
           IF: wlp2s0 state: up mac: <filter> 
           IF-ID-1: br-ada3e4a26d3a state: down mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: virbr0 state: down mac: <filter> 
           IF-ID-4: virbr0-nic state: down mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 292.09 GiB (61.2%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPMUW-512G-1101 
           size: 476.94 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> 
Partition: ID-1: / size: 371.23 GiB used: 146.02 GiB (39.3%) fs: ext4 dev: /dev/nvme0n1p4 
           ID-2: swap-1 size: 5.59 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-0 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-4:2 info: IMC Networks type: Video driver: uvcvideo rev: 2.0 
           chip ID: 13d3:56b2 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 chip ID: 1d6b:0003 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Device-2: 3-2:2 info: Realtek type: Bluetooth driver: btusb rev: 1.1 chip ID: 0bda:b023 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 1 rev: 3.1 chip ID: 1d6b:0003 


Detailed Hardware info:
Machine:   Type: Laptop System: LENOVO product: 81NB v: Lenovo IdeaPad S340-14API serial: <filter> 
           Chassis: type: 10 v: Lenovo IdeaPad S340-14API
           Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 UEFI: LENOVO 
           v: AMCN26WW(V1.09) date: 11/15/2019 
Battery:   ID-1: BAT1 charge: 51.5 Wh condition: 53.0/52.5 Wh (101%) volts: 12.6/11.3 
           model: 0x4C 0x47 0x43 0x00 0x32 0x30 0x 0x4C 0x31 0x38 0x4C 0x33 0x50 0x5250 
           status: Discharging 
CPU:       Topology: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx bits: 64 
           type: MT MCP arch: Zen rev: 1 L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 33537 
           Speed: 1198 MHz min/max: 1400/2100 MHz Core speeds (MHz): 1: 1198 2: 1198 3: 2395 
           4: 2395 5: 1197 6: 1197 7: 1197 8: 1197 
Graphics:  Device-1: AMD Picasso vendor: Lenovo driver: amdgpu v: kernel bus ID: 04:00.0 
           chip ID: 1002:15d8 
           Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.27.0 5.0.0-37-generic LLVM 9.0.0) v: 4.5 Mesa 19.2.1 
           direct render: Yes 
Audio:     Device-1: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 04:00.1 
           chip ID: 1002:15de 
           Device-2: AMD vendor: Lenovo driver: N/A bus ID: 04:00.5 chip ID: 1022:15e2 
           Device-3: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 04:00.6 
           chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.0.0-37-generic 
Network:   Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter vendor: Lenovo 
           driver: rtw_pci v: N/A port: 2000 bus ID: 02:00.0 chip ID: 10ec:b822 
           IF: wlp2s0 state: up mac: <filter> 
           IF-ID-1: br-ada3e4a26d3a state: down mac: <filter> 
           IF-ID-2: docker0 state: down mac: <filter> 
           IF-ID-3: virbr0 state: down mac: <filter> 
           IF-ID-4: virbr0-nic state: down mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 292.09 GiB (61.2%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPMUW-512G-1101 
           size: 476.94 GiB speed: 15.8 Gb/s lanes: 2 serial: <filter> 
Partition: ID-1: / size: 371.23 GiB used: 146.02 GiB (39.3%) fs: ext4 dev: /dev/nvme0n1p4 
           ID-2: swap-1 size: 5.59 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-0 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-4:2 info: IMC Networks type: Video driver: uvcvideo rev: 2.0 
           chip ID: 13d3:56b2 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 chip ID: 1d6b:0003 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Device-2: 3-2:2 info: Realtek type: Bluetooth driver: btusb rev: 1.1 chip ID: 0bda:b023 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 1 rev: 3.1 chip ID: 1d6b:0003
Comment 1 Olivier Fourdan editbugs 2020-01-23 14:41:14 CET
xfwm4 has no specific hardware code, if it fails after updating the kernel or on a particular hardware/driver, this is very unlikely xfwm4 fault.

Disabling compositing or changing/disabling vsync may help though.
Comment 2 Joe 2020-01-25 15:02:13 CET
Disabling compositing form the window manager tweaks settings solves the issue as I can tell, but tearing becomes much more noticeable. Not sure if this is something which can be highlighted to the driver/kernel maintainers as with compositing enabled the system is unusable. Thank you.
Comment 3 Olivier Fourdan editbugs 2020-01-27 09:33:13 CET
With xfwm4 and an AMD GPU, you'd probably better off using Xpresent rather than GL for vsync.

$ xfconf-query -c xfwm4 -p /general/vblank_mode -s xpresent

Then restart xfwm4 and re-enable compositing
Comment 4 Joe 2020-01-30 10:26:27 CET
Thanks for the information - not something I would have found on my own for sure. 

That command does help a lot - at least pixels aren't appearing all over the place. However still results in a lot of tearing on the system vs what the default was using in kernel 5.0. I just upgraded to kernel 5.3.0-28 which included some xorg patches for amdgpu, but 5.0 is still far better with the original config. 

Greatly appreciate your attention on this. Understanding this is likely not necessarily an xfce issue, it would be good to feedback that the previous versions were fantastic, but currently now broken for the average user - not sure if that is something that can be brought to the attention of powers that be. 

Thank you again for your time and assistance.

Bug #16403

Reported by:
Joe
Reported on: 2020-01-23
Last modified on: 2020-05-29

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
4.14.0

Attachments

Additional information