Bug 82490 - [BYT/BDW/BSW]WARNING:at drivers/gpu/drm/drm_irq.c:1058 drm_wait_one_vblank+0x32/0x157 after boot
Summary: [BYT/BDW/BSW]WARNING:at drivers/gpu/drm/drm_irq.c:1058 drm_wait_one_vblank+0x...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Ville Syrjala
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 05:10 UTC by lu hua
Modified: 2016-09-28 13:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (85.65 KB, text/plain)
2014-08-12 05:10 UTC, lu hua
no flags Details

Description lu hua 2014-08-12 05:10:08 UTC
Created attachment 104464 [details]
dmesg

==System Environment==
--------------------------
Regression: No. 
It's only happens on -nightly kernel

Non-working platforms: BYT/BSW

==kernel==
--------------------------
drm-intel-nightly/cf1dde8b87834496aabd0a534b1c0695a3572e8d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Aug 11 23:30:48 2014 +0200

    drm-intel-nightly: 2014y-08m-11d-23h-30m-32s integration manifest
drm-intel-next-queued/14bf993e83e1d6924f4bf4506120a15c4b255e58
Author: Oscar Mateo <oscar.mateo@intel.com>
Date:   Thu Jul 24 17:04:34 2014 +0100

    drm/i915/bdw: Always use MMIO flips with Execlists
drm-intel-fixes/be71eabebaf9f142612d34d42292b454e984dcb5
commit be71eabebaf9f142612d34d42292b454e984dcb5
Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
Date:   Mon Aug 4 11:15:19 2014 -0700

    Revert "drm/i915: Enable semaphores on BDW"

    This reverts commit 521e62e49a42661a4ee0102644517dbe2f100a23.

==Bug detailed description==
-----------------------------
Clean boot system, WARNING appears in dmesg, it happens on nightly kernel.
on -queued kernel, it has warning Bug 81697 and Bug 81202

dmesg:
[    2.756314] WARNING: CPU: 2 PID: 1239 at drivers/gpu/drm/drm_irq.c:1058 drm_wait_one_vblank+0x32/0x157 [drm]()
[    2.756320] Modules linked in: i915(+) button video drm_kms_helper drm
[    2.756325] CPU: 2 PID: 1239 Comm: udevd Not tainted 3.16.0_drm-intel-nightly_cf1dde_20140812+ #1336
[    2.756331]  0000000000000000 0000000000000009 ffffffff817809a2 0000000000000000
[    2.756334]  ffffffff8103987c ffff880002d60000 ffffffffa000585f ffffffffa0111140
[    2.756338]  ffff880077a0c800 ffff880002d60000 0000000000000001 ffff880077a0c800
[    2.756339] Call Trace:
[    2.756348]  [<ffffffff817809a2>] ? dump_stack+0x41/0x51
[    2.756355]  [<ffffffff8103987c>] ? warn_slowpath_common+0x78/0x90
[    2.756366]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
[    2.756377]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
[    2.756382]  [<ffffffff81785066>] ? mutex_lock+0x9/0x25
[    2.756438]  [<ffffffffa0079d26>] ? intel_display_power_put+0xec/0xfc [i915]
[    2.756502]  [<ffffffffa00bd292>] ? i9xx_crtc_disable+0x8c/0x3c3 [i915]
[    2.756563]  [<ffffffffa00b8cac>] ? __intel_set_mode+0xd19/0x121d [i915]
[    2.756567]  [<ffffffff8177d981>] ? printk+0x4f/0x54
[    2.756629]  [<ffffffffa00beffa>] ? intel_set_mode+0xd/0x27 [i915]
[    2.756692]  [<ffffffffa00bfc29>] ? intel_crtc_set_config+0x757/0xa99 [i915]
[    2.756706]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
[    2.756713]  [<ffffffffa0051ab1>] ? restore_fbdev_mode+0xa9/0xc2 [drm_kms_helper]
[    2.756719]  [<ffffffffa0051ae7>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
[    2.756725]  [<ffffffff813b88f8>] ? con_set_default_unimap+0x136/0x14e
[    2.756731]  [<ffffffffa0052e21>] ? drm_fb_helper_set_par+0x3a/0x59 [drm_kms_helper]
[    2.756792]  [<ffffffffa00c8e60>] ? intel_fbdev_set_par+0x11/0x55 [i915]
[    2.756797]  [<ffffffff813657d9>] ? fbcon_init+0x2ff/0x408
[    2.756802]  [<ffffffff813b9391>] ? visual_init+0xaf/0x102
[    2.756806]  [<ffffffff813bab2e>] ? do_bind_con_driver+0x1a1/0x2ca
[    2.756811]  [<ffffffff813bad89>] ? do_take_over_console+0x132/0x162
[    2.756814]  [<ffffffff81364ec6>] ? do_fbcon_takeover+0x53/0x96
[    2.756819]  [<ffffffff81055765>] ? notifier_call_chain+0x2e/0x59
[    2.756823]  [<ffffffff810558a4>] ? __blocking_notifier_call_chain+0x43/0x5d
[    2.756828]  [<ffffffff8136ea90>] ? register_framebuffer+0x23f/0x29d
[    2.756835]  [<ffffffffa00524e0>] ? drm_fb_helper_initial_config+0x249/0x2eb [drm_kms_helper]
[    2.756902]  [<ffffffffa00e7aac>] ? i915_driver_load+0xcc0/0xef1 [i915]
[    2.756909]  [<ffffffff8132a0b6>] ? idr_replace+0x2d/0x93
[    2.756921]  [<ffffffffa00075b1>] ? drm_dev_register+0x74/0xe6 [drm]
[    2.756933]  [<ffffffffa0009ab6>] ? drm_get_pci_dev+0xf4/0x1af [drm]
[    2.756938]  [<ffffffff8135145a>] ? local_pci_probe+0x36/0x7c
[    2.756941]  [<ffffffff8132a929>] ? ida_get_new_above+0x171/0x18b
[    2.756945]  [<ffffffff813516fe>] ? pci_device_probe+0xcc/0xf0
[    2.756951]  [<ffffffff813d8c4a>] ? driver_probe_device+0x9d/0x1d5
[    2.756955]  [<ffffffff813d8d82>] ? driver_probe_device+0x1d5/0x1d5
[    2.756959]  [<ffffffff813d8dd5>] ? __driver_attach+0x53/0x73
[    2.756963]  [<ffffffff813d7542>] ? bus_for_each_dev+0x4e/0x7f
[    2.756967]  [<ffffffff813d84f8>] ? bus_add_driver+0xe7/0x1cc
[    2.756971]  [<ffffffff813d941e>] ? driver_register+0x82/0xb5
[    2.756974]  [<ffffffffa0129000>] ? 0xffffffffa0128fff
[    2.756979]  [<ffffffff81000301>] ? do_one_initcall+0xe3/0x176
[    2.756984]  [<ffffffff810f604e>] ? __vunmap+0x8c/0xc4
[    2.756989]  [<ffffffff8108c105>] ? load_module+0x1821/0x1b04
[    2.756994]  [<ffffffff81089d25>] ? module_unload_free+0xca/0xca
[    2.756999]  [<ffffffff8108c478>] ? SyS_init_module+0x90/0x9b
[    2.757003]  [<ffffffff817864d2>] ? system_call_fastpath+0x16/0x1b
[    2.757005] ---[ end trace bdf4b99dbf74b40b ]---

==Reproduce steps==
---------------------------- 
1. clean boot system
Comment 1 Guo Jinxian 2014-08-14 05:50:54 UTC
This bug is able to reproduce while running test igt/kms_cursor_crc/cursor-size-change on latest -nightly(da31e7c60be217316278a055dd3f91c33913270f).


root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_cursor_crc --run-subtest cursor-size-change
IGT-Version: 1.7-geda904c (x86_64) (Linux: 3.16.0_drm-intel-nightly_da31e7_20140814+ x86_64)
Beginning cursor-size-change on pipe A, connector eDP-1

cursor-size-change on pipe A, connector eDP-1: PASSED

Beginning cursor-size-change on pipe B, connector eDP-1

cursor-size-change on pipe B, connector eDP-1: PASSED

Subtest cursor-size-change: SUCCESS
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  131.634688] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/drm_irq.c:1058 drm_wait_one_vblank+0x32/0x157 [dr ]()
<4>[  131.634692] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  131.634727] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  131.634777]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
<4>[  131.634789]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
<4>[  131.634937]  [<ffffffffa00178e3>] ? drm_modeset_lock+0x52/0xb3 [drm]
<4>[  131.634951]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  131.634964]  [<ffffffffa000c37b>] ? drm_framebuffer_remove+0x72/0xf9 [drm]
<4>[  131.634977]  [<ffffffffa000fecd>] ? drm_mode_rmfb+0xc4/0xed [drm]
<4>[  131.634989]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  131.635009]  [<ffffffffa000fe09>] ? drm_mode_addfb2+0x2d/0x2d [drm]
<3>[  135.235216] [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
<4>[  135.537706] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  135.537719] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.537764] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.538046]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.538060]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.538072]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.538092]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.538104]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<4>[  135.637799] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  135.637814] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.637859] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.638142]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.638155]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.638168]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.638188]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.638200]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<4>[  135.738361] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  135.738364] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.738398] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.738649]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.738662]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.738674]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.738693]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.738705]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<4>[  135.838905] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  135.838908] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.838942] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.839239]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.839253]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.839264]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.839284]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.839295]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<4>[  135.954010] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_dp.c:3263 intel_dp_complete_link_train+0x100/0x27f [i915]()
<4>[  135.954013] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.954066] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.954343]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.954356]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.954368]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.954387]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.954399]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<3>[  135.968852] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[  135.969330] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_display.c:10598 intel_modeset_check_state+0x320/0x61d [i915]()
<4>[  135.969336] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.969370] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.969524]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.969537]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.969549]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.969568]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.969580]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<3>[  135.971067] [drm:intel_pipe_config_compare] *ERROR* mismatch in has_dp_encoder (expected 1, found 0)
<4>[  135.971099] WARNING: CPU: 0 PID: 4493 at drivers/gpu/drm/i915/intel_display.c:10668 check_crtc_state+0xa32/0xa6a [i915]()
<4>[  135.971104] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  135.971137] CPU: 0 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  135.971316]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  135.971329]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  135.971340]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  135.971359]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
<4>[  135.971371]  [<ffffffffa0003da3>] ? drm_gem_vm_close+0x2a/0x4b [drm]
<4>[  139.242891] WARNING: CPU: 1 PID: 4493 at drivers/gpu/drm/drm_irq.c:1058 drm_wait_one_vblank+0x32/0x157 [dr ]()
<4>[  139.242895] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic iTCO_wdt iTCO_vendor_support r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep i2c_i801 snd_pcm snd_timer pcspkr snd soundcore lpc_ich mfd_core iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm
<4>[  139.242931] CPU: 1 PID: 4493 Comm: kms_cursor_crc Tainted: G        W     3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
<4>[  139.242980]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
<4>[  139.242992]  [<ffffffffa000585f>] ? drm_wait_one_vblank+0x32/0x157 [drm]
<4>[  139.243140]  [<ffffffffa00178e3>] ? drm_modeset_lock+0x52/0xb3 [drm]
<4>[  139.243154]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  139.243167]  [<ffffffffa000c37b>] ? drm_framebuffer_remove+0x72/0xf9 [drm]
<4>[  139.243180]  [<ffffffffa000fecd>] ? drm_mode_rmfb+0xc4/0xed [drm]
<4>[  139.243192]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  139.243212]  [<ffffffffa000fe09>] ? drm_mode_addfb2+0x2d/0x2d [drm]
Comment 2 lu hua 2014-08-15 01:43:40 UTC
Run kms_flip case on BDW, it also reports this warning.
output:
IGT-Version: 1.7-g5c7bcb1 (x86_64) (Linux: 3.16.0_drm-intel-nightly_da31e7_20140814+ x86_64)
Using monotonic timestamps
Beginning bcs-flip-vs-dpms on crtc 7, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
....
bcs-flip-vs-dpms on crtc 7, connector 19: PASSED

Beginning bcs-flip-vs-dpms on crtc 12, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
....
bcs-flip-vs-dpms on crtc 12, connector 19: PASSED

Beginning bcs-flip-vs-dpms on crtc 16, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
....
bcs-flip-vs-dpms on crtc 16, connector 19: PASSED

Subtest bcs-flip-vs-dpms: SUCCESS

dmesg: 
[  113.195906] WARNING: CPU: 0 PID: 4388 at drivers/gpu/drm/drm_irq.c:1067 drm_wait_one_vblank+0xf6/0x157 [drm]()
[  113.195907] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support ppdev pcspkr i2c_i801 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer lpc_ich mfd_core snd soundcore battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm
[  113.195923] CPU: 0 PID: 4388 Comm: kms_flip Not tainted 3.16.0_drm-intel-nightly_da31e7_20140814+ #1400
[  113.195925]  0000000000000000 0000000000000009 ffffffff817827d2 0000000000000000
[  113.195927]  ffffffff8103987c 0000000000000246 ffffffffa0005923 0000000000000206
[  113.195930]  ffff880148c91000 0000000000000000 0000000000000001 0000000000000001
[  113.195932] Call Trace:
[  113.195938]  [<ffffffff817827d2>] ? dump_stack+0x41/0x51
[  113.195942]  [<ffffffff8103987c>] ? warn_slowpath_common+0x78/0x90
[  113.195948]  [<ffffffffa0005923>] ? drm_wait_one_vblank+0xf6/0x157 [drm]
[  113.195953]  [<ffffffffa0005923>] ? drm_wait_one_vblank+0xf6/0x157 [drm]
[  113.195957]  [<ffffffff810687c7>] ? __wake_up_sync+0x7/0x7
[  113.195971]  [<ffffffffa00bae75>] ? intel_crtc_enable_planes+0x34/0xd1 [i915]
[  113.195983]  [<ffffffffa00b9011>] ? __intel_set_mode+0x1115/0x121d [i915]
[  113.195986]  [<ffffffff8177f7b1>] ? printk+0x4f/0x54
[  113.195997]  [<ffffffffa00befb9>] ? intel_set_mode+0xd/0x27 [i915]
[  113.196007]  [<ffffffffa00bfbcc>] ? intel_crtc_set_config+0x757/0xa99 [i915]
[  113.196015]  [<ffffffffa000c18b>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
[  113.196023]  [<ffffffffa000fba6>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
[  113.196029]  [<ffffffffa0004908>] ? drm_ioctl+0x279/0x3bc [drm]
[  113.196032]  [<ffffffff81060314>] ? set_next_entity+0x14/0x37
[  113.196038]  [<ffffffffa000f7c0>] ? drm_mode_setplane+0x16d/0x16d [drm]
[  113.196042]  [<ffffffff81119d57>] ? do_vfs_ioctl+0x3ec/0x435
[  113.196045]  [<ffffffff8110bfd8>] ? vfs_write+0x127/0x183
[  113.196048]  [<ffffffff81119de9>] ? SyS_ioctl+0x49/0x78
[  113.196051]  [<ffffffff81788312>] ? system_call_fastpath+0x16/0x1b
[  113.196053] ---[ end trace 057594c1ee8b3796 ]---
Comment 3 Guo Jinxian 2014-09-18 05:47:41 UTC
This failure is able to reproduce on latest nightly(3e5e5913a80f593aa8f67784220eac2658034c6c) on BDW while running tests below:

igt/kms_flip/bo-too-big
igt/kms_flip/bo-too-big-interruptible
igt/kms_flip/dpms-vs-vblank-race
igt/kms_flip/dpms-vs-vblank-race-interruptible
igt/kms_flip/flip-vs-dpms-off-vs-modeset
igt/kms_flip/flip-vs-dpms-off-vs-modeset-interruptible
igt/kms_flip/flip-vs-expired-vblank
igt/kms_flip/flip-vs-expired-vblank-interruptible
igt/kms_flip/modeset-vs-vblank-race
igt/kms_flip/modeset-vs-vblank-race-interruptible
igt/kms_flip/rcs-flip-vs-panning-interruptible
igt/kms_flip/rcs-wf_vblank-vs-dpms-interruptible
igt/kms_flip/rcs-wf_vblank-vs-modeset
igt/kms_flip/rcs-wf_vblank-vs-modeset-interruptible
igt/kms_flip/single-buffer-flip-vs-dpms-off-vs-modeset
igt/kms_flip/single-buffer-flip-vs-dpms-off-vs-modeset-interruptible



root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest bo-too-big-interruptible
IGT-Version: 1.8-g1244fc6 (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_3e5e59_20140918+ x86_64)
Using monotonic timestamps
Beginning bo-too-big-interruptible on crtc 8, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
Beginning bo-too-big-interruptible on crtc 12, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
Beginning bo-too-big-interruptible on crtc 16, connector 19
  1920x1080 60 1920 1966 1996 2080 1080 1082 1086 1112 0xa 0x48 138780
Subtest bo-too-big-interruptible: SUCCESS (2.623s)
root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  164.008047] WARNING: CPU: 0 PID: 4614 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  164.008050] Modules linked in: dm_mod iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi pcspkr i2c_i801 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep lpc_ich snd_pcm mfd_core snd_timer snd soundcore battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  164.008066] CPU: 0 PID: 4614 Comm: kms_flip Not tainted 3.17.0-rc5_drm-intel-nightly_3e5e59_20140918+ #2584
<4>[  164.008090]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  164.008102]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  164.008160]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  164.008166]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  164.008172]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  164.008182]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<4>[  165.138630] WARNING: CPU: 0 PID: 4614 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  165.138632] Modules linked in: dm_mod iTCO_wdt iTCO_vendor_support ppdev snd_hda_codec_hdmi pcspkr i2c_i801 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep lpc_ich snd_pcm mfd_core snd_timer snd soundcore battery parport_pc parport ac acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  165.138648] CPU: 0 PID: 4614 Comm: kms_flip Tainted: G        W      3.17.0-rc5_drm-intel-nightly_3e5e59_20140918+ #2584
<4>[  165.138672]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  165.138684]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  165.138744]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  165.138751]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  165.138757]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  165.138766]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests#
Comment 4 Paulo Zanoni 2014-10-08 18:36:09 UTC
Hi

This bug report is very confusing since it started as "BYT/BSW have WARNs when booting", but then it also got reports from BDW IGT tests. I really suggest that, on this bug report, we completely ignore IGT and focus on the "we get WARNs when booting BYT/BSW": any IGT problems that don't happen when booting should be considered as another bug.

In addition, I believe the BDW part was fixed by "drm/i915: properly reenable gen8 pipe IRQs". So, can you please retest BYT/BDW/BSW and tell me on which platforms you still see WARNs when booting?

Thanks,
Paulo
Comment 5 lu hua 2014-10-09 05:41:54 UTC
Clean boot system, the warning goes away.
Run kms_flip case still has warning. We will report a bug about igt case and close this bug.
Comment 6 lu hua 2014-10-13 06:19:23 UTC
Test on latest on latest -nightly kernel. Clean boot system and run above kms_flip/kms_cursor_crc cases, they work well on BDW. on BYT, they have bug 73037.
Close it.
Comment 7 lu hua 2014-10-13 06:19:36 UTC
Verified.Fixed.
Comment 8 Jari Tahvanainen 2016-09-28 13:28:33 UTC
Closing verified+fixed.


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.