Bug 97047

Summary: i915/skl: Kernel OOPS when plugging in a TV that's not turned on
Product: DRI Reporter: Armin K <krejzi>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: bugs, intel-gfx-bugs
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: SKL i915 features: power/runtime PM

Description Armin K 2016-07-22 14:00:35 UTC
When I plug in a TV that's not yet turned on in my HDMI port, I see the following in my dmesg

[  186.626562] ------------[ cut here ]------------
[  186.626581] WARNING: CPU: 0 PID: 583 at drivers/gpu/drm/i915/intel_pm.c:3647 skl_update_other_pipe_wm+0x12e/0x140
[  186.626582] WARN_ON(!wm_changed)
[  186.626583] Modules linked in:

[  186.626585] CPU: 0 PID: 583 Comm: Xorg Not tainted 4.7.0-rc7-krejzi #1
[  186.626586] Hardware name: HP HP ProBook 470 G3/8102, BIOS N78 Ver. 01.11 05/09/2016
[  186.626587]  0000000000000286 0000000058c94b0d ffffffff8131b2ce ffff880221c739d0
[  186.626589]  0000000000000000 ffffffff810bcdd4 ffff880236ae5000 ffff880221c73a28
[  186.626590]  ffff8800aed0a280 ffff8800aec76000 ffff8800aec763d0 ffff880221c73a44
[  186.626592] Call Trace:
[  186.626595]  [<ffffffff8131b2ce>] ? dump_stack+0x46/0x68
[  186.626597]  [<ffffffff810bcdd4>] ? __warn+0xb4/0xd0
[  186.626599]  [<ffffffff810bce4a>] ? warn_slowpath_fmt+0x5a/0x80
[  186.626601]  [<ffffffff81452f5e>] ? skl_update_other_pipe_wm+0x12e/0x140
[  186.626602]  [<ffffffff814530cf>] ? skl_update_wm+0x15f/0x5e0
[  186.626604]  [<ffffffff818fd22f>] ? _raw_spin_unlock_irqrestore+0xf/0x30
[  186.626606]  [<ffffffff814d7bec>] ? intel_ddi_enable_transcoder_func+0x17c/0x260
[  186.626608]  [<ffffffff814ba5d2>] ? haswell_crtc_enable+0x742/0x8c0
[  186.626610]  [<ffffffff814b6080>] ? intel_atomic_commit+0x4d0/0x12f0
[  186.626611]  [<ffffffff8143ce10>] ? drm_atomic_check_only+0x190/0x600
[  186.626612]  [<ffffffff8143c9ae>] ? drm_atomic_set_crtc_for_connector+0x8e/0xf0
[  186.626614]  [<ffffffff8141ab94>] ? drm_atomic_helper_set_config+0x74/0xb0
[  186.626616]  [<ffffffff8142d10c>] ? drm_mode_set_config_internal+0x5c/0x110
[  186.626617]  [<ffffffff814316d6>] ? drm_mode_setcrtc+0x446/0x550
[  186.626619]  [<ffffffff81423d3c>] ? drm_ioctl+0x12c/0x4b0
[  186.626620]  [<ffffffff81431290>] ? drm_mode_setplane+0x1c0/0x1c0
[  186.626621]  [<ffffffff811da0ba>] ? do_vfs_ioctl+0x9a/0x5d0
[  186.626623]  [<ffffffff810fa58c>] ? update_fast_ctr+0x3c/0x60
[  186.626625]  [<ffffffff810c70d1>] ? recalc_sigpending+0x11/0x40
[  186.626626]  [<ffffffff810c7ce8>] ? __set_task_blocked+0x38/0x90
[  186.626628]  [<ffffffff810dc421>] ? preempt_count_add+0x51/0xa0
[  186.626629]  [<ffffffff811da65f>] ? SyS_ioctl+0x6f/0x80
[  186.626631]  [<ffffffff810ca556>] ? SyS_rt_sigprocmask+0x86/0xc0
[  186.626633]  [<ffffffff818fd65f>] ? entry_SYSCALL_64_fastpath+0x17/0x93
[  186.626634] ---[ end trace 92afe052b626d937 ]---
[  198.726744] ------------[ cut here ]------------
[  198.726750] WARNING: CPU: 2 PID: 583 at drivers/gpu/drm/i915/intel_pm.c:3647 skl_update_other_pipe_wm+0x12e/0x140
[  198.726750] WARN_ON(!wm_changed)
[  198.726751] Modules linked in:

[  198.726754] CPU: 2 PID: 583 Comm: Xorg Tainted: G        W       4.7.0-rc7-krejzi #1
[  198.726755] Hardware name: HP HP ProBook 470 G3/8102, BIOS N78 Ver. 01.11 05/09/2016
[  198.726756]  0000000000000286 0000000058c94b0d ffffffff8131b2ce ffff880221c739d0
[  198.726758]  0000000000000000 ffffffff810bcdd4 ffff880236ae6000 ffff880221c73a28
[  198.726759]  ffff8800aed0a280 ffff8800aec76000 ffff8800aec763d0 ffff880221c73a44
[  198.726761] Call Trace:
[  198.726764]  [<ffffffff8131b2ce>] ? dump_stack+0x46/0x68
[  198.726766]  [<ffffffff810bcdd4>] ? __warn+0xb4/0xd0
[  198.726767]  [<ffffffff810bce4a>] ? warn_slowpath_fmt+0x5a/0x80
[  198.726769]  [<ffffffff81452f5e>] ? skl_update_other_pipe_wm+0x12e/0x140
[  198.726771]  [<ffffffff814530cf>] ? skl_update_wm+0x15f/0x5e0
[  198.726773]  [<ffffffff818fd22f>] ? _raw_spin_unlock_irqrestore+0xf/0x30
[  198.726774]  [<ffffffff814d7bec>] ? intel_ddi_enable_transcoder_func+0x17c/0x260
[  198.726776]  [<ffffffff814ba5d2>] ? haswell_crtc_enable+0x742/0x8c0
[  198.726778]  [<ffffffff814b6080>] ? intel_atomic_commit+0x4d0/0x12f0
[  198.726779]  [<ffffffff8143ce10>] ? drm_atomic_check_only+0x190/0x600
[  198.726780]  [<ffffffff8143c9ae>] ? drm_atomic_set_crtc_for_connector+0x8e/0xf0
[  198.726782]  [<ffffffff8141ab94>] ? drm_atomic_helper_set_config+0x74/0xb0
[  198.726784]  [<ffffffff8142d10c>] ? drm_mode_set_config_internal+0x5c/0x110
[  198.726786]  [<ffffffff814316d6>] ? drm_mode_setcrtc+0x446/0x550
[  198.726787]  [<ffffffff81423d3c>] ? drm_ioctl+0x12c/0x4b0
[  198.726789]  [<ffffffff81431290>] ? drm_mode_setplane+0x1c0/0x1c0
[  198.726791]  [<ffffffff811da0ba>] ? do_vfs_ioctl+0x9a/0x5d0
[  198.726793]  [<ffffffff810fa58c>] ? update_fast_ctr+0x3c/0x60
[  198.726795]  [<ffffffff810c70d1>] ? recalc_sigpending+0x11/0x40
[  198.726797]  [<ffffffff810c7ce8>] ? __set_task_blocked+0x38/0x90
[  198.726800]  [<ffffffff810dc421>] ? preempt_count_add+0x51/0xa0
[  198.726801]  [<ffffffff811da65f>] ? SyS_ioctl+0x6f/0x80
[  198.726803]  [<ffffffff810ca556>] ? SyS_rt_sigprocmask+0x86/0xc0
[  198.726805]  [<ffffffff818fd65f>] ? entry_SYSCALL_64_fastpath+0x17/0x93
[  198.726807] ---[ end trace 92afe052b626d938 ]---

Not sure where the second oops comes from, but internal panel flickers when I plug in the TV, then when turn on the TV (but it hasn't finished initializing yet), and flickers again right before the picture is displayed on the TV, after the TV has finished "booting up" (usually takes 3-4 seconds after pressing the power button).
Comment 1 Armin K 2016-08-17 11:12:06 UTC
Problem gone in 4.8-rc2

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.