Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615494 - system freezes for several seconds with i915 vblank timeout error
Summary: system freezes for several seconds with i915 vblank timeout error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2017-04-14 00:26 UTC by Alex
Modified: 2018-01-12 13:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2017-04-14 00:26:29 UTC
Hi there,
the problem is on Dell Latitude E6520 with intel graphics [relevant part of lspci -k]:

--------------------------
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
	Subsystem: Dell 2nd Generation Core Processor Family Integrated Graphics Controller
	Kernel driver in use: i915
--------------------------

On any build of 4.9.x gentoo-sources there are sudden freezes of the system which then result in

--------------------------
[drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
--------------------------

A relevant part of the journalctl -r looks like

--------------------------
kas@phantom ~ $ sudo journalctl -r|grep Trace -B 10 -A 30|more
апр 13 23:40:26 phantom kernel:  [<ffffffff8146f418>] ? drm_ioctl+0x208/0x440
апр 13 23:40:26 phantom kernel:  [<ffffffff814775e9>] ? drm_mode_setcrtc+0x2d9/0x470
апр 13 23:40:26 phantom kernel:  [<ffffffff814760cc>] ? drm_mode_set_config_internal+0x5c/0x110
апр 13 23:40:26 phantom kernel:  [<ffffffff81466524>] ? drm_atomic_helper_set_config+0x74/0xb0
апр 13 23:40:26 phantom kernel:  [<ffffffff814f3621>] ? intel_atomic_commit+0x3a1/0x4a0
апр 13 23:40:26 phantom kernel:  [<ffffffff810d12d0>] ? wake_up_atomic_t+0x30/0x30
апр 13 23:40:26 phantom kernel:  [<ffffffff814f3211>] ? intel_atomic_commit_tail+0xe61/0xed0
апр 13 23:40:26 phantom kernel:  [<ffffffff8109e27a>] ? warn_slowpath_fmt+0x4a/0x50
апр 13 23:40:26 phantom kernel:  [<ffffffff8109e20a>] ? __warn+0xba/0xe0
апр 13 23:40:26 phantom kernel:  [<ffffffff8138b119>] ? dump_stack+0x46/0x5d
апр 13 23:40:26 phantom kernel: Call Trace:
апр 13 23:40:26 phantom kernel:  0000000000000000 00000000000132d5 0000000000000000 ffffffff8109e27a
апр 13 23:40:26 phantom kernel:  ffffffff8109e20a 0000000000000001 ffffc90000457ba0 ffff880223900000
апр 13 23:40:26 phantom kernel:  0000000000000000 ffffffff8138b119 ffffc90000457b50 0000000000000000
апр 13 23:40:26 phantom kernel: Hardware name: Dell Inc. Latitude E6520/0CMN08, 
BIOS A19 11/14/2013
апр 13 23:40:26 phantom kernel: CPU: 1 PID: 416 Comm: X Tainted: G        W  O  
  4.9.22-gentoo-kas #1
апр 13 23:40:26 phantom kernel: Modules linked in: mei_wdt vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O)
апр 13 23:40:26 phantom kernel: pipe A vblank wait timed out
апр 13 23:40:26 phantom kernel: WARNING: CPU: 1 PID: 416 at drivers/gpu/drm/i915/intel_display.c:14190 intel_atomic_commit_tail+0xe61/0xed0
апр 13 23:40:26 phantom kernel: ------------[ cut here ]------------
апр 13 23:40:26 phantom kernel: [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
апр 13 23:40:16 phantom kernel: [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
апр 13 23:39:41 phantom kernel: [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
апр 13 23:39:41 phantom kernel: [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:26:pipe A] flip_done timed out
апр 13 23:39:41 phantom kernel: ---[ end trace 1ed47942dd4d8b29 ]---
апр 13 23:39:41 phantom kernel:  [<ffffffff81887a82>] ? ret_from_fork+0x22/0x30
апр 13 23:39:41 phantom kernel:  [<ffffffff810b7940>] ? kthread_park+0x50/0x50
апр 13 23:39:41 phantom kernel:  [<ffffffff810b79f9>] ? kthread+0xb9/0xd0
апр 13 23:39:41 phantom kernel:  [<ffffffff810b33c0>] ? rescuer_thread+0x300/0x300
апр 13 23:39:41 phantom kernel:  [<ffffffff810b33c0>] ? rescuer_thread+0x300/0x300
апр 13 23:39:41 phantom kernel:  [<ffffffff810b3405>] ? worker_thread+0x45/0x450
апр 13 23:39:41 phantom kernel:  [<ffffffff810b2ea6>] ? process_one_work+0x136/0x350
апр 13 23:39:41 phantom kernel:  [<ffffffff8188398f>] ? __schedule+0x16f/0x510
апр 13 23:39:41 phantom kernel:  [<ffffffff813f1376>] ? console_callback+0x146/0x150
апр 13 23:39:41 phantom kernel:  [<ffffffff813f00de>] ? do_unblank_screen+0x9e/0x190
апр 13 23:39:41 phantom kernel:  [<ffffffff810ee5a5>] ? mod_timer+0x155/0x230
апр 13 23:39:41 phantom kernel:  [<ffffffff810ee015>] ? internal_add_timer+0x15/0x70
апр 13 23:39:41 phantom kernel:  [<ffffffff810edeb8>] ? lock_timer_base+0x68/0x80
апр 13 23:39:41 phantom kernel:  [<ffffffff815d8f90>] ? fw_device_get_by_devt+0x70/0x70
апр 13 23:39:41 phantom kernel:  [<ffffffff81881f5b>] ? klist_next+0x1b/0xf0
апр 13 23:39:41 phantom kernel:  [<ffffffff815d7d54>] ? set_broadcast_channel+0x84/0x120
--
апр 13 23:39:41 phantom kernel:  [<ffffffff81467f95>] ? drm_fb_helper_blank+0x45/0x80
апр 13 23:39:41 phantom kernel:  [<ffffffff81467f0d>] ? drm_fb_helper_dpms.isra.15+0x8d/0xd0
апр 13 23:39:41 phantom kernel:  [<ffffffff814651e4>] ? drm_atomic_helper_connector_dpms+0xe4/0x190
апр 13 23:39:41 phantom kernel:  [<ffffffff814f3621>] ? intel_atomic_commit+0x3a1/0x4a0
апр 13 23:39:41 phantom kernel:  [<ffffffff810d12d0>] ? wake_up_atomic_t+0x30/0x30
апр 13 23:39:41 phantom kernel:  [<ffffffff81170d19>] ? kmem_cache_alloc+0x99/0xa0
апр 13 23:39:41 phantom kernel:  [<ffffffff814f3211>] ? intel_atomic_commit_tail+0xe61/0xed0
апр 13 23:39:41 phantom kernel:  [<ffffffff8109e27a>] ? warn_slowpath_fmt+0x4a/0x50
апр 13 23:39:41 phantom kernel:  [<ffffffff8109e20a>] ? __warn+0xba/0xe0
апр 13 23:39:41 phantom kernel:  [<ffffffff8138b119>] ? dump_stack+0x46/0x5d
апр 13 23:39:41 phantom kernel: Call Trace:
апр 13 23:39:41 phantom kernel:  0000000000000000 00000000000132d5 0000000000000000 ffffffff8109e27a
апр 13 23:39:41 phantom kernel:  ffffffff8109e20a 0000000000000001 ffffc900016d3b18 ffff880223900000
апр 13 23:39:41 phantom kernel:  0000000000000000 ffffffff8138b119 ffffc900016d3ac8 0000000000000000
апр 13 23:39:41 phantom kernel: Workqueue: events console_callback
апр 13 23:39:41 phantom kernel: Hardware name: Dell Inc. Latitude E6520/0CMN08, 
BIOS A19 11/14/2013
апр 13 23:39:41 phantom kernel: CPU: 0 PID: 1032 Comm: kworker/0:0 Tainted: G   
     W  O    4.9.22-gentoo-kas #1
апр 13 23:39:41 phantom kernel: Modules linked in: mei_wdt vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O)
апр 13 23:39:41 phantom kernel: pipe A vblank wait timed out
апр 13 23:39:41 phantom kernel: WARNING: CPU: 0 PID: 1032 at drivers/gpu/drm/i915/intel_display.c:14190 intel_atomic_commit_tail+0xe61/0xed0
апр 13 23:39:41 phantom kernel: ------------[ cut here ]------------
апр 13 23:39:41 phantom kernel: ---[ end trace 1ed47942dd4d8b28 ]---
апр 13 23:39:41 phantom kernel:  [<ffffffff81887a82>] ? ret_from_fork+0x22/0x30
апр 13 23:39:41 phantom kernel:  [<ffffffff810b7940>] ? kthread_park+0x50/0x50
апр 13 23:39:41 phantom kernel:  [<ffffffff810b79f9>] ? kthread+0xb9/0xd0
апр 13 23:39:41 phantom kernel:  [<ffffffff810b33c0>] ? rescuer_thread+0x300/0x300
апр 13 23:39:41 phantom kernel:  [<ffffffff810b33c0>] ? rescuer_thread+0x300/0x300
апр 13 23:39:41 phantom kernel:  [<ffffffff810b3405>] ? worker_thread+0x45/0x450апр 13 23:39:41 phantom kernel:  [<ffffffff810b2ea6>] ? process_one_work+0x136/0x350
апр 13 23:39:41 phantom kernel:  [<ffffffff8188398f>] ? __schedule+0x16f/0x510
апр 13 23:39:41 phantom kernel:  [<ffffffff813f1376>] ? console_callback+0x146/0x150
апр 13 23:39:41 phantom kernel:  [<ffffffff813f00de>] ? do_unblank_screen+0x9e/0x190
апр 13 23:39:41 phantom kernel:  [<ffffffff810ee5a5>] ? mod_timer+0x155/0x230
апр 13 23:39:41 phantom kernel:  [<ffffffff810ee015>] ? internal_add_timer+0x15/0x70
апр 13 23:39:41 phantom kernel:  [<ffffffff810edeb8>] ? lock_timer_base+0x68/0x80
апр 13 23:39:41 phantom kernel:  [<ffffffff815d8f90>] ? fw_device_get_by_devt+0x70/0x70
апр 13 23:39:41 phantom kernel:  [<ffffffff81881f5b>] ? klist_next+0x1b/0xf0
апр 13 23:39:41 phantom kernel:  [<ffffffff815d7d54>] ? set_broadcast_channel+0x84/0x120
апр 13 23:39:41 phantom kernel:  [<ffffffff814063ed>] ? fbcon_blank+0x1cd/0x2b0
апр 13 23:39:41 phantom kernel:  [<ffffffff81409213>] ? fb_blank+0x53/0xa0
апр 13 23:39:41 phantom kernel:  [<ffffffff8150c63e>] ? intel_fbdev_blank+0xe/0x60
--
апр 13 23:39:41 phantom kernel:  [<ffffffff81170d19>] ? kmem_cache_alloc+0x99/0xa0
апр 13 23:39:41 phantom kernel:  [<ffffffff814f26f0>] ? intel_atomic_commit_tail+0x340/0xed0
апр 13 23:39:41 phantom kernel:  [<ffffffff814f1ffd>] ? intel_update_crtcs+0x5d/0x70
апр 13 23:39:41 phantom kernel:  [<ffffffff814f1f15>] ? intel_update_crtc+0x45/0xd0
апр 13 23:39:41 phantom kernel:  [<ffffffff814f5b1f>] ? ironlake_crtc_enable+0x77f/0xbf0
апр 13 23:39:41 phantom kernel:  [<ffffffff810d12d0>] ? wake_up_atomic_t+0x30/0x30
апр 13 23:39:41 phantom kernel:  [<ffffffff81470b86>] ? drm_wait_one_vblank+0x126/0x170
апр 13 23:39:41 phantom kernel:  [<ffffffff8109e27a>] ? warn_slowpath_fmt+0x4a/0x50
апр 13 23:39:41 phantom kernel:  [<ffffffff8109e20a>] ? __warn+0xba/0xe0
апр 13 23:39:41 phantom kernel:  [<ffffffff8138b119>] ? dump_stack+0x46/0x5d
апр 13 23:39:41 phantom kernel: Call Trace:
апр 13 23:39:41 phantom kernel:  00000000000132cf ffff88022403f208 0000000000000001 ffffffff8109e27a
апр 13 23:39:41 phantom kernel:  ffffffff8109e20a 0000000000000000 ffffc900016d39f0 0000000000000000
апр 13 23:39:41 phantom kernel:  0000000000000000 ffffffff8138b119 ffffc900016d39a0 0000000000000000
апр 13 23:39:41 phantom kernel: Workqueue: events console_callback
апр 13 23:39:41 phantom kernel: Hardware name: Dell Inc. Latitude E6520/0CMN08, 
BIOS A19 11/14/2013
апр 13 23:39:41 phantom kernel: CPU: 0 PID: 1032 Comm: kworker/0:0 Tainted: G   
     W  O    4.9.22-gentoo-kas #1
апр 13 23:39:41 phantom kernel: Modules linked in: mei_wdt vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O)
апр 13 23:39:41 phantom kernel: vblank wait timed out on crtc 0
апр 13 23:39:41 phantom kernel: WARNING: CPU: 0 PID: 1032 at drivers/gpu/drm/drm_irq.c:1254 drm_wait_one_vblank+0x126/0x170
апр 13 23:39:41 phantom kernel: ------------[ cut here ]------------
апр 13 23:32:26 phantom systemd[1]: Started Cleanup of Temporary Directories.
апр 13 23:32:26 phantom systemd[1]: Starting Cleanup of Temporary Directories...
апр 13 23:20:24 phantom sudo[1013]: pam_unix(sudo:session): session closed for user root
апр 13 23:20:01 phantom sudo[1013]: pam_systemd(sudo:session): Cannot create session: Already running in a session
апр 13 23:20:01 phantom sudo[1013]: pam_unix(sudo:session): session opened for user root by kas(uid=0)
апр 13 23:20:01 phantom sudo[1013]:      kas : TTY=tty2 ; PWD=/home/kas ; USER=root ; COMMAND=/usr/bin/journalctl -r
апр 13 23:19:28 phantom kernel: [drm:drm_atomic_helper_commit_cleanup_done] *ERR
OR* [CRTC:26:pipe A] flip_done timed out
--------------------------

This behaviour is always reproducible after multiple switching between a vt tty, i.e. 2,3,... and X (tty7).
So, you press ctrl-alt-F2 in X and then alt-F7 in tty2 and after some cycling you have the beast.
However, it also appears upon sleep/wake and connecting/detecting external (tried only VGA) monitors.

I did not try 4.10.x sources as I'm in general reluctant to use unstable kernels.

Also, I have no wish to downgrade to 4.4.x as these caused other and seems unrelated problems.
At least I never had the described intel/drm issue on 4.4.x

Guys at ARCH discuss the same, exactly the error as I have:
https://bbs.archlinux.org/viewtopic.php?id=218581&p=3
They have some suggested solution (found on freedesktop.org) by adding

video=SVIDEO-1:d

to the kernel command line.
This however made absolutely no difference to me.

Also in my case no stalls during the boot or shutdown, only during the work.

Any thoughts?
Comment 1 Alex 2017-04-15 11:52:28 UTC
Well, tried and tested:

gentoo-source-4.10.10 - the same problem with flip_done timeout.

The only change is that CRTC:26 transformed to CRTC:31 but who cares?

Had to go to

gentoo-sources-4.4.61 - have chosen 61 as the one declared LTS on the kernel.org

Testing, but no problem at least upon cycling tty2<->tty7(X) Will be testing more but hope to have an outdated kernel at least to a rescue.

Any ideas how to fix this in upstream?
Comment 2 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-04-26 16:43:16 UTC
please try to use video=SVIDEO-1:d in the kernel boot parameter


relevant:
https://bbs.archlinux.org/viewtopic.php?id=218581



please test 4.10.12 gentoo-sources and see if there is still the message
Comment 3 Alex 2017-06-03 01:00:35 UTC
Well, it was a long break from the everyday life but getting to the point:

I did 4.10.12 and 4.11.3 gentoo sources and for both it is the same

SVIDEO-1 trick does not help in either configuration.

I can try 4.10.17 but why should I expect it is better?

This my bug can be related to Bug 93782 as well. But there, if I'm correct, guys have trouble booting at all. I can boot the machine.

SO, I have this in 4.9, 4.10 and 4.11 kernels.

Any thoughts?
Comment 5 Mike Pagano gentoo-dev 2018-01-12 13:04:05 UTC
We'll follow the upstream bug and backport any fixes, but they have provided a workaround and subsequently have deprioritized fixing this. (Workaround + old HW).