Bug 82522 - [HSW] stuck page flips
Summary: [HSW] stuck page flips
Status: CLOSED DUPLICATE of bug 88872
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 19:38 UTC by Ricardo Salveti de Araujo
Modified: 2016-09-28 13:42 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Kernel log from boot until the crash (took almost 2 days to reproduce it) (1.81 MB, text/plain)
2014-08-12 19:50 UTC, Ricardo Salveti de Araujo
no flags Details
Xorg log (44.07 KB, text/plain)
2014-08-12 19:51 UTC, Ricardo Salveti de Araujo
no flags Details

Description Ricardo Salveti de Araujo 2014-08-12 19:38:33 UTC
Using my System76, Inc. Galago UltraPro (Intel Iris Pro Graphics 5200) with 2 extras full-hd monitors, all the screens die completely from time to time, making the system unusable (forcing a reboot).

My system:
Architecture: amd64
DistroRelease: Ubuntu 14.10
MachineType: System76, Inc. Galago UltraPro
PackageArchitecture: amd64
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-6-generic root=UUID=c87bf02e-1fdc-48ca-9392-be946b4de06e ro i915.disable_power_well=0 quiet splash drm.debug=0x06 vt.handoff=7
Uname: Linux 3.16.0-6-generic #11-Ubuntu
dmi.bios.date: 07/09/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.5
dmi.board.asset.tag: Tag 12345
dmi.board.name: Galago UltraPro
dmi.board.vendor: System76, Inc.
dmi.board.version: galu1
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: System76, Inc,
dmi.chassis.version: galu1
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd07/09/2013:svnSystem76,Inc.:pnGalagoUltraPro:pvrgalu1:rvnSystem76,Inc.:rnGalagoUltraPro:rvrgalu1:cvnSystem76,Inc,:ct9:cvrgalu1:
dmi.product.name: Galago UltraPro
dmi.product.version: galu1
dmi.sys.vendor: System76, Inc.

Enabled drm.debug=0x06, and after a reboot this is what I got in my syslog:
17749 Aug 12 16:19:11 evasys kernel: [181662.234954] ------------[ cut here ]------------
17750 Aug 12 16:19:11 evasys kernel: [181662.234997] WARNING: CPU: 0 PID: 2008 at /build/buildd/linux-3.16.0/drivers/gpu/drm/i915/intel_display.c:3313 intel_crtc_wait_for_pending_flips+0x171/0x180 [i915]()
17751 Aug 12 16:19:11 evasys kernel: [181662.235000] Modules linked in: nls_iso8859_1 mmc_block cdc_acm ctr ccm ec_sys xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_fi      lter ip_tables x_tables bnep rfcomm binfmt_misc ftdi_sio usbserial dm_crypt x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_via snd_hda_codec_generic snd_hda_codec_hdmi kvm_intel kvm arc4 snd_hda_intel snd_hda_controller crct10dif_pclmul snd_hda_codec cr      c32_pclmul ghash_clmulni_intel iwldvm aesni_intel aes_x86_64 snd_usb_audio lrw gf128mul mac80211 glue_helper snd_usbmidi_lib ablk_helper snd_hwdep cryptd snd_seq_midi joydev snd_seq_midi_event microcode serio_raw snd_rawmidi snd_seq iwlwifi snd_pcm uvcvideo snd_seq_d      evice videobuf2_vmalloc videobuf2_memops snd_timer cfg80211 videobuf2_core v4l2_common videodev btusb media rtsx_pci_ms bluetooth snd memstick 6lowpan_iphc soundcore mei_me lpc_ich shpchp mei tpm_infineon mac_hid parport_pc ppdev lp parport hid_logitech_dj btrfs xor       raid6_pq hid_generic usbhid hid rtsx_pci_sdmmc i915 i2c_algo_bit drm_kms_helper psmouse e1000e drm ahci ptp rtsx_pci libahci pps_core video wmi
17752 Aug 12 16:19:11 evasys kernel: [181662.235054] CPU: 0 PID: 2008 Comm: Xorg Not tainted 3.16.0-6-generic #11-Ubuntu
17753 Aug 12 16:19:11 evasys kernel: [181662.235056] Hardware name: System76, Inc. Galago UltraPro/Galago UltraPro, BIOS 4.6.5 07/09/2013
17754 Aug 12 16:19:11 evasys kernel: [181662.235057]  0000000000000009 ffff88040385fc10 ffffffff81755538 0000000000000000
17755 Aug 12 16:19:11 evasys kernel: [181662.235060]  ffff88040385fc48 ffffffff8106bb0d 0000000000000000 ffff8803ff908000
17756 Aug 12 16:19:11 evasys kernel: [181662.235062]  ffff8803ff8b8240 ffff880405143800 ffff880405143800 ffff88040385fc58
17757 Aug 12 16:19:11 evasys kernel: [181662.235064] Call Trace:
17758 Aug 12 16:19:11 evasys kernel: [181662.235072]  [<ffffffff81755538>] dump_stack+0x45/0x56
17759 Aug 12 16:19:11 evasys kernel: [181662.235076]  [<ffffffff8106bb0d>] warn_slowpath_common+0x7d/0xa0
17760 Aug 12 16:19:11 evasys kernel: [181662.235079]  [<ffffffff8106bbea>] warn_slowpath_null+0x1a/0x20
17761 Aug 12 16:19:11 evasys kernel: [181662.235098]  [<ffffffffc0208951>] intel_crtc_wait_for_pending_flips+0x171/0x180 [i915]
17762 Aug 12 16:19:11 evasys kernel: [181662.235102]  [<ffffffff810b2960>] ? prepare_to_wait_event+0x100/0x100
17763 Aug 12 16:19:11 evasys kernel: [181662.235118]  [<ffffffffc020b403>] intel_crtc_disable_planes+0x33/0x1c0 [i915]
17764 Aug 12 16:19:11 evasys kernel: [181662.235123]  [<ffffffff8175bb2b>] ? __ww_mutex_lock+0x1b/0x97
17765 Aug 12 16:19:11 evasys kernel: [181662.235137]  [<ffffffffc020c305>] haswell_crtc_disable+0x55/0x2f0 [i915]
17766 Aug 12 16:19:11 evasys kernel: [181662.235140]  [<ffffffff8175c062>] ? mutex_lock+0x12/0x2f
17767 Aug 12 16:19:11 evasys kernel: [181662.235154]  [<ffffffffc020cd27>] intel_crtc_update_dpms+0x67/0xa0 [i915]
17768 Aug 12 16:19:11 evasys kernel: [181662.235170]  [<ffffffffc02111e9>] intel_connector_dpms+0x59/0x70 [i915]
17769 Aug 12 16:19:11 evasys kernel: [181662.235186]  [<ffffffffc00ffa1f>] drm_mode_obj_set_property_ioctl+0x39f/0x3b0 [drm]
17770 Aug 12 16:19:11 evasys kernel: [181662.235200]  [<ffffffffc00ffa60>] drm_mode_connector_property_set_ioctl+0x30/0x40 [drm]
17771 Aug 12 16:19:11 evasys kernel: [181662.235210]  [<ffffffffc00eea3c>] drm_ioctl+0x1ec/0x660 [drm]
17772 Aug 12 16:19:11 evasys kernel: [181662.235217]  [<ffffffff811e2d20>] do_vfs_ioctl+0x2e0/0x4c0
17773 Aug 12 16:19:11 evasys kernel: [181662.235221]  [<ffffffff810a2de4>] ? vtime_account_user+0x54/0x60
17774 Aug 12 16:19:11 evasys kernel: [181662.235224]  [<ffffffff811e2f81>] SyS_ioctl+0x81/0xa0
17775 Aug 12 16:19:11 evasys kernel: [181662.235227]  [<ffffffff8175de7f>] tracesys+0xe1/0xe6
17776 Aug 12 16:19:11 evasys kernel: [181662.235228] ---[ end trace c5286de96500b7ab ]---
17777 Aug 12 16:19:11 evasys kernel: [181662.250978] [drm:intel_update_fbc] no output, disabling
17778 Aug 12 16:19:11 evasys kernel: [181662.250982] [drm:intel_edp_psr_match_conditions] PSR disable by flag
...
17906 Aug 12 16:19:12 evasys kernel: [181662.467971] [drm:intel_dp_set_signal_levels] Using signal levels 00000000
17907 Aug 12 16:19:12 evasys kernel: [181662.474841] [drm:drm_dp_dpcd_access] too many retries, giving up
17908 Aug 12 16:19:12 evasys kernel: [181662.474842] [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
...
18677 Aug 12 16:20:20 evasys kernel: [181730.978053] ------------[ cut here ]------------
18678 Aug 12 16:20:20 evasys kernel: [181730.978099] WARNING: CPU: 2 PID: 2008 at /build/buildd/linux-3.16.0/drivers/gpu/drm/i915/intel_display.c:3313 intel_crtc_wait_for_pending_flips+0x171/0x180 [i915]()
18679 Aug 12 16:20:20 evasys kernel: [181730.978100] Modules linked in: nls_iso8859_1 mmc_block cdc_acm ctr ccm ec_sys xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack xt_tcpudp bridge stp llc iptable_fi      lter ip_tables x_tables bnep rfcomm binfmt_misc ftdi_sio usbserial dm_crypt x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_via snd_hda_codec_generic snd_hda_codec_hdmi kvm_intel kvm arc4 snd_hda_intel snd_hda_controller crct10dif_pclmul snd_hda_codec cr      c32_pclmul ghash_clmulni_intel iwldvm aesni_intel aes_x86_64 snd_usb_audio lrw gf128mul mac80211 glue_helper snd_usbmidi_lib ablk_helper snd_hwdep cryptd snd_seq_midi joydev snd_seq_midi_event microcode serio_raw snd_rawmidi snd_seq iwlwifi snd_pcm uvcvideo snd_seq_d      evice videobuf2_vmalloc videobuf2_memops snd_timer cfg80211 videobuf2_core v4l2_common videodev btusb media rtsx_pci_ms bluetooth snd memstick 6lowpan_iphc soundcore mei_me lpc_ich shpchp mei tpm_infineon mac_hid parport_pc ppdev lp parport hid_logitech_dj btrfs xor       raid6_pq hid_generic usbhid hid rtsx_pci_sdmmc i915 i2c_algo_bit drm_kms_helper psmouse e1000e drm ahci ptp rtsx_pci libahci pps_core video wmi
18680 Aug 12 16:20:20 evasys kernel: [181730.978141] CPU: 2 PID: 2008 Comm: Xorg Tainted: G        W     3.16.0-6-generic #11-Ubuntu
18681 Aug 12 16:20:20 evasys kernel: [181730.978142] Hardware name: System76, Inc. Galago UltraPro/Galago UltraPro, BIOS 4.6.5 07/09/2013
18682 Aug 12 16:20:20 evasys kernel: [181730.978143]  0000000000000009 ffff88040385fc00 ffffffff81755538 0000000000000000
18683 Aug 12 16:20:20 evasys kernel: [181730.978145]  ffff88040385fc38 ffffffff8106bb0d 0000000000000000 ffff8803ff908000
18684 Aug 12 16:20:20 evasys kernel: [181730.978146]  ffff8803ff8b8240 ffff880405143800 ffff880405143b68 ffff88040385fc48
18685 Aug 12 16:20:20 evasys kernel: [181730.978148] Call Trace:
18686 Aug 12 16:20:20 evasys kernel: [181730.978154]  [<ffffffff81755538>] dump_stack+0x45/0x56
18687 Aug 12 16:20:20 evasys kernel: [181730.978158]  [<ffffffff8106bb0d>] warn_slowpath_common+0x7d/0xa0
18688 Aug 12 16:20:20 evasys kernel: [181730.978160]  [<ffffffff8106bbea>] warn_slowpath_null+0x1a/0x20
18689 Aug 12 16:20:20 evasys kernel: [181730.978173]  [<ffffffffc0208951>] intel_crtc_wait_for_pending_flips+0x171/0x180 [i915]
18690 Aug 12 16:20:20 evasys kernel: [181730.978176]  [<ffffffff810b2960>] ? prepare_to_wait_event+0x100/0x100
18691 Aug 12 16:20:20 evasys kernel: [181730.978189]  [<ffffffffc0212199>] intel_crtc_set_config+0x959/0xdb0 [i915]
18692 Aug 12 16:20:20 evasys kernel: [181730.978200]  [<ffffffffc00fa451>] drm_mode_set_config_internal+0x61/0xe0 [drm]
18693 Aug 12 16:20:20 evasys kernel: [181730.978209]  [<ffffffffc00fde99>] drm_mode_setcrtc+0xd9/0x590 [drm]
18694 Aug 12 16:20:20 evasys kernel: [181730.978216]  [<ffffffffc00eea3c>] drm_ioctl+0x1ec/0x660 [drm]
18695 Aug 12 16:20:20 evasys kernel: [181730.978221]  [<ffffffff811e2d20>] do_vfs_ioctl+0x2e0/0x4c0
18696 Aug 12 16:20:20 evasys kernel: [181730.978223]  [<ffffffff810a2de4>] ? vtime_account_user+0x54/0x60
18697 Aug 12 16:20:20 evasys kernel: [181730.978225]  [<ffffffff811e2f81>] SyS_ioctl+0x81/0xa0
18698 Aug 12 16:20:20 evasys kernel: [181730.978228]  [<ffffffff8175de7f>] tracesys+0xe1/0xe6
18699 Aug 12 16:20:20 evasys kernel: [181730.978229] ---[ end trace c5286de96500b7ac ]---
18700 Aug 12 16:20:20 evasys kernel: [181730.978231] [drm:intel_pipe_set_base] *ERROR* pipe is still busy with an old pageflip
18701 Aug 12 16:20:20 evasys kernel: [181730.978233] [drm:intel_crtc_set_config] failed to set mode on [CRTC:11], err = -16
18702 Aug 12 16:20:20 evasys kernel: [181730.978558] [drm:drm_mode_addfb] [FB:50]
18703 Aug 12 16:20:20 evasys kernel: [181730.978562] [drm:drm_mode_setcrtc] [CRTC:11]
18704 Aug 12 16:20:20 evasys kernel: [181730.978564] [drm:drm_mode_setcrtc] [CONNECTOR:27:HDMI-A-2]
18705 Aug 12 16:20:20 evasys kernel: [181730.978566] [drm:intel_crtc_set_config] [CRTC:11] [FB:50] #connectors=1 (x y) (0 0)
18706 Aug 12 16:20:20 evasys kernel: [181730.978567] [drm:intel_set_config_compute_mode_changes] computed changes for [CRTC:11], mode_changed=0, fb_changed=1
18707 Aug 12 16:20:20 evasys kernel: [181730.978569] [drm:intel_modeset_stage_output_state] [CONNECTOR:16:eDP-1] to [CRTC:5]
18708 Aug 12 16:20:20 evasys kernel: [181730.978570] [drm:intel_modeset_stage_output_state] [CONNECTOR:24:DP-1] to [CRTC:8]
18709 Aug 12 16:20:20 evasys kernel: [181730.978571] [drm:intel_modeset_stage_output_state] [CONNECTOR:27:HDMI-A-2] to [CRTC:11]
Comment 1 Ricardo Salveti de Araujo 2014-08-12 19:50:29 UTC
Created attachment 104520 [details]
Kernel log from boot until the crash (took almost 2 days to reproduce it)
Comment 2 Ricardo Salveti de Araujo 2014-08-12 19:51:06 UTC
Created attachment 104521 [details]
Xorg log
Comment 3 Ricardo Salveti de Araujo 2014-08-12 19:51:54 UTC
$ xrandr -q
Screen 0: minimum 8 x 8, current 5760 x 1080, maximum 32767 x 32767
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1920x1080      60.0*+   59.9  
   1680x1050      60.0     59.9  
   1600x1024      60.2  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1360x768       59.8     60.0  
   1152x864       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
DP1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080      60.0*+   50.0     59.9  
   1920x1080i     60.1     50.0     60.0  
   1600x1200      60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1280x720       60.0     50.0     59.9  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   720x576        50.0  
   720x480        60.0     59.9  
   640x480        75.0     60.0     59.9  
   720x400        70.1  
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 510mm x 287mm
   1920x1080      60.0*+
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Comment 4 Ricardo Salveti de Araujo 2014-08-12 19:56:40 UTC
Using native monitor (1080p), DELL U2414H on display-port and DELL U2312HM with a hdmi->dvi converter.

rsalveti@evasys:~$ cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/edid | parse-edid
Checksum Correct

Section "Monitor"
	Identifier "�
                     @"
	ModelName "�
                    @"
	VendorName "AUO"
	# Monitor Manufactured week 0 of 2012
	# EDID version 1.4
	# Digital Display
	DisplaySize 310 170
	Gamma 2.20
	Option "DPMS" "false"
	Modeline 	"Mode 0" 141.00 1920 1936 1952 2104 1080 1083 1097 1116 -hsync -vsync 
EndSection
rsalveti@evasys:~$ cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-DP-1/edid | parse-edid
Checksum Correct

Section "Monitor"
	Identifier "DELL U2414H"
	ModelName "DELL U2414H"
	VendorName "DEL"
	# Monitor Manufactured week 20 of 2014
	# EDID version 1.4
	# Digital Display
	DisplaySize 530 300
	Gamma 2.20
	Option "DPMS" "true"
	Horizsync 30-83
	VertRefresh 56-76
	# Maximum pixel clock is 170MHz
	#Not giving standard mode: 1152x864, 75Hz
	#Not giving standard mode: 1280x1024, 60Hz
	#Not giving standard mode: 1600x900, 60Hz
	#Not giving standard mode: 1600x1200, 60Hz
	#Not giving standard mode: 1920x1080, 60Hz

	#Extension block found. Parsing...
	Modeline 	"Mode 13" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync 
	Modeline 	"Mode 0" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync 
	Modeline 	"Mode 1" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 2" 74.250 1920 2008 2052 2200 1080 1082 1087 1125 +hsync +vsync interlace
	Modeline 	"Mode 3" 74.250 1280 1390 1420 1650 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 4" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 5" 27.027 720 736 798 858 480 489 495 525 -hsync -vsync
	Modeline 	"Mode 6" 27.027 1440 1478 1602 1716 480 484 487 525 -hsync -vsync interlace
	Modeline 	"Mode 7" 27.000 1440 1464 1590 1728 576 578 581 625 -hsync -vsync interlace
	Modeline 	"Mode 8" 25.200 640 656 752 800 480 490 492 525 -hsync -vsync
	Modeline 	"Mode 9" 74.250 1920 2448 2492 2640 1080 1082 1089 1125 +hsync +vsync interlace
	Modeline 	"Mode 10" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
	Modeline 	"Mode 11" 27.000 720 732 796 864 576 581 586 625 -hsync -vsync
	Modeline 	"Mode 12" 74.250 1280 1720 1760 1980 720 725 730 750 +hsync +vsync
	Modeline 	"Mode 14" 74.25 1920 2008 2052 2200 540 542 547 562 +hsync +vsync interlace
	Modeline 	"Mode 15" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync 
	Modeline 	"Mode 16" 27.00 720 736 798 858 480 489 495 525 -hsync -vsync 
	Option "PreferredMode" "Mode 13"
EndSection
rsalveti@evasys:~$ cat /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-HDMI-A-2/edid | parse-edid
Checksum Correct

Section "Monitor"
	Identifier "DELL U2312HM"
	ModelName "DELL U2312HM"
	VendorName "DEL"
	# Monitor Manufactured week 36 of 2013
	# EDID version 1.3
	# Digital Display
	DisplaySize 510 290
	Gamma 2.20
	Option "DPMS" "true"
	Horizsync 30-83
	VertRefresh 56-76
	# Maximum pixel clock is 170MHz
	#Not giving standard mode: 1152x864, 75Hz
	#Not giving standard mode: 1280x1024, 60Hz
	#Not giving standard mode: 1920x1080, 60Hz
	Modeline 	"Mode 0" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync 
EndSection
Comment 5 Rodrigo Vivi 2015-01-28 21:43:59 UTC
Hi Salveti, I know that it is complicate to reproduce since it is taking couple days to trigger the issue, but if possible could you please check if it still happens on drm-intel-nightly from cgit.freedesktop.org/drm-intel?

There was many changes related to page flip waitings from your kernel to our latest development branch. So it might worth to check if we still have this issue.

Thanks in advance
Comment 6 Ricardo Salveti de Araujo 2015-01-29 12:58:42 UTC
(In reply to Rodrigo Vivi from comment #5)
> Hi Salveti, I know that it is complicate to reproduce since it is taking
> couple days to trigger the issue, but if possible could you please check if
> it still happens on drm-intel-nightly from cgit.freedesktop.org/drm-intel?
> 
> There was many changes related to page flip waitings from your kernel to our
> latest development branch. So it might worth to check if we still have this
> issue.

Will build and check, as I'm still able to reproduce this issue with 3.18.
Comment 7 Chris Wilson 2015-02-18 15:28:22 UTC

*** This bug has been marked as a duplicate of bug 88872 ***
Comment 8 Jari Tahvanainen 2016-09-28 13:42:47 UTC
Closing as duplicate for closed+duplicate for closed+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.