Bug 94992

Summary: [BAT SKL] igt@kms_flip@basic-flip-vs-dpms: WARN(!lret) followed by vblank timeout
Product: DRI Reporter: Imre Deak <imre.deak>
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: major    
Priority: highest CC: guenther, intel-gfx-bugs
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: SKL i915 features: display/atomic

Description Imre Deak 2016-04-18 15:10:58 UTC
Excerpt from http://benchsrv.fi.intel.com//archive/results/CI_IGT_test/CI_DRM_1177/skl-i7k-2/html/skl-i7k-2@CI_DRM_1177@1/igt@kms_flip@basic-flip-vs-dpms.html:

"""
IGT-Version: 1.14-gc89e8db (x86_64) (Linux: 4.6.0-rc1-gfxbench+ x86_64)
Using monotonic timestamps
Beginning basic-flip-vs-dpms on pipe A, connector HDMI-A-1
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x48 148500

basic-flip-vs-dpms on pipe A, connector HDMI-A-1: PASSED

Beginning basic-flip-vs-dpms on pipe B, connector HDMI-A-1
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x48 148500

basic-flip-vs-dpms on pipe B, connector HDMI-A-1: PASSED

Beginning basic-flip-vs-dpms on pipe C, connector HDMI-A-1
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 0x5 0x48 148500

basic-flip-vs-dpms on pipe C, connector HDMI-A-1: PASSED

Subtest basic-flip-vs-dpms: SUCCESS (161.989s)
"""

[  515.621161] ------------[ cut here ]------------
[  515.621241] WARNING: CPU: 2 PID: 7115 at drivers/gpu/drm/i915/intel_display.c:13451 intel_atomic_commit+0xc5d/0xd30 [i915]
[  515.621246] WARN_ON(!lret)
[  515.621250] Modules linked in:
[  515.621254]  snd_hda_intel i915 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec snd_hwdep snd_hda_core mei_me snd_pcm mei i2c_hid e1000e ptp pps_core [last unloaded: i915]
[  515.621297] CPU: 2 PID: 7115 Comm: kms_flip Tainted: G     U  W       4.6.0-rc1-gfxbench+ #1
[  515.621301] Hardware name: System manufacturer System Product Name/Z170M-PLUS, BIOS 0701 01/13/2016
[  515.621305]  0000000000000000 ffff88022f873b68 ffffffff81404d25 ffff88022f873bb8
[  515.621315]  0000000000000000 ffff88022f873ba8 ffffffff81079b7c 0000348b2dd9b740
[  515.621323]  ffff88022f1d5698 0000000000000000 0000000000000004 0000000000000210
[  515.621331] Call Trace:
[  515.621350]  [<ffffffff81404d25>] dump_stack+0x67/0x92
[  515.621357]  [<ffffffff81079b7c>] __warn+0xcc/0xf0
[  515.621363]  [<ffffffff81079bea>] warn_slowpath_fmt+0x4a/0x50
[  515.621373]  [<ffffffff810c2ca9>] ? finish_wait+0x59/0x70
[  515.621433]  [<ffffffffa01ac51d>] intel_atomic_commit+0xc5d/0xd30 [i915]
[  515.621441]  [<ffffffff810c2e10>] ? wait_woken+0x90/0x90
[  515.621451]  [<ffffffff81537922>] drm_atomic_commit+0x32/0x50
[  515.621458]  [<ffffffff81512c99>] drm_atomic_helper_connector_dpms+0xe9/0x1a0
[  515.621464]  [<ffffffff8152c5b5>] drm_mode_obj_set_property_ioctl+0x235/0x240
[  515.621470]  [<ffffffff8152c5eb>] drm_mode_connector_property_set_ioctl+0x2b/0x30
[  515.621474]  [<ffffffff8151d47d>] drm_ioctl+0x13d/0x590
[  515.621480]  [<ffffffff8152c5c0>] ? drm_mode_obj_set_property_ioctl+0x240/0x240
[  515.621488]  [<ffffffff811da6a3>] ? __vfs_read+0x23/0xd0
[  515.621494]  [<ffffffff811ee10a>] do_vfs_ioctl+0x8a/0x670
[  515.621502]  [<ffffffff811f9f8a>] ? __fget_light+0x6a/0x90
[  515.621507]  [<ffffffff811ee72c>] SyS_ioctl+0x3c/0x70
[  515.621514]  [<ffffffff817d11e9>] entry_SYSCALL_64_fastpath+0x1c/0xac
[  515.621519] ---[ end trace 7722bec48596a915 ]---
[  575.692932] ------------[ cut here ]------------
[  575.692948] WARNING: CPU: 2 PID: 7115 at drivers/gpu/drm/drm_irq.c:1323 drm_wait_one_vblank+0x150/0x1a0
[  575.692953] vblank wait timed out on crtc 2
[  575.692956] Modules linked in: snd_hda_intel i915 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec snd_hwdep snd_hda_core mei_me snd_pcm mei i2c_hid e1000e ptp pps_core [last unloaded: i915]
[  575.693003] CPU: 2 PID: 7115 Comm: kms_flip Tainted: G     U  W       4.6.0-rc1-gfxbench+ #1
[  575.693008] Hardware name: System manufacturer System Product Name/Z170M-PLUS, BIOS 0701 01/13/2016
[  575.693012]  0000000000000000 ffff88022f873ab8 ffffffff81404d25 ffff88022f873b08
[  575.693021]  0000000000000000 ffff88022f873af8 ffffffff81079b7c 0000052b2dd9b740
[  575.693029]  ffff8800baea22a8 0000000000000002 000000000000139a ffff88022dd9b740
[  575.693037] Call Trace:
[  575.693047]  [<ffffffff81404d25>] dump_stack+0x67/0x92
[  575.693054]  [<ffffffff81079b7c>] __warn+0xcc/0xf0
[  575.693060]  [<ffffffff81079bea>] warn_slowpath_fmt+0x4a/0x50
[  575.693068]  [<ffffffff810c2ca9>] ? finish_wait+0x59/0x70
[  575.693074]  [<ffffffff8151f4e0>] drm_wait_one_vblank+0x150/0x1a0
[  575.693080]  [<ffffffff810c2e10>] ? wait_woken+0x90/0x90
[  575.693150]  [<ffffffffa01ab3ad>] intel_pre_plane_update+0x15d/0x180 [i915]
[  575.693210]  [<ffffffffa01abcb9>] intel_atomic_commit+0x3f9/0xd30 [i915]
[  575.693218]  [<ffffffff810c2e10>] ? wait_woken+0x90/0x90
[  575.693227]  [<ffffffff81537922>] drm_atomic_commit+0x32/0x50
[  575.693233]  [<ffffffff81512c99>] drm_atomic_helper_connector_dpms+0xe9/0x1a0
[  575.693239]  [<ffffffff8152c5b5>] drm_mode_obj_set_property_ioctl+0x235/0x240
[  575.693245]  [<ffffffff8152c5eb>] drm_mode_connector_property_set_ioctl+0x2b/0x30
[  575.693250]  [<ffffffff8151d47d>] drm_ioctl+0x13d/0x590
[  575.693255]  [<ffffffff8152c5c0>] ? drm_mode_obj_set_property_ioctl+0x240/0x240
[  575.693263]  [<ffffffff811da6a3>] ? __vfs_read+0x23/0xd0
[  575.693269]  [<ffffffff811ee10a>] do_vfs_ioctl+0x8a/0x670
[  575.693276]  [<ffffffff811f9f8a>] ? __fget_light+0x6a/0x90
[  575.693281]  [<ffffffff811ee72c>] SyS_ioctl+0x3c/0x70
[  575.693289]  [<ffffffff817d11e9>] entry_SYSCALL_64_fastpath+0x1c/0xac
[  575.693295] ---[ end trace 7722bec48596a916 ]---
Comment 1 Imre Deak 2016-08-30 11:36:22 UTC
The bug hasn't showed up in recent CI logs. There's been a few changes around the modeset code, so assuming this to be fixed now.
Comment 2 Jani Saarinen 2016-09-08 15:35:15 UTC
Imre, regression now fixed so lets follow this for a while still until close.

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.