Bug 97771
Summary: | intel_dp.c trace / laptop lockup | ||
---|---|---|---|
Product: | Drivers | Reporter: | vladi |
Component: | Video(DRI - Intel) | Assignee: | intel-gfx-bugs (intel-gfx-bugs) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | intel-gfx-bugs, ville.syrjala, yex.tian |
Priority: | P3 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.2-rc1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
vladi
2015-05-05 20:02:26 UTC
Ville, smells like something in either your or Sonika's link rate changes. Vladi, if you can do a git bisect, it would help to reach a swift resolution here. (In reply to Jani Nikula from comment #1) > Ville, smells like something in either your or Sonika's link rate changes. The warning smells like the DPCD is bogus. I guess the full DPCD dumper didn't materialize yet... Otherwise it seems like there's two other bugs being reported here (flicker and hard hang on reboot). Does the backtrace look like we could get there *without* doing a dpcd read? There's the /sys/kernel/debug/dri/0/<connector-name>/i915_dpcd file in at least nightly. I do not have i915_dpcd in that location. As said you need to run drm-intel-nightly to have that. You can get it from http://cgit.freedesktop.org/drm-intel new stuff, from kernel 4.2-rc1 [ 7342.930081] ------------[ cut here ]------------ [ 7342.930087] WARNING: CPU: 0 PID: 426 at drivers/gpu/drm/i915/intel_display.c:1362 hsw_disable_ips+0xe6/0x1f0() [ 7342.930089] plane A assertion failure (expected on, current off) [ 7342.930090] Modules linked in: sha256_generic hmac drbg ctr ccm usb_storage uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev arc4 nls_iso8859_1 nls_cp437 x86_pkg_temp_thermal coretemp vfat fat pcspkr iwlmvm mac80211 snd_hda_codec_generic psmouse iTCO_wdt iTCO_vendor_support iwlwifi cfg80211 snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd soundcore tcp_bic vboxnetadp(O) vboxnetflt(O) vboxdrv(O) autofs4 [ 7342.930111] CPU: 0 PID: 426 Comm: X Tainted: G W O 4.2.0-rc1+ #14 [ 7342.930112] Hardware name: LENOVO 20BSCTO1WW/20BSCTO1WW, BIOS N14ET30W (1.08 ) 06/05/2015 [ 7342.930114] 0000000000000000 0000000000000552 ffffffff816fab4d ffffffff81945bd0 [ 7342.930116] ffffffff8105246e ffffffff81948a58 ffff880200000030 ffff8800c7263b38 [ 7342.930118] ffff8800c7263ae8 ffff8802232f0000 0000000000000246 0000000000000246 [ 7342.930120] Call Trace: [ 7342.930124] [<ffffffff816fab4d>] ? dump_stack+0x40/0x50 [ 7342.930127] [<ffffffff8105246e>] ? warn_slowpath_fmt+0x9e/0x100 [ 7342.930128] [<ffffffff814b53d6>] ? hsw_disable_ips+0xe6/0x1f0 [ 7342.930130] [<ffffffff814b5a99>] ? intel_crtc_disable_planes+0x79/0x170 [ 7342.930132] [<ffffffff814b68da>] ? __intel_set_mode+0xbba/0xdc0 [ 7342.930135] [<ffffffff8140f43f>] ? drm_atomic_helper_check_planes+0x3f/0x1b0 [ 7342.930136] [<ffffffff814be688>] ? intel_crtc_set_config+0x378/0x8a0 [ 7342.930139] [<ffffffff81424eb2>] ? drm_mode_set_config_internal+0x62/0x220 [ 7342.930141] [<ffffffff8142adf4>] ? drm_mode_setcrtc+0x244/0x6f0 [ 7342.930143] [<ffffffff8141868a>] ? drm_ioctl+0x15a/0x520 [ 7342.930145] [<ffffffff81184d9e>] ? vfs_read+0xae/0x270 [ 7342.930147] [<ffffffff8108868b>] ? vtime_user_enter+0xfb/0x1a0 [ 7342.930149] [<ffffffff811a2fde>] ? SyS_ioctl+0x2fe/0x480 [ 7342.930152] [<ffffffff81011f12>] ? syscall_trace_enter_phase1+0xf2/0x1c0 [ 7342.930153] [<ffffffff8100365b>] ? sys_rt_sigreturn+0x13b/0x150 [ 7342.930156] [<ffffffff81066949>] ? SyS_rt_sigprocmask+0xc9/0x140 [ 7342.930158] [<ffffffff81701517>] ? entry_SYSCALL_64_fastpath+0x12/0x6a [ 7342.930159] ---[ end trace d2192c7398400088 ]--- [ 7342.932024] ------------[ cut here ]------------ [ 7342.932028] WARNING: CPU: 0 PID: 426 at drivers/gpu/drm/drm_irq.c:1162 drm_wait_one_vblank+0x179/0x1c0() [ 7342.932029] vblank not available on crtc 0, ret=-22 [ 7342.932030] Modules linked in: sha256_generic hmac drbg ctr ccm usb_storage uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev arc4 nls_iso8859_1 nls_cp437 x86_pkg_temp_thermal coretemp vfat fat pcspkr iwlmvm mac80211 snd_hda_codec_generic psmouse iTCO_wdt iTCO_vendor_support iwlwifi cfg80211 snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd soundcore tcp_bic vboxnetadp(O) vboxnetflt(O) vboxdrv(O) autofs4 [ 7342.932046] CPU: 0 PID: 426 Comm: X Tainted: G W O 4.2.0-rc1+ #14 [ 7342.932047] Hardware name: LENOVO 20BSCTO1WW/20BSCTO1WW, BIOS N14ET30W (1.08 ) 06/05/2015 [ 7342.932048] 0000000000000000 000000000000048a ffffffff816fab4d ffffffff8196a99d [ 7342.932050] ffffffff8105246e ffffffff8193d0f8 0000000000000028 ffff8800c7263b08 [ 7342.932052] ffff8800c7263ab8 0000000000000000 ffffffff8107cddd ffff880224aef080 [ 7342.932054] Call Trace: [ 7342.932056] [<ffffffff816fab4d>] ? dump_stack+0x40/0x50 [ 7342.932059] [<ffffffff8105246e>] ? warn_slowpath_fmt+0x9e/0x100 [ 7342.932061] [<ffffffff8107cddd>] ? ttwu_do_wakeup+0x14d/0x180 [ 7342.932062] [<ffffffff8141a119>] ? drm_wait_one_vblank+0x179/0x1c0 [ 7342.932064] [<ffffffff814b5427>] ? hsw_disable_ips+0x137/0x1f0 [ 7342.932066] [<ffffffff814b5a99>] ? intel_crtc_disable_planes+0x79/0x170 [ 7342.932067] [<ffffffff814b68da>] ? __intel_set_mode+0xbba/0xdc0 [ 7342.932069] [<ffffffff8140f43f>] ? drm_atomic_helper_check_planes+0x3f/0x1b0 [ 7342.932071] [<ffffffff814be688>] ? intel_crtc_set_config+0x378/0x8a0 [ 7342.932073] [<ffffffff81424eb2>] ? drm_mode_set_config_internal+0x62/0x220 [ 7342.932075] [<ffffffff8142adf4>] ? drm_mode_setcrtc+0x244/0x6f0 [ 7342.932077] [<ffffffff8141868a>] ? drm_ioctl+0x15a/0x520 [ 7342.932078] [<ffffffff81184d9e>] ? vfs_read+0xae/0x270 [ 7342.932080] [<ffffffff8108868b>] ? vtime_user_enter+0xfb/0x1a0 [ 7342.932082] [<ffffffff811a2fde>] ? SyS_ioctl+0x2fe/0x480 [ 7342.932084] [<ffffffff81011f12>] ? syscall_trace_enter_phase1+0xf2/0x1c0 [ 7342.932086] [<ffffffff8100365b>] ? sys_rt_sigreturn+0x13b/0x150 [ 7342.932088] [<ffffffff81066949>] ? SyS_rt_sigprocmask+0xc9/0x140 [ 7342.932090] [<ffffffff81701517>] ? entry_SYSCALL_64_fastpath+0x12/0x6a [ 7342.932091] ---[ end trace d2192c7398400089 ]--- The flicker is gone with the latest 4.2-rc1, only seeing the messages above now. from the drm-next-fixes 4.2-rc1+ grendel vladi # cat /sys/kernel/debug/dri/0/eDP-1/i915_dpcd 0000: 12 0a c4 41 00 00 01 c0 02 00 00 00 1f 0b 00 0070: 01 01 0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0100: 0a 84 00 00 00 00 00 00 01 08 00 0200: 01 00 77 77 01 01 00 00 0600: 01 0700: 02 0701: b7 f6 00 00 0720: 00 04 02 00 0a 04 0a 00 1b 00 00 01 00 ff ff 03 0732: 04 10 This bug is also exists on BDW-U (Lenovo L450 i3-5005U) with 4.2_rc2 kernel. dmesg info: ------------------------ [ 6.175269] ------------[ cut here ]------------ [ 6.175284] WARNING: CPU: 0 PID: 149 at drivers/gpu/drm/drm_irq.c:1162 drm_wait_one_vblank+0x173/0x180 [drm]() [ 6.175285] vblank not available on crtc 0, ret=-22 [ 6.175312] Modules linked in: snd_hda_intel cfg80211 snd_hda_codec kvm_intel(-) snd_hda_core kvm snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq psmouse crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_seq_device snd_timer cryptd xhci_pci rtsx_pci_ms memstick serio_raw mei_me ehci_pci i915 drm_kms_helper drm xhci_hcd ehci_hcd snd mei i2c_algo_bit wmi mac_hid soundcore video lpc_ich parport_pc ppdev lp parport rtsx_pci_sdmmc ahci e1000e libahci rtsx_pci ptp pps_core [ 6.175315] CPU: 0 PID: 149 Comm: kworker/u16:4 Tainted: G W 4.2.0-rc2-mainline-4.2-rc1 #2 [ 6.175316] Hardware name: LENOVO 20DSA060CD/Intel powered classmate PC, BIOS JDET50WW (1.12 ) 03/25/2015 [ 6.175322] Workqueue: events_unbound async_run_entry_fn [ 6.175325] ffffffffa01aed32 ffff8800360a3738 ffffffff81751af6 0000000000000001 [ 6.175327] ffff8800360a3788 ffff8800360a3778 ffffffff810736cc ffff8800360a37a8 [ 6.175329] ffff8800c5381000 0000000000000000 ffff8800c5381000 0000000000000000 [ 6.175330] Call Trace: [ 6.175335] [<ffffffff81751af6>] dump_stack+0x45/0x57 [ 6.175338] [<ffffffff810736cc>] warn_slowpath_common+0x8c/0xd0 [ 6.175340] [<ffffffff81073756>] warn_slowpath_fmt+0x46/0x50 [ 6.175351] [<ffffffffa0182ab3>] drm_wait_one_vblank+0x173/0x180 [drm] [ 6.175381] [<ffffffffa0203a41>] ? intel_runtime_pm_get+0x41/0x80 [i915] [ 6.175416] [<ffffffffa025e629>] intel_finish_crtc_commit+0x169/0x170 [i915] [ 6.175425] [<ffffffffa01ddf4e>] drm_atomic_helper_commit_planes+0x11e/0x200 [drm_kms_helper] [ 6.175457] [<ffffffffa025f88a>] __intel_set_mode+0x90a/0xb70 [i915] [ 6.175485] [<ffffffffa0260da2>] ? intel_modeset_compute_config+0x362/0xb60 [i915] [ 6.175512] [<ffffffffa0266739>] intel_crtc_set_config+0x379/0x630 [i915] [ 6.175527] [<ffffffffa018b308>] drm_mode_set_config_internal+0x68/0x100 [drm] [ 6.175534] [<ffffffffa01dec33>] restore_fbdev_mode+0xc3/0xf0 [drm_kms_helper] [ 6.175540] [<ffffffffa01e0a09>] drm_fb_helper_restore_fbdev_mode_unlocked+0x29/0x70 [drm_kms_helper] [ 6.175545] [<ffffffffa01e0a72>] drm_fb_helper_set_par+0x22/0x40 [drm_kms_helper] [ 6.175575] [<ffffffffa0274bba>] intel_fbdev_set_par+0x1a/0x60 [i915] [ 6.175579] [<ffffffff813f71e6>] fbcon_init+0x4c6/0x550 [ 6.175582] [<ffffffff81487ff0>] visual_init+0xc0/0x120 [ 6.175584] [<ffffffff8148a5b8>] do_bind_con_driver+0x148/0x310 [ 6.175587] [<ffffffff8148aaa3>] do_take_over_console+0x143/0x1b0 [ 6.175589] [<ffffffff813f2639>] do_fbcon_takeover+0x59/0xb0 [ 6.175592] [<ffffffff813f7bf5>] fbcon_event_notify+0x615/0x760 [ 6.175594] [<ffffffff810920fd>] notifier_call_chain+0x4d/0x80 [ 6.175596] [<ffffffff8109242d>] __blocking_notifier_call_chain+0x4d/0x70 [ 6.175599] [<ffffffff81092466>] blocking_notifier_call_chain+0x16/0x20 [ 6.175601] [<ffffffff813fd6cb>] fb_notifier_call_chain+0x1b/0x20 [ 6.175604] [<ffffffff813ff5c0>] register_framebuffer+0x1e0/0x300 [ 6.175611] [<ffffffffa01e0ce7>] drm_fb_helper_initial_config+0x257/0x3c0 [drm_kms_helper] [ 6.175640] [<ffffffffa0275d2b>] intel_fbdev_initial_config+0x1b/0x20 [i915] [ 6.175643] [<ffffffff81093c6c>] async_run_entry_fn+0x4c/0x160 [ 6.175647] [<ffffffff8108b73e>] process_one_work+0x14e/0x3d0 [ 6.175649] [<ffffffff8108bdea>] worker_thread+0x11a/0x470 [ 6.175652] [<ffffffff8108bcd0>] ? rescuer_thread+0x310/0x310 [ 6.175655] [<ffffffff810912a2>] kthread+0xd2/0xf0 [ 6.175658] [<ffffffff810911d0>] ? kthread_create_on_node+0x180/0x180 [ 6.175661] [<ffffffff8175935f>] ret_from_fork+0x3f/0x70 [ 6.175664] [<ffffffff810911d0>] ? kthread_create_on_node+0x180/0x180 [ 6.175666] ---[ end trace 4c30203e764495c2 ]--- Correct: On mainline kernel 4.2_rc2. (In reply to tianye from comment #10) > This bug is also exists on BDW-U (Lenovo L450 i3-5005U) with 4.2_rc2 kernel. > [ 6.175284] WARNING: CPU: 0 PID: 149 at drivers/gpu/drm/drm_irq.c:1162 > drm_wait_one_vblank+0x173/0x180 [drm]() > [ 6.175285] vblank not available on crtc 0, ret=-22 That's not the same bug, that's https://bugs.freedesktop.org/show_bug.cgi?id=89108 and it's fixed upstream. Vladi, please try latest v4.3-rc kernels, and if the problem persists, please add drm.debug=14 module parameter, and attach dmesg all the way from boot. @Jani Nikula I have not had this issue yet in 4.2.x. Maby the fix go back ported. I will try 4.3 as I seem to have a back light issue now once in a while. Thanks! (In reply to vladi from comment #14) > @Jani Nikula I have not had this issue yet in 4.2.x. Maby the fix go back > ported. I will try 4.3 as I seem to have a back light issue now once in a > while. Thanks! Thanks for following up. Closing as fixed. If you have any other problems, please file new bugs at our freedesktop.org bugzilla: https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel |