Bug 99069 - X crashes when docking Lenovo T460p on Linux 4.9.0 with intel-driver 2.99.917_p20161118
Summary: X crashes when docking Lenovo T460p on Linux 4.9.0 with intel-driver 2.99.917...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium critical
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-13 08:43 UTC by Robert
Modified: 2016-12-13 11:07 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
/sys/class/drm/card0/error (155.15 KB, application/x-bzip)
2016-12-13 08:43 UTC, Robert
no flags Details

Description Robert 2016-12-13 08:43:27 UTC
Created attachment 128449 [details]
/sys/class/drm/card0/error

When docking my ThinkPad T460p the X-server crashes.

Stacktrace in Xorg.log:
[ 12751.122] (EE) 
[ 12751.122] (EE) Backtrace:
[ 12751.130] (EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x58a9d6]
[ 12751.130] (EE) 1: /usr/bin/X (0x400000+0x18ec79) [0x58ec79]
[ 12751.130] (EE) 2: /lib64/libc.so.6 (0x7f1845e23000+0x33330) [0x7f1845e56330]
[ 12751.130] (EE) 3: /lib64/libc.so.6 (readdir+0x29) [0x7f1845ed8799]
[ 12751.130] (EE) 4: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f184263e000+0x73ca8) [0x7f18426b1ca8]
[ 12751.130] (EE) 5: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f184263e000+0x7667a) [0x7f18426b467a]
[ 12751.130] (EE) 6: /usr/lib64/xorg/modules/drivers/intel_drv.so (0x7f184263e000+0x7daed) [0x7f18426bbaed]
[ 12751.130] (EE) 7: /usr/bin/X (xf86Wakeup+0x1aa) [0x47635a]
[ 12751.130] (EE) 8: /usr/bin/X (WakeupHandler+0x6b) [0x43a1fb]
[ 12751.130] (EE) 9: /usr/bin/X (WaitForSomething+0x1dd) [0x587aed]
[ 12751.130] (EE) 10: /usr/bin/X (0x400000+0x3540e) [0x43540e]
[ 12751.130] (EE) 11: /usr/bin/X (0x400000+0x39643) [0x439643]
[ 12751.130] (EE) 12: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f1845e43630]
[ 12751.130] (EE) 13: /usr/bin/X (_start+0x29) [0x423939]
[ 12751.130] (EE) 
[ 12751.130] (EE) Segmentation fault at address 0x4
[ 12751.130] (EE) 
Fatal server error:
[ 12751.130] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 12751.130] (EE) 
[ 12751.130] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[ 12751.130] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 12751.130] (EE) 
[ 12751.130] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 12751.311] (EE) Server terminated with error (1). Closing log file.


dmesg output:
[12717.769359] [drm] GPU HANG: ecode 9:0:0xd1236820, in kscreenlocker_g [8438], reason: Hang on blitter ring, action: reset
[12717.769360] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[12717.769361] [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
[12717.769361] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[12717.769362] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[12717.769363] [drm] GPU crash dump saved to /sys/class/drm/card0/error
[12717.769387] drm/i915: Resetting chip after gpu hang
[12717.769433] [drm] RC6 on
[12717.785176] [drm] GuC firmware load skipped
[12728.777438] drm/i915: Resetting chip after gpu hang
[12728.777501] [drm] RC6 on
[12728.791475] [drm] GuC firmware load skipped
[12738.761024] drm/i915: Resetting chip after gpu hang
[12738.761072] [drm] RC6 on
[12738.773170] [drm] GuC firmware load skipped
[12751.001612] thinkpad_acpi: docked into hotplug port replicator
[12751.395118] kscreen_backend[2113]: segfault at 20 ip 00007f0484af77aa sp 00007ffe1db76fd8 error 4 in libc-2.22.so[7f0484a76000+193000]
[12751.489112] traps: ck-remove-direc[9159] trap int3 ip:7f7d8c30c76e sp:7ffc0d35a480 error:0
[12751.489114]  in libglib-2.0.so.0.4800.2[7f7d8c2bc000+10e000]
[12753.607932] usb 1-3.4.3: new full-speed USB device number 11 using xhci_hcd
[12753.660436] [drm:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe B FIFO underrun
[12754.360629] e1000e: enp0s31f6 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[12758.077536] traps: ck-remove-direc[9743] trap int3 ip:7efcf42cf76e sp:7fff4536fde0 error:0
[12758.077538]  in libglib-2.0.so.0.4800.2[7efcf427f000+10e000]


/sys/class/drm/card0/error is attached.
Comment 1 Chris Wilson 2016-12-13 09:00:01 UTC
commit a1b39eb6dd1717501a0546275d07df8321fe4905
Author: James Clarke <jrtc27@jrtc27.com>
Date:   Mon Dec 5 11:30:27 2016 +0000

    sna: Add missing NULL check for readdir result in has_connector_backlight
    
    Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Comment 2 Robert 2016-12-13 11:07:07 UTC
Thanks, problem is fixed when using the driver with the patch.


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.