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

VC4 mode Xorg.0.log gets spamed #146

Closed
Dark-Sky opened this issue Mar 17, 2019 · 7 comments
Closed

VC4 mode Xorg.0.log gets spamed #146

Dark-Sky opened this issue Mar 17, 2019 · 7 comments

Comments

@Dark-Sky
Copy link

Dark-Sky commented Mar 17, 2019

Was advised to report here by @lategoodnight:

Using VC4 mode my /var/log/Xorg.0.log gets hammered with:

[   901.979] (EE) modeset(0): Failed to get GBM bo for flip to new front.
[   901.979] (EE) modeset(0): present flip failed

For now I am preventing it with /etc/X11/xorg.conf.d/20-displaylink.conf:

Section "Device"
  Identifier "DisplayLink"
  Driver "modesetting"
  Option "PageFlip" "false"
EndSection

Side note:

The exact same thing is happening on my desktop computer using KMS instead of the intel drivers due to video tearing so thinking it could very well be an Xorg issue.

I am using the Raspian kernel 5.0.2 but have noticed it on previous Raspian kernels on my rpi 3/3b+ devices both 32bit and aarch64 Arch Linux images. The kernels are compiled here locally from the Raspian github.

@anholt
Copy link
Owner

anholt commented Mar 18, 2019

Is a displaylink adapter actually involved somehow?

echo 0x1f > /sys/module/drm/parameters/debug and capturing dmesg after the failure may help figure out what's going on.

@Dark-Sky
Copy link
Author

Dark-Sky commented Mar 18, 2019

Well above my pay grade. lol

dmesg

@anholt
Copy link
Owner

anholt commented Mar 19, 2019

You'll want to attach the whole dmesg so you get the piece of it that actually includes the failing call. Also, still need an answer on why you're talking about displaylink.

@Dark-Sky
Copy link
Author

Dark-Sky commented Mar 19, 2019

Other than many many lines like above these creep in every once in a while:

[ 1632.198735] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, DRM_IOCTL_CRTC_GET_SEQUENCE
[ 1632.198821] [drm:drm_vblank_enable [drm]] enabling vblank on crtc 2, ret: 0
[ 1632.198919] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, VC4_SUBMIT_CL
[ 1632.199132] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, VC4_WAIT_SEQNO
[ 1632.199657] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, DRM_IOCTL_CRTC_QUEUE_SEQUENCE
[ 1632.206720] [drm:drm_handle_vblank [drm]] vblank event on 97324, current 97324
[ 1632.207134] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, VC4_SUBMIT_CL
[ 1632.207294] [drm:drm_ioctl [drm]] pid=197, dev=0xe200, auth=1, VC4_WAIT_SEQNO
[ 1632.223437] [drm:vblank_disable_fn [drm]] disabling vblank on crtc 2

The reason for the /etc/X11/xorg.conf.d/20-displaylink.conf above was a result of searching on the internet that some one posted having the same spamming problem in the Xorg log file. All I know is it stops the spamming in the log.

All I use is a HDMI cable connected to my VIZIO TV for a monitor.

The link to the dmesg file below is from boot up and is a total of about 2 minutes after enabling the debugging messages:

https://drive.google.com/file/d/1nGDFzzgmjY2_-dIIhDw3YromLtbd-avM/view?usp=sharing

This is my Xorg log:

https://drive.google.com/file/d/1TRCE1_ewfgK-esqCrzcPAXsf9xZtBxv0/view?usp=sharing

@anholt
Copy link
Owner

anholt commented Mar 19, 2019

definitely expected dmesg errors, I was surprised. Well, I guess at this point I'd need to know how to reproduce the problem -- what specific set of software you're using and what you do with it to see this error.

@Dark-Sky
Copy link
Author

Dark-Sky commented Mar 19, 2019

I finally found the problem by reading the thread here:

https://bugzilla.redhat.com/show_bug.cgi?id=1645553

For the sake of brevity It seems to have to do with the mate desktop (which I run on everything here) and the combination of using KMS and having window manager compositor enable. I disabled the window manager compositor and the spamming stopped.

Another new wrinkle in my brain. lol

no-compositor

@anholt
Copy link
Owner

anholt commented Apr 4, 2019

OK, sounds like this is https://gitlab.freedesktop.org/xorg/xserver/merge_requests/131, closing.

@anholt anholt closed this as completed Apr 4, 2019
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

2 participants