Bug 90313 - [i915] drivers/gpu/drm/i915/intel_display.c:9713 intel_check_page_flip+0xda/0xf0 [i915]()
Summary: [i915] drivers/gpu/drm/i915/intel_display.c:9713 intel_check_page_flip+0xda/0...
Status: CLOSED INVALID
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 90381 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-05 10:45 UTC by Ondrej Novy
Modified: 2017-06-02 12:21 UTC (History)
5 users (show)

See Also:
i915 platform: HSW
i915 features: display/Other


Attachments
dmesg with flip message with drm debug on (248.04 KB, text/plain)
2015-05-13 08:50 UTC, SanderJ
no flags Details
2nd dmesg with flip message and drm debug on (248.80 KB, text/plain)
2015-05-14 12:22 UTC, SanderJ
no flags Details

Description Ondrej Novy 2015-05-05 10:45:19 UTC
I have this crashes on my Macbook Air. It doesn't hangs notebook.

* Ubuntu 15.04
* MacBookAir6,2
* Linux jupiter 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
* libdrm-2.4.60
* kernel cmdline: i915.enable_rc6=1 i915.enable_fbc=1 i915.lvds_downclock=1 vt.handoff=7

It's seems that I'm not alone:
* https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1420290
* https://bugzilla.redhat.com/show_bug.cgi?id=1190511
* https://bugzilla.redhat.com/show_bug.cgi?id=1181071
* https://bugzilla.redhat.com/show_bug.cgi?id=1184161
* https://bugzilla.redhat.com/show_bug.cgi?id=1183209

[  132.862376] ------------[ cut here ]------------
[  132.862433] WARNING: CPU: 2 PID: 0 at /build/buildd/linux-3.19.0/drivers/gpu/drm/i915/intel_display.c:9713 intel_check_page_flip+0xda/0xf0 [i915]()
[  132.862436] Kicking stuck page flip: queued at 7087, now 7095
[  132.862438] Modules linked in: pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) binfmt_misc rfcomm bnep nls_iso8859_1 btusb bluetooth mba6x_bl(OE) joydev applesmc input_polldev intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul wl(POE) ghash_clmulni_intel snd_seq_midi snd_seq_midi_event snd_hda_codec_hdmi snd_hda_codec_cirrus aesni_intel bcm5974 snd_hda_codec_generic aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm lpc_ich cfg80211 snd_rawmidi thunderbolt bdc_pci shpchp snd_seq mei_me mei snd_seq_device dw_dmac_pci snd_timer dw_dmac_core snd soundcore sbs sbshc spi_pxa2xx_platform apple_bl mac_hid parport_pc ppdev lp parport autofs4 hid_generic hid_apple usbhid hid i915 i2c_algo_bit drm_kms_helper ahci uas libahci drm usb_storage video
[  132.862499] CPU: 2 PID: 0 Comm: swapper/2 Tainted: P     U     OE  3.19.0-15-generic #15-Ubuntu
[  132.862502] Hardware name: Apple Inc. MacBookAir6,2/Mac-7DF21CB3ED6977E5, BIOS MBA61.88Z.0099.B18.1501071032 01/07/2015
[  132.862504]  ffffffffc03c4e10 ffff88026f283d28 ffffffff817c2205 0000000000000007
[  132.862507]  ffff88026f283d78 ffff88026f283d68 ffffffff8107595a ffff88026f283d88
[  132.862511]  ffff880035ea4000 ffff880035e90800 0000000000000000 ffff880035e909a8
[  132.862514] Call Trace:
[  132.862517]  <IRQ>  [<ffffffff817c2205>] dump_stack+0x45/0x57
[  132.862531]  [<ffffffff8107595a>] warn_slowpath_common+0x8a/0xc0
[  132.862534]  [<ffffffff810759d6>] warn_slowpath_fmt+0x46/0x50
[  132.862563]  [<ffffffffc0370a3a>] intel_check_page_flip+0xda/0xf0 [i915]
[  132.862588]  [<ffffffffc033d948>] ironlake_irq_handler+0x2e8/0xfd0 [i915]
[  132.862596]  [<ffffffff810956ff>] ? notifier_call_chain+0x4f/0x80
[  132.862602]  [<ffffffff810cd5f7>] handle_irq_event_percpu+0x77/0x1a0
[  132.862606]  [<ffffffff810cd761>] handle_irq_event+0x41/0x70
[  132.862612]  [<ffffffff810d07ce>] handle_edge_irq+0x6e/0x120
[  132.862615]  [<ffffffff81017772>] handle_irq+0x22/0x40
[  132.862620]  [<ffffffff817cc27f>] do_IRQ+0x4f/0xf0
[  132.862623]  [<ffffffff817ca0ed>] common_interrupt+0x6d/0x6d
[  132.862625]  <EOI>  [<ffffffff816643d5>] ? cpuidle_enter_state+0x65/0x160
[  132.862632]  [<ffffffff816643c1>] ? cpuidle_enter_state+0x51/0x160
[  132.862635]  [<ffffffff816645b7>] cpuidle_enter+0x17/0x20
[  132.862639]  [<ffffffff810b6a41>] cpu_startup_entry+0x311/0x3b0
[  132.862643]  [<ffffffff81048f97>] start_secondary+0x197/0x1c0
[  132.862646] ---[ end trace facd2167bed8b109 ]---
Comment 1 Ander Conselvan de Oliveira 2015-05-12 08:57:06 UTC
Please add drm.debug=0xe to your kernel command line, reproduce the bug again and attach full dmesg.
Comment 2 SanderJ 2015-05-13 08:49:21 UTC
Hi Ander,

I reported this bug on https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1420290
As my updates there don't appear here, I'm posting here also.


Sander

Snippet from around the flip message:

[ 7538.988560] [drm:valleyview_update_wm] Setting FIFO watermarks - A: plane=111, cursor=2, B: plane=2, cursor=2, SR: plane=60, cursor=2
[ 7538.988565] [drm:intel_set_memory_cxsr] memory self-refresh is enabled
[ 7538.994556] [drm:g4x_check_srwm] SR watermark: display plane 60, cursor 6
[ 7538.994563] [drm:g4x_check_srwm] SR watermark: display plane 117, cursor 10
[ 7538.994568] [drm:valleyview_update_wm] Setting FIFO watermarks - A: plane=111, cursor=6, B: plane=2, cursor=2, SR: plane=60, cursor=10
[ 7538.994572] [drm:intel_set_memory_cxsr] memory self-refresh is enabled
[ 7540.057903] [drm:i915_gem_context_destroy_ioctl] HW context 25 destroyed
[ 7543.835009] wlan0: deauthenticating from c0:4a:00:2c:dc:bd by local choice (Reason: 3=DEAUTH_LEAVING)
[ 7543.848742] cfg80211: Calling CRDA to update world regulatory domain
[ 7543.932927] cfg80211: World regulatory domain updated:
[ 7543.932935] cfg80211: DFS Master region: unset
[ 7543.932937] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 7543.932943] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 7543.932947] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 7543.932950] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 7543.932953] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 7543.932957] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 7545.299524] wlan0: authenticate with 00:14:7f:b2:ad:fd
[ 7545.311204] wlan0: send auth to 00:14:7f:b2:ad:fd (try 1/3)
[ 7545.313850] wlan0: authenticated
[ 7545.329704] wlan0: associate with 00:14:7f:b2:ad:fd (try 1/3)
[ 7545.333311] wlan0: RX AssocResp from 00:14:7f:b2:ad:fd (capab=0x411 status=0 aid=5)
[ 7545.334296] wlan0: associated
[ 7591.802174] ------------[ cut here ]------------
[ 7591.802224] WARNING: CPU: 0 PID: 0 at /build/buildd/linux-3.19.0/drivers/gpu/drm/i915/intel_display.c:9713 intel_check_page_flip+0xda/0xf0 [i915]()
[ 7591.802227] Kicking stuck page flip: queued at 453978, now 453983
[ 7591.802229] Modules linked in: ctr ccm rfcomm bnep nls_iso8859_1 hid_generic hp_wmi sparse_keymap btusb bluetooth usbhid joydev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic intel_rapl intel_soc_dts_thermal intel_powerclamp coretemp kvm_intel kvm crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cryptd arc4 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core rtl8723be v4l2_common btcoexist videodev rtl8723_common rtl_pci media rtlwifi mac80211 snd_hda_intel serio_raw snd_hda_controller cfg80211 snd_intel_sst_acpi snd_intel_sst_core snd_soc_rt5640 snd_soc_sst_mfld_platform mei_txe i915 snd_hda_codec snd_soc_rl6231 rtsx_pci_ms lpc_ich memstick snd_soc_core shpchp snd_compress snd_pcm_dmaengine snd_hwdep mei snd_pcm drm_kms_helper drm snd_seq_midi snd_seq_midi_event iosf_mbi
[ 7591.802283] i2c_algo_bit wmi snd_rawmidi snd_seq snd_seq_device video hp_wireless dw_dmac dw_dmac_core snd_timer processor_thermal_device int3403_thermal int3400_thermal acpi_thermal_rel intel_smartconnect snd i2c_hid hid soundcore rfkill_gpio i2c_designware_platform i2c_designware_core snd_soc_sst_acpi 8250_dw spi_pxa2xx_platform pwm_lpss_platform mac_hid pwm_lpss parport_pc ppdev lp parport autofs4 mmc_block rtsx_pci_sdmmc psmouse rtsx_pci sdhci_acpi sdhci
[ 7591.802322] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.19.0-16-generic #16-Ubuntu
[ 7591.802324] Hardware name: Hewlett-Packard HP Stream Notebook PC 13/802A, BIOS F.06 01/06/2015
[ 7591.802327] ffffffffc0559e10 ffff880076c03d18 ffffffff817c2235 0000000000000007
[ 7591.802332] ffff880076c03d68 ffff880076c03d58 ffffffff8107595a ffff880076c03d78
[ 7591.802336] ffff880071d65000 ffff88003671b000 0000000000000000 ffff88003671b1a8
[ 7591.802341] Call Trace:
[ 7591.802344] <IRQ> [<ffffffff817c2235>] dump_stack+0x45/0x57
[ 7591.802358] [<ffffffff8107595a>] warn_slowpath_common+0x8a/0xc0
[ 7591.802363] [<ffffffff810759d6>] warn_slowpath_fmt+0x46/0x50
[ 7591.802390] [<ffffffffc0505a3a>] intel_check_page_flip+0xda/0xf0 [i915]
[ 7591.802413] [<ffffffffc04ce549>] valleyview_pipestat_irq_handler+0x159/0x230 [i915]
[ 7591.802437] [<ffffffffc04d3fa1>] valleyview_irq_handler+0xc1/0x170 [i915]
[ 7591.802443] [<ffffffff810cd5f7>] handle_irq_event_percpu+0x77/0x1a0
[ 7591.802447] [<ffffffff810cd761>] handle_irq_event+0x41/0x70
[ 7591.802452] [<ffffffff810d07ce>] handle_edge_irq+0x6e/0x120
[ 7591.802457] [<ffffffff81017772>] handle_irq+0x22/0x40
[ 7591.802462] [<ffffffff817cc27f>] do_IRQ+0x4f/0xf0
[ 7591.802467] [<ffffffff817ca0ed>] common_interrupt+0x6d/0x6d
[ 7591.802469] <EOI> [<ffffffff81664405>] ? cpuidle_enter_state+0x65/0x160
[ 7591.802478] [<ffffffff816643f1>] ? cpuidle_enter_state+0x51/0x160
[ 7591.802482] [<ffffffff816645e7>] cpuidle_enter+0x17/0x20
[ 7591.802487] [<ffffffff810b6a41>] cpu_startup_entry+0x311/0x3b0
[ 7591.802492] [<ffffffff817b6b07>] rest_init+0x77/0x80
[ 7591.802498] [<ffffffff81d4cfce>] start_kernel+0x482/0x48f
[ 7591.802502] [<ffffffff81d4c120>] ? early_idt_handlers+0x120/0x120
[ 7591.802507] [<ffffffff81d4c4d7>] x86_64_start_reservations+0x2a/0x2c
[ 7591.802511] [<ffffffff81d4c61c>] x86_64_start_kernel+0x143/0x152
[ 7591.802514] ---[ end trace eb45f1b701243f9b ]---
[ 7666.909632] atkbd serio0: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
[ 7666.909640] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
[ 7666.917627] atkbd serio0: Unknown key released (translated set 2, code 0xd8 on isa0060/serio0).
[ 7666.917634] atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.
[ 7667.193969] [drm:intel_dp_detect] [CONNECTOR:35:DP-1]
[ 7667.194050] [drm:intel_hdmi_detect] [CONNECTOR:30:HDMI-A-1]
[ 7667.194224] [drm:gmbus_xfer] GMBUS [i915 gmbus dpb] NAK for addr: 0050 r(1)
[ 7667.194230] [drm:drm_do_probe_ddc_edid] drm: skipping non-existent adapter i915 gmbus dpb
[ 7667.194356] [drm:intel_hdmi_detect] [CONNECTOR:37:HDMI-A-2]
[ 7667.194638] [drm:drm_do_probe_ddc_edid] drm: skipping non-existent adapter i915 gmbus dpc
[ 7667.194714] [drm:intel_crt_detect] [CONNECTOR:27:VGA-1] force=1
[ 7667.194719] [drm:valleyview_crt_detect_hotplug] trigger hotplug detect cycle: adpa=0xf40000
[ 7667.202343] [drm:valleyview_crt_detect_hotplug] valleyview hotplug adpa=0xf40000, result 0
[ 7667.202349] [drm:intel_crt_detect] CRT not detected via hotplug
[ 7667.204040] [drm:drm_mode_getconnector] [CONNECTOR:39:?]
Comment 3 SanderJ 2015-05-13 08:50:53 UTC
Created attachment 115734 [details]
dmesg with flip message with drm debug on
Comment 4 SanderJ 2015-05-14 12:22:47 UTC
Created attachment 115766 [details]
2nd dmesg with flip message and drm debug on

$ grep -B10 -e flip dmesg.flip-drm-debug.2.txt 

[ 9954.504320] [drm:g4x_check_srwm] SR watermark: display plane 60, cursor 6
[ 9954.504324] [drm:g4x_check_srwm] SR watermark: display plane 117, cursor 10
[ 9954.504328] [drm:valleyview_update_wm] Setting FIFO watermarks - A: plane=111, cursor=6, B: plane=2, cursor=2, SR: plane=60, cursor=10
[ 9954.504331] [drm:intel_set_memory_cxsr] memory self-refresh is enabled
[ 9955.002466] [drm:intel_print_rc6_info] Enabling RC6 states: RC6 on
[ 9955.277145] [drm:valleyview_enable_rps] GPLL enabled? yes
[ 9955.277152] [drm:valleyview_enable_rps] GPU status: 0x0000c6d0
[ 9955.277156] [drm:valleyview_enable_rps] current GPU freq: 312 MHz (198)
[ 9955.277158] [drm:valleyview_enable_rps] setting GPU freq to 645 MHz (214)
[ 9955.306048] ------------[ cut here ]------------
[ 9955.306098] WARNING: CPU: 0 PID: 661 at /build/buildd/linux-3.19.0/drivers/gpu/drm/i915/intel_display.c:9713 intel_check_page_flip+0xda/0xf0 [i915]()
[ 9955.306101] Kicking stuck page flip: queued at 334777, now 334788
Comment 5 Viktor Kuzmin 2015-07-15 09:08:58 UTC
Same porblem on my box. I can reproduce this very often mostly using chromium.
My options for i915 driver: options i915 enable_rc6=7 enable_fbc=1 lvds_downclock=1 semaphores=1
My box is gentoo box with 4.1.2 kernel.
I had no such problems before 4.1.x kernel...



------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at drivers/gpu/drm/i915/intel_display.c:10098 intel_check_page_flip+0xe2/0xf0 [i915]()
Kicking stuck page flip: queued at 1597269, now 1597279
Modules linked in: thunderbolt msr bnep btusb btbcm btintel bluetooth bcm5974 snd_hda_codec_hdmi wl(PO) nouveau snd_hda_codec_cirrus intel_rapl snd_hda_codec_generic i915 iosf_mbi x86_pkg_temp_thermal coretemp kvm_intel snd_hda_intel ttm snd_hda_controller kvm intel_gtt snd_hda_codec i2c_algo_bit drm_kms_helper snd_hwdep snd_hda_core applesmc snd_pcm ghash_clmulni_intel input_polldev drm snd_timer i2c_i801 shpchp sbs battery sbshc apple_gmux evdev apple_bl ac mac_hid processor efivarfs sha256_generic tg3 ptp pps_core libphy fuse nfs lockd grace sunrpc fscache ext3 jbd ext2 firewire_core crc_itu_t usb_storage [last unloaded: thunderbolt]
CPU: 0 PID: 0 Comm: swapper/0 Tainted: P     U     O    4.1.2-gentoo #2
Hardware name: Apple Inc. MacBookPro11,3/Mac-2BD1B31983FE1663, BIOS MBP112.88Z.0138.B14.1501071031 01/07/2015
 0000000000000000 ffffffffa0b0a570 ffffffff815dadf8 ffff88047f203db8
 ffffffff81070d9c ffff88046c947000 ffff880469054000 ffff8804690541a0
 0000000000000000 0000000000000000 ffffffff81070e15 ffffffffa0b0d410
Call Trace:
 <IRQ>  [<ffffffff815dadf8>] ? dump_stack+0x4a/0x74
 [<ffffffff81070d9c>] ? warn_slowpath_common+0x7c/0xb0
 [<ffffffff81070e15>] ? warn_slowpath_fmt+0x45/0x50
 [<ffffffffa0a9a478>] ? __intel_pageflip_stall_check+0xb8/0x100 [i915]
 [<ffffffffa0aae272>] ? intel_check_page_flip+0xe2/0xf0 [i915]
 [<ffffffffa0a7aa21>] ? ironlake_irq_handler+0x2e1/0x1020 [i915]
 [<ffffffff810cb521>] ? enqueue_hrtimer+0x21/0xa0
 [<ffffffff815dfa23>] ? _raw_spin_unlock_irqrestore+0x13/0x40
 [<ffffffff810cbbed>] ? __hrtimer_start_range_ns+0x20d/0x3f0
 [<ffffffff810bbbd0>] ? handle_irq_event_percpu+0x30/0x1e0
 [<ffffffff810bbdb3>] ? handle_irq_event+0x33/0x50
 [<ffffffff810bea26>] ? handle_edge_irq+0xb6/0x130
 [<ffffffff81004f05>] ? handle_irq+0x15/0x30
 [<ffffffff8100479d>] ? do_IRQ+0x4d/0xf0
 [<ffffffff815e0c6b>] ? common_interrupt+0x6b/0x6b
 <EOI>  [<ffffffff814cc87a>] ? cpuidle_enter_state+0x9a/0x230
 [<ffffffff814cc853>] ? cpuidle_enter_state+0x73/0x230
 [<ffffffff810a8853>] ? cpu_startup_entry+0x253/0x410
 [<ffffffff818f7e22>] ? start_kernel+0x409/0x414
---[ end trace 94dd602ed46d7d30 ]---
Comment 6 Jani Nikula 2015-08-18 15:13:38 UTC
Please try v4.2-rc7 or drm-intel-nightly branch of [1], drop all i915 module parameters (such as i915.enable_rc6 i915.enable_fbc i915.lvds_downclock and i915.semaphores, they are not for regular use), add drm.debug=14, attach dmesg all the way from early boot.

[1] http://cgit.freedesktop.org/drm-intel
Comment 7 Jani Nikula 2015-08-18 15:15:40 UTC
*** Bug 90381 has been marked as a duplicate of this bug. ***
Comment 8 Meelis Roos 2015-09-09 07:18:35 UTC
I am another reporter seeing the same problem, this time in 4.2.0-rc7-00071-g0bad909 with no kernel options for drm or i915, so 4.2-rc7 does not cure it.

I do not have dmesg with drm_debug yet, will see if I can reproduce it at will (so fast I have seen it once).
Comment 9 Thomas Capricelli 2015-10-07 13:48:33 UTC
I've been hit by this on a box for the last few months, quite often, on kernel 4.0.1 (vanilla)

os : Gentoo
motherboard: Core1333DVI-2.66G
Comment 10 Ricardo 2017-02-22 15:46:21 UTC
Is this problem still appear in newer Kernel versions? if so please attach recent logs.

There has not been recent activity on this bug is no response is received in 30 days will be closed
Comment 11 Ricardo 2017-05-30 17:39:55 UTC
based on the lack of activity and a response from the submitter to update results with latest configuration the bug will be closed


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.