You are not logged in.

#1 2018-01-28 10:24:35

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

[xf86-video-intel] flip_done timed out

Hi.

I know that this topic has been discused before, but since I've applied every suggested fix unsuccesfully and have exhausted the internet, I would appreciate any new insight.

The problem is as follows:

I'm running Arch Linux (4.14.14) on a laptop with intel graphics (my CPU is an i5-2410M).

With the xf86-video-intel driver I sometimes get the following error when logging out of Xorg:
[drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] *ERROR* [CRTC:36:pipe A] flip_done timed out

and from that point on, the PC becomes very slow (triggering that time out) when I change anything that has to do with graphics. Even changing TTYs triggers the event.

The problem is already reported here

There are some fixes suggested here but none of those work for me.

Using the video=SVIDEO-1:d kernel parameter doesn't work. Disabling any other video port also doesn't work.

I could just uninstall the xf86-video-intel package, as that solves the issue. In fact the Arch wiki recommends not installing that package here.

The only problem is that without the intel driver I have screen tearing issues in xfce that I can't solve (already tried several compositors and WMs).

Any suggestions and/or thoughts? Should I report this elsewhere?

For now I will try to use an old version of the driver and see what happens.

Many thanks in advance

Offline

#2 2018-01-28 15:52:49

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

Re: [xf86-video-intel] flip_done timed out

unnilquadium wrote:

Using the video=SVIDEO-1:d kernel parameter doesn't work. Disabling any other video port also doesn't work.

This solution only apply for the really old 965GM Chipset.  I assume your problem might have another reason.

Offline

#3 2018-01-28 17:07:14

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

Re: [xf86-video-intel] flip_done timed out

I would suggest opening a new upstream bug report how-report-bugs if upstream is already aware of it and has a fix they should point you to it.

Offline

#4 2018-01-29 00:02:02

cm
Member
Registered: 2013-07-24
Posts: 32

Re: [xf86-video-intel] flip_done timed out

unnilquadium wrote:

The only problem is that without the intel driver I have screen tearing issues in xfce that I can't solve (already tried several compositors and WMs).

I don't have a fix, but I see this with 4.14, too. I can also confirm tearing without xf86-video-intel on multiple machines. It's a common bug on Intel GPUs since around 2011. If you observe closely, even a Wayland will compositor will tear on an Intel GPU. Like you, xf86-video-intel's TearFree is the only remedy I found. Using an older kernel will help, but is likely not an alternative. Try 4.9, 4.4, 4.1 and 3.16 (from archive.archlinux.org or personal package). Of those, only 4.4 and 3.16 will be supported long enough and the rest will be EOL in the not too distant future.

Offline

#5 2018-01-29 10:48:48

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

Thanks for the replies.

I'll try reporting this upstream and send some debug logs.
Using older drivers doesn't solve the problem.

Offline

#6 2018-01-29 20:03:44

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

Re: [xf86-video-intel] flip_done timed out

Please link your bug report after you have filed it.
See also https://bugs.freedesktop.org/show_bug.cgi?id=104573#c2 and possibly try the work around from https://bugs.freedesktop.org/show_bug.cgi?id=101269#c23

Offline

#7 2018-01-30 10:20:57

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

Thanks.
I'll link the report as soon as I file it.

I'll also try the work around suggested by loqs and see what happens.

Offline

#8 2018-01-30 13:35:35

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

Offline

#9 2018-01-30 16:50:01

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

Re: [xf86-video-intel] flip_done timed out

You seem to have missed these two points from the link I posted how-report-bugs.

To obtain a dmesg with debug information, add drm.debug=0xe to your kernel command line or, if you have display issues with kernel 4.1 or newer, use drm.debug=0x1e log_buf_len=1M instead. Then, reboot and reproduce the issue again. Make sure to attach the full dmesg all the way from boot.

Note that a new bug is preferred over adding your GPU crash dump to an already open bug. Most often the cause for the GPU hangs are different, and it is easy for the developers to mark bugs as duplicate.

Oh well it is done now.

Offline

#10 2018-01-30 18:05:54

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

I'm fairly new at this, I'm afraid. And learning as I go.

Do you think I should file a new bug with those added to the kernel command line?

Please note that this only happens while using xf86-video-intel.
Does "drm.debug=0x1e log_buf_len=1M" apply while using xf86-video-intel?

Thanks

Last edited by unnilquadium (2018-01-30 18:10:30)

Offline

#11 2018-01-30 18:51:37

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

Re: [xf86-video-intel] flip_done timed out

unnilquadium wrote:

Do you think I should file a new bug with those added to the kernel command line?

I would leave it now and see if you are asked to file a new one.

unnilquadium wrote:

Please note that this only happens while using xf86-video-intel.
Does "drm.debug=0x1e log_buf_len=1M" apply while using xf86-video-intel?

I think the source of the issue of is the kernel driver so yes provide a dmesg from a boot with those options until you encounter the issue.

Offline

#12 2018-02-14 16:01:50

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

Since I installed the new xorgproto package (which replaced many older Xorg packages) I've not had the issue.

I'm not saying it is fully resolved, as I think further testing is required.

Offline

#13 2018-02-24 18:25:49

theneuralbit
Member
Registered: 2018-02-24
Posts: 5

Re: [xf86-video-intel] flip_done timed out

I've been grappling with this issue for the last month or so as well on my XPS13-9360 (i5-7200U)
Just noticed that when I have a second monitor connected via USB-C the problem goes away completely. Is this related to the disable S-VIDEO fix? Is there some way I can disable USB-C when I'm not using the second monitor to fix the issue?

Offline

#14 2018-04-26 20:36:47

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

For information, this is still not fixed.

I've reported upstream here. The bug had been classified as fixed, but I'm still having the issue, although much more sporadically.

Offline

#15 2018-05-01 21:25:30

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,652

Re: [xf86-video-intel] flip_done timed out

I am having the same issue as well with my laptop. My desktop doesn't have it. The  video=SVIDEO-1:d kernel parameter doesn't work and I don't have the xf86-video-intel installed. I
So it is not fixed.

Offline

#16 2018-05-02 02:24:35

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [xf86-video-intel] flip_done timed out

For what it's worth, I had issue with same error message on 4.14 and 4.15 (haven't tested 4.16 yet) with i5-7200U, that was resolved by not using the enable_psr=1 module option.

I think this (now closed) bug report is related: https://bugs.freedesktop.org/show_bug.cgi?id=104918

EDIT. My issue with psr was not fixed in 4.16

Last edited by ooo (2018-05-08 09:43:49)

Offline

#17 2018-05-06 16:02:31

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,652

Re: [xf86-video-intel] flip_done timed out

Just a question, does this happen on anybody's desktop? My Arch desktop doesn't have this behaviour, only my laptop.
And if only laptops, why?

Offline

#18 2018-05-07 08:49:02

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

I don't know if it is with laptops only, but it appears to be (at least more frequently) related with Sandy Bridge processors.
What processors does your laptop and desktop run?

Offline

#19 2018-05-07 18:35:46

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,652

Re: [xf86-video-intel] flip_done timed out

It is indeed Sandy Bridge. And my desktop runs on a newer Kaby Lake.

Offline

#20 2018-05-07 20:41:31

unnilquadium
Member
Registered: 2017-08-27
Posts: 86

Re: [xf86-video-intel] flip_done timed out

From what I gather from several reports, this problem appears to be more prevalent on Sandy Bridge processors. It's hard for people not running those processors to reproduce the problem.
The bug had been marked as solved on bugs.freedesktop.org. I reopened the bug report. If you wish you can post your reports. The bug report in which I reported is located here: https://bugs.freedesktop.org/show_bug.cgi?id=104573

Offline

#21 2018-05-07 23:44:41

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

Re: [xf86-video-intel] flip_done timed out

https://bugs.freedesktop.org/show_bug.cgi?id=103713 (if it is the same issue) indicates it is unfixed in drm-tip so no fix for 4.17.

Offline

#22 2018-05-08 07:25:03

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,652

Re: [xf86-video-intel] flip_done timed out

I can confirm no fix for 4.17. Same erratic behaviour.

Offline

#23 2018-06-23 01:10:09

i0z0m
Member
From: Japan
Registered: 2018-06-17
Posts: 1

Re: [xf86-video-intel] flip_done timed out

I also sometimes get the following error when logging out of Xorg. It's a little different, but it's similar.
[drm:drm_atomic_helper_wait_for_dependencies [drm_kms_helper]] *ERROR* [CRTC:37:pipe A] flip_done timed out

Using the video=SVIDEO-1:d kernel parameter doesn't work for me. and other solutions don't work for me.
I'm running Arch Linux (4.17.2-1) on my laptop ThinkPad X220 with xf86-video-intel (my CPU is an i5-2540M Sandy Bridge processor).

Offline

#24 2018-06-25 21:54:22

jaylittle
Member
Registered: 2013-01-16
Posts: 47

Re: [xf86-video-intel] flip_done timed out

If you want to solve your screen tearing issue in XFCE without relying upon the broken intel xorg driver, just disable the built in xfce compositor and run something like compton as part of your session startup.  That should resolve your issue with screen tearing and allow you to use the more reputable kms driver.

Offline

#25 2018-06-29 02:13:28

VirtualTorus
Member
Registered: 2018-04-06
Posts: 21

Re: [xf86-video-intel] flip_done timed out

I ran into this exact problem on my Lenovo ThinkPad T420 a couple of months before you created this thread. I have also brute forced possible solutions at the time through the internet but to no avail, and likewise, I also have a Sandy Bridge processor (i5-2520M) (nice to know I am not alone with this). I ended stumbling back here because xorg-xbacklight would be fully supported if I had xf86-video-intel.

My workaround solution for screen tearing (I have not attempted this with a desktop environment, I use xinitrc + xmonad) as I have had it as well:

I have in my Xorg configuration:

/etc/X11/xorg.conf.d/20-modesetting.conf
Section "Device"
  Identifier "Modeset"
  Driver  "modesetting"
  Option "AccelMethod"  "glamor"
  Option "PageFlip" "true"
EndSection

and I'm using compton with vsync enabled.

EDIT: Though I said 'workaround', this actually stops screen tearing for me completely.

Last edited by VirtualTorus (2018-06-29 14:22:43)

Offline

Board footer

Powered by FluxBB