[Intel-gfx] [PATCH] drm/i915: drm locks up when connecting laptop to docking station
Daniel Vetter
daniel at ffwll.ch
Wed Apr 8 01:25:59 PDT 2015
On Tue, Apr 07, 2015 at 07:01:21PM +0200, Nicolas Kalkhof wrote:
> Hello,
>
> since late 4.0-rc4 / early4.0-rc5 drm-intel branch I'm experiencing lockups every time I try to connect my lenovo t440p laptop to its docking station.
>
> [ 143.896172] ------------[ cut here ]------------
> [ 143.896182] WARNING: CPU: 0 PID: 1102 at drivers/gpu/drm/drm_atomic_helper.c:2204 drm_atomic_helper_connector_duplicate_state+0x35/0x40 [drm_kms_helper]()
> [ 143.896184] Modules linked in: snd_hda_codec_hdmi i915 snd_hda_codec_realtek snd_hda_codec_generic iwlmvm snd_hda_intel snd_hda_controller i2c_algo_bit drm_kms_helper snd_hda_codec drm iwlwifi snd_hwdep snd_pcm intel_gtt snd_timer thinkpad_acpi agpgart snd_hda_core
> [ 143.896201] CPU: 0 PID: 1102 Comm: X Not tainted 4.0.0-rc7-01086-g91d1586 #1
> [ 143.896202] Hardware name: LENOVO qqqqENX407/qqqqENX407, BIOS GLET77WW (2.31 ) 01/27/2015
> [ 143.896203] 0000000000000000 ffffffffa0171420 ffffffff81590365 0000000000000000
> [ 143.896206] ffffffff81043617 fffffffffffffff4 ffff8804098d7d80 ffff8800c9cd3000
> [ 143.896209] 0000000000000006 ffff8800c9c7a800 ffffffffa016bf05 0000000000000000
> [ 143.896212] Call Trace:
> [ 143.896219] [<ffffffff81590365>] ? dump_stack+0x40/0x50
> [ 143.896223] [<ffffffff81043617>] ? warn_slowpath_common+0x77/0xb0
> [ 143.896228] [<ffffffffa016bf05>] ? drm_atomic_helper_connector_duplicate_state+0x35/0x40 [drm_kms_helper]
> [ 143.896235] [<ffffffffa00efea5>] ? drm_atomic_get_connector_state+0x95/0x110 [drm]
> [ 143.896252] [<ffffffffa0352e8f>] ? intel_crtc_set_config+0xc6f/0xfb0 [i915]
> [ 143.896258] [<ffffffff8112c21b>] ? ep_poll_callback+0xeb/0x120
> [ 143.896264] [<ffffffffa00eed99>] ? drm_modeset_lock_all_crtcs+0xa9/0xc0 [drm]
> [ 143.896273] [<ffffffffa00dffff>] ? drm_mode_set_config_internal+0x5f/0x100 [drm]
> [ 143.896281] [<ffffffffa00e47fa>] ? drm_mode_setcrtc+0x22a/0x5f0 [drm]
> [ 143.896288] [<ffffffffa00d65ca>] ? drm_ioctl+0x15a/0x580 [drm]
> [ 143.896292] [<ffffffff8106b8cf>] ? pick_next_task_fair+0x43f/0x4b0
> [ 143.896295] [<ffffffff81103488>] ? do_vfs_ioctl+0x2e8/0x4f0
> [ 143.896298] [<ffffffff8159288d>] ? __schedule+0x24d/0x7c0
> [ 143.896301] [<ffffffff811036c6>] ? SyS_ioctl+0x36/0x80
> [ 143.896303] [<ffffffff811055f2>] ? SyS_poll+0x52/0xf0
> [ 143.896307] [<ffffffff81595f36>] ? system_call_fastpath+0x16/0x1b
> [ 143.896309] ---[ end trace 17ff49bc79a1a762 ]---
> [ 143.896318] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
> [ 143.896362] IP: [<ffffffffa00eff84>] drm_atomic_add_affected_connectors+0x64/0xc0 [drm]
Which branch are you exactly using - we added calls to this function in
i915 only for the 4.1 -next branch, but you claim that you're running
4.0-rc kernels ...
-Daniel
> [ 143.896403] PGD 406577067 PUD 408c42067 PMD 0
> [ 143.896426] Oops: 0000 [#1] SMP
> [ 143.896439] Modules linked in: snd_hda_codec_hdmi i915 snd_hda_codec_realtek snd_hda_codec_generic iwlmvm snd_hda_intel snd_hda_controller i2c_algo_bit drm_kms_helper snd_hda_codec drm iwlwifi snd_hwdep snd_pcm intel_gtt snd_timer thinkpad_acpi agpgart snd_hda_core
> [ 143.896584] CPU: 0 PID: 1102 Comm: X Tainted: G W 4.0.0-rc7-01086-g91d1586 #1
> [ 143.896619] Hardware name: LENOVO qqqqENX407/qqqqENX407, BIOS GLET77WW (2.31 ) 01/27/2015
> [ 143.896654] task: ffff88040652b1e0 ti: ffff880409a90000 task.ti: ffff880409a90000
> [ 143.896686] RIP: 0010:[<ffffffffa00eff84>] [<ffffffffa00eff84>] drm_atomic_add_affected_connectors+0x64/0xc0 [drm]
> [ 143.896738] RSP: 0018:ffff880409a93b18 EFLAGS: 00010283
> [ 143.896759] RAX: 0000000000000000 RBX: ffff8800c9cd3000 RCX: ffff88040af8ec00
> [ 143.896789] RDX: ffff88040a603e20 RSI: ffff880408d916a8 RDI: ffff88040af8eea8
> [ 143.896819] RBP: ffff8800c9c7ab28 R08: 0000000000015700 R09: ffff880409a93c30
> [ 143.896849] R10: ffff88040dc01500 R11: ffffffffa00ef362 R12: ffff88040c38d000
> [ 143.896878] R13: ffff8804098d7d80 R14: ffff880409a93c34 R15: ffff88040c38d000
> [ 143.896909] FS: 00007f13fb95f8c0(0000) GS:ffff88041e200000(0000) knlGS:0000000000000000
> [ 143.896943] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 143.896966] CR2: 0000000000000008 CR3: 000000040bbd7000 CR4: 00000000001406f0
> [ 143.896995] Stack:
> [ 143.897000] 0000000000000006 ffff8800c9c7a800 ffff880409a93c30 ffff8804098d7d80
> [ 143.897037] 0000000000000000 ffffffffa034c0ac 0000000000000000 ffff880409a93c2c
> [ 143.897074] 000000000000000c 0000000000000000 ffffffffa0171420 000000000000089c
> [ 143.897112] Call Trace:
> [ 143.897131] [<ffffffffa034c0ac>] ? intel_modeset_compute_config+0x3c/0x1090 [i915]
> [ 143.897166] [<ffffffff8158f7b5>] ? printk+0x48/0x4d
> [ 143.897196] [<ffffffffa0351b49>] ? intel_set_mode+0x39/0xa0 [i915]
> [ 143.897225] [<ffffffffa016bf05>] ? drm_atomic_helper_connector_duplicate_state+0x35/0x40 [drm_kms_helper]
> [ 143.897272] [<ffffffffa00ef362>] ? drm_atomic_state_clear+0xb2/0x180 [drm]
> [ 143.897311] [<ffffffffa0352c3d>] ? intel_crtc_set_config+0xa1d/0xfb0 [i915]
> [ 143.897343] [<ffffffff8112c21b>] ? ep_poll_callback+0xeb/0x120
> [ 143.897372] [<ffffffffa00eed99>] ? drm_modeset_lock_all_crtcs+0xa9/0xc0 [drm]
> [ 143.897409] [<ffffffffa00dffff>] ? drm_mode_set_config_internal+0x5f/0x100 [drm]
> [ 143.897447] [<ffffffffa00e47fa>] ? drm_mode_setcrtc+0x22a/0x5f0 [drm]
> [ 143.897479] [<ffffffffa00d65ca>] ? drm_ioctl+0x15a/0x580 [drm]
> [ 143.897505] [<ffffffff8106b8cf>] ? pick_next_task_fair+0x43f/0x4b0
> [ 143.897532] [<ffffffff81103488>] ? do_vfs_ioctl+0x2e8/0x4f0
> [ 143.897557] [<ffffffff8159288d>] ? __schedule+0x24d/0x7c0
> [ 143.897580] [<ffffffff811036c6>] ? SyS_ioctl+0x36/0x80
> [ 143.897602] [<ffffffff811055f2>] ? SyS_poll+0x52/0xf0
> [ 143.897625] [<ffffffff81595f36>] ? system_call_fastpath+0x16/0x1b
> [ 143.897650] Code: c5 28 03 00 00 48 8d 58 e8 48 39 c5 75 16 eb 47 0f 1f 80 00 00 00 00 48 8b 43 18 48 8d 58 e8 48 39 c5 74 33 48 8b 83 70 03 00 00 <4c> 39 60 08 75 e6 48 89 de 4c 89 ef e8 7b fe ff ff 48 3d 00 f0
> [ 143.897838] RIP [<ffffffffa00eff84>] drm_atomic_add_affected_connectors+0x64/0xc0 [drm]
> [ 143.897878] RSP <ffff880409a93b18>
> [ 143.897889] CR2: 0000000000000008
> [ 143.918495] ---[ end trace 17ff49bc79a1a763 ]---
>
>
> complete dmesg goes here: http://pastebin.com/2zgayY27
>
> Any Ideas?
>
> Kind regards
> nkalkhof
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the Intel-gfx
mailing list