Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromium based browsers flickering on kernel 5.15 #97

Closed
JulioSordi opened this issue Dec 4, 2021 · 32 comments
Closed

Chromium based browsers flickering on kernel 5.15 #97

JulioSordi opened this issue Dec 4, 2021 · 32 comments

Comments

@JulioSordi
Copy link

JulioSordi commented Dec 4, 2021

Distribution

Pop OS! 20.04 LTS

Related Application and/or Package Version

linux-image-5.15.5-76051505-generic:
  Instalado: 5.15.5-76051505.202111250933~1638201579~20.04~09f1aa7
  Candidato: 5.15.5-76051505.202111250933~1638201579~20.04~09f1aa7
  Tabela de versão:
 *** 5.15.5-76051505.202111250933~1638201579~20.04~09f1aa7 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

brave-browser:
  Instalado: 1.32.113
  Candidato: 1.32.113
  Tabela de versão:
 *** 1.32.113 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
        100 /var/lib/dpkg/status
     1.32.106 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.31.91 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.31.88 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.31.87 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.30.89 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.30.87 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages
     1.30.86 500
        500 https://brave-browser-apt-release.s3.brave.com stable/main amd64 Packages

microsoft-edge-stable:
  Instalado: 96.0.1054.34-1
  Candidato: 96.0.1054.34-1
  Tabela de versão:
 *** 96.0.1054.34-1 100
        100 /var/lib/dpkg/status

Issue/Bug Description:

The pages randomly flicker as if they were flashing
the issue occurs in the following situations:

  • While normally browsing the web
  • while typing on a post
  • while scrolling pages
  • when i leave the mouse still for a few seconds
  • when i open a link
  • when i select text

The following applications display this issue:

  • Brave browser
  • Microsoft Edge

Occurs in the following kernel:

  • Kernel 5.15-generic

Steps to reproduce

  • Open a Chromium based browser (Preferably Brave or Edge)
  • browse the web as normal
  • Google something and open a link
  • select some text
  • type on some kind of post
  • scroll through the pages
  • leave the mouse still for a few seconds

Expected behavior:

The page will not flicker

Other Notes:

sometimes the whole page flickers, sometimes only the bottom
does not occur in full screen videos
i wasn't able to record or screenshot the flickering unfortunately
the issue might be present in Chromium or other derivatives that i haven't tested (Vivaldi, Opera, Ungoogled Chromium, Chrome).

@jacobgkau
Copy link
Member

What hardware are you using? What graphics card, processor, motherboard, storage, and RAM?

@JulioSordi
Copy link
Author

JulioSordi commented Dec 6, 2021

What hardware are you using? What graphics card, processor, motherboard, storage, and RAM?

inxi -F
System:
  Host: julio Kernel: 5.13.0-7620-generic x86_64 bits: 64 
  Desktop: Gnome 3.36.7 Distro: Pop!_OS 20.04 LTS 
Machine:
  Type: Laptop System: SAMSUNG product: 550XBE/350XBE v: P10REU 
  serial: <superuser/root required> 
  Mobo: SAMSUNG model: NP350XBE-KD1BR 
  v: SGL9970A0B-C01-G001-S0001+10.0.17763 serial: <superuser/root required> 
  UEFI: American Megatrends v: P10REU.088.200306.JJ date: 03/06/2020 
Battery:
  ID-1: BAT1 charge: 16.6 Wh condition: 30.8/43.1 Wh (71%) 
CPU:
  Topology: Quad Core model: Intel Core i5-8265U bits: 64 type: MT MCP 
  L2 cache: 6144 KiB 
  Speed: 2300 MHz max: 2340 MHz Core speeds (MHz): 1: 2300 2: 2300 3: 2301 
  4: 2300 5: 2300 6: 2300 7: 2300 8: 2300 
Graphics:
  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.11 driver: i915 resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2) v: 4.6 Mesa 21.2.2 
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio 
  driver: snd_hda_intel 
  Sound Server: ALSA v: k5.13.0-7620-generic 
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  driver: ath10k_pci 
  IF: wlp1s0 state: down mac: 98:83:89:e8:80:36 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169 
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: 98:83:89:f1:2b:7b 
  Device-3: Qualcomm Atheros type: USB driver: btusb 
  IF-ID-1: virbr0 state: down mac: 52:54:00:18:3e:31 
  IF-ID-2: virbr0-nic state: down mac: 52:54:00:18:3e:31 
Drives:
  Local Storage: total: 931.51 GiB used: 255.59 GiB (27.4%) 
  ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-35Z10T0 
  size: 931.51 GiB 
Partition:
  ID-1: / size: 907.53 GiB used: 252.87 GiB (27.9%) fs: ext4 dev: /dev/sda3 
  ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-0 
Sensors:
  System Temperatures: cpu: 49.0 C mobo: 49.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 273 Uptime: 6m Memory: 7.66 GiB used: 2.12 GiB (27.7%) 
  Shell: bash inxi: 3.0.38

@JorisVanEijden
Copy link

Same here. Both Brave and Slack flicker randomly after updating to 5.15. Reverting to 5.13 resolves it.

System:    Host: c128 Kernel: 5.13.0-7620-generic x86_64 bits: 64 Desktop: Gnome 3.36.7 Distro: Pop!_OS 20.04 LTS 
Machine:   Type: Desktop Mobo: MSI model: B150M BAZOOKA (MS-7982) v: 3.0 serial: <superuser/root required> 
           UEFI: American Megatrends v: I.20 date: 09/02/2015 
CPU:       Topology: Quad Core model: Intel Core i7-6700 bits: 64 type: MT MCP L2 cache: 8192 KiB 
           Speed: 3400 MHz min/max: 800/4000 MHz Core speeds (MHz): 1: 3400 2: 3400 3: 3400 4: 2860 5: 1406 6: 3223 7: 943 
           8: 3215 
Graphics:  Device-1: Intel HD Graphics 530 driver: i915 v: kernel 
           Device-2: NVIDIA GM204 [GeForce GTX 980] driver: nouveau v: kernel 
           Display: x11 server: X.Org 1.20.11 driver: nouveau resolution: 3840x2160~60Hz 
           OpenGL: renderer: NV124 v: 4.3 Mesa 21.2.2 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio driver: snd_hda_intel 
           Device-2: NVIDIA GM204 High Definition Audio driver: snd_hda_intel 
           Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo 
           Sound Server: ALSA v: k5.13.0-7620-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: d8:cb:8a:e1:4a:a0 
           IF-ID-1: br-358e4a12f0ff state: down mac: 02:42:28:7f:30:84 
           IF-ID-2: br-408edd3ebfb7 state: down mac: 02:42:77:64:79:6d 
           IF-ID-3: br-6b15f8f23af7 state: down mac: 02:42:e0:c7:68:d1 
           IF-ID-4: br-82b33068f8d8 state: down mac: 02:42:a4:07:63:71 
           IF-ID-5: br-8385ea06e7b6 state: down mac: 02:42:cd:53:03:0b 
           IF-ID-6: docker0 state: down mac: 02:42:17:5c:81:8e 
Drives:    Local Storage: total: 3.86 TiB used: 208.42 GiB (5.3%) 
           ID-1: /dev/sda vendor: Crucial model: CT240BX200SSD1 size: 223.57 GiB 
           ID-2: /dev/sdb vendor: Toshiba model: DT01ACA300 size: 2.73 TiB 
           ID-3: /dev/sdc vendor: Crucial model: CT256MX100SSD1 size: 238.47 GiB 
           ID-4: /dev/sdd vendor: Crucial model: CT250MX500SSD1 size: 232.89 GiB 
           ID-5: /dev/sde type: USB vendor: JMicron Tech model: N/A size: 465.76 GiB 
Partition: ID-1: / size: 449.08 GiB used: 206.00 GiB (45.9%) fs: ext4 dev: /dev/dm-1 
           ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 41.5 C mobo: 30.0 C gpu: nouveau temp: 30 C 
           Fan Speeds (RPM): cpu: 0 fan-2: 539 fan-3: 0 fan-4: 0 fan-5: 0 gpu: nouveau fan: 1160 
Info:      Processes: 338 Uptime: 5m Memory: 31.28 GiB used: 2.76 GiB (8.8%) Shell: bash inxi: 3.0.38 

@JulioSordi
Copy link
Author

Is this issue occurring across other distros? What could be causing it? Is there any more info i should provide?

@jackpot51 jackpot51 transferred this issue from pop-os/pop Dec 7, 2021
@bradleeedmondson
Copy link

I believe I am seeing this issue too, with a PowerColor 6800 XT running PopOS 21.04 in a custom rig.

I see random flickering on both monitors with kernel 5.15, while booting with backup kernel 5.13 has no issue. Flickering affects whole display (including desktop background), not just specific apps/windows, but seems like it happens more frequently when using Chrome (I have full Google Chrome 96.0.4664.93 -- don't judge). The GPU has worked flawlessly up until a few days ago when I first booted with 5.15.

Showing the flickering issue: 5.15.5-76051505-generic:

$ inxi -Fz
System:    Kernel: 5.15.5-76051505-generic x86_64 bits: 64 Desktop: GNOME 3.38.4 
           Distro: Pop!_OS 21.04 
Machine:   Type: Desktop Mobo: ASRock model: B450 Pro4 serial: <filter> 
           UEFI: American Megatrends v: P5.00 date: 05/10/2021 
CPU:       Info: 8-Core model: AMD Ryzen 7 5800X bits: 64 type: MCP L2 cache: 4 MiB 
           Speed: 2870 MHz min/max: 2200/3800 MHz Core speeds (MHz): 1: 2870 2: 2870 
           3: 2871 4: 2860 5: 2850 6: 2220 7: 2198 8: 2696 
Graphics:  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu 
           v: kernel 
           Display: server: X.Org 1.20.11 driver: loaded: amdgpu,ati 
           unloaded: fbdev,modesetting,radeon,vesa resolution: 1: 3840x2160~60Hz 
           2: 3840x2160~60Hz 
           OpenGL: renderer: AMD Radeon RX 6800 XT (SIENNA_CICHLID DRM 3.42.0 
           5.15.5-76051505-generic LLVM 12.0.0) 
           v: 4.6 Mesa 21.2.2 
Audio:     Device-1: AMD driver: snd_hda_intel 
           Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel 
           Device-3: Microdia Webcam Vitade AF type: USB driver: snd-usb-audio,uvcvideo 
           Device-4: C-Media Audio Adapter (Unitek Y-247A) type: USB 
           driver: cmedia_hs100b,snd-usb-audio,usbhid 
           Sound Server: ALSA v: k5.15.5-76051505-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 660.34 GiB (70.9%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB 
Partition: ID-1: / size: 19.56 GiB used: 10.88 GiB (55.6%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot/efi size: 1.95 GiB used: 239.4 MiB (12.0%) fs: vfat 
           dev: /dev/nvme0n1p1 
           ID-3: /home size: 859.81 GiB used: 649.23 GiB (75.5%) fs: ext4 dev: /dev/dm-3 
Swap:      ID-1: swap-1 type: partition size: 35 GiB used: 0 KiB (0.0%) dev: /dev/dm-2 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 290 Uptime: 8m Memory: 31.28 GiB used: 2.07 GiB (6.6%) Shell: Bash 
           inxi: 3.3.01

Not showing the flickering issue: 5.13.0-7620-generic:

$ inxi -Fz

System:    Kernel: 5.13.0-7620-generic x86_64 bits: 64 Desktop: GNOME 3.38.4 Distro: Pop!_OS 21.04 
Machine:   Type: Desktop Mobo: ASRock model: B450 Pro4 serial: <filter> UEFI: American Megatrends v: P5.00 date: 05/10/2021 
CPU:       Info: 8-Core model: AMD Ryzen 7 5800X bits: 64 type: MCP L2 cache: 4 MiB 
           Speed: 2194 MHz min/max: 2200/3800 MHz Core speeds (MHz): 1: 2194 2: 2195 3: 2196 4: 2190 5: 2189 6: 2195 7: 2195 
           8: 2195 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] driver: amdgpu v: kernel 
           Display: server: X.Org 1.20.11 driver: loaded: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa resolution: 
           1: 3840x2160~60Hz 2: 3840x2160~60Hz 
           OpenGL: renderer: AMD Radeon RX 6800 XT (SIENNA_CICHLID DRM 3.41.0 5.13.0-7620-generic LLVM 12.0.0) 
           v: 4.6 Mesa 21.2.2 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio driver: snd_hda_intel 
           Device-3: Microdia Webcam Vitade AF type: USB driver: snd-usb-audio,uvcvideo 
           Device-4: C-Media Audio Adapter (Unitek Y-247A) type: USB driver: hid-generic,snd-usb-audio,usbhid 
           Sound Server: ALSA v: k5.13.0-7620-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 660.33 GiB (70.9%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB 
Partition: ID-1: / size: 19.56 GiB used: 10.88 GiB (55.6%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot/efi size: 1.95 GiB used: 239.4 MiB (12.0%) fs: vfat dev: /dev/nvme0n1p1 
           ID-3: /home size: 859.81 GiB used: 649.21 GiB (75.5%) fs: ext4 dev: /dev/dm-3 
Swap:      ID-1: swap-1 type: partition size: 35 GiB used: 0 KiB (0.0%) dev: /dev/dm-2 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Info:      Processes: 296 Uptime: 1m Memory: 31.28 GiB used: 1.46 GiB (4.7%) Shell: Bash inxi: 3.3.01 

I have two custom .deb repos, but neither affect kernel:
http://dl.google.com/linux/chrome/deb/
http://repo.zabbix.com/zabbix/5.0/ubuntu/

@Eduardo06sp
Copy link

Eduardo06sp commented Dec 8, 2021

Also happens on my bone stock lemp9. However I am not using Chrome, I use FireFox.
Version: Pop!_OS 21.04
Kernel: Linux 5.15.5-76051505-generic x86_64

I opened a support ticket through their portal, I apologize if this comment is unnecessary

@JulioSordi
Copy link
Author

Also happens on my bone stock lemp9. However I am not using Chrome, I use FireFox. Version: Pop!_OS 21.04 Kernel: Linux 5.15.5-76051505-generic x86_64

I opened a support ticket through their portal, I apologize if this comment is unnecessary

I hope someone has an explanation for why this is happening, it seems i'm not the only one who's affected, i wonder why Pop 20.04 LTS upgraded the kernel so soon, did Ubuntu upgrade the kernel too?

@JorisVanEijden
Copy link

Attaching dmesg output from a 5.13 (no flickering) and a 5.15 (flickering) boot.
dmesg_5_13.txt
dmesg_5_15.txt

@guyvdbroeck
Copy link

I have this issue on a fresh install lemp10 laptop.

@JulioSordi
Copy link
Author

JulioSordi commented Dec 10, 2021

I have this issue on a fresh install lemp10 laptop.

Please run inxi -F in the terminal and post the output here, the developers need as much info as you can provide.

Open terminal --> type inxi -F then press Enter --> select the whole output then copy it with Ctrl Shift C --> start a new comment here, press Ctrl E to insert code then paste the terminal output.

@leviport
Copy link
Member

@guyvdbroeck Please include the OS version you did a clean install with, as well as the packages you installed after installing the OS. If I can recreate this on my lemp10 it would be immensely helpful for troubleshooting.

@guyvdbroeck
Copy link

System:
  Host: voyager Kernel: 5.15.5-76051505-generic x86_64 bits: 64 
  Desktop: GNOME 3.38.4 Distro: Pop!_OS 21.04 
Machine:
  Type: Laptop System: System76 product: Lemur Pro v: lemp10 
  serial: <superuser required> 
  Mobo: System76 model: Lemur Pro v: lemp10 serial: <superuser required> 
  UEFI: coreboot v: 2021-07-20_93c2809 date: 07/20/2021 
Battery:
  ID-1: BAT0 charge: 68.6 Wh condition: 76.2/73.9 Wh (103%) 
CPU:
  Info: Quad Core model: 11th Gen Intel Core i5-1135G7 bits: 64 type: MT MCP 
  L2 cache: 8 MiB 
  Speed: 1128 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 1128 2: 1235 
  3: 1003 4: 855 5: 1129 6: 1128 7: 1103 8: 1003 
Graphics:
  Device-1: Intel TigerLake GT2 [Iris Xe Graphics] driver: i915 v: kernel 
  Device-2: Chicony Chicony USB2.0 Camera type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting 
  unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.2.2 
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio driver: snd_hda_intel 
  Sound Server: ALSA v: k5.15.5-76051505-generic 
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi 
  IF: wlp0s20f3 state: up mac: 60:e3:2b:ae:10:5a 
Bluetooth:
  Device-1: Intel type: USB driver: btusb 
  Report: ID: hci0 state: up running bt-v: 3.0 address: 60:E3:2B:AE:10:5E 
Drives:
  Local Storage: total: 931.51 GiB used: 252.24 GiB (27.1%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS100T2B0C-00PXH0 
  size: 931.51 GiB 
Partition:
  ID-1: / size: 907.51 GiB used: 249.48 GiB (27.5%) fs: ext4 dev: /dev/dm-1 
  ID-2: /boot/efi size: 511 MiB used: 355.8 MiB (69.6%) fs: vfat 
  dev: /dev/nvme0n1p1 
Swap:
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) dev: /dev/dm-2 
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 307 Uptime: 47m Memory: 23.33 GiB used: 3.61 GiB (15.5%) 
  Shell: Bash inxi: 3.3.01 

@pbui
Copy link

pbui commented Dec 11, 2021

I was able to stop the flickering by adding intel_iommu=igfx_off to my kernel parameters. This on an Intel only machine with an iGPU and has been effective for a week.

@JulioSordi
Copy link
Author

I was able to stop the flickering by adding intel_iommu=igfx_off to my kernel parameters. This on an Intel only machine with an iGPU and has been effective for a week.

Could you write a step by step instruction on how to modify kernel parameters? It would make things much easier for less experienced users, i often find the Arch Wiki too complicated, it never tells me how to do things and which commands i need to use.

@pbui
Copy link

pbui commented Dec 12, 2021

You can use kernelstub as follows:

sudo kernelstub -a intel_iommu=igfx_off

This will add that kernel parameter to /etc/kernelstub/configuration and to the systemd-boot entries in /boot/efi/loader/entries/. For instance, after running that command above, the /boot/efi/loader/entries/Pop_OS-current.conf contains the following:

title Pop!_OS
linux /EFI/Pop_OS-241af729-d87a-45d0-9c76-a6db1260573a/vmlinuz.efi
initrd /EFI/Pop_OS-241af729-d87a-45d0-9c76-a6db1260573a/initrd.img
options root=UUID=241af729-d87a-45d0-9c76-a6db1260573a ro quiet loglevel=0 systemd.show_status=false splash intel_iommu=igfx_off

As you can see the kernel parameter we wanted to add is now on the options line.

Once you have added this parameter, you will need to reboot your machine for it to take effect.

If for whatever reason you want remove it (e.g. this problem is fixed properly, or this doesn't fix your flickering issue), then you can do the following to remove the option:

sudo kernelstub -d intel_iommu=igfx_off

I hope that helps. Note, this is not a proper fix... it is more of a workaround that I discovered from the Intel-IOMMU kernel documentation:

If you encounter issues with graphics devices, you can try adding
option intel_iommu=igfx_off to turn off the integrated graphics engine.
If this fixes anything, please ensure you file a bug reporting the problem.

@bradleeedmondson
Copy link

bradleeedmondson commented Dec 14, 2021

Just to confirm, is anyone else seeing this on amdgpu? I've observed this with both Radeon 6800 XT and 6900 XT on a Ryzen 7 5800X box. Obviously any Intel driver-specific issues aren't applicable there (nor is the intel_iommu kernel setting), so I'm trying to figure out if I should post a separate issue.

@JorisVanEijden
Copy link

intel_iommu=igfx_off did not stop or reduce the issue for me.

@Steve-Z
Copy link

Steve-Z commented Dec 21, 2021

Same problem here, running Pop!_OS 20.04 on a Dell e7470. Seems to be a horizontal flickering of maximized windows. I have seen it on Firefox 95, Slack desktop client (4.22.0), and VS Code (1.63). It is perhaps triggered by scrolling vertically, but can persist for some seconds even when I stop scrolling.

sudo lshw -short
[sudo] password...
H/W path       Device     Class          Description
====================================================
                          system         Latitude E7470 (06DC)
/0                        bus            Motherboard
/0/0                      memory         64KiB BIOS
/0/41                     memory         64KiB L1 cache
/0/42                     memory         64KiB L1 cache
/0/43                     memory         512KiB L2 cache
/0/44                     memory         3MiB L3 cache
/0/45                     processor      Intel(R) Core(TM) i5-6300U CPU @ 2.40GH
/0/46                     memory         8GiB System Memory
/0/46/0                   memory         8GiB SODIMM DDR4 Synchronous 2133 MHz (
/0/46/1                   memory         DIMM [empty]
/0/100                    bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core
/0/100/2                  display        Skylake GT2 [HD Graphics 520]
/0/100/4                  generic        Xeon E3-1200 v5/E3-1500 v5/6th Gen Core
/0/100/14                 bus            Sunrise Point-LP USB 3.0 xHCI Controlle
/0/100/14/0    usb1       bus            xHCI Host Controller
/0/100/14/0/2             multimedia     Integrated_Webcam_HD
/0/100/14/0/7             generic        5880
/0/100/14/1    usb2       bus            xHCI Host Controller
/0/100/14.2               generic        Sunrise Point-LP Thermal subsystem
/0/100/16                 communication  Sunrise Point-LP CSME HECI #1
/0/100/16.3               communication  Sunrise Point-LP Active Management Tech
/0/100/17                 storage        82801 Mobile SATA Controller [RAID mode
/0/100/1c                 bridge         Sunrise Point-LP PCI Express Root Port 
/0/100/1c/0    wlp1s0     network        Wireless 8260
/0/100/1d                 bridge         Sunrise Point-LP PCI Express Root Port 
/0/100/1d/0               generic        RTS525A PCI Express Card Reader
/0/100/1f                 bridge         Sunrise Point-LP LPC Controller
/0/100/1f.2               memory         Memory controller
/0/100/1f.3               multimedia     Sunrise Point-LP HD Audio
/0/100/1f.4               bus            Sunrise Point-LP SMBus
/0/100/1f.6    enp0s31f6  network        Ethernet Connection I219-LM
/0/1                      system         PnP device PNP0c02
/0/2                      system         PnP device PNP0b00
/0/3                      generic        PnP device INT3f0d
/0/4                      input          PnP device PNP0303
/0/5                      generic        PnP device DLL06dc
/0/6                      printer        PnP device PNP0401
/0/7                      system         PnP device PNP0c02
/0/8                      system         PnP device PNP0c02
/0/9                      system         PnP device PNP0c02
/0/a                      system         PnP device PNP0c02
/0/b           scsi2      storage        
/0/b/0.0.0     /dev/sda   disk           512GB SK hynix SC311 S
/0/b/0.0.0/1   /dev/sda1  volume         511MiB Windows FAT volume
/0/b/0.0.0/2   /dev/sda2  volume         4095MiB Linux swap volume
/0/b/0.0.0/3   /dev/sda3  volume         472GiB EXT4 volume
/1                        power          DELL MC34Y51
uname --all
Linux pop-os 5.15.5-76051505-generic #202111250933~1638201579~20.04~09f1aa7-Ubuntu SMP Tue Nov 30 02: x86_64 x86_64 x86_64 GNU/Linux

@JulioSordi
Copy link
Author

JulioSordi commented Dec 22, 2021

Pop OS has just updated the kernel from 5.15.5 to 5.15.8, the flickering is still occurring but less often than before, i think it might be fixed soon.

@szul
Copy link

szul commented Dec 22, 2021

I have not had this issue recently either. 🤞

@JorisVanEijden
Copy link

On 5.15.8 it is very much reduced but not completely gone here.
From avg 5 times a minute to about once every 5 minutes.

@Steve-Z
Copy link

Steve-Z commented Dec 24, 2021

On 5.15.8 it is very much reduced but not completely gone here.
From avg 5 times a minute to about once every 5 minutes.

I'm doing a little better than that. Only a couple of times since I updated to 5.15.8. But not completely gone.

@hexpunk
Copy link

hexpunk commented Dec 25, 2021

I am using a Lemur Pro 9 with a fresh install of Pop OS 21.10. All updates have been applied. I'm also experiencing this issue. I don't think it's related to Chromium as I have Firefox installed. The issue happens infrequently, but it's still disconcerting. I think I've seen it happen while on a fullscreen terminal window.

Sorry for what mostly amounts to a "me, too" post. I'm mostly just happy this is a known software issue and there's not a problem with my hardware. 😌

EDIT:

inxi -Fz
System:    Kernel: 5.15.8-76051508-generic x86_64 bits: 64 Desktop: GNOME 40.5 
           Distro: Pop!_OS 21.10 
Machine:   Type: Laptop System: System76 product: Lemur Pro v: lemp9 serial: <filter> 
           Mobo: System76 model: Lemur Pro v: lemp9 serial: <filter> UEFI: coreboot 
           v: 2021-07-20_93c2809 date: 07/20/2021 
Battery:   ID-1: BAT0 charge: 68.9 Wh (99.4%) condition: 69.3/73.9 Wh (93.7%) 
CPU:       Info: Quad Core model: Intel Core i7-10510U bits: 64 type: MT MCP cache: 
           L2: 8 MiB 
           Speed: 1000 MHz min/max: 400/4900 MHz Core speeds (MHz): 1: 1000 2: 1000 
           3: 1001 4: 1000 5: 1000 6: 1000 7: 1000 8: 1000 
Graphics:  Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 v: kernel 
           Device-2: Chicony Chicony USB2.0 Camera type: USB driver: uvcvideo 
           Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting 
           unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.2 
Audio:     Device-1: Intel Comet Lake PCH-LP cAVS driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.15.8-76051508-generic running: yes 
           Sound Server-2: PulseAudio v: 15.0 running: yes 
           Sound Server-3: PipeWire v: 0.3.32 running: yes 
Network:   Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi 
           IF: wlp0s20f3 state: up mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB 
           driver: btusb 
           Report: hciconfig ID: hci0 rfk-id: 0 state: down bt-service: enabled,running 
           rfk-block: hardware: no software: yes address: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 13.68 GiB (2.9%) 
           ID-1: /dev/nvme0n1 vendor: Western Digital model: WDS500G2B0C-00PXH0 
           size: 465.76 GiB 
Partition: ID-1: / size: 449.02 GiB used: 10.55 GiB (2.3%) fs: ext4 dev: /dev/nvme0n1p3 
           ID-2: /boot/efi size: 497 MiB used: 252.2 MiB (50.7%) fs: vfat 
           dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) dev: /dev/dm-0 
Sensors:   System Temperatures: cpu: 47.0 C mobo: 44.0 C 
           Fan Speeds (RPM): cpu: 0 
Info:      Processes: 273 Uptime: 1m Memory: 15.5 GiB used: 2.18 GiB (14.1%) Shell: Bash 
           inxi: 3.3.06

@JorisVanEijden
Copy link

I'm not sure if this ticket is even the right place for this issue. Is anyone here working on this?
It seem the application (I've only noticed it in Brave and Slack so far, my JetBrains IDEs seem unaffected) skips a frame in rendering so whatever is behind it is visible for a split second.
Since the update to 5.15.8 clobbered my 5.13 kernel I've resorted to making my desktop background a screenshot of my most frequently used windows. That way the effect is slightly less jarring :)

@JorisVanEijden
Copy link

Update: disabling hardware acceleration provides a workaround for me.
In Brave: Settings->additional settings->System->Use hardware acceleration when available
In Slack: File->Preferences->Advanced->other options->Disable hardware acceleration

@hexpunk
Copy link

hexpunk commented Jan 3, 2022

I just experienced it again in VSCode (Chromium-based...) while scrolling in the built-in terminal really fast. First time I've experienced it in days.

@Steve-Z
Copy link

Steve-Z commented Jan 4, 2022

For me it was better, not gone but better, for a while, since the 5.15.8 update.

But in the past 1-2 days it has been bad, specifically Slack desktop client and VSCode. I have not rebooted since the update. Could that be having an effect.

@mohnishkodnani
Copy link

mohnishkodnani commented Jan 12, 2022

I experience it in the Brave Browser mostly, however, not limited to that alone.

❯ inxi -Fz
System:
  Kernel: 5.15.8-76051508-generic x86_64 bits: 64 
  Desktop: GNOME 40.5 Distro: Pop!_OS 21.10 
Machine:
  Type: Laptop System: System76 product: Lemur Pro v: lemp9 
  serial: <filter> 
  Mobo: System76 model: Lemur Pro v: lemp9 serial: <filter> 
  UEFI: coreboot v: 2021-07-20_93c2809 date: 07/20/2021 
Battery:
  ID-1: BAT0 charge: 60.0 Wh (91.7%) 
  condition: 65.4/73.9 Wh (88.5%) 
CPU:
  Info: Quad Core model: Intel Core i5-10210U bits: 64 
  type: MT MCP cache: L2: 6 MiB 
  Speed: 1400 MHz min/max: 400/4200 MHz Core speeds (MHz): 
  1: 1400 2: 1300 3: 1300 4: 1312 5: 1406 6: 1563 7: 1535 
  8: 1583 
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] driver: i915 
  v: kernel 
  Device-2: Chicony Chicony USB2.0 Camera type: USB 
  driver: uvcvideo 
  Display: x11 server: X.Org 1.20.13 driver: loaded: modesetting 
  unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: N/A v: N/A 
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS driver: snd_hda_intel 
  Sound Server-1: ALSA v: k5.15.8-76051508-generic running: yes 
  Sound Server-2: PulseAudio v: 15.0 running: yes 
  Sound Server-3: PipeWire v: 0.3.32 running: yes 
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi 
  IF: wlp0s20f3 state: up mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) 
  type: USB driver: btusb 
  Report: hciconfig ID: hci0 state: up address: <filter> 
  bt-v: 3.0 
Drives:
  Local Storage: total: 232.89 GiB used: 29.91 GiB (12.8%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: WDS250G2B0C-00PXH0 size: 232.89 GiB 
Partition:
  ID-1: / size: 219.86 GiB used: 27.22 GiB (12.4%) fs: ext4 
  dev: /dev/nvme0n1p3 
  ID-2: /boot/efi size: 511 MiB used: 255.6 MiB (50.0%) fs: vfat 
  dev: /dev/nvme0n1p1 
Swap:
  ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) 
  dev: /dev/dm-0 
Sensors:
  System Temperatures: cpu: 68.0 C mobo: 53.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 307 Uptime: 6d 18h 14m Memory: 15.5 GiB 
  used: 5.17 GiB (33.4%) Shell: fish inxi: 3.3.06 

Last few messages for dmesg

[80285.801802] OOM killer enabled.
[80285.801804] Restarting tasks ... done.
[80285.817422] thermal thermal_zone1: failed to read out thermal zone (-61)
[80285.879008] video LNXVIDEO:00: Restoring backlight state
[80285.898840] audit: type=1400 audit(1642011619.820:29): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=83433 comm="cupsd" capability=12  capname="net_admin"
[80285.908710] audit: type=1400 audit(1642011619.828:30): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=83436 comm="cups-browsed" capability=23  capname="sys_nice"
[80286.184994] PM: suspend exit
[80291.118090] wlp0s20f3: authenticate with 1c:1b:68:38:bd:40
[80291.120985] wlp0s20f3: send auth to 1c:1b:68:38:bd:40 (try 1/3)
[80291.199012] wlp0s20f3: authenticated
[80291.200892] wlp0s20f3: associate with 1c:1b:68:38:bd:40 (try 1/3)
[80291.205030] wlp0s20f3: RX AssocResp from 1c:1b:68:38:bd:40 (capab=0x1411 status=0 aid=14)
[80291.213041] wlp0s20f3: associated
[80291.285328] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20f3: link becomes ready
[84286.704373] i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun

tail syslog

Jan 12 11:33:09 pop-os systemd[1]: Reloading.
Jan 12 11:33:09 pop-os systemd[1]: Starting LSB: disk temperature monitoring daemon...
Jan 12 11:33:09 pop-os systemd[1]: Started LSB: disk temperature monitoring daemon.
Jan 12 11:33:16 pop-os PackageKit: refresh-cache transaction /85_abebdbba from uid 1000 finished with success after 4422ms
Jan 12 11:33:18 pop-os PackageKit: get-packages transaction /86_bccebcda from uid 1000 finished with success after 1304ms
Jan 12 11:33:19 pop-os PackageKit: get-updates transaction /87_dbabceed from uid 1000 finished with success after 435ms
Jan 12 11:33:19 pop-os PackageKit: get-details transaction /88_dbecbdcd from uid 1000 finished with success after 276ms
Jan 12 11:33:22 pop-os /usr/libexec/gdm-x-session[1516]: (II) modeset(0): EDID vendor "CMN", prod id 5333
Jan 12 11:33:22 pop-os /usr/libexec/gdm-x-session[1516]: (II) modeset(0): Printing DDC gathered Modelines:
Jan 12 11:33:22 pop-os /usr/libexec/gdm-x-session[1516]: (II) modeset(0): Modeline "1920x1080"x0.0  152.84  1920 2000 2060 2250  1080 1086 1094 1132 -hsync -vsync (67.9 kHz eP)
Jan 12 11:36:11 pop-os geoclue[1065]: variant_to_string: assertion 'len < max_len' failed

@srett
Copy link

srett commented Mar 10, 2022

Has this been fixed? the radio silence for the last two months makes me assume so, but in case it hasn't: had similar issues after running Ubuntu 20.04 with kernel 5.15.x. I could solve the problem by updating mesa to the latest 22.0 build (which is still in RC phase as of now), or more specifically, just updating libgl1-mesa-dri was enough.
I fetched the prebuilt package from here, but not sure if this will install on Pop, dependency-wise. If you want to try installing this and apt tells you it needs to install and remove a dozen other packages, then don't do it.

@hexpunk
Copy link

hexpunk commented Mar 10, 2022

Purely anecdotal, but I haven't noticed it happening to me in about a month.

@Steve-Z
Copy link

Steve-Z commented Mar 10, 2022

Same here. No problems for a while.

@leviport
Copy link
Member

Good to hear. I'll close this issue for now. We can reopen if the bug returns.

jackpot51 pushed a commit that referenced this issue Jun 19, 2022
commit ba3beec upstream.

Fix a crash that happens if an Rx only socket is created first, then a
second socket is created that is Tx only and bound to the same umem as
the first socket and also the same netdev and queue_id together with the
XDP_SHARED_UMEM flag. In this specific case, the tx_descs array page
pool was not created by the first socket as it was an Rx only socket.
When the second socket is bound it needs this tx_descs array of this
shared page pool as it has a Tx component, but unfortunately it was
never allocated, leading to a crash. Note that this array is only used
for zero-copy drivers using the batched Tx APIs, currently only ice and
i40e.

[ 5511.150360] BUG: kernel NULL pointer dereference, address: 0000000000000008
[ 5511.158419] #PF: supervisor write access in kernel mode
[ 5511.164472] #PF: error_code(0x0002) - not-present page
[ 5511.170416] PGD 0 P4D 0
[ 5511.173347] Oops: 0002 [#1] PREEMPT SMP PTI
[ 5511.178186] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G            E     5.18.0-rc1+ #97
[ 5511.187245] Hardware name: Intel Corp. GRANTLEY/GRANTLEY, BIOS GRRFCRB1.86B.0276.D07.1605190235 05/19/2016
[ 5511.198418] RIP: 0010:xsk_tx_peek_release_desc_batch+0x198/0x310
[ 5511.205375] Code: c0 83 c6 01 84 c2 74 6d 8d 46 ff 23 07 44 89 e1 48 83 c0 14 48 c1 e1 04 48 c1 e0 04 48 03 47 10 4c 01 c1 48 8b 50 08 48 8b 00 <48> 89 51 08 48 89 01 41 80 bd d7 00 00 00 00 75 82 48 8b 19 49 8b
[ 5511.227091] RSP: 0018:ffffc90000003dd0 EFLAGS: 00010246
[ 5511.233135] RAX: 0000000000000000 RBX: ffff88810c8da600 RCX: 0000000000000000
[ 5511.241384] RDX: 000000000000003c RSI: 0000000000000001 RDI: ffff888115f555c0
[ 5511.249634] RBP: ffffc90000003e08 R08: 0000000000000000 R09: ffff889092296b48
[ 5511.257886] R10: 0000ffffffffffff R11: ffff889092296800 R12: 0000000000000000
[ 5511.266138] R13: ffff88810c8db500 R14: 0000000000000040 R15: 0000000000000100
[ 5511.274387] FS:  0000000000000000(0000) GS:ffff88903f800000(0000) knlGS:0000000000000000
[ 5511.283746] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5511.290389] CR2: 0000000000000008 CR3: 00000001046e2001 CR4: 00000000003706f0
[ 5511.298640] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 5511.306892] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 5511.315142] Call Trace:
[ 5511.317972]  <IRQ>
[ 5511.320301]  ice_xmit_zc+0x68/0x2f0 [ice]
[ 5511.324977]  ? ktime_get+0x38/0xa0
[ 5511.328913]  ice_napi_poll+0x7a/0x6a0 [ice]
[ 5511.333784]  __napi_poll+0x2c/0x160
[ 5511.337821]  net_rx_action+0xdd/0x200
[ 5511.342058]  __do_softirq+0xe6/0x2dd
[ 5511.346198]  irq_exit_rcu+0xb5/0x100
[ 5511.350339]  common_interrupt+0xa4/0xc0
[ 5511.354777]  </IRQ>
[ 5511.357201]  <TASK>
[ 5511.359625]  asm_common_interrupt+0x1e/0x40
[ 5511.364466] RIP: 0010:cpuidle_enter_state+0xd2/0x360
[ 5511.370211] Code: 49 89 c5 0f 1f 44 00 00 31 ff e8 e9 00 7b ff 45 84 ff 74 12 9c 58 f6 c4 02 0f 85 72 02 00 00 31 ff e8 02 0c 80 ff fb 45 85 f6 <0f> 88 11 01 00 00 49 63 c6 4c 2b 2c 24 48 8d 14 40 48 8d 14 90 49
[ 5511.391921] RSP: 0018:ffffffff82a03e60 EFLAGS: 00000202
[ 5511.397962] RAX: ffff88903f800000 RBX: 0000000000000001 RCX: 000000000000001f
[ 5511.406214] RDX: 0000000000000000 RSI: ffffffff823400b9 RDI: ffffffff8234c046
[ 5511.424646] RBP: ffff88810a384800 R08: 000005032a28c046 R09: 0000000000000008
[ 5511.443233] R10: 000000000000000b R11: 0000000000000006 R12: ffffffff82bcf700
[ 5511.461922] R13: 000005032a28c046 R14: 0000000000000001 R15: 0000000000000000
[ 5511.480300]  cpuidle_enter+0x29/0x40
[ 5511.494329]  do_idle+0x1c7/0x250
[ 5511.507610]  cpu_startup_entry+0x19/0x20
[ 5511.521394]  start_kernel+0x649/0x66e
[ 5511.534626]  secondary_startup_64_no_verify+0xc3/0xcb
[ 5511.549230]  </TASK>

Detect such case during bind() and allocate this memory region via newly
introduced xp_alloc_tx_descs(). Also, use kvcalloc instead of kcalloc as
for other buffer pool allocations, so that it matches the kvfree() from
xp_destroy().

Fixes: d1bc532 ("i40e: xsk: Move tmp desc array from driver to pool")
Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests