Bug 80126

Summary: [HSW Regression]igt/kms_pipe_crc_basic causes "WARNING: CPU: 3 PID: 4309 at drivers/gpu/drm/i915/intel_pm.c:6174 check_power_well_state+0x69/0x6f [i915]()" sporadically
Product: DRI Reporter: Guo Jinxian <jinxianx.guo>
Component: DRM/IntelAssignee: Chris Wilson <chris>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: highest CC: intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg none

Description Guo Jinxian 2014-06-17 08:57:17 UTC
Created attachment 101214 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes. 
This bug only find on -nightly branch. The fail rate about 1 out of 3.

Non-working platforms: HSW

==kernel==
--------------------------
origin/drm-intel-nightly: e9ce9f961282205b5954a0da4e48e96884190a77(fails)
    drm-intel-nightly: 2014y-06m-16d-21h-22m-19s integration manifest
origin/drm-intel-next-queued: 8c0f92e1f87149bd2429015c9d0600a13a34d607(tried 5 times, didn't find this issue)
    drm/i915: Fix comment about our plane remapping on gen2/3
origin/drm-intel-fixes: 223a6f2b975ab35d93270ea1d4fb6e0ac6b27fe6(tried 5 times, didn't find this issue)
    drm/i915/bdw: remove erroneous chv specific workarounds from bdw code

==Bug detailed description==
-----------------------------
igt/kms_pipe_crc_basic causes "WARNING: CPU: 3 PID: 4309 at drivers/gpu/drm/i915/intel_pm.c:6174 check_power_well_state+0x69/0x6f [i915]()" sporadically

Case list:
igt/kms_pipe_crc_basic/suspend-read-crc-pipe-A
igt/kms_pipe_crc_basic/suspend-read-crc-pipe-B
igt/kms_pipe_crc_basic/suspend-read-crc-pipe-C

Output:
[root@x-hsw26 tests]# ./kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A
IGT-Version: 1.7-gd123de6 (x86_64) (Linux: 3.15.0-rc8_drm-intel-nightly_e9ce9f_20140617+ x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Tue Jun 17 21:46:31 2014
suspend-read-crc-pipe-A: Testing connector HDMI-A-3 using pipe A
Subtest suspend-read-crc-pipe-A: SUCCESS

DMESG shows:
[   82.389228] WARNING: CPU: 3 PID: 4309 at drivers/gpu/drm/i915/intel_pm.c:6174 check_power_well_state+0x69/0x6f [i915]()
[   82.389229] state mismatch for 'display' (always_on 0 hw state 0 use-count 2 disable_power_well 1
[   82.389239] Modules linked in: ip6table_filter ip6_tables ebtable_nat ebtables nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ipt_REJECT iptable_mangle xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc ipv6 dm_mod snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi pcspkr serio_raw i2c_i801 firewire_ohci lpc_ich snd_hda_intel mfd_core snd_hda_controller firewire_core crc_itu_t snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore battery wmi acpi_cpufreq i915 video button drm_kms_helper drm
[   82.389241] CPU: 3 PID: 4309 Comm: kworker/u16:39 Tainted: G        W     3.15.0-rc8_drm-intel-nightly_e9ce9f_20140617+ #3634
[   82.389242] Hardware name:                  /DZ87KLT75K, BIOS KLZ8711D.86A.0336.2013.0516.1957 05/16/2013
[   82.389245] Workqueue: events_unbound async_run_entry_fn
[   82.389246]  0000000000000000 0000000000000009 ffffffff81772bca ffff88024fc4bc68
[   82.389247]  ffffffff81036e54 0000000000000286 ffffffffa0069e8b ffff8802565bc000
[   82.389248]  ffffffffa00fe338 ffffffffa00fe338 0000000000000001 0000000000800000
[   82.389248] Call Trace:
[   82.389253]  [<ffffffff81772bca>] ? dump_stack+0x41/0x51
[   82.389255]  [<ffffffff81036e54>] ? warn_slowpath_common+0x78/0x90
[   82.389259]  [<ffffffffa0069e8b>] ? check_power_well_state+0x69/0x6f [i915]
[   82.389261]  [<ffffffff81036f04>] ? warn_slowpath_fmt+0x45/0x4a
[   82.389266]  [<ffffffffa0069e8b>] ? check_power_well_state+0x69/0x6f [i915]
[   82.389270]  [<ffffffffa006df31>] ? intel_display_power_get+0x82/0xb9 [i915]
[   82.389277]  [<ffffffffa00aad1c>] ? intel_display_set_init_power+0x22/0x34 [i915]
[   82.389282]  [<ffffffffa006ddff>] ? intel_power_domains_init_hw+0x21/0x6b [i915]
[   82.389285]  [<ffffffffa0064607>] ? i915_resume_early+0x3d/0x3d [i915]
[   82.389289]  [<ffffffffa0064135>] ? i915_drm_thaw_early+0x40/0x46 [i915]
[   82.389291]  [<ffffffff813d129b>] ? dpm_run_callback+0x30/0x6b
[   82.389293]  [<ffffffff813d1950>] ? device_resume_early+0x130/0x172
[   82.389294]  [<ffffffff813d1b78>] ? async_resume_early+0x14/0x38
[   82.389295]  [<ffffffff81053d9f>] ? async_run_entry_fn+0x55/0x10b
[   82.389297]  [<ffffffff8104aade>] ? process_one_work+0x1e2/0x363
[   82.389298]  [<ffffffff8104b385>] ? worker_thread+0x1c7/0x2bc
[   82.389300]  [<ffffffff8104b1be>] ? manage_workers.isra.23+0x1b5/0x1b5
[   82.389301]  [<ffffffff8104fb32>] ? kthread+0xc5/0xcd
[   82.389302]  [<ffffffff8104fa6d>] ? kthread_freezable_should_stop+0x40/0x40
[   82.389304]  [<ffffffff8177e9bc>] ? ret_from_fork+0x7c/0xb0
[   82.389305]  [<ffffffff8104fa6d>] ? kthread_freezable_should_stop+0x40/0x40


==Reproduce steps==
---------------------------- 
1. ./kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A
Comment 1 liulei 2014-06-25 14:01:36 UTC
resume from s3 cause this call trace too. 
reproduce steps:
xinit &
s3 and check dmesg.
--------------------------------------------------
-nightly: 891f8a6bb39ec9a0434c4f8ba468d203e89bf7cd (failed)
    drm-intel-nightly: 2014y-06m-24d-16h-16m-36s integration manifest
-queued: 9c33baa6b3bbb01c1a88dceba986b20e6642cf31 (failed)
    drivers/i915: Fix unnoticed failure of init_ring_common()
-fixes:  5b5ffff0d25060ab0e21fa0f6cd16428e87bf1ea (works)
    drm/i915: Hold the table lock whilst walking the file's idr and counting the objects in debugfs
Comment 2 Guo Jinxian 2014-08-04 08:56:20 UTC
This bug unable to reproduce on latest -nightly(ddbc288690cd888dd6f5629ccba9a2691a70b7b0)

[root@x-hsw24 tests]# ./kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A
IGT-Version: 1.7-gac31f19 (x86_64) (Linux: 3.16.0-rc6_drm-intel-nightly_ddbc28_20140804+ x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Mon Aug  4 08:42:50 2014
suspend-read-crc-pipe-A: Testing connector VGA-1 using pipe A
Subtest suspend-read-crc-pipe-A: SUCCESS
You have new mail in /var/spool/mail/root
[root@x-hsw24 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
[root@x-hsw24 tests]#
Comment 3 Jani Nikula 2014-09-08 13:56:45 UTC
(In reply to comment #2)
> This bug unable to reproduce on latest
> -nightly(ddbc288690cd888dd6f5629ccba9a2691a70b7b0)

comment #0 says "The fail rate about 1 out of 3." - I presume you tried multiple times. Resolving as fixed, please reopen if the problem persists.
Comment 4 yaoming 2014-09-09 07:06:49 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This bug unable to reproduce on latest
> > -nightly(ddbc288690cd888dd6f5629ccba9a2691a70b7b0)
> 
> comment #0 says "The fail rate about 1 out of 3." - I presume you tried
> multiple times. Resolving as fixed, please reopen if the problem persists.

I tested 6 times on latest drm-intel-nightly(4a3d32734bdcef6813b31f06a58430436e98711e), all passed.

[root@x-hsw27 tests]# ./kms_pipe_crc_basic --run-subtest suspend-read-crc-pipe-A
IGT-Version: 1.7-ga16ebcc (x86_64) (Linux: 3.17.0-rc4_drm-intel-nightly_4a3d32_20140909+ x86_64)
rtcwake: wakeup from "mem" using /dev/rtc0 at Tue Sep  9 07:01:29 2014
suspend-read-crc-pipe-A: Testing connector VGA-1 using pipe A
Subtest suspend-read-crc-pipe-A: SUCCESS
[root@x-hsw27 tests]# dmesg -r|egrep "<[1-4]>"|grep drm                         [root@x-hsw27 tests]#
[root@x-hsw27 tests]# uname -a
Linux x-hsw27 3.17.0-rc4_drm-intel-nightly_4a3d32_20140909+ #2276 SMP Tue Sep 9 11:32:56 CST 2014 x86_64 x86_64 x86_64 GNU/Linux
Comment 5 Guo Jinxian 2014-09-10 07:57:50 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > This bug unable to reproduce on latest
> > > -nightly(ddbc288690cd888dd6f5629ccba9a2691a70b7b0)
> > 
> > comment #0 says "The fail rate about 1 out of 3." - I presume you tried
> > multiple times. Resolving as fixed, please reopen if the problem persists.
> 
> I tested 6 times on latest
> drm-intel-nightly(4a3d32734bdcef6813b31f06a58430436e98711e), all passed.
> 
> [root@x-hsw27 tests]# ./kms_pipe_crc_basic --run-subtest
> suspend-read-crc-pipe-A
> IGT-Version: 1.7-ga16ebcc (x86_64) (Linux:
> 3.17.0-rc4_drm-intel-nightly_4a3d32_20140909+ x86_64)
> rtcwake: wakeup from "mem" using /dev/rtc0 at Tue Sep  9 07:01:29 2014
> suspend-read-crc-pipe-A: Testing connector VGA-1 using pipe A
> Subtest suspend-read-crc-pipe-A: SUCCESS
> [root@x-hsw27 tests]# dmesg -r|egrep "<[1-4]>"|grep drm                     
> [root@x-hsw27 tests]#
> [root@x-hsw27 tests]# uname -a
> Linux x-hsw27 3.17.0-rc4_drm-intel-nightly_4a3d32_20140909+ #2276 SMP Tue
> Sep 9 11:32:56 CST 2014 x86_64 x86_64 x86_64 GNU/Linux

Verified.
Comment 6 Jari Tahvanainen 2016-10-07 08:40:14 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.