Bug 81202

Summary: [BSW]CallTrace "WARNING: CPU: 0 PID: 1237 at drivers/gpu/drm/i915/intel_pm.c:5955 check_power_well_state+0x69/0x6f [i915]()" after boot
Product: DRI Reporter: Guo Jinxian <jinxianx.guo>
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: imre.deak, intel-gfx-bugs, ville.syrjala
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
dmesg none

Description Guo Jinxian 2014-07-11 03:27:38 UTC
Created attachment 102587 [details]
dmesg

==System Environment==
--------------------------
Regression: No. 

Non-working platforms: BSW

==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(fails)
    drm/i915/vlv: T12 eDP panel timing enforcement during reboot

==Bug detailed description==
CallTrace "WARNING: CPU: 0 PID: 1237 at drivers/gpu/drm/i915/intel_pm.c:5955 check_power_well_state+0x69/0x6f [i915]()" after boot

Dmesg shows:
[    6.992821] ------------[ cut here ]------------
[    6.992867] WARNING: CPU: 0 PID: 1237 at drivers/gpu/drm/i915/intel_pm.c:5955 check_power_well_state+0x69/0x6f [i915]()
[    6.992870] state mismatch for 'dpio-tx-c-23' (always_on 0 hw state 0 use-count 4 disable_power_well 1
[    6.992876] Modules linked in: option usb_wwan usbserial i915(+) video button drm_kms_helper drm
[    6.992880] CPU: 0 PID: 1237 Comm: udevd Tainted: G        W     3.16.0-rc3_drm-intel-fixes_92ae62_20140711+ #414
[    6.992884]  0000000000000000 0000000000000009 ffffffff817803ed ffff8800733af4b8
[    6.992887]  ffffffff8103986c 0000000000000000 ffffffffa0069e3d 0000000000000000
[    6.992890]  ffffffffa00fc1f0 ffffffffa00fc1f0 0000000000000005 0000000000800000
[    6.992891] Call Trace:
[    6.992895]  [<ffffffff817803ed>] ? dump_stack+0x41/0x51
[    6.992899]  [<ffffffff8103986c>] ? warn_slowpath_common+0x78/0x90
[    6.992944]  [<ffffffffa0069e3d>] ? check_power_well_state+0x69/0x6f [i915]
[    6.992949]  [<ffffffff8103991c>] ? warn_slowpath_fmt+0x45/0x4a
[    6.992993]  [<ffffffffa0068645>] ? vlv_power_well_enabled+0x85/0x91 [i915]
[    6.993049]  [<ffffffffa0069e3d>] ? check_power_well_state+0x69/0x6f [i915]
[    6.993096]  [<ffffffffa006e3f5>] ? intel_display_power_put+0xc8/0xfc [i915]
[    6.993155]  [<ffffffffa00a90db>] ? intel_display_set_init_power+0x28/0x33 [i915]
[    6.993214]  [<ffffffffa00aa9fa>] ? __intel_set_mode+0xf8a/0x11d4 [i915]
[    6.993217]  [<ffffffff8177d3cc>] ? printk+0x4f/0x54
[    6.993277]  [<ffffffffa00aca4f>] ? intel_set_mode+0xd/0x27 [i915]
[    6.993335]  [<ffffffffa00ad635>] ? intel_crtc_set_config+0x70e/0xa13 [i915]
[    6.993349]  [<ffffffffa000c038>] ? drm_mode_set_config_internal+0x48/0xad [drm]
[    6.993355]  [<ffffffffa004bf94>] ? restore_fbdev_mode+0x8f/0xa8 [drm_kms_helper]
[    6.993361]  [<ffffffffa004bfca>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
[    6.993366]  [<ffffffffa004d1e2>] ? drm_fb_helper_set_par+0x39/0x58 [drm_kms_helper]
[    6.993370]  [<ffffffff813650e9>] ? fbcon_init+0x2ff/0x408
[    6.993374]  [<ffffffff813b94a5>] ? visual_init+0xaf/0x102
[    6.993378]  [<ffffffff813bac42>] ? do_bind_con_driver+0x1a1/0x2ca
[    6.993382]  [<ffffffff813bae9d>] ? do_take_over_console+0x132/0x162
[    6.993386]  [<ffffffff813647d6>] ? do_fbcon_takeover+0x53/0x96
[    6.993389]  [<ffffffff81055751>] ? notifier_call_chain+0x2e/0x59
[    6.993393]  [<ffffffff81055890>] ? __blocking_notifier_call_chain+0x43/0x5d
[    6.993397]  [<ffffffff8136e39d>] ? register_framebuffer+0x23f/0x29d
[    6.993403]  [<ffffffffa004cab8>] ? drm_fb_helper_initial_config+0x359/0x3ff [drm_kms_helper]
[    6.993460]  [<ffffffffa0098f6f>] ? gen8_write32+0x77/0xf2 [i915]
[    6.993516]  [<ffffffffa0098ef8>] ? gen8_write64+0xef/0xef [i915]
[    6.993579]  [<ffffffffa00d34b9>] ? i915_driver_load+0xc3a/0xe67 [i915]
[    6.993585]  [<ffffffff81779795>] ? klist_add_tail+0x1d/0x40
[    6.993599]  [<ffffffffa000764f>] ? drm_dev_register+0x74/0xe7 [drm]
[    6.993603]  [<ffffffff8137f382>] ? acpi_pci_irq_enable+0x11c/0x12f
[    6.993615]  [<ffffffffa00097de>] ? drm_get_pci_dev+0xf4/0x1af [drm]
[    6.993619]  [<ffffffff81350d6a>] ? local_pci_probe+0x36/0x7c
[    6.993622]  [<ffffffff8132a231>] ? ida_get_new_above+0x171/0x18b
[    6.993626]  [<ffffffff8135100e>] ? pci_device_probe+0xcc/0xf0
[    6.993630]  [<ffffffff813d8b16>] ? driver_probe_device+0x9d/0x1d5
[    6.993635]  [<ffffffff813d8c4e>] ? driver_probe_device+0x1d5/0x1d5
[    6.993638]  [<ffffffff813d8ca1>] ? __driver_attach+0x53/0x73
[    6.993642]  [<ffffffff813d740e>] ? bus_for_each_dev+0x4e/0x7f
[    6.993646]  [<ffffffff813d83c4>] ? bus_add_driver+0xe7/0x1cc
[    6.993650]  [<ffffffff813d92ea>] ? driver_register+0x82/0xb5
[    6.993653]  [<ffffffffa0113000>] ? 0xffffffffa0112fff
[    6.993657]  [<ffffffff81000301>] ? do_one_initcall+0xe3/0x176
[    6.993661]  [<ffffffff810f5c8e>] ? __vunmap+0x8c/0xc4
[    6.993665]  [<ffffffff8108bf75>] ? load_module+0x1821/0x1b04
[    6.993669]  [<ffffffff81089b95>] ? module_unload_free+0xca/0xca
[    6.993674]  [<ffffffff8108c2e8>] ? SyS_init_module+0x90/0x9b
[    6.993677]  [<ffffffff81785f92>] ? system_call_fastpath+0x16/0x1b


==Reproduce steps==
---------------------------- 
1. boot
2. dmesg |grep Call Trace
Comment 1 Guo Jinxian 2014-07-15 06:54:37 UTC
CallTrace after run test igt/drv_hangman/error-state-basic

Dmesg:
[ 2608.812343] WARNING: CPU: 2 PID: 4421 at drivers/gpu/drm/i915/intel_pm.c:6175 vlv_power_well_enabled+0x68/0x91 [i915]()
[ 2608.817605] Modules linked in: ip6table_filter ip6_tables iptable_filter ip_tables ebtable_nat ebtables x_tables ipv6 dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic pcspkr serio_raw snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep r8169 snd_pcm snd_timer snd soundcore battery ac option usb_wwan usbserial i915 button video drm_kms_helper drm
[ 2608.829112] CPU: 2 PID: 4421 Comm: drv_hangman Tainted: G        W     3.16.0-rc5_drm-intel-nightly_2a38e1_20140715+ #518
[ 2608.834979]  0000000000000000 0000000000000009 ffffffff8178053d 0000000000000000
[ 2608.840881]  ffffffff8103986c 0000000000000002 ffffffffa00729bb 0000000000000004
[ 2608.846828]  00000000000000c0 0000000000000000 ffff880002ef0000 ffff880002ef8350
[ 2608.852780] Call Trace:
[ 2608.858688]  [<ffffffff8178053d>] ? dump_stack+0x41/0x51
[ 2608.864630]  [<ffffffff8103986c>] ? warn_slowpath_common+0x78/0x90
[ 2608.870609]  [<ffffffffa00729bb>] ? vlv_power_well_enabled+0x68/0x91 [i915]
[ 2608.876618]  [<ffffffffa00729bb>] ? vlv_power_well_enabled+0x68/0x91 [i915]
[ 2608.882580]  [<ffffffffa0073a1d>] ? check_power_well_state+0xf/0x6f [i915]
[ 2608.888506]  [<ffffffff81784c46>] ? mutex_lock+0x9/0x25
[ 2608.894429]  [<ffffffffa0077fed>] ? intel_display_power_get+0x85/0xbd [i915]
[ 2608.900384]  [<ffffffffa00b3fbb>] ? modeset_update_crtc_power_domains+0x89/0x110 [i915]
[ 2608.906402]  [<ffffffffa00b5892>] ? __intel_set_mode+0xfcd/0x127b [i915]
[ 2608.912394]  [<ffffffff8177d51c>] ? printk+0x4f/0x54
[ 2608.918397]  [<ffffffffa00bba84>] ? intel_set_mode+0xd/0x27 [i915]
[ 2608.924421]  [<ffffffffa00bc661>] ? intel_crtc_set_config+0x705/0xa5b [i915]
[ 2608.930482]  [<ffffffffa008ec31>] ? i915_gem_free_object+0x304/0x32f [i915]
[ 2608.936555]  [<ffffffffa000bf1d>] ? drm_mode_set_config_internal+0x4b/0xb3 [drm]
[ 2608.942650]  [<ffffffffa0050a6a>] ? restore_fbdev_mode+0x8f/0xa8 [drm_kms_helper]
[ 2608.948776]  [<ffffffffa0050aa0>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1d/0x34 [drm_kms_helper]
[ 2608.955006]  [<ffffffffa00c6047>] ? intel_fbdev_restore_mode+0x17/0x40 [i915]
[ 2608.961238]  [<ffffffffa0003816>] ? drm_lastclose+0x3a/0x14f [drm]
[ 2608.967458]  [<ffffffffa0003df3>] ? drm_release+0x4c8/0x501 [drm]
[ 2608.973653]  [<ffffffff8110cbe2>] ? __fput+0xdb/0x1a8
[ 2608.979788]  [<ffffffff810504ac>] ? task_work_run+0x73/0x87
[ 2608.985934]  [<ffffffff810025d4>] ? do_notify_resume+0x5b/0x6c
[ 2608.991980]  [<ffffffff8178635a>] ? int_signal+0x12/0x17
Comment 2 Guo Jinxian 2014-07-29 02:00:50 UTC
The failure still able to reproduce on latest -next-queued(eff9b57c1a91ccf309d57500ab6a365ba7be5712)

[root@x-bsw01 tests]# ./kms_pipe_crc_basic
IGT-Version: 1.7-ge48c495 (x86_64) (Linux: 3.16.0-rc4_drm-intel-next-queued_eff9b5_20140728+ x86_64)
Subtest bad-pipe: SUCCESS
Subtest bad-source: SUCCESS
Subtest bad-nb-words-1: SUCCESS
Subtest bad-nb-words-3: SUCCESS
read-crc-pipe-A: Testing connector HDMI-A-3 using pipe A
Subtest read-crc-pipe-A: TIMEOUT
Subtest read-crc-pipe-A-frame-sequence: SKIP
Subtest suspend-read-crc-pipe-A: SKIP
Subtest hang-read-crc-pipe-A: SKIP
Subtest read-crc-pipe-B: SKIP
Subtest read-crc-pipe-B-frame-sequence: SKIP
Subtest suspend-read-crc-pipe-B: SKIP
Subtest hang-read-crc-pipe-B: SKIP
Subtest read-crc-pipe-C: SKIP
Subtest read-crc-pipe-C-frame-sequence: SKIP
Subtest suspend-read-crc-pipe-C: SKIP
Subtest hang-read-crc-pipe-C: SKIP
Test assertion failure function kmstest_force_connector, file igt_kms.c:461:
Failed assertion: debugfs_fd != -1
Last errno: 2, No such file or directory
kms_pipe_crc_basic: igt_core.c:714: igt_fail: Assertion `!test_with_subtests || in_fixture' failed.
Aborted (core dumped)
[root@x-bsw01 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[ 1719.146642]  [<ffffffffa0078dde>] ? drm_mode_getconnector+0xe4/0x2ff [drm]
<4>[ 1719.146659]  [<ffffffffa0075baa>] ? drm_modeset_unlock_all+0x49/0x58 [drm]
<4>[ 1719.146674]  [<ffffffffa006cf8c>] ? drm_ioctl+0x27a/0x3c0 [drm]
<4>[ 1719.146690]  [<ffffffffa0078cfa>] ? drm_mode_getcrtc+0xb3/0xb3 [drm]
<4>[ 1719.146747] WARNING: CPU: 2 PID: 10782 at drivers/gpu/drm/i915/intel_pm.c:6280 check_power_well_state+0x69/0x6f [i915]()
<4>[ 1719.146755] 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 snd_hda_intel serio_raw snd_hda_controller pcspkr r8169 snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery ac i915 video button drm_kms_helper drm option usb_wwan usbserial
<4>[ 1719.146798] CPU: 2 PID: 10782 Comm: kms_pipe_crc_ba Tainted: G        W     3.16.0-rc4_drm-intel-next-queued_eff9b5_20140728+ #872
<4>[ 1719.146978]  [<ffffffffa00b4dd8>] ? drm_helper_probe_single_connector_modes_merge_bits+0xbc/0x2c9 [drm_kms_helper]
<4>[ 1719.146994]  [<ffffffffa0078dde>] ? drm_mode_getconnector+0xe4/0x2ff [drm]
<4>[ 1719.147011]  [<ffffffffa0075baa>] ? drm_modeset_unlock_all+0x49/0x58 [drm]
<4>[ 1719.147026]  [<ffffffffa006cf8c>] ? drm_ioctl+0x27a/0x3c0 [drm]
<4>[ 1719.147042]  [<ffffffffa0078cfa>] ? drm_mode_getcrtc+0xb3/0xb3 [drm]
<4>[ 1719.150405] WARNING: CPU: 2 PID: 10782 at drivers/gpu/drm/i915/intel_pm.c:6171 vlv_power_well_enabled+0x68/0x91 [i915]()
<4>[ 1719.150408] 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 snd_hda_intel serio_raw snd_hda_controller pcspkr r8169 snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery ac i915 video button drm_kms_helper drm option usb_wwan usbserial
<4>[ 1719.150453] CPU: 2 PID: 10782 Comm: kms_pipe_crc_ba Tainted: G        W     3.16.0-rc4_drm-intel-next-queued_eff9b5_20140728+ #872
<4>[ 1719.150626]  [<ffffffffa00b4dd8>] ? drm_helper_probe_single_connector_modes_merge_bits+0xbc/0x2c9 [drm_kms_helper]
<4>[ 1719.150643]  [<ffffffffa0078dde>] ? drm_mode_getconnector+0xe4/0x2ff [drm]
<4>[ 1719.150660]  [<ffffffffa0075baa>] ? drm_modeset_unlock_all+0x49/0x58 [drm]
<4>[ 1719.150674]  [<ffffffffa006cf8c>] ? drm_ioctl+0x27a/0x3c0 [drm]
<4>[ 1719.150691]  [<ffffffffa0078cfa>] ? drm_mode_getcrtc+0xb3/0xb3 [drm]
Comment 3 Guo Jinxian 2014-07-30 08:38:15 UTC
The bug still able to reproduce on latest -nightly() while running test igt/kms_setmode/clone-exclusive-crtc


Output:
[root@x-bsw01 tests]# ./kms_setmode --run-subtest clone-exclusive-crtc
IGT-Version: 1.7-ge48c495 (x86_64) (Linux: 3.16.0-rc6_drm-intel-nightly_eb2af9_20140730+ x86_64)
Testing: clone-exclusive-crtc 2 connector combinations
  Test id#1 CRTC count 2
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
  Test id#2 CRTC count 2
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
  Test id#3 CRTC count 2
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
  Test id#4 CRTC count 2
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
  Test id#5 CRTC count 2
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
  Test id#6 CRTC count 2
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
Testing: clone-exclusive-crtc 3 connector combinations
  Test id#7 CRTC count 3
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
  Test id#8 CRTC count 3
    CRTC[12] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[21] (NC)
    CRTC[7] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[28] (NC)
    CRTC[17] [Pipe C] Mode: 1920x1080@60Hz Connectors: HDMI-A-3[30]
Subtest clone-exclusive-crtc: SUCCESS
[root@x-bsw01 tests]# dmesg -r | egrep "<[1-4]>" |grep drm | less
<4>[  952.854840]  [<ffffffffa008cdde>] ? drm_helper_probe_single_connector_modes_merge_bits+0xbe/0x2eb [drm_kms_helper]
<4>[  952.854857]  [<ffffffffa004feb6>] ? drm_mode_getconnector+0xe4/0x2ff [drm]
<4>[  952.854874]  [<ffffffffa004cb85>] ? drm_modeset_unlock_all+0x49/0x58 [drm]
<4>[  952.854889]  [<ffffffffa0043f70>] ? drm_ioctl+0x27a/0x3c0 [drm]
<4>[  952.854912]  [<ffffffffa004fdd2>] ? drm_mode_getcrtc+0xb3/0xb3 [drm]
<4>[  952.854982] WARNING: CPU: 0 PID: 4098 at drivers/gpu/drm/i915/intel_pm.c:6429 check_power_well_state+0x69/0x6f [i915]()
<4>[  952.854989] 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 serio_raw pcspkr r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery ac i915 button video drm_kms_helper drm option usb_wwan usbserial
<4>[  952.855033] CPU: 0 PID: 4098 Comm: kms_setmode Tainted: G        W     3.16.0-rc6_drm-intel-nightly_eb2af9_20140730+ #924
<4>[  952.855216]  [<ffffffffa008cdde>] ? drm_helper_probe_single_connector_modes_merge_bits+0xbe/0x2eb [drm_kms_helper]
<4>[  952.855234]  [<ffffffffa004feb6>] ? drm_mode_getconnector+0xe4/0x2ff [drm]
<4>[  952.855251]  [<ffffffffa004cb85>] ? drm_modeset_unlock_all+0x49/0x58 [drm]
<4>[  952.855265]  [<ffffffffa0043f70>] ? drm_ioctl+0x27a/0x3c0 [drm]
<4>[  952.855289]  [<ffffffffa004fdd2>] ? drm_mode_getcrtc+0xb3/0xb3 [drm]
<4>[  952.858608] WARNING: CPU: 0 PID: 4098 at drivers/gpu/drm/i915/intel_pm.c:6173 vlv_power_well_enabled+0x68/0x91 [i915]()
<4>[  952.858612] 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 serio_raw pcspkr r8169 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery ac i915 button video drm_kms_helper drm option usb_wwan usbserial
Comment 4 Jani Nikula 2014-09-08 15:43:22 UTC
Imre, any ideas?
Comment 5 Imre Deak 2014-09-08 20:47:02 UTC
Could you provide a full dmesg log starting from boot? The attached one is truncated.

From what I can see, we try to enable some power well (the log shows at least TX-C-23) but the HW doesn't actually enable it. So it's either a punit problem, or that we don't use the proper HW knobs for the failing wells. Ville even had somewhere a comment that the mapping of TX power wells needs to be clarified against a HW with a working Punit and/or proper documentation. So I think we need to wait with a proper fix until we get a working CHV.
Comment 6 Guo Jinxian 2014-09-22 08:33:44 UTC
Created attachment 106659 [details]
dmesg

(In reply to comment #5)
> Could you provide a full dmesg log starting from boot? The attached one is
> truncated.
> 
> From what I can see, we try to enable some power well (the log shows at
> least TX-C-23) but the HW doesn't actually enable it. So it's either a punit
> problem, or that we don't use the proper HW knobs for the failing wells.
> Ville even had somewhere a comment that the mapping of TX power wells needs
> to be clarified against a HW with a working Punit and/or proper
> documentation. So I think we need to wait with a proper fix until we get a
> working CHV.

The failure unable to reproduce on latest -nightly(c5660b4ad395f1e34eacc22cf81c687edfc9c83c).
Here has another dmesg warning which tracked by bug 84162

[root@x-bsw01 tests]# ./kms_setmode --run-subtest clone-exclusive-crtc
IGT-Version: 1.8-g25c55d3 (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ x86_64)
Testing: clone-exclusive-crtc 2 connector combinations
  Test id#1 CRTC count 2
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
  Test id#2 CRTC count 2
    CRTC[13] [Pipe B] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
  Test id#3 CRTC count 2
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
  Test id#4 CRTC count 2
    CRTC[13] [Pipe B] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
  Test id#5 CRTC count 2
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#6 CRTC count 2
    CRTC[13] [Pipe B] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#7 CRTC count 2
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
  Test id#8 CRTC count 2
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
  Test id#9 CRTC count 2
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#10 CRTC count 2
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#11 CRTC count 2
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#12 CRTC count 2
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
Testing: clone-exclusive-crtc 3 connector combinations
  Test id#13 CRTC count 3
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#14 CRTC count 3
    CRTC[13] [Pipe B] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#15 CRTC count 3
    CRTC[8] [Pipe A] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#16 CRTC count 3
    CRTC[13] [Pipe B] Mode: 1920x1080@60Hz Connectors: eDP-1[31]
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#17 CRTC count 3
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
  Test id#18 CRTC count 3
    CRTC[13] [Pipe B] Mode: 640x480@60Hz Connectors: HDMI-A-1[22] (NC)
    CRTC[8] [Pipe A] Mode: 640x480@60Hz Connectors: HDMI-A-2[29] (NC)
    CRTC[18] [Pipe C] Mode: 640x480@60Hz Connectors: HDMI-A-3[37] (NC)
Subtest clone-exclusive-crtc: SUCCESS (86.426s)
[root@x-bsw01 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  181.705014] WARNING: CPU: 3 PID: 3864 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  181.705022] Modules linked in: ipv6 dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel pcspkr snd_hda_controller serio_raw snd_hda_codec snd_hwdep snd_pcm r8169 snd_timer i2c_i801 snd soundcore battery ac option usb_wwan usbserial i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  181.705066] CPU: 3 PID: 3864 Comm: kms_setmode Tainted: G        W      3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ #2696
<4>[  181.705128]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  181.705158]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  181.705336]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  181.705353]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  181.705368]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  181.705393]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<4>[  188.720331] WARNING: CPU: 0 PID: 3864 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  188.720338] Modules linked in: ipv6 dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel pcspkr snd_hda_controller serio_raw snd_hda_codec snd_hwdep snd_pcm r8169 snd_timer i2c_i801 snd soundcore battery ac option usb_wwan usbserial i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  188.720382] CPU: 0 PID: 3864 Comm: kms_setmode Tainted: G        W      3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ #2696
<4>[  188.720443]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  188.720473]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  188.720651]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  188.720668]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  188.720683]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  188.720708]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
[root@x-bsw01 tests]# ./drv_hangman --run-subtest error-state-basic
IGT-Version: 1.8-g25c55d3 (x86_64) (Linux: 3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ x86_64)
Subtest error-state-basic: SUCCESS (10.200s)
[root@x-bsw01 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
<4>[  181.705014] WARNING: CPU: 3 PID: 3864 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  181.705022] Modules linked in: ipv6 dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel pcspkr snd_hda_controller serio_raw snd_hda_codec snd_hwdep snd_pcm r8169 snd_timer i2c_i801 snd soundcore battery ac option usb_wwan usbserial i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  181.705066] CPU: 3 PID: 3864 Comm: kms_setmode Tainted: G        W      3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ #2696
<4>[  181.705128]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  181.705158]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  181.705336]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  181.705353]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  181.705368]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  181.705393]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
<4>[  188.720331] WARNING: CPU: 0 PID: 3864 at drivers/gpu/drm/drm_irq.c:1089 drm_wait_one_vblank+0x10e/0x16c [drm]()
<4>[  188.720338] Modules linked in: ipv6 dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel pcspkr snd_hda_controller serio_raw snd_hda_codec snd_hwdep snd_pcm r8169 snd_timer i2c_i801 snd soundcore battery ac option usb_wwan usbserial i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopyarea
<4>[  188.720382] CPU: 0 PID: 3864 Comm: kms_setmode Tainted: G        W      3.17.0-rc5_drm-intel-nightly_c5660b_20140922+ #2696
<4>[  188.720443]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  188.720473]  [<ffffffffa0011ab9>] ? drm_wait_one_vblank+0x10e/0x16c [drm]
<4>[  188.720651]  [<ffffffffa0017fe5>] ? drm_mode_set_config_internal+0x48/0xbd [drm]
<4>[  188.720668]  [<ffffffffa001ba0e>] ? drm_mode_setcrtc+0x3e6/0x48b [drm]
<4>[  188.720683]  [<ffffffffa001074c>] ? drm_ioctl+0x279/0x3bc [drm]
<4>[  188.720708]  [<ffffffffa001b628>] ? drm_mode_setplane+0x1ce/0x1ce [drm]
Comment 7 Imre Deak 2014-09-29 07:57:45 UTC
(In reply to comment #6)
> Created attachment 106659 [details]
> dmesg
> 
> (In reply to comment #5)
> > Could you provide a full dmesg log starting from boot? The attached one is
> > truncated.
> > 
> > From what I can see, we try to enable some power well (the log shows at
> > least TX-C-23) but the HW doesn't actually enable it. So it's either a punit
> > problem, or that we don't use the proper HW knobs for the failing wells.
> > Ville even had somewhere a comment that the mapping of TX power wells needs
> > to be clarified against a HW with a working Punit and/or proper
> > documentation. So I think we need to wait with a proper fix until we get a
> > working CHV.
> 
> The failure unable to reproduce on latest
> -nightly(c5660b4ad395f1e34eacc22cf81c687edfc9c83c).
> Here has another dmesg warning which tracked by bug 84162

Ok, the reason the original problem went away is that CHV TX power well support got disabled in the code. The remaining warnings are unrelated and tracked elsewhere, so closing this bug.
Comment 8 Guo Jinxian 2014-09-30 05:38:54 UTC
Verified.
Comment 9 Jari Tahvanainen 2016-10-07 08:43:47 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.