Bug 81160 - [BYT Regression]igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 3733 at drivers/gpu/drm/i915/intel_display.c:1231 __intel_set_mode+0xc59/0x1275 [i915]()"
Summary: [BYT Regression]igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 3733 a...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: highest normal
Assignee: Antti Koskipaa
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-10 09:07 UTC by Guo Jinxian
Modified: 2017-02-10 08:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (124.71 KB, text/plain)
2014-07-10 09:07 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-07-10 09:07:34 UTC
Created attachment 102526 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes. 
Good commit on -next-queued: 192155025197cc4765702a180904c3b62c152b7a

Non-working platforms: BYT

==kernel==
--------------------------
origin/drm-intel-nightly: 16025dad8e9964a5810385f755d43f1c48d6fdcc(fails)
    drm-intel-nightly: 2014y-07m-09d-14h-17m-14s integration manifest
origin/drm-intel-next-queued: d101c8fe9bda6578ae72d6021415cfaad2b422f0(fails)
    drm/i915: remove i915_rstdby_delays debugfs entry
origin/drm-intel-fixes: 01527b3127997ef6370d5ad4fa25d96847fbf12a(works)
    drm/i915/vlv: T12 eDP panel timing enforcement during reboot

==Bug detailed description==
igt/kms_flip some subcases cause "WARNING: CPU: 0 PID: 3733 at drivers/gpu/drm/i915/intel_display.c:1231 __intel_set_mode+0xc59/0x1275 [i915]()"

Case list:
igt/kms_flip/bcs-flip-vs-dpms
igt/kms_flip/bcs-flip-vs-dpms-interruptible
igt/kms_flip/bcs-wf_vblank-vs-dpms
igt/kms_flip/bcs-wf_vblank-vs-dpms-interruptible

Dmesg shows:
[  192.448191] WARNING: CPU: 0 PID: 3733 at drivers/gpu/drm/i915/intel_display.c:1231 __intel_set_mode+0xc59/0x1275 [i915]()
[  192.448194] cursor on pipe B assertion failure (expected off, current on)
[  192.448196] Modules linked in: ip6table_filter ip6_tables ipv6 iptable_filter ip_tables ebtable_nat ebtables x_tables dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support snd_hda_intel serio_raw snd_hda_controller pcspkr snd_hda_codec i2c_i801 lpc_ich mfd_core snd_hwdep snd_pcm snd_timer snd soundcore iosf_mbi battery ac acpi_cpufreq joydev i915 video button drm_kms_helper drm
[  192.448228] CPU: 0 PID: 3733 Comm: kms_flip Tainted: G        W     3.16.0-rc4_drm-intel-nightly_16025d_20140710+ #378
[  192.448230]  0000000000000000 0000000000000009 ffffffff817803cd ffff880002bafb38
[  192.448235]  ffffffff8103986c ffff880002bafb30 ffffffffa00b3da5 ffff880002830000
[  192.448239]  0000000000000000 ffff880002e06000 ffff880002fa1800 0000000000000001
[  192.448243] Call Trace:
[  192.448248]  [<ffffffff817803cd>] ? dump_stack+0x41/0x51
[  192.448253]  [<ffffffff8103986c>] ? warn_slowpath_common+0x78/0x90
[  192.448273]  [<ffffffffa00b3da5>] ? __intel_set_mode+0xc59/0x1275 [i915]
[  192.448278]  [<ffffffff8103991c>] ? warn_slowpath_fmt+0x45/0x4a
[  192.448300]  [<ffffffffa00b3da5>] ? __intel_set_mode+0xc59/0x1275 [i915]
[  192.448304]  [<ffffffff8177d3ac>] ? printk+0x4f/0x54
[  192.448315]  [<ffffffffa00073c0>] ? drm_ut_debug_printk+0x59/0x5e [drm]
[  192.448336]  [<ffffffffa00ba47a>] ? intel_set_mode+0xd/0x27 [i915]
[  192.448357]  [<ffffffffa00bb057>] ? intel_crtc_set_config+0x705/0xa5b [i915]
[  192.448362]  [<ffffffff81784451>] ? __ww_mutex_lock+0x15/0x8a
[  192.448374]  [<ffffffffa000beea>] ? drm_mode_set_config_internal+0x4b/0xb3 [drm]
[  192.448385]  [<ffffffffa000c13f>] ? drm_framebuffer_remove+0x72/0xf9 [drm]
[  192.448396]  [<ffffffffa000fa83>] ? drm_mode_rmfb+0xc3/0xec [drm]
[  192.448405]  [<ffffffffa0002f70>] ? drm_ioctl+0x27a/0x3c0 [drm]
[  192.448416]  [<ffffffffa000f9c0>] ? drm_mode_addfb2+0x2d/0x2d [drm]
[  192.448420]  [<ffffffff8100a810>] ? init_fpu+0x6f/0x83
[  192.448425]  [<ffffffff81104e0d>] ? kmem_cache_free+0xf7/0x135
[  192.448429]  [<ffffffff81119973>] ? do_vfs_ioctl+0x3ec/0x435
[  192.448434]  [<ffffffff81119a05>] ? SyS_ioctl+0x49/0x78
[  192.448438]  [<ffffffff8109f1b0>] ? __audit_syscall_exit+0x209/0x225
[  192.448443]  [<ffffffff81785f52>] ? system_call_fastpath+0x16/0x1b

==Reproduce steps==
---------------------------- 
1. ./gem_render_copy_redux
Comment 1 yaoming 2014-08-04 02:16:43 UTC
This bug can't reproduce on 3.16.0-rc4_drm-intel-next-queued_17c58f_20140803

Dmesg shows:
[    3.434513] WARNING: CPU: 0 PID: 1231 at drivers/gpu/drm/i915/intel_dp.c:1202 intel_enable_dp+0x41/0x79 [i915]()
[    3.434513] eDP VDD already requested on
[    3.434519] Modules linked in: i915(+) video button drm_kms_helper drm
[    3.434522] CPU: 0 PID: 1231 Comm: udevd Not tainted 3.16.0-rc4_drm-intel-next-queued_17c58f_20140803+ #1056
[    3.434526]  0000000000000000 0000000000000009 ffffffff8177fe4d ffff880071293418
[    3.434529]  ffffffff8103986c ffff880071123000 ffffffffa00d04bc 00000000001e1204
[    3.434531]  ffff880002d6f0d8 ffff880002db0000 ffff880002d6f0d8 ffff880075e8e000
[    3.434532] Call Trace:
[    3.434540]  [<ffffffff8177fe4d>] ? dump_stack+0x41/0x51
[    3.434544]  [<ffffffff8103986c>] ? warn_slowpath_common+0x78/0x90
[    3.434585]  [<ffffffffa00d04bc>] ? intel_enable_dp+0x41/0x79 [i915]
[    3.434588]  [<ffffffff8103991c>] ? warn_slowpath_fmt+0x45/0x4a
[    3.434628]  [<ffffffffa00d04bc>] ? intel_enable_dp+0x41/0x79 [i915]
[    3.434684]  [<ffffffffa00d060a>] ? vlv_pre_enable_dp+0x100/0x11a [i915]
[    3.434725]  [<ffffffffa00b7e82>] ? valleyview_crtc_enable+0xae7/0xbdb [i915]
[    3.434765]  [<ffffffffa00b50ba>] ? __intel_set_mode+0x111c/0x1224 [i915]
[    3.434770]  [<ffffffff81060300>] ? __dequeue_entity+0x19/0x2d
[    3.434810]  [<ffffffffa00bb318>] ? intel_set_mode+0xd/0x27 [i915]
[    3.434850]  [<ffffffffa00bbf47>] ? intel_crtc_set_config+0x757/0xaad [i915]
[    3.434862]  [<ffffffffa000bf1d>] ? drm_mode_set_config_internal+0x4b/0xb3 [drm]
[    3.434867]  [<ffffffffa0050a5a>] ? restore_fbdev_mode+0x8f/0xa8 [drm_kms_helper]
[    3.434871]  [<ffffffffa0050a90>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
[    3.434875]  [<ffffffffa0051db7>] ? drm_fb_helper_set_par+0x3a/0x58 [drm_kms_helper]
[    3.434914]  [<ffffffffa00c4f04>] ? intel_fbdev_set_par+0x11/0x55 [i915]
[    3.434918]  [<ffffffff813650c9>] ? fbcon_init+0x2ff/0x408
[    3.434922]  [<ffffffff813b8d1d>] ? visual_init+0xaf/0x102
[    3.434925]  [<ffffffff813ba4ba>] ? do_bind_con_driver+0x1a1/0x2ca
[    3.434928]  [<ffffffff813ba715>] ? do_take_over_console+0x132/0x162
[    3.434931]  [<ffffffff813647b6>] ? do_fbcon_takeover+0x53/0x96
[    3.434934]  [<ffffffff81055751>] ? notifier_call_chain+0x2e/0x59
[    3.434937]  [<ffffffff81055890>] ? __blocking_notifier_call_chain+0x43/0x5d
[    3.434941]  [<ffffffff8136e37d>] ? register_framebuffer+0x23f/0x29d
[    3.434945]  [<ffffffffa005157e>] ? drm_fb_helper_initial_config+0x359/0x3ff [drm_kms_helper]
[    3.434983]  [<ffffffffa00a610a>] ? gen6_write32+0x6c/0xbf [i915]
[    3.435043]  [<ffffffffa00e3b41>] ? i915_driver_load+0xcaa/0xedb [i915]
[    3.435049]  [<ffffffff8104a78e>] ? call_usermodehelper_exec+0xf4/0xff
[    3.435052]  [<ffffffff81040000>] ? ptrace_regset+0x61/0xf8
[    3.435056]  [<ffffffff8132bdde>] ? kobject_uevent_env+0x486/0x4c8
[    3.435059]  [<ffffffff813d4bd0>] ? get_device+0x10/0x1c
[    3.435062]  [<ffffffff813d6495>] ? device_add+0x50b/0x51c
[    3.435066]  [<ffffffff8132999e>] ? idr_replace+0x2d/0x93
[    3.435074]  [<ffffffffa000761f>] ? drm_dev_register+0x74/0xe7 [drm]
[    3.435078]  [<ffffffff8137ebfa>] ? acpi_pci_irq_enable+0x11c/0x12f
[    3.435087]  [<ffffffffa00097a6>] ? drm_get_pci_dev+0xf4/0x1af [drm]
[    3.435090]  [<ffffffff81350d4a>] ? local_pci_probe+0x36/0x7c
[    3.435092]  [<ffffffff8132a211>] ? ida_get_new_above+0x171/0x18b
[    3.435095]  [<ffffffff81350fee>] ? pci_device_probe+0xcc/0xf0
[    3.435098]  [<ffffffff813d8556>] ? driver_probe_device+0x9d/0x1d5
[    3.435101]  [<ffffffff813d868e>] ? driver_probe_device+0x1d5/0x1d5
[    3.435104]  [<ffffffff813d86e1>] ? __driver_attach+0x53/0x73
[    3.435107]  [<ffffffff813d6e4e>] ? bus_for_each_dev+0x4e/0x7f
[    3.435109]  [<ffffffff813d7e04>] ? bus_add_driver+0xe7/0x1cc
[    3.435112]  [<ffffffff813d8d2a>] ? driver_register+0x82/0xb5
[    3.435115]  [<ffffffffa0124000>] ? 0xffffffffa0123fff
[    3.435118]  [<ffffffff81000301>] ? do_one_initcall+0xe3/0x176
[    3.435121]  [<ffffffff8108bf6d>] ? load_module+0x1821/0x1b04
[    3.435125]  [<ffffffff81089b8d>] ? module_unload_free+0xca/0xca
[    3.435128]  [<ffffffff8108c2e0>] ? SyS_init_module+0x90/0x9b
[    3.435131]  [<ffffffff817859d2>] ? system_call_fastpath+0x16/0x1b
[    3.435133] ---[ end trace a340767a1ac5f92d ]---

This issue is tracked by Bug 81697.
Comment 2 Jani Nikula 2014-09-08 15:39:06 UTC
(In reply to comment #1)
> This bug can't reproduce on 3.16.0-rc4_drm-intel-next-queued_17c58f_20140803

Presuming fixed, closing. Please reopen if the problem persists.
Comment 3 yaoming 2014-09-09 07:31:06 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > This bug can't reproduce on 3.16.0-rc4_drm-intel-next-queued_17c58f_20140803
> 
> Presuming fixed, closing. Please reopen if the problem persists.



(In reply to comment #2)
> (In reply to comment #1)
> > This bug can't reproduce on 3.16.0-rc4_drm-intel-next-queued_17c58f_20140803
> 
> Presuming fixed, closing. Please reopen if the problem persists.

Also passed on latest drm-intel-nightly(4a3d32734bdcef6813b31f06a58430436e98711e). I guess it had been fixed.

root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./gem_render_copy_redux
IGT-Version: 1.7-gac3d060 (x86_64) (Linux: 3.17.0-rc4_drm-intel-nightly_4a3d32_20140909+ x86_64)
Subtest normal: SUCCESS (0.741s)
Subtest interruptible: SUCCESS (0.743s)
Subtest flink: SUCCESS (1.205s)
Subtest flink-interruptible: SUCCESS (1.214s)
Comment 4 Guo Jinxian 2014-09-30 06:27:37 UTC
Here has new demsg error, which tracked by bug 84074, close this one. 

root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./kms_flip --run-subtest bcs-flip-vs-dpms-interruptible
IGT-Version: 1.8-g32a0308 (x86_64) (Linux: 3.17.0-rc7_drm-intel-nightly_4cf4ff_20140930+ x86_64)
Using monotonic timestamps
Beginning bcs-flip-vs-dpms-interruptible on crtc 8, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
...
bcs-flip-vs-dpms-interruptible on crtc 8, connector 28: PASSED

Beginning bcs-flip-vs-dpms-interruptible on crtc 13, connector 28
  1366x768 60 1366 1404 1426 1482 768 771 777 798 0xa 0x48 71000
..
bcs-flip-vs-dpms-interruptible on crtc 13, connector 28: PASSED

Beginning bcs-flip-vs-dpms-interruptible on crtc 8, connector 16
  1024x768 60 1024 1048 1184 1344 768 771 777 806 0xa 0x40 65000
....
bcs-flip-vs-dpms-interruptible on crtc 8, connector 16: PASSED

Beginning bcs-flip-vs-dpms-interruptible on crtc 13, connector 16
  1024x768 60 1024 1048 1184 1344 768 771 777 806 0xa 0x40 65000
....
bcs-flip-vs-dpms-interruptible on crtc 13, connector 16: PASSED

Subtest bcs-flip-vs-dpms-interruptible: SUCCESS (83.853s)
root@x-bytm02:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm                 <3>[  131.434410] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[  132.485192] WARNING: CPU: 0 PID: 4390 at drivers/gpu/drm/i915/intel_display.c:1751 valleyview_crtc_enable+0x9e4/0xaee [i915]()
<4>[  132.485199] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support snd_hda_codec_conexant snd_hda_codec_generic pcspkr snd_hda_intel snd_hda_controller i2c_i801 snd_hda_codec r8169 snd_hwdep lpc_ich snd_pcm mfd_core snd_timer snd soundcore iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  132.485240] CPU: 0 PID: 4390 Comm: kms_flip Not tainted 3.17.0-rc7_drm-intel-nightly_4cf4ff_20140930+ #74
<4>[  132.485470]  [<ffffffffa0017fc5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  132.485483]  [<ffffffffa001b9ee>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  132.485495]  [<ffffffffa0010740>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  132.485515]  [<ffffffffa001b608>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<3>[  133.929536] [drm:i9xx_set_fifo_underrun_reporting] *ERROR* pipe B underrun
<3>[  133.929543] [drm:valleyview_pipestat_irq_handler] *ERROR* pipe B underrun
<3>[  139.534875] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<3>[  148.044793] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
<4>[  149.095691] WARNING: CPU: 1 PID: 4390 at drivers/gpu/drm/i915/intel_display.c:1751 valleyview_crtc_enable+0x9e4/0xaee [i915]()
<4>[  149.095697] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support snd_hda_codec_conexant snd_hda_codec_generic pcspkr snd_hda_intel snd_hda_controller i2c_i801 snd_hda_codec r8169 snd_hwdep lpc_ich snd_pcm mfd_core snd_timer snd soundcore iosf_mbi battery wmi ac acpi_cpufreq uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  149.095739] CPU: 1 PID: 4390 Comm: kms_flip Tainted: G        W      3.17.0-rc7_drm-intel-nightly_4cf4ff_20140930+ #74
<4>[  149.095956]  [<ffffffffa001c587>] ? drm_mode_obj_set_property_ioctl+0x1e4/0x276 [drm]
<4>[  149.095969]  [<ffffffffa001c645>] ? drm_mode_connector_property_set_ioctl+0x2c/0x31 [drm]
<4>[  149.095981]  [<ffffffffa0010740>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  149.096001]  [<ffffffffa001c619>] ? drm_mode_obj_set_property_ioctl+0x276/0x276 [drm]
Comment 5 Jari Tahvanainen 2017-02-10 08:53:04 UTC
Closing (>2 years) old 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.