Bug 105403 - [modesetting] Xorg shows black screen using modesetting in ubuntu 17.1064bit
Summary: [modesetting] Xorg shows black screen using modesetting in ubuntu 17.1064bit
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/modesetting (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: highest blocker
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 18:41 UTC by Humberto Israel Perez Rodriguez
Modified: 2018-04-30 08:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log (48.49 KB, text/x-log)
2018-03-08 18:41 UTC, Humberto Israel Perez Rodriguez
no flags Details
dmesg.log (179.53 KB, text/x-log)
2018-03-08 18:42 UTC, Humberto Israel Perez Rodriguez
no flags Details
kern.log (255.10 KB, text/x-log)
2018-03-08 18:42 UTC, Humberto Israel Perez Rodriguez
no flags Details
Xorg.0.log fatal error (36.40 KB, text/x-log)
2018-03-21 09:56 UTC, Jos van Wolput
no flags Details

Description Humberto Israel Perez Rodriguez 2018-03-08 18:41:24 UTC
Created attachment 137908 [details]
Xorg.0.log

Hi :

i am having black screen when trying to enable modesetting with Xorg, with SNA works well, please see below my configuration and the issue.
any help here would be appreciated :)


kernel versions used : 

- 4.13.0-32-generic

- latest drm-tip
=================================================
commit 6c6e1006b3c9ba90b68793e26702d2267715baee
Author:     Jani Nikula <jani.nikula@intel.com>
AuthorDate: Thu Mar 8 12:03:13 2018 +0200
Commit:     Jani Nikula <jani.nikula@intel.com>
CommitDate: Thu Mar 8 12:03:13 2018 +0200

    drm-tip: 2018y-03m-08d-10h-02m-19s UTC integration manifest



this is my configuration file for modesetting
=============================================
$ cat 20-modesetting.conf
Section "Device"
  Identifier "Intel Graphics"
  Driver     "modesetting"
  Option     "AccelMethod" "glamor"
EndSection


this are the errors that shows Xorg.0.log
============================================================================
$ : cat -n Xorg.0.log | grep "(EE)"
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     4.425] (EE) modeset(0): failed to set mode: Invalid argument
[     5.258] (EE) modeset(0): failed to set mode: No space left on device


this are my commits for the related drivers:
====================================================
component: xserver
    tag: xorg-server-1.19.99.901-21-g90e0cdd
    commit: 90e0cdd42dfda2accfadffa5c550712696902e14

Component: mesa
    tag: 17.3-branchpoint-3811-g55376cb
    commit: 55376cb31e2f495a4d872b4ffce2135c3365b873
Component: xf86-video-intel
    tag: 2.99.917-814-gaa36399
    commit: aa36399cca1250d878a4608528a535faeb0e931a


this are the mesa options when compiled:
=========================================
  $ ./configure --prefix=/opt/X11R7 --libdir=/opt/X11R7/lib/x86_64-linux-gnu --with-dri-drivers=i965,swrast --with-dri-driverdir=/opt/X11R7/lib/dri --enable-gles1 --enable-gles2 --enable-shared-glapi --with-egl-platforms=x11,drm --enable-texture-float --enable-gbm --enable-glx-tls --without-gallium-drivers --enable-debug

this are the xserver options when compiled:
=========================================
  $ ./configure --prefix=/opt/X11R7 --libdir=/opt/X11R7/lib --enable-ipv6 --enable-dri --enable-xvfb --enable-composite --enable-xcsecurity --enable-libunwind --enable-xorg --enable-xephyr --enable-glamor -enable-kdrive --enable-config-udev --enable-systemd-logind --enable-suid-wrapper --enable-dri3 --disable-install-setuid --enable-record --disable-static --libexecdir=/opt/X11R7/lib/xorg-server --sysconfdir=/opt/X11R7/etc --sysconfdir=/opt/X11R7/etc --localstatedir=/opt/X11R7/var --with-xkb-path=/opt/X11R7/share/X11/xkb --with-xkb-output=/opt/X11R7/lib/xkb --with-fontrootdir=/usr/share/fonts --with-sha1=libgcrypt --enable-glamor --enable-debug

this are the xf86-video-intel options when compiled:
=========================================
 $ ./configure --prefix=/opt/X11R7 --libdir=/opt/X11R7/lib --enable-debug --enable-kms --enable-sna


the output of the drivers into Xorg.0.log
=========================================
$ : cat Xorg.0.log | grep -i sna

$ : cat Xorg.0.log | grep -i modesetting -A8
[     4.456] (II) LoadModule: "modesetting"
[     4.457] LoaderOpen(/opt/X11R7/lib/xorg/modules/drivers/modesetting_drv.so)
[     4.457] (II) Loading /opt/X11R7/lib/xorg/modules/drivers/modesetting_drv.so
[     4.458] (II) Module modesetting: vendor="X.Org Foundation"
[     4.458] 	compiled for 1.19.99.901, module version = 1.19.99
[     4.458] 	Module class: X.Org Video Driver
[     4.458] 	ABI class: X.Org Video Driver, version 24.0
[     4.458] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[     4.458] (II) modeset(0): using drv /dev/dri/card0
[     4.458] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[     4.458] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[     4.458] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[     4.458] (**) modeset(0): Option "AccelMethod" "glamor"
[     4.458] (==) modeset(0): RGB weight 888
[     4.458] (==) modeset(0): Default visual is TrueColor

$ : cat Xorg.0.log | grep -i glamor -A8
[     4.458] (**) modeset(0): Option "AccelMethod" "glamor"
[     4.458] (==) modeset(0): RGB weight 888
[     4.458] (==) modeset(0): Default visual is TrueColor
[     4.458] (II) Loading sub module "glamoregl"
[     4.458] (II) LoadModule: "glamoregl"
[     4.458] LoaderOpen(/opt/X11R7/lib/xorg/modules/libglamoregl.so)
[     4.458] (II) Loading /opt/X11R7/lib/xorg/modules/libglamoregl.so
[     4.465] (II) Module glamoregl: vendor="X.Org Foundation"
[     4.465] 	compiled for 1.19.99.901, module version = 1.0.1
[     4.465] 	ABI class: X.Org ANSI C Emulation, version 0.4
[     4.506] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3) 
[     4.506] (II) modeset(0): glamor initialized




attachments
===========================
- Xorg.0.log
- dmesg.log
- kern.log
Comment 1 Humberto Israel Perez Rodriguez 2018-03-08 18:42:14 UTC
Created attachment 137909 [details]
dmesg.log
Comment 2 Humberto Israel Perez Rodriguez 2018-03-08 18:42:30 UTC
Created attachment 137910 [details]
kern.log
Comment 3 Humberto Israel Perez Rodriguez 2018-03-12 19:15:15 UTC
BTW there is a lot of space available

$ : df -TH
Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  8.4G     0  8.4G   0% /dev
tmpfs          tmpfs     1.7G   11M  1.7G   1% /run
/dev/sda3      ext4      224G  6.7G  206G   4% /
tmpfs          tmpfs     8.4G     0  8.4G   0% /dev/shm
tmpfs          tmpfs     5.3M  4.1k  5.3M   1% /run/lock
tmpfs          tmpfs     8.4G     0  8.4G   0% /sys/fs/cgroup
/dev/sda1      vfat      2.1G  4.9M  2.1G   1% /boot/efi
tmpfs          tmpfs     1.7G   33k  1.7G   1% /run/user/1000
Comment 4 Jos van Wolput 2018-03-21 09:56:28 UTC
Created attachment 138238 [details]
Xorg.0.log fatal error
Comment 5 Jos van Wolput 2018-03-21 10:00:16 UTC
I get a similar fatal error after compiling the git version of xserver (ae5c0dd19...) using gcc-8.
No such error when using the released version xorg-server-1.19.99.901
Please see the attached Xorg.0.log
Comment 6 Jos van Wolput 2018-04-02 21:22:56 UTC
Fixed in xorg-server-1.19.99.903 (commit df6cbf7a2b...)
Comment 7 Eero Tamminen 2018-04-30 08:13:58 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #0)
> [     4.425] (EE) modeset(0): failed to set mode: Invalid argument
> [     5.258] (EE) modeset(0): failed to set mode: No space left on device
...
> Intel(R) HD Graphics 6000 (Broadwell GT3) 
...
> component: xserver
>     tag: xorg-server-1.19.99.901-21-g90e0cdd
>     commit: 90e0cdd42dfda2accfadffa5c550712696902e14

This issue was introduced few days earlier with the DRI3 v1.2 / modifier support / atomic mode setting patch series.

It was present at least on SNB, HSW, BYT, BSW and BDW machines, but not on newer ones.


(In reply to Jos van Wolput from comment #6)
> Fixed in xorg-server-1.19.99.903 (commit df6cbf7a2b...)

And the issue was fixed by this commit:
https://cgit.freedesktop.org/xorg/xserver/commit/?id=ce7d5087cfe1d2df756d93b7f567b3c0b0a7f6a8


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.