You are not logged in.

#1 2016-10-21 13:49:14

naund
Member
Registered: 2015-11-30
Posts: 7

kernel error in drm_kms_helper, flip_done timed out

Since update to 4.8.2 I've got the following log entry, after 10s delay during booting:

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

dmesg:
https://gist.github.com/b11feee43a5625f … d9634684ad

hwinfo:
https://gist.github.com/7574618148c1688 … 0bf831fec0

Afer some googling I found someone mentioning a bug in drm-misc, which should be resolved now:

Daniel Vetter - Sept. 2, 2016, 6:11 a.m.

On Fri, Sep 2, 2016 at 1:48 AM, David Herrmann <dh.herrmann@gmail.com> wrote:
> So either the drm_simple_kms_helpers are buggy, or the SimpleDRM use
> of it. On DPMS updates, I get:
>
> Sep 02 01:00:39 david-t2 kernel:
> [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR*
> [CRTC:25:crtc-0] flip_done timed out
> Sep 02 01:00:39 david-t2 kernel: ------------[ cut here ]------------
> Sep 02 01:00:39 david-t2 kernel: WARNING: CPU: 3 PID: 352 at
> drivers/gpu/drm/drm_atomic_helper.c:1549
> drm_atomic_helper_commit_hw_done+0xab/0xb0 [drm_kms_helper]
>
> The atomic-commit originates in:
> drm_atomic_helper_connector_dpms()
>
> Any idea what is missing there? I haven't looked much into the
> atomic-helpers, yet.

The bugfix for that is in latest drm-misc (or well, should be at
least). And you need to make sure to call drm_crtc_send_vblank_event
(if there's an event) from your update hook. That /should/ work, but I
didn't test it myself. flip_done not happening is when the
driver/helpers fail to submit the event for some reason or another.
-Daniel

No change after Update to 4.8.6.

Edit: Bug reported  FS#51703

Last edited by naund (2016-11-05 09:55:11)

Offline

#2 2016-10-23 00:21:47

JethroTux
Member
From: Pescara - Italy
Registered: 2016-10-23
Posts: 7

Re: kernel error in drm_kms_helper, flip_done timed out

Same issue here, even on latest 4.8.3-1-ARCH.
Sometimes the system doesn't boot at all and gets stuck in the early-userspace.
Sometimes it boots but then it freezes after 5 minutes within Xorg.

A solution might be to revert commit 784d5699eddc (which seems being in three since jan) or wait for a fix, but I'm not quite familiar with git so I downgraded to 4.7.6 kernel for now.
Maybe the issue gets triggered because of using a rather new toolchain but I'm not so sure.

Last edited by JethroTux (2016-10-23 00:23:33)

Offline

#3 2016-10-23 06:31:34

bernardovianna
Member
Registered: 2016-10-23
Posts: 1

Re: kernel error in drm_kms_helper, flip_done timed out

Same here.
Downgrading solved this issue for now.
Will wait for a fix before upgrading my system again.

Offline

#4 2016-10-24 00:14:56

sobralense
Member
Registered: 2015-08-24
Posts: 10

Re: kernel error in drm_kms_helper, flip_done timed out

Same problem. Even with 4.8.4-1.

Offline

#5 2016-10-30 17:04:04

grzechoo
Member
From: Poland
Registered: 2013-12-02
Posts: 8

Re: kernel error in drm_kms_helper, flip_done timed out

Same problem with my laptop (Compaq 6510b).
I've also noticed, that it somehow breaks Okular - when I try to open a .pdf file then the computer freezes.

At the moment I've downgraded to 4.7.6.

Offline

#6 2016-11-01 17:58:50

sofiasmith
Member
Registered: 2016-02-02
Posts: 7

Re: kernel error in drm_kms_helper, flip_done timed out

Same problem with Linux arch 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 GNU/Linux.

The "problem" is message error and 20 sec more to boot. All system works properly.

Meanwhile waiting for a fix bootingm I run LINUX-LTS 4.4.28-1 thats boots ok.

Offline

#7 2016-11-04 20:02:38

vevais
Member
From: Berlin
Registered: 2015-03-15
Posts: 3

Re: kernel error in drm_kms_helper, flip_done timed out

Same issue here, downgrading solved it for now. Did someone report it yet?

Offline

#8 2016-11-11 13:36:01

JethroTux
Member
From: Pescara - Italy
Registered: 2016-10-23
Posts: 7

Re: kernel error in drm_kms_helper, flip_done timed out

Has anybody tested the issue with the latest 4.8.7?

Offline

#9 2016-11-11 15:49:53

grzechoo
Member
From: Poland
Registered: 2013-12-02
Posts: 8

Re: kernel error in drm_kms_helper, flip_done timed out

I've tested 4.8.7 - "flip_done timed out" error is still there.

Offline

#10 2016-11-12 00:27:16

cdown
Member
From: London, England
Registered: 2013-02-09
Posts: 55
Website

Re: kernel error in drm_kms_helper, flip_done timed out

linux-lts works fine for the moment, if it's feasible for you.

Offline

#11 2016-11-12 21:43:02

kvonarch
Member
Registered: 2016-10-25
Posts: 4

Re: kernel error in drm_kms_helper, flip_done timed out

I have this problem, as well.

...on my old Dell D630, but not my kid's Lenovo Ideapad 100.


(The LTS kernel works well, but it seems like a tourniquet, and I prefer my edge to bleed.)


***UPDATE

GM965 here, as well.

Last edited by kvonarch (2016-11-27 04:26:51)

Offline

#12 2016-11-16 18:08:55

kjkinnell
Member
Registered: 2016-11-16
Posts: 3

Re: kernel error in drm_kms_helper, flip_done timed out

I just upgraded to 4.8.8-1 and so far nothing which had been causing the "drm_kms, flip..." message is causing a problem.  For me, this included simply moving from X to a framebuffer vt.  Fingers crossed, but it looks fixed on my system (Toshiba L755 laptop.)

*** Update ***

I spoke too soon.  After roughly an hour of operation, the problem reappeared.  Downgraded to 4.7.6-1 again.

--kjk

Last edited by kjkinnell (2016-11-16 18:47:15)

Offline

#13 2016-11-16 21:00:58

loqs
Member
Registered: 2014-03-06
Posts: 18,078

Re: kernel error in drm_kms_helper, flip_done timed out

Has anyone checked if it is fixed in 4.9-rc5?
Also as it seems this is an upstream issue has anyone reported it upstream?

Offline

#14 2016-11-17 14:39:05

ttitoo96
Member
Registered: 2016-11-17
Posts: 3

Re: kernel error in drm_kms_helper, flip_done timed out

Same problem here.
This is an old LG R405.

Offline

#15 2016-11-17 14:55:12

step
Member
Registered: 2016-05-09
Posts: 56

Re: kernel error in drm_kms_helper, flip_done timed out

I have the same problem, i "solved" the bug with downgrade linux to 4.7.6-1.

Last edited by step (2016-11-17 14:55:24)

Offline

#16 2016-11-17 19:16:43

pypi
Wiki Maintainer
Registered: 2014-04-22
Posts: 250

Re: kernel error in drm_kms_helper, flip_done timed out

Does anyone here with this problem not have "Intel X3100" graphics? (965GM chipset)

I don't have time at the moment but I intend to look at this in the next couple of months. It probably needs to be bisected - there is a wiki page describing how to do this, if anyone is up for it.

Offline

#17 2016-11-17 20:38:22

JethroTux
Member
From: Pescara - Italy
Registered: 2016-10-23
Posts: 7

Re: kernel error in drm_kms_helper, flip_done timed out

It's a bug related to the video driver for sure, particularly to intel kernel DRM.
I have 965GM chipset/i915 DRM driver.
I truthfully hope this bug gets squashed with 4.9.
Has anyone tried 4.8.8-2 yet?

Offline

#18 2016-11-17 21:31:04

loqs
Member
Registered: 2014-03-06
Posts: 18,078

Re: kernel error in drm_kms_helper, flip_done timed out

JethroTux wrote:

I truthfully hope this bug gets squashed with 4.9.

Well unless someone affected by the issue is prepared to build a 4.9 kernel will have to wait for 4.9 to enter testing or 4.9.1 to enter stable.

JethroTux wrote:

Has anyone tried 4.8.8-2 yet?

The diff from 4.8.8-1 to 4.8.8-2 addresses "fix #51818 lvm2 breakage, move to mkinitcpio running as pacman hook" no upstream changes so should not be relevant to this issue.
https://git.archlinux.org/svntogit/pack … de71e67375

Offline

#19 2016-11-17 21:35:09

Bratpfanne
Member
Registered: 2016-11-17
Posts: 2

Re: kernel error in drm_kms_helper, flip_done timed out

I don't use Arch but I have the same bug on Fedora with the 4.8 Kernel, also with a GM965 chipset.
There is already a report upstream here: https://bugs.freedesktop.org/show_bug.cgi?id=96781

The bad commit has been bisected but so far none of the developers responded. I tried the drm-nightly kernel a couple days ago and the bug was still present so my fear is this won't be resolved any time soon.

There is another report which might be related but I'm not quite sure: https://bugs.freedesktop.org/show_bug.cgi?id=97529

Offline

#20 2016-11-24 13:46:59

ttitoo96
Member
Registered: 2016-11-17
Posts: 3

Re: kernel error in drm_kms_helper, flip_done timed out

step wrote:

I have the same problem, i "solved" the bug with downgrade linux to 4.7.6-1.

This is my VGA controller
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 03) (prog-if 00 [VGA controller])

Offline

#21 2016-11-29 06:34:53

ludenticus
Member
Registered: 2013-05-14
Posts: 20

Re: kernel error in drm_kms_helper, flip_done timed out

Still present in 4.8.10. It seems better to stick to linux-lts (4.4.35-1)

Offline

#22 2016-12-07 23:54:00

teresi
Member
Registered: 2016-10-26
Posts: 10

Re: kernel error in drm_kms_helper, flip_done timed out

I've got the same problem on my Lenovo IdeaPad N580 (Intel HD graphics). Won't boot. How to fix?

Offline

#23 2016-12-07 23:54:32

teresi
Member
Registered: 2016-10-26
Posts: 10

Re: kernel error in drm_kms_helper, flip_done timed out

I've got the same problem on my Lenovo IdeaPad N580 (Intel HD graphics). Won't boot. How to fix?

Offline

#24 2016-12-10 16:16:36

tuxayo
Member
Registered: 2013-02-26
Posts: 28

Re: kernel error in drm_kms_helper, flip_done timed out

teresi wrote:

I've got the same problem on my Lenovo IdeaPad N580 (Intel HD graphics). Won't boot. How to fix?

With which kernel? The previous post suggest that using the LTS one "solves" the issue.

Offline

#25 2016-12-12 16:03:06

kvonarch
Member
Registered: 2016-10-25
Posts: 4

Re: kernel error in drm_kms_helper, flip_done timed out

Running 4.8.13-1 now, and the error message still displays at boot, but it seems to get past it with no problems (that I have noticed so far).

I still have linux-lts installed as a back-up just in case, though, but I am running the Cinnamon desktop on the new kernel as I type this, and everything appears to be running smoothly.


BUT...

This is only my third month in the Linux world, so I do wonder if ignoring this may damage my hardware...

Any advice?

I can post whatever is needed to provide my system's information.

For instance:

I see numerous instances of this error in my dmesg. Here's the first:

[    0.912795] [Firmware Bug]: Duplicate ACPI video bus devices for the same VGA controller, please try module parameter "video.allow_duplicates=1"if the current driver doesn't work.
[    0.912817] [drm] Initialized i915 1.6.0 20160711 for 0000:00:02.0 on minor 0
[    1.600260] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fa1a245e9b, max_idle_ns: 440795218467 ns
[    3.055910] random: fast init done
[   11.146900] [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR* [CRTC:26:pipe A] flip_done timed out
[   11.247414] ------------[ cut here ]------------
[   11.247430] WARNING: CPU: 1 PID: 49 at drivers/gpu/drm/drm_irq.c:1224 drm_wait_one_vblank+0x1b1/0x1c0 [drm]
[   11.247432] vblank wait timed out on crtc 0
[   11.247434] Modules linked in: i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm
[   11.247453] CPU: 1 PID: 49 Comm: kworker/u4:1 Not tainted 4.8.13-1-ARCH #1
[   11.247455] Hardware name: Dell Inc. Latitude D630                   /0KU184, BIOS T04 07/21/2008
[   11.247463] Workqueue: events_unbound async_run_entry_fn
[   11.247467]  0000000000000286 000000003761f805 ffff88007ab739d8 ffffffff812fddc0
[   11.247473]  ffff88007ab73a28 0000000000000000 ffff88007ab73a18 ffffffff8107c85b
[   11.247478]  000004c800000000 ffff880037210000 0000000000000000 0000000000000000
[   11.247484] Call Trace:
[   11.247492]  [<ffffffff812fddc0>] dump_stack+0x63/0x83
[   11.247496]  [<ffffffff8107c85b>] __warn+0xcb/0xf0
[   11.247500]  [<ffffffff8107c8df>] warn_slowpath_fmt+0x5f/0x80
[   11.247504]  [<ffffffff810bffb5>] ? finish_wait+0x55/0x70
[   11.247516]  [<ffffffffa0007ca1>] drm_wait_one_vblank+0x1b1/0x1c0 [drm]
[   11.247520]  [<ffffffff810c0450>] ? wake_atomic_t_function+0x60/0x60
[   11.247606]  [<ffffffffa0168ed2>] intel_get_load_detect_pipe+0x662/0x680 [i915]
[   11.247669]  [<ffffffffa01a638f>] intel_tv_detect+0x13f/0x5c0 [i915]
[   11.247674]  [<ffffffffa0088edb>] drm_helper_probe_single_connector_modes+0x27b/0x520 [drm_kms_helper]
[   11.247678]  [<ffffffffa0097a4e>] drm_fb_helper_initial_config+0xae/0x430 [drm_kms_helper]
[   11.247715]  [<ffffffffa017fa48>] intel_fbdev_initial_config+0x18/0x30 [i915]
[   11.247717]  [<ffffffff8109e647>] async_run_entry_fn+0x37/0x150
[   11.247720]  [<ffffffff81095ef5>] process_one_work+0x1e5/0x470
[   11.247722]  [<ffffffff810961c8>] worker_thread+0x48/0x4e0
[   11.247724]  [<ffffffff81096180>] ? process_one_work+0x470/0x470
[   11.247725]  [<ffffffff81096180>] ? process_one_work+0x470/0x470
[   11.247728]  [<ffffffff8109be38>] kthread+0xd8/0xf0
[   11.247730]  [<ffffffff8102c782>] ? __switch_to+0x2d2/0x630
[   11.247733]  [<ffffffff815f823f>] ret_from_fork+0x1f/0x40
[   11.247735]  [<ffffffff8109bd60>] ? kthread_worker_fn+0x170/0x170
[   11.247736] ---[ end trace f18a2658fb46baeb ]---


I can post more if needed and/or helpful.

Thanks, and good luck to everyone.

Offline

Board footer

Powered by FluxBB