Bug 95253 - [BDW] Kernel 4.5.1 crashes when connecting/disconnecting external monitor to Lenovo OneLink dock
Summary: [BDW] Kernel 4.5.1 crashes when connecting/disconnecting external monitor to ...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium blocker
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 22:21 UTC by Vasily Khoruzhick
Modified: 2016-05-13 14:32 UTC (History)
1 user (show)

See Also:
i915 platform: BDW
i915 features: display/DP MST


Attachments
dmesg.txt (233.90 KB, text/plain)
2016-05-03 22:21 UTC, Vasily Khoruzhick
no flags Details
dmesg on 4.6-rc6 (4.21 KB, text/plain)
2016-05-05 23:27 UTC, Vasily Khoruzhick
no flags Details

Description Vasily Khoruzhick 2016-05-03 22:21:04 UTC
Created attachment 123445 [details]
dmesg.txt

linux-4.5 is extremely unstable with external monitor connected to Lenovo OneLink dock connected to Lenovo X1 Carbon gen3 laptop (Broadwell graphics).

See attached dmesg.
Comment 1 Vasily Khoruzhick 2016-05-05 18:58:08 UTC
I tried linux-4.6.0-rc6-g33656a1 and it works much better. It can survive dock disconnection, and suspend works fine.
Comment 2 Vasily Khoruzhick 2016-05-05 22:17:27 UTC
(In reply to Vasily Khoruzhick from comment #1)
> I tried linux-4.6.0-rc6-g33656a1 and it works much better. It can survive
> dock disconnection, and suspend works fine.

With 4.6-rc6 it doesn't detect monitor automatically sometimes. But when I try to take a look whether it's detected using xrandr, it immediately detects it.
Comment 3 Vasily Khoruzhick 2016-05-05 23:27:00 UTC
Created attachment 123508 [details]
dmesg on 4.6-rc6

4.6-rc6 just crashed
Comment 4 Vasily Khoruzhick 2016-05-09 22:30:52 UTC
I tried 4.5.3 since it contains a fix for DP MST race, but it's still extremely unstable. Now kernel crashes at random places with NULL pointer dereference, probably there's use-after-free somewhere.
Comment 6 Jani Nikula 2016-05-10 08:02:09 UTC
(In reply to Jani Nikula from comment #5)
> Try
> http://patchwork.freedesktop.org/patch/msgid/1462287692-28570-1-git-send-
> email-cpaul@redhat.com

Or drm-intel-fixes branch of http://cgit.freedesktop.org/drm-intel
Comment 7 Jani Nikula 2016-05-11 13:27:10 UTC
(In reply to Vasily Khoruzhick from comment #3)
> Created attachment 123508 [details]
> dmesg on 4.6-rc6
> 
> 4.6-rc6 just crashed

Unrelated to this bug.
Comment 8 Vasily Khoruzhick 2016-05-11 17:28:41 UTC
(In reply to Jani Nikula from comment #5)
> Try
> http://patchwork.freedesktop.org/patch/msgid/1462287692-28570-1-git-send-
> email-cpaul@redhat.com

Applied this patch onto 4.5.3, running for ~11h, no kernel crashes so far. I'll report back when I test it for a while.
Comment 9 Vasily Khoruzhick 2016-05-12 17:51:20 UTC
(In reply to Vasily Khoruzhick from comment #8)
> (In reply to Jani Nikula from comment #5)
> > Try
> > http://patchwork.freedesktop.org/patch/msgid/1462287692-28570-1-git-send-
> > email-cpaul@redhat.com
> 
> Applied this patch onto 4.5.3, running for ~11h, no kernel crashes so far.
> I'll report back when I test it for a while.

Running for ~35h, connected/disconnected dock multiple times, no crashes so far. I'll reopen the bug if it crashes again.
Comment 10 Jani Nikula 2016-05-13 14:19:51 UTC
Awesome, thanks for the follow-up. Fixed by

commit 26792526cc3e29e3ccbc15c996beb61fa64be5af
Author: Lyude <cpaul@redhat.com>
Date:   Tue May 3 11:01:32 2016 -0400

    Revert "drm/i915: start adding dp mst audio"

which will be included in future stable kernel releases.


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.