Created attachment 133148 [details] Xorg.0.log Platform: Dell Latitude 5285 After waking up from s2idle several times, xorg will crash (this can be reproduced by suspending/resuming a couple of times). dmesg says: [92917.133746] [drm:intel_display_resume [i915]] *ERROR* Restoring old state failed with -22 xorg.log says at the end: [ 53740.959] (II) intel(0): switch to mode 1920x1280@60.0 on eDP1 using pipe 0, position (0, 2160), rotation normal, reflection none [ 53741.003] (II) intel(0): switch to mode 3840x2160@60.0 on DP2 using pipe 1, position (0, 0), rotation normal, reflection none [ 53741.010] (EE) intel(0): failed to set mode: Invalid argument [22] [ 53741.010] (EE) [ 53741.010] (EE) Backtrace: [ 53741.011] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x59c209] [ 53741.012] (EE) 1: /usr/lib/libpthread.so.0 (funlockfile+0x50) [0x7fed5190082f] [ 53741.012] (EE) 2: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x5ee25) [0x7fed4e160a45] [ 53741.013] (EE) 3: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x5efdb) [0x7fed4e160d6b] [ 53741.014] (EE) 4: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x6687b) [0x7fed4e16fceb] [ 53741.014] (EE) 5: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x66cc1) [0x7fed4e170551] [ 53741.015] (EE) 6: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x68162) [0x7fed4e172e52] [ 53741.015] (EE) 7: /usr/lib/xorg-server/Xorg (xf86CrtcSetModeTransform+0x144) [0x4aff74] [ 53741.015] (EE) 8: /usr/lib/xorg-server/Xorg (xf86SetDesiredModes+0x199) [0x4b0519] [ 53741.016] (EE) 9: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x6aeec) [0x7fed4e178c8c] [ 53741.016] (EE) 10: /usr/lib/xorg/modules/drivers/intel_drv.so (_init+0x6b1aa) [0x7fed4e1791ea] [ 53741.016] (EE) 11: /usr/lib/xorg-server/Xorg (xf86PruneDuplicateModes+0x196d) [0x4b7ebd] [ 53741.016] (EE) 12: /usr/lib/xorg-server/Xorg (xf86AllocateLinearOffscreenArea+0x15a0) [0x4826c0] [ 53741.017] (EE) 13: /usr/lib/xorg/modules/extensions/libglx.so (GlxSetVisualConfigs+0x66ef) [0x7fed4f3534cf] [ 53741.017] (EE) 14: /usr/lib/xorg-server/Xorg (xf86VTEnter+0x88) [0x479598] [ 53741.017] (EE) 15: /usr/lib/xorg-server/Xorg (xf86RemoveSIGIOHandler+0xa88) [0x49f368] [ 53741.017] (EE) 16: /usr/lib/xorg-server/Xorg (xf86RemoveSIGIOHandler+0xd9b) [0x49f72b] [ 53741.018] (EE) 17: /usr/lib/libdbus-1.so.3 (dbus_connection_dispatch+0x401) [0x7fed53910f91] [ 53741.018] (EE) 18: /usr/lib/libdbus-1.so.3 (dbus_connection_dispatch+0x6dd) [0x7fed539118ad] [ 53741.019] (EE) 19: /usr/lib/xorg-server/Xorg (config_fini+0x461) [0x4988d1] [ 53741.019] (EE) 20: /usr/lib/xorg-server/Xorg (OsCleanup+0x641) [0x59d171] [ 53741.019] (EE) 21: /usr/lib/xorg-server/Xorg (WaitForSomething+0xcc) [0x595a0c] [ 53741.019] (EE) 22: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x13a) [0x43679a] [ 53741.019] (EE) 23: /usr/lib/xorg-server/Xorg (InitFonts+0x428) [0x43a9a8] [ 53741.020] (EE) 24: /usr/lib/libc.so.6 (__libc_start_main+0xea) [0x7fed515694ca] [ 53741.021] (EE) 25: /usr/lib/xorg-server/Xorg (_start+0x2a) [0x42464a] [ 53741.021] (EE) [ 53741.021] (EE) Segmentation fault at address 0x88 [ 53741.021] (EE) Fatal server error: [ 53741.021] (EE) Caught signal 11 (Segmentation fault). Server aborting Versions: [18:11] manager:~% pacman -Q | grep xorg | sort xorg-appres 1.0.4-1 xorg-bdftopcf 1.0.5-1 xorg-fonts-alias 1.0.3-1 xorg-fonts-encodings 1.0.4-4 xorg-fonts-misc 1.0.3-5 xorg-font-util 1.3.1-1 xorg-font-utils 7.6-4 xorg-luit 1.1.1-2 xorg-mkfontdir 1.0.7-8 xorg-mkfontscale 1.1.2-1 xorg-server 1.19.3-2 xorg-server-common 1.19.3-2 xorg-setxkbmap 1.3.1-1 xorg-xauth 1.0.10-1 xorg-xbacklight 1.2.1-1 xorg-xdpyinfo 1.3.2-1 xorg-xev 1.2.2-1 xorg-xinit 1.3.4-4 xorg-xinput 1.6.2-1 xorg-xkbcomp 1.4.0-1 xorg-xkill 1.0.4-1 xorg-xmodmap 1.0.9-1 xorg-xrandr 1.5.0-1 xorg-xrdb 1.1.0-2 xorg-xset 1.2.3-1 xorg-xwd 1.0.6-1 xorg-xwininfo 1.1.3-1 Running 4.13.0-rc1-ARCH+ so s2idle is supported - from commit 54a7d50b9205b5064628c1d10de6531d2d9fbc90. Attached are relevant log files (dmesg, xorg log and lspci output)
Created attachment 133149 [details] lspci-vv
Created attachment 133150 [details] lspci-nn
Created attachment 133151 [details] dmesg
Plus the actual driver (why do we still have xf86 in the name? ...) [18:20] manager:~% pacman -Q | grep xf86 libxxf86dga 1.1.4-1 libxxf86vm 1.1.4-1 xf86-input-libinput 0.25.1-1 xf86-input-wacom 0.35.0-1 xf86-video-intel 1:2.99.917+777+g6babcf15-1 xf86dgaproto 2.1-3 xf86vidmodeproto 2.3.1-3 [18:20] manager:~%
It's going to be loss of a DP after resume, I guess? What else will make the previously working mode now invalid. The crash is going to be some mistake in error handling, but we're not going to get much without debug symbols. Is there any chance you can compile with --enable-debug=full? That should have the added benefit of capturing why the kernel rejected the mode as well. (In reply to nico-freedesktop.org from comment #4) > Plus the actual driver (why do we still have xf86 in the name? ...) History + inertia.
There is actually a good reason to have lost the link: I disconnected the external usb-c adapter while sleeping and took the notebook for a trip. Regarding debug compile: which part (full xorg, xf86-intel only?) should be compiled with debug symbols?
(In reply to nico-freedesktop.org from comment #6) > There is actually a good reason to have lost the link: I disconnected the > external usb-c adapter while sleeping and took the notebook for a trip. Ah, useful to know. Should just be a case of debugging the error handling... > Regarding debug compile: which part (full xorg, xf86-intel only?) should be > compiled with debug symbols? For the time being, we just need debug symbols for -intel.
Created attachment 133179 [details] xorg.log from crash with debugging Added output of crash with debugging enabled. Note: it took me 3-4 times to put the device into sleep *and* a change to a different console to provoke the segfault. Prior to changing to a different console, the screen would just stay black. Attention: the logfile is 185 MB big.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/issues/146.
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.