Xorg freeze: i915 flips and commits are timing out

Bug #2054560 reported by Xavier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe-6.5 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Random freezes occur since the installation of 6.5.x kernel.
Freeze occur several times a day, probably after touching the mouse or keyboard, but I'm not sure.
App continue to work sound is OK, there is just no dispay updated.

Booting to old 6.2 kernel solves the problem. I have tried all 6.5 updates since the first released, but each time, I had a freeze after a few hours.

Example of last mesg in dmesg when freeze occur :

Feb 21 11:03:59 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 21 11:04:41 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:04:41 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 21 11:04:51 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 21 11:05:01 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:05:01 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 21 11:05:12 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:05:12 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:274:DP-5] commit wait timed out
Feb 21 11:05:22 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 21 11:05:32 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:05:32 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 21 11:05:42 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:05:42 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:274:DP-5] commit wait timed out
Feb 21 11:05:53 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 21 11:06:03 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:06:03 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 21 11:06:13 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 21 11:06:13 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:274:DP-5] commit wait timed out
Feb 21 11:06:23 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out

or :
Feb 13 10:37:18 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 13 10:39:06 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 10:39:06 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 13 11:22:09 pf46avw7 kernel: perf: interrupt took too long (2505 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
Feb 13 11:35:00 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 13 11:35:10 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:35:10 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 13 11:35:21 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:35:21 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 13 11:35:31 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 13 11:35:41 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:35:41 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 13 11:35:51 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:35:51 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 13 11:36:01 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 13 11:36:12 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:36:12 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 13 11:36:22 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:36:22 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 13 11:36:32 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 13 11:37:42 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 13 11:37:42 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out

or

Feb 01 09:37:11 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 01 09:37:23 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:37:23 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 01 09:37:45 pf46avw7 kernel: rfkill: input handler enabled
Feb 01 09:37:55 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:37:55 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [PLANE:82:plane 1B] commit wait timed out
Feb 01 09:38:05 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 01 09:38:15 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:38:15 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 01 09:38:25 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:38:25 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 01 09:38:36 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:38:36 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [PLANE:82:plane 1B] commit wait timed out
Feb 01 09:38:46 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 01 09:38:56 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:38:56 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 01 09:39:06 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:39:06 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 01 09:39:17 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:39:17 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [PLANE:82:plane 1B] commit wait timed out
Feb 01 09:39:27 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 01 09:39:37 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:39:37 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 01 09:39:47 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:39:47 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 01 09:39:58 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:39:58 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [PLANE:82:plane 1B] commit wait timed out
Feb 01 09:40:08 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] flip_done timed out
Feb 01 09:40:18 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:40:18 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:131:pipe B] commit wait timed out
Feb 01 09:40:28 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:40:28 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [CONNECTOR:282:DP-5] commit wait timed out
Feb 01 09:40:39 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* flip_done timed out
Feb 01 09:40:39 pf46avw7 kernel: i915 0000:00:02.0: [drm] *ERROR* [PLANE:82:plane 1B] commit wait timed out

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.5.0-18.18~22.04.1-generic 6.5.8
Uname: Linux 6.5.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
BootLog: Error: [Errno 13] Permission non accordée: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Feb 21 11:34:22 2024
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
GpuHangFrequency: Several times a day
GpuHangReproducibility: Seems to happen randomly
GpuHangStarted: Since a couple weeks or more
GraphicsCard:
 Intel Corporation Device [8086:46a8] (rev 0c) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:50a0]
InstallationDate: Installed on 2023-03-21 (336 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
MachineType: LENOVO 21E6CTO1WW
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/usr/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.5.0-18-generic root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
Title: Xorg freeze
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/25/2023
dmi.bios.release: 1.18
dmi.bios.vendor: LENOVO
dmi.bios.version: R1SET47W(1.18)
dmi.board.asset.tag: Not Available
dmi.board.name: 21E6CTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76538 WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.18
dmi.modalias: dmi:bvnLENOVO:bvrR1SET47W(1.18):bd02/25/2023:br1.18:efr1.18:svnLENOVO:pn21E6CTO1WW:pvrThinkPadE15Gen4:rvnLENOVO:rn21E6CTO1WW:rvrSDK0T76538WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21E6_BU_Think_FM_ThinkPadE15Gen4:
dmi.product.family: ThinkPad E15 Gen 4
dmi.product.name: 21E6CTO1WW
dmi.product.sku: LENOVO_MT_21E6_BU_Think_FM_ThinkPad E15 Gen 4
dmi.product.version: ThinkPad E15 Gen 4
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.113-2~ubuntu0.22.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 23.2.1-1ubuntu3.1~22.04.2
version.libgl1-mesa-glx: libgl1-mesa-glx 23.0.4-0ubuntu1~22.04.1
version.xserver-xorg-core: xserver-xorg-core 2:21.1.4-2ubuntu1.7~22.04.8
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Xavier (xaviermarot) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Next time the problem happens please:

1. Reboot.

2. Run:

   journalctl -b-1 > prevboot.txt

3. Attach the resulting text file here.

summary: - Xorg freeze
+ Xorg freeze: i915 flips and commits are timing out
affects: xorg (Ubuntu) → linux-hwe-6.5 (Ubuntu)
Changed in linux-hwe-6.5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Xavier (xaviermarot) wrote :

Here is journal of an affected session from boot to freeze.

Revision history for this message
Xavier (xaviermarot) wrote :

Here is the journal of a previous crash with kernel 6.5.0-15.
I have reproduced this behaviour with all versions of kernels 6.5

I am currently booting kernel 6.2 and switch to 6.5 whenever there is a new release to test, so I dont have other fresh traces, but if you need more, I can boot in 6.5 and wait for new freezes to collect logs.

Also, it might be possible that freezes often occured when using zoom client (but not every time) and moving mouse or typing keyboard.

Xavier

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It appears the screensaver might have been the trigger:

Feb 21 11:05:16 pf46avw7 gsd-power[5238]: Error setting property 'PowerSaveMode' on interface org.gnome.Mutter.DisplayConfig: Le délai d’attente est dépassé (g-io-error-quark, 24)
Feb 21 11:05:16 pf46avw7 gsd-power[5238]: Error setting property 'PowerSaveMode' on interface org.gnome.Mutter.DisplayConfig: Le délai d’attente est dépassé (g-io-error-quark, 24)

Also please try logging into Wayland instead. If that doesn't fix it then try adding this to /etc/environment:

  MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0

and reboot, again logging into into Wayland instead of Xorg.

Revision history for this message
Xavier (xaviermarot) wrote :

Hi Daniel, Thank you for your quick reply.
I will try that and post here the results.

All the best
Xavier

Revision history for this message
Xavier (xaviermarot) wrote :

Hi Daniel, thank you for your advice : in fact, moving to Wayland seems to solve the issue.
However, I am not ready to switch to Wayland because it has some annoying side effects : a few application/functionalities that I use on a daily basis work differently or not with wayland.

I have realized also that with x.org, there is no freeze when using PowerSave mode (might be related to the log you mentioned in your last post).

I will try to stay on kernel 6.2 or 6.5 with PowerSave mode for now.

Thank you for your help. For my concern this issue can be closed.
Xavier

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

[Expired for linux-hwe-6.5 (Ubuntu) because there has been no activity for 60 days.]

Changed in linux-hwe-6.5 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.