Created attachment 101658 [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_uncore.c:47 assert_device_not_suspended+0x39/0x3d [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.280940] WARNING: CPU: 2 PID: 3795 at drivers/gpu/drm/i915/intel_uncore.c:47 assert_device_not_suspended+0x39/0x3d [i915]() [ 465.280940] Device suspended [ 465.280941] 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.280952] CPU: 2 PID: 3795 Comm: pm_rpm Tainted: G W 3.16.0-rc2_drm-intel-nightly_794975_20140624+ #3850 [ 465.280953] Hardware name: Dell Inc. OptiPlex 990/0DXWW6, BIOS A02 02/26/2011 [ 465.280954] 00000000 c16f4ae7 f4d5bd38 c10311b0 f81df53b c28a8000 c28a8058 f4d5bdb4 [ 465.280957] 000c6014 c103122b 00000009 f4d5bd38 f822e727 f4d5bd50 f81df53b f822e58c [ 465.280959] 0000002f f822e727 f81e02ca f4d5bd60 01094325 c28a8000 f4d5bda4 f4d5bdb4 [ 465.280973] Call Trace: [ 465.280980] [<c16f4ae7>] ? dump_stack+0x3e/0x4e [ 465.280986] [<c10311b0>] ? warn_slowpath_common+0x65/0x78 [ 465.280999] [<f81df53b>] ? assert_device_not_suspended+0x39/0x3d [i915] [ 465.281005] [<c103122b>] ? warn_slowpath_fmt+0x29/0x2d [ 465.281017] [<f81df53b>] ? assert_device_not_suspended+0x39/0x3d [i915] [ 465.281029] [<f81e02ca>] ? gen6_read32+0x17/0xb4 [i915] [ 465.281042] [<f81e4b61>] ? ibx_pch_dpll_get_hw_state+0x21/0x67 [i915] [ 465.281055] [<f81f35d4>] ? intel_modeset_check_state+0x35b/0x56f [i915] [ 465.281061] [<c16f201e>] ? printk+0x16/0x1a [ 465.281073] [<f81f3808>] ? intel_set_mode+0x20/0x25 [i915] [ 465.281085] [<f81f4288>] ? intel_crtc_set_config+0x62f/0x92c [i915] [ 465.281092] [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm] [ 465.281097] [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm] [ 465.281105] [<f8098219>] ? drm_mode_set_config_internal+0x39/0x8a [drm] [ 465.281110] [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm] [ 465.281116] [<f809b26a>] ? drm_mode_setcrtc+0x373/0x405 [drm] [ 465.281122] [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm] [ 465.281128] [<f80908cb>] ? drm_ioctl+0x22e/0x35f [drm] [ 465.281134] [<f809aef7>] ? drm_mode_setplane+0x136/0x136 [drm] [ 465.281140] [<f809069d>] ? drm_copy_field+0x47/0x47 [drm] [ 465.281143] [<c10ed665>] ? do_vfs_ioctl+0x3fa/0x444 [ 465.281147] [<c1073b56>] ? clockevents_program_event+0xe6/0x107 [ 465.281150] [<c1074d88>] ? tick_program_event+0x1c/0x1f [ 465.281153] [<c1048580>] ? hrtimer_interrupt+0x14d/0x205 [ 465.281156] [<c10ed6f1>] ? SyS_ioctl+0x42/0x6d [ 465.281159] [<c16f99e8>] ? sysenter_do_call+0x12/0x22 [ 465.281160] ---[ end trace 40dd835f1176ec27 ]--- ==Reproduce steps== ---------------------------- 1. ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait
Please apply https://bugs.freedesktop.org/attachment.cgi?id=102162 and test it again.
(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
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 ***
On latest -nightly(2ea23cd593ba60ead60e2f796fae675aa4475b1a), the failure still able to reproduce after bug 80463 verified while running tests below: igt/pm_rpm/pci-d3-state igt/pm_rpm/rte igt/pm_rpm/universal-planes-dpms root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./pm_rpm --run-subtest universal-planes-dpms IGT-Version: 1.8-gca6b63f (x86_64) (Linux: 3.17.0_drm-intel-nightly_2ea23c_20141014_debug+ x86_64) Runtime PM support: 1 PC8 residency support: 0 Subtest universal-planes-dpms: SUCCESS (27.742s) root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# dmesg -r|egrep "<[1-4]>"|grep drm <4>[ 4998.011746] [<ffffffffa000f5fb>] drm_release+0x26c/0x429 [drm] <4>[ 4998.011840] WARNING: CPU: 1 PID: 25968 at drivers/gpu/drm/i915/intel_uncore.c:47 assert_device_not_suspende d+0x4b/0x4d [i915]() <4>[ 4998.011847] Modules linked in: dm_mod iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel pcspkr serio_raw snd_hda_controller snd_hda_codec snd_hwdep lpc_ich i2c_i801 mfd_core snd_pcm snd_timer snd soundcore iosf_mbi battery ac acpi_cpufreq i915 button video drm_kms_helper drm c fbfillrect cfbimgblt cfbcopyarea <4>[ 4998.011904] CPU: 1 PID: 25968 Comm: pm_rpm Tainted: G W 3.17.0_drm-intel-nightly_2ea23c_2014101 4_debug+ #488 <4>[ 4998.012499] [<ffffffffa002507f>] ? drm_modeset_lock+0x95/0xbc [drm] <4>[ 4998.012520] [<ffffffffa0018d1c>] drm_mode_set_config_internal+0x57/0xe4 [drm] <4>[ 4998.012541] [<ffffffffa0018f38>] drm_framebuffer_remove+0x7f/0xff [drm] <4>[ 4998.012562] [<ffffffffa001d07f>] drm_fb_release+0x7a/0x9e [drm] <4>[ 4998.012580] [<ffffffffa000f5fb>] drm_release+0x26c/0x429 [drm]
Which outputs were you using? Please attach the full dmesg file, booting with drm.debug=0xe and i915.mmio_debug=1
Created attachment 107856 [details] dmesg (In reply to Paulo Zanoni from comment #5) > Which outputs were you using? Please attach the full dmesg file, booting > with drm.debug=0xe and i915.mmio_debug=1 I use VGA monitor for this testing. [root@x-sgb4 tests]# ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait IGT-Version: 1.8-ga0b5c6d (i686) (Linux: 3.17.0_drm-intel-nightly_2ea23c_20141015+ i686) Runtime PM support: 1 PC8 residency support: 0 Subtest modeset-non-lpsp-stress-no-wait: SUCCESS (1.974s) [root@x-sgb4 tests]# dmesg -r|egrep "<[1-4]>"|grep drm [root@x-sgb4 tests]#
(In reply to Guo Jinxian from comment #6) > Created attachment 107856 [details] > dmesg > > (In reply to Paulo Zanoni from comment #5) > > Which outputs were you using? Please attach the full dmesg file, booting > > with drm.debug=0xe and i915.mmio_debug=1 > > I use VGA monitor for this testing. > > > [root@x-sgb4 tests]# ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait > IGT-Version: 1.8-ga0b5c6d (i686) (Linux: > 3.17.0_drm-intel-nightly_2ea23c_20141015+ i686) > Runtime PM support: 1 > PC8 residency support: 0 > Subtest modeset-non-lpsp-stress-no-wait: SUCCESS (1.974s) > [root@x-sgb4 tests]# dmesg -r|egrep "<[1-4]>"|grep drm > [root@x-sgb4 tests]# The log file you sent does not have any WARNs. Is the bug fixed? Maybe you need to increase the log buffer size through CONFIG_LOG_BUF_SHIFT? (I use CONFIG_LOG_BUF_SHIFT=21)
(In reply to Paulo Zanoni from comment #7) > (In reply to Guo Jinxian from comment #6) > > Created attachment 107856 [details] > > dmesg > > > > (In reply to Paulo Zanoni from comment #5) > > > Which outputs were you using? Please attach the full dmesg file, booting > > > with drm.debug=0xe and i915.mmio_debug=1 > > > > I use VGA monitor for this testing. > > > > > > [root@x-sgb4 tests]# ./pm_rpm --run-subtest modeset-non-lpsp-stress-no-wait > > IGT-Version: 1.8-ga0b5c6d (i686) (Linux: > > 3.17.0_drm-intel-nightly_2ea23c_20141015+ i686) > > Runtime PM support: 1 > > PC8 residency support: 0 > > Subtest modeset-non-lpsp-stress-no-wait: SUCCESS (1.974s) > > [root@x-sgb4 tests]# dmesg -r|egrep "<[1-4]>"|grep drm > > [root@x-sgb4 tests]# > > The log file you sent does not have any WARNs. Is the bug fixed? Maybe you > need to increase the log buffer size through CONFIG_LOG_BUF_SHIFT? (I use > CONFIG_LOG_BUF_SHIFT=21) Yes, the bug unable to reproduce. It should be fixed.
Closing old verified.
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.