Bug 80464 - [SNB Regression]igt/pm_rpm subcases causes " WARNING: CPU: 2 PID: 3795 at drivers/gpu/drm/i915/intel_display.c:10543 check_crtc_state+0x198/0x888 [i915]()" sporadically
Summary: [SNB Regression]igt/pm_rpm subcases causes " WARNING: CPU: 2 PID: 3795 at dri...
Status: CLOSED DUPLICATE of bug 80463
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: high normal
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 09:12 UTC by Guo Jinxian
Modified: 2017-07-24 22:53 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (126.21 KB, text/plain)
2014-06-24 09:12 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-06-24 09:12:08 UTC
Created attachment 101657 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes. 
The fail rate is about 1 out of 3
I unable to find good commit

Non-working platforms: SNB

==kernel==
--------------------------
origin/drm-intel-nightly: 794975a476b0b5e16d04ed1e5d082b9e2b54b4fb(fails)
    drm-intel-nightly: 2014y-06m-23d-10h-38m-48s integration manifest
origin/drm-intel-next-queued: 9c33baa6b3bbb01c1a88dceba986b20e6642cf31(fails)
    drivers/i915: Fix unnoticed failure of init_ring_common()    
origin/drm-intel-fixes: bfafe93a1cd466ef318b7e5f6c65f59aee147791(fails)
    drm/i915: cache hw power well enabled state

==Bug detailed description==
-----------------------------
igt/pm_rpm subcases causes " WARNING: CPU: 2 PID: 3795 at drivers/gpu/drm/i915/intel_display.c:10543 check_crtc_state+0x198/0x888 [i915]()" sporadically 

Case list:
igt/pm_rpm/modeset-non-lpsp-stress
igt/pm_rpm/modeset-non-lpsp-stress-no-wait
igt/pm_rpm/modeset-stress-extra-wait
igt/pm_rpm/pci-d3-state
igt/pm_rpm/reg-read-ioctl
igt/pm_rpm/rte
igt/pm_rpm/sysfs-read
igt/pm_rpm/system-suspend

Output:
[root@x-sgb4 tests]# ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait
IGT-Version: 1.7-gfedb9b6 (i686) (Linux: 3.16.0-rc2_drm-intel-nightly_794975_20140624+ i686)
Runtime PM support: 1
PC8 residency support: 0
Subtest modeset-non-lpsp-stress-no-wait: SUCCESS

Dmesg shows:
[  465.280645] WARNING: CPU: 2 PID: 3795 at drivers/gpu/drm/i915/intel_display.c:10543 check_crtc_state+0x198/0x888 [i915]()
[  465.280646] crtc active state doesn't match with hw state (expected 0, found 1)
[  465.280647] Modules linked in: dm_mod snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support ppdev dcdbas serio_raw pcspkr i2c_i801 snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm lpc_ich mfd_core snd_timer snd soundcore tpm_tis parport_pc tpm parport acpi_cpufreq i915 video button drm_kms_helper drm
[  465.280658] CPU: 2 PID: 3795 Comm: pm_rpm Tainted: G        W     3.16.0-rc2_drm-intel-nightly_794975_20140624+ #3850
[  465.280659] Hardware name: Dell Inc. OptiPlex 990/0DXWW6, BIOS A02 02/26/2011
[  465.280659]  00000000 c16f4ae7 f4d5baf0 c10311b0 f81e7ca1 f5013000 f4d291e4 c28a8001
[  465.280662]  f4d291e0 c103122b 00000009 f4d5baf0 f822fba5 f4d5bb08 f81e7ca1 f822f374
[  465.280665]  0000292f f822fba5 00000000 00000001 00000a90 f5b0a6c4 c2f757eb f4d5bb34
[  465.280667] Call Trace:
[  465.280669]  [<c16f4ae7>] ? dump_stack+0x3e/0x4e
[  465.280671]  [<c10311b0>] ? warn_slowpath_common+0x65/0x78
[  465.280679]  [<f81e7ca1>] ? check_crtc_state+0x198/0x888 [i915]
[  465.280681]  [<c103122b>] ? warn_slowpath_fmt+0x29/0x2d
[  465.280688]  [<f81e7ca1>] ? check_crtc_state+0x198/0x888 [i915]
[  465.280699]  [<f81f3563>] ? intel_modeset_check_state+0x2ea/0x56f [i915]
[  465.280701]  [<c16f201e>] ? printk+0x16/0x1a
[  465.280709]  [<f81f3808>] ? intel_set_mode+0x20/0x25 [i915]
[  465.280716]  [<f81f4288>] ? intel_crtc_set_config+0x62f/0x92c [i915]
[  465.280720]  [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm]
[  465.280723]  [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm]
[  465.280728]  [<f8098219>] ? drm_mode_set_config_internal+0x39/0x8a [drm]
[  465.280731]  [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm]
[  465.280735]  [<f809b26a>] ? drm_mode_setcrtc+0x373/0x405 [drm]
[  465.280739]  [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm]
[  465.280743]  [<f80908cb>] ? drm_ioctl+0x22e/0x35f [drm]
[  465.280746]  [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm]
[  465.280750]  [<f809069d>] ? drm_copy_field+0x47/0x47 [drm]
[  465.280752]  [<c10ed665>] ? do_vfs_ioctl+0x3fa/0x444
[  465.280754]  [<c1073b56>] ? clockevents_program_event+0xe6/0x107
[  465.280756]  [<c1074d88>] ? tick_program_event+0x1c/0x1f
[  465.280758]  [<c1048580>] ? hrtimer_interrupt+0x14d/0x205
[  465.280760]  [<c10ed6f1>] ? SyS_ioctl+0x42/0x6d
[  465.280761]  [<c16f99e8>] ? sysenter_do_call+0x12/0x22
[  465.280762] ---[ end trace 40dd835f1176ec25 ]---

==Reproduce steps==
---------------------------- 
1.  ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait
Comment 1 Paulo Zanoni 2014-07-02 21:25:29 UTC
Please apply https://bugs.freedesktop.org/attachment.cgi?id=102162 and test it again.
Comment 2 Guo Jinxian 2014-07-03 03:06:17 UTC
(In reply to comment #1)
> Please apply https://bugs.freedesktop.org/attachment.cgi?id=102162 and test
> it again.

The Calltrace unable to reproduce with this patch. but the test was skipped.

Output:
[root@x-sgb3 tests]# ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait
IGT-Version: 1.7-g67e29a3 (x86_64) (Linux: 3.15.0-rc8_kcloud_152811_20140703+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Test requirement not met in function modeset_subtest, file pm_rpm.c:764:
Last errno: 2, No such file or directory
Test requirement: (!(enable_one_screen_with_type(&ms_data, type)))
Subtest modeset-non-lpsp-stress-no-wait: SKIP
[root@x-sgb3 tests]# dmesg|grep Call
Comment 3 Paulo Zanoni 2014-07-03 15:11:21 UTC
Let's keep the all the "SNB runtime PM" bugs under the same bucket.

*** This bug has been marked as a duplicate of bug 80463 ***


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.