Bug 97412 - [SNB] vblank wait timeout, giving kernel panic, while switching TTY
Summary: [SNB] vblank wait timeout, giving kernel panic, while switching TTY
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
: 97241 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-20 01:18 UTC by Marcel Dijkstra
Modified: 2018-10-01 11:01 UTC (History)
5 users (show)

See Also:
i915 platform: SNB
i915 features: display/atomic


Attachments
drm-tip kernel oops (14.77 KB, text/plain)
2017-02-09 18:34 UTC, Marcel Dijkstra
no flags Details
4.13.0-rc2 drmtip (4.37 KB, text/plain)
2017-07-29 15:13 UTC, Marcel Dijkstra
no flags Details
linux-4.16.0-rc7-drmtip (52.67 KB, text/x-log)
2018-04-01 12:32 UTC, Marcel Dijkstra
no flags Details

Description Marcel Dijkstra 2016-08-20 01:18:35 UTC
---=[ bug description ]=---
A graphics driver related kernel panic occurs on my laptop when switching from a text-based console
(TTY2, Shfit+Alt+F2) to my X11-session running Mate-DE (TTY7, Shift+Alt+F7). This happens after about
5 cycles between TTY2 and TTY7. This bug seems to occur since using a different console font (Terminus)
and non-black console background on TTY2. A systemd service is run for every text-based TTY, executing:

$ color_bg="001217"
$ echo -en "\e]P0$color_bg"
$ setfont /usr/share/kbd/consolefonts/ter-i14n.psf.gz

The bug does not seem to happen with a black background and standard font on TTY2. The kernel-panic
happens just after switching to TTY7. The Mate desktop looks normal, except some GTK-elements are not
rendered. The system is otherwise not responding, due to kernel panic.

---=[ system info ]=---
machine: Lenovo ThinkPad T520, model 42435JG
cpu: CPU0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz (family: 0x6, model: 0x2a, stepping: 0x7)
distro: Arch Linux, arch: x86_64
lspci: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
kernel-param: i915.modeset=1
linux: 4.7-1
xf86-video-intel: 1:2.99.917+691+ga77397a-1 (build: Fri 05 Aug 2016) (X.org Intel i810/i830/i915/945G/G965+ video drivers)
mesa: 12.0.1-7
xorg-server: 1.18.4-1
mate-desktop: 1.14.0-1
terminus-font: 4.40-2

---=[ kernel panic ]=---
Aug 20 01:52:50 thinkpad kernel: ------------[ cut here ]------------
Aug 20 01:52:50 thinkpad kernel: WARNING: CPU: 2 PID: 502 at drivers/gpu/drm/drm_irq.c:1318 drm_wait_one_vblank+0x1b0/0x1c0 [drm]
Aug 20 01:52:50 thinkpad kernel: vblank wait timed out on crtc 0
Aug 20 01:52:50 thinkpad kernel: Modules linked in: fuse sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm nf_conntrack_ipv4 nf_defrag_ipv4 uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_core btbcm btintel cdc_mbim videodev bluetooth cdc_ncm cdc_acm cdc_wdm usbnet media mii xt_tcpudp xt_recent xt_conntrack nf_conntrack iptable_filter intel_rapl x86_pkg_temp_thermal intel_powerclamp arc4 coretemp kvm_intel kvm iwldvm irqbypass joydev mousedev crct10dif_pclmul mac80211 crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic aes_x86_64 lrw gf128mul glue_helper iwlwifi mei_wdt snd_hda_intel e1000e ablk_helper cfg80211 snd_hda_codec snd_hda_core iTCO_wdt snd_hwdep iTCO_vendor_support snd_pcm thinkpad_acpi cryptd nvram
Aug 20 01:52:50 thinkpad kernel:  mei_me psmouse mei snd_timer snd intel_cstate intel_rapl_perf i2c_i801 input_leds fjes serio_raw ac battery thermal ptp wmi shpchp soundcore rfkill evdev pps_core lpc_ich mac_hid tpm_tis tpm sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) ip_tables x_tables ext4 crc16 jbd2 mbcache sr_mod sd_mod cdrom hid_logitech_hidpp hid_generic hid_logitech_dj usbhid hid atkbd libps2 ahci libahci firewire_ohci sdhci_pci libata sdhci led_class ehci_pci firewire_core crc_itu_t scsi_mod ehci_hcd mmc_core usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm
Aug 20 01:52:50 thinkpad kernel: CPU: 2 PID: 502 Comm: Xorg Tainted: G           O    4.7.0-1-ARCH #1
Aug 20 01:52:50 thinkpad kernel: Hardware name: LENOVO 42435JG/42435JG, BIOS 8AET65WW (1.45 ) 05/14/2015
Aug 20 01:52:50 thinkpad kernel:  0000000000000286 000000001ffc702f ffff8800d51a7770 ffffffff812eaee2
Aug 20 01:52:50 thinkpad kernel:  ffff8800d51a77c0 0000000000000000 ffff8800d51a77b0 ffffffff8107a3ab
Aug 20 01:52:50 thinkpad kernel:  00000526142f5800 ffff8802142f5800 0000000000000000 0000000000000000
Aug 20 01:52:50 thinkpad kernel: Call Trace:
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff812eaee2>] dump_stack+0x63/0x81
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8107a3ab>] __warn+0xcb/0xf0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8107a42f>] warn_slowpath_fmt+0x5f/0x80
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810bc7d5>] ? finish_wait+0x55/0x70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa00079e0>] drm_wait_one_vblank+0x1b0/0x1c0 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810bcc80>] ? wake_atomic_t_function+0x60/0x60
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa015de65>] intel_pre_plane_update+0x135/0x140 [i915]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa015e7ab>] intel_atomic_commit+0x47b/0x1460 [i915]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0020a7d>] ? drm_atomic_check_only+0x18d/0x610 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0020f37>] drm_atomic_commit+0x37/0x60 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0094018>] restore_fbdev_mode+0x238/0x260 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa00966b4>] drm_fb_helper_restore_fbdev_mode_unlocked+0x34/0x80 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa009672d>] drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa01797fa>] intel_fbdev_set_par+0x1a/0x60 [i915]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81368495>] ? fb_set_var+0x2f5/0x460
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813683d6>] fb_set_var+0x236/0x460
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810ae84a>] ? update_curr+0x6a/0x1a0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810aecc2>] ? check_preempt_wakeup+0x122/0x2a0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810aab0c>] ? __enqueue_entity+0x6c/0x70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810b1405>] ? enqueue_entity+0x1f5/0xe50
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810a328e>] ? check_preempt_curr+0x7e/0x90
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8135efbf>] fbcon_blank+0x30f/0x350
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813e37e2>] do_unblank_screen+0xc2/0x190
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813d9799>] complete_change_console+0x59/0xe0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813d9f29>] vt_ioctl+0x709/0x12d0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0009ee8>] ? drm_dropmaster_ioctl+0x68/0x80 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa00059da>] ? drm_ioctl+0x18a/0x540 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813ce895>] tty_ioctl+0x365/0xc70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff811fa4d9>] ? do_readv_writev+0x149/0x240
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff811f93a7>] ? __vfs_read+0x37/0x130
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8120cbb3>] do_vfs_ioctl+0xa3/0x5d0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81217bf7>] ? __fget+0x77/0xb0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81217bf7>] ? __fget+0x77/0xb0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8120d159>] SyS_ioctl+0x79/0x90
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff815dd732>] entry_SYSCALL_64_fastpath+0x1a/0xa4
Aug 20 01:52:50 thinkpad kernel: ---[ end trace b9fb30475229ca7d ]---
Aug 20 01:52:50 thinkpad kernel: ------------[ cut here ]------------
Aug 20 01:52:50 thinkpad kernel: WARNING: CPU: 0 PID: 502 at drivers/gpu/drm/i915/intel_display.c:13562 intel_atomic_commit+0x13af/0x1460 [i915]
Aug 20 01:52:50 thinkpad kernel: pipe A vblank wait timed out
Aug 20 01:52:50 thinkpad kernel: Modules linked in: fuse sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm nf_conntrack_ipv4 nf_defrag_ipv4 uvcvideo videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_core btbcm btintel cdc_mbim videodev bluetooth cdc_ncm cdc_acm cdc_wdm usbnet media mii xt_tcpudp xt_recent xt_conntrack nf_conntrack iptable_filter intel_rapl x86_pkg_temp_thermal intel_powerclamp arc4 coretemp kvm_intel kvm iwldvm irqbypass joydev mousedev crct10dif_pclmul mac80211 crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic aes_x86_64 lrw gf128mul glue_helper iwlwifi mei_wdt snd_hda_intel e1000e ablk_helper cfg80211 snd_hda_codec snd_hda_core iTCO_wdt snd_hwdep iTCO_vendor_support snd_pcm thinkpad_acpi cryptd nvram
Aug 20 01:52:50 thinkpad kernel:  mei_me psmouse mei snd_timer snd intel_cstate intel_rapl_perf i2c_i801 input_leds fjes serio_raw ac battery thermal ptp wmi shpchp soundcore rfkill evdev pps_core lpc_ich mac_hid tpm_tis tpm sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) ip_tables x_tables ext4 crc16 jbd2 mbcache sr_mod sd_mod cdrom hid_logitech_hidpp hid_generic hid_logitech_dj usbhid hid atkbd libps2 ahci libahci firewire_ohci sdhci_pci libata sdhci led_class ehci_pci firewire_core crc_itu_t scsi_mod ehci_hcd mmc_core usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm
Aug 20 01:52:50 thinkpad kernel: CPU: 0 PID: 502 Comm: Xorg Tainted: G        W  O    4.7.0-1-ARCH #1
Aug 20 01:52:50 thinkpad kernel: Hardware name: LENOVO 42435JG/42435JG, BIOS 8AET65WW (1.45 ) 05/14/2015
Aug 20 01:52:50 thinkpad kernel:  0000000000000286 000000001ffc702f ffff8800d51a7828 ffffffff812eaee2
Aug 20 01:52:50 thinkpad kernel:  ffff8800d51a7878 0000000000000000 ffff8800d51a7868 ffffffff8107a3ab
Aug 20 01:52:50 thinkpad kernel:  000034fa00000282 ffff8802147be000 0000000000000000 0000000000000000
Aug 20 01:52:50 thinkpad kernel: Call Trace:
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff812eaee2>] dump_stack+0x63/0x81
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8107a3ab>] __warn+0xcb/0xf0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8107a42f>] warn_slowpath_fmt+0x5f/0x80
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810bc7d5>] ? finish_wait+0x55/0x70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa015f6df>] intel_atomic_commit+0x13af/0x1460 [i915]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810bcc80>] ? wake_atomic_t_function+0x60/0x60
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0020f37>] drm_atomic_commit+0x37/0x60 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0094018>] restore_fbdev_mode+0x238/0x260 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa00966b4>] drm_fb_helper_restore_fbdev_mode_unlocked+0x34/0x80 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa009672d>] drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa01797fa>] intel_fbdev_set_par+0x1a/0x60 [i915]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81368495>] ? fb_set_var+0x2f5/0x460
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813683d6>] fb_set_var+0x236/0x460
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810ae84a>] ? update_curr+0x6a/0x1a0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810aecc2>] ? check_preempt_wakeup+0x122/0x2a0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810aab0c>] ? __enqueue_entity+0x6c/0x70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810b1405>] ? enqueue_entity+0x1f5/0xe50
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff810a328e>] ? check_preempt_curr+0x7e/0x90
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8135efbf>] fbcon_blank+0x30f/0x350
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813e37e2>] do_unblank_screen+0xc2/0x190
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813d9799>] complete_change_console+0x59/0xe0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813d9f29>] vt_ioctl+0x709/0x12d0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa0009ee8>] ? drm_dropmaster_ioctl+0x68/0x80 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffffa00059da>] ? drm_ioctl+0x18a/0x540 [drm]
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff813ce895>] tty_ioctl+0x365/0xc70
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff811fa4d9>] ? do_readv_writev+0x149/0x240
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff811f93a7>] ? __vfs_read+0x37/0x130
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8120cbb3>] do_vfs_ioctl+0xa3/0x5d0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81217bf7>] ? __fget+0x77/0xb0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff81217bf7>] ? __fget+0x77/0xb0
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff8120d159>] SyS_ioctl+0x79/0x90
Aug 20 01:52:50 thinkpad kernel:  [<ffffffff815dd732>] entry_SYSCALL_64_fastpath+0x1a/0xa4
Aug 20 01:52:50 thinkpad kernel: ---[ end trace b9fb30475229ca7e ]---

---=[ xrandr --verbose ]=---
Screen 0: minimum 8 x 8, current 1600 x 900, maximum 32767 x 32767
LVDS1 connected primary 1600x900+0+0 (0x4c) normal (normal left inverted right x axis y axis) 350mm x 190mm
	Identifier: 0x42
	Timestamp:  735871
	Subpixel:   horizontal rgb
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID: 
		00ffffffffffff0030aeb14000000000
		0013010380231378ea43c59c59519626
		11505400000001010101010101010101
		010101010101622a404061842a303020
		350059c2100000195323404061842a30
		3020350059c2100000190000000f00a9
		0932a9092816090030e40002000000fe
		004c503135365744312d544c423200e2
	BACKLIGHT: 14 
		range: (0, 15)
	Backlight: 14 
		range: (0, 15)
	scaling mode: Full aspect 
		supported: None, Full, Center, Full aspect
  1600x900 (0x4c) 108.500MHz -HSync -VSync *current +preferred
        h: width  1600 start 1648 end 1680 total 1920 skew    0 clock  56.51KHz
        v: height  900 start  903 end  908 total  942           clock  59.99Hz
  1600x900 (0xd8) 90.430MHz -HSync -VSync
        h: width  1600 start 1648 end 1680 total 1920 skew    0 clock  47.10KHz
        v: height  900 start  903 end  908 total  942           clock  50.00Hz
  1368x768 (0xd9) 85.860MHz -HSync +VSync
        h: width  1368 start 1440 end 1584 total 1800 skew    0 clock  47.70KHz
        v: height  768 start  769 end  772 total  795           clock  60.00Hz
  1280x720 (0xda) 74.480MHz -HSync +VSync
        h: width  1280 start 1336 end 1472 total 1664 skew    0 clock  44.76KHz
        v: height  720 start  721 end  724 total  746           clock  60.00Hz
  1024x768 (0xdb) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  1024x576 (0xdc) 46.995MHz -HSync +VSync
        h: width  1024 start 1064 end 1168 total 1312 skew    0 clock  35.82KHz
        v: height  576 start  577 end  580 total  597           clock  60.00Hz
  960x540 (0xdd) 40.784MHz -HSync +VSync
        h: width   960 start  992 end 1088 total 1216 skew    0 clock  33.54KHz
        v: height  540 start  541 end  544 total  559           clock  60.00Hz
  800x600 (0xde) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  800x600 (0xdf) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz
  864x486 (0xe0) 32.901MHz -HSync +VSync
        h: width   864 start  888 end  976 total 1088 skew    0 clock  30.24KHz
        v: height  486 start  487 end  490 total  504           clock  60.00Hz
  800x450 (0xe1) 27.736MHz -HSync +VSync
        h: width   800 start  816 end  896 total  992 skew    0 clock  27.96KHz
        v: height  450 start  451 end  454 total  466           clock  60.00Hz
  640x480 (0xe2) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  720x405 (0xe3) 22.176MHz -HSync +VSync
        h: width   720 start  728 end  800 total  880 skew    0 clock  25.20KHz
        v: height  405 start  406 end  409 total  420           clock  60.00Hz
  640x360 (0xe4) 17.187MHz -HSync +VSync
        h: width   640 start  640 end  704 total  768 skew    0 clock  22.38KHz
        v: height  360 start  361 end  364 total  373           clock  60.00Hz
DP1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x43
	Timestamp:  735871
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
DP2 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x44
	Timestamp:  735871
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
DP3 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x45
	Timestamp:  735871
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
HDMI1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x46
	Timestamp:  735871
	Subpixel:   unknown
	Clones:     VGA1
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
HDMI2 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x47
	Timestamp:  735871
	Subpixel:   unknown
	Clones:     VGA1
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
HDMI3 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x48
	Timestamp:  735871
	Subpixel:   unknown
	Clones:     VGA1
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
VGA1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x49
	Timestamp:  735871
	Subpixel:   unknown
	Clones:     HDMI1 HDMI2 HDMI3
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x4a
	Timestamp:  735871
	Subpixel:   no subpixels
	Clones:    
	CRTCs:      2
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter:
Comment 1 Marcel Dijkstra 2016-08-20 21:41:38 UTC
Today came update to linux 4.7.1-1 on Arch Linux and after many cycles between TTY2 and TTY7 no kernel panic happened thus-far. My window manager is compiz 0.9.12.2-5 with emerald 0.9.5-19 window decorator. Oddly, switching to TTY7 does sometimes cause repeated flickering of GTK-elements with transparancies e.g. transparent terminal and icons in notification area.
Comment 2 Marcel Dijkstra 2016-08-24 17:27:49 UTC
Another kernel-oops switching TTY2 to TTY7, even without fancy terminal-font and background-coloring. It hasn't gone away; I could get back to TTY2 this time. Recently, Arch Linux driver-package suggested DRI3 and SNA-acceleration as default, which I have moved to. Before I was on DRI2 and UXA-acceleration. This could have brought on the problem. Going back to DRI2, UXA for time being.

---=[ /etc/X11/xorg.conf.d ]=---
Section "Device"
   Identifier "Intel Graphics"
   Driver "intel"
   #Option "DRI" "2"  # DRI3 is now default
   Option "AccelMethod" "sna"  # default
   #Option "AccelMethod" "uxa"  # fallback
EndSection

---=[ /var/log/Xorg.0.log ]=---
[    25.863] (II) LoadModule: "intel"
[    25.864] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    26.102] (II) Module intel: vendor="X.Org Foundation"
[    26.102]  compiled for 1.18.4, module version = 2.99.917
[    26.102]  Module class: X.Org Video Driver
[    26.102]  ABI class: X.Org Video Driver, version 20.0
[    26.102] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
  i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
  915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
  Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
  GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    26.102] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[    26.102] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[    26.102] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[    26.228] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20160425
[    26.228] (II) intel(0): SNA compiled from 2.99.917-691-ga77397a
[    26.261] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 3000
[    26.261] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx; using a maximum of 2 threads
[    26.276] (==) Depth 24 pixmap format is 32 bpp
[    26.323] (II) intel(0): SNA initialized with Sandybridge (gen6, gt2) backend
[    26.323] (==) intel(0): Backing store enabled
[    26.323] (==) intel(0): Silken mouse enabled
[    26.325] (II) intel(0): HW Cursor enabled
[    26.325] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    26.349] (==) intel(0): DPMS enabled
[    26.349] (==) intel(0): Display hotplug detection enabled
[    26.349] (II) intel(0): [DRI2] Setup complete
[    26.349] (II) intel(0): [DRI2]   DRI driver: i965
[    26.349] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    26.349] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[    26.349] (II) intel(0): hardware support for Present enabled
[    26.349] (--) RandR disabled
[    26.626] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    26.626] (II) AIGLX: enabled GLX_ARB_create_context
[    26.626] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    26.626] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    26.626] (II) AIGLX: enabled GLX_INTEL_swap_event
[    26.626] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[    26.626] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    26.626] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    26.626] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    26.626] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    26.626] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[    26.627] (II) AIGLX: Loaded and initialized i965
[    26.627] (II) GLX: Initialized DRI2 GL provider for screen 0
[    26.654] (II) intel(0): switch to mode 1600x900@60.0 on LVDS1 using pipe 0, position (0, 0), rotation normal, reflection none

---=[ kernel oops (same as before) ]=---
Aug 24 18:21:31 thinkpad kernel: ------------[ cut here ]------------
Aug 24 18:21:31 thinkpad kernel: WARNING: CPU: 0 PID: 521 at drivers/gpu/drm/drm_irq.c:1318 drm_wait_one_vblank+0x1b0/0x1c0 [drm]
Aug 24 18:21:31 thinkpad kernel: vblank wait timed out on crtc 0
...
Aug 24 18:21:31 thinkpad kernel: ---[ end trace 2c15743601acdbb9 ]---
Aug 24 18:21:31 thinkpad kernel: ------------[ cut here ]------------
Aug 24 18:21:31 thinkpad kernel: WARNING: CPU: 0 PID: 521 at drivers/gpu/drm/i915/intel_display.c:13562 intel_atomic_commit+0x13af/0x1460 [i915]
Aug 24 18:21:31 thinkpad kernel: pipe A vblank wait timed out
...
Aug 24 18:21:31 thinkpad kernel: ---[ end trace 2c15743601acdbba ]-
Comment 3 Rami 2017-02-07 14:46:55 UTC
Hi, can you try with the last drm-tip kernel from https://cgit.freedesktop.org/drm-tip. Boot with drm.debug=0x1e and then retest, reproduce the problem, and attach the dmesg.
Comment 4 Marcel Dijkstra 2017-02-09 18:34:02 UTC
Created attachment 129444 [details]
drm-tip kernel oops

---=[ description ]=---
The kernel oops occurs after switching several times between TTY2 and X11(DRI3, SNA) on my Lenovo ThinkPad (attachment).
Switching back to X11 can take several seconds and a few more seconds before X11 becomes responsive. 
After kernel oops the mouse pointer can dissapear repeatedly, taking again few seconds for X11 to become responsive and for mouse pointer to reappear.
Again a "flip_done time out" is seen in "dmesg" every time it happens (attachment).
No issues occur trying to switch several times between TTY2 and X11(DRI3, SNA) on an Intel Core-i3 NUC with same Arch Linux and "4.10.0-rc7-drmtip" kernel.

---=[ system info ]=---
distro: Arch Linux, arch: x86_64
linux: 4.10.0-rc7-drmtip (git#2699547: integration manifest)
xf86-video-intel: 1:2.99.917+753+g9fe04af4-1
mesa: 13.0.4-1
xorg-server: 1.19.1-1
kernel-param: i915.modeset=1 drm.debug=0x1e

machine-1: Lenovo ThinkPad T520, model 42435JG
cpu: CPU0: Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz (family: 0x6, model: 0x2a, stepping: 0x7)
lspci: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

machine-2: Intel NUC5i3RYB
CPU0: Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz (family: 0x6, model: 0x3d, stepping: 0x4)
lspci: 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
Comment 5 Ricardo 2017-03-03 17:27:55 UTC
information provided changing the status of the bug to REOPEN
Comment 6 Jani Saarinen 2017-05-24 07:09:06 UTC
Reporter, are you able to test if latest drm-tip helps here?
Comment 7 Marcel Dijkstra 2017-06-08 14:00:49 UTC
On git#30d33 "... integration manifest"; there occurs a dependency error trying to `make modules_install` kernel-modules with default Arch Linux `.config`, reading: "depmod: ERROR: Cycle detected: drm_kms_helper -> drm -> drm_kms_helper". Tried to unset "CONFIG_DRM_KMS_HELPER, CONFIG_DRM_KMS_FB_HELPER and CONFIG_DRM_FBDEV_EMULATION" in `.config` through options in `make menuconfig`. How to proceed? KMS helper might be required for me to test TTY-switching.
Comment 8 Marcel Dijkstra 2017-06-12 10:17:59 UTC
Succesfully installed drmp-tip kernel git#5b3638: "2017y-06m-08d-20h-34m-37s UTC integration manifest". The kernel crashes switching to TTY2 with X11 on DRI3, SNA on my Thinkpad, after switching about 5 cycles between TTY2 and TTY7. No kernel panic is recorded in system log. Can only give DRM debug information right before crash:

Jun 09 19:28:29 tinkpad kernel: [drm:drm_atomic_check_only [drm]] checking ffff8801fad12800
Jun 09 19:28:29 tinkpad kernel: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] Updating routing for [CONNECTOR:40:LVDS-1]
Jun 09 19:28:29 tinkpad kernel: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] [CONNECTOR:40:LVDS-1] keeps [ENCODER:41:LVDS], now on [CRTC:32:pipe A]
Jun 09 19:28:29 tinkpad kernel: [drm:intel_plane_atomic_calc_changes [i915]] [CRTC:32:pipe A] has [PLANE:26:primary A] with fb 67
Jun 09 19:28:29 tinkpad kernel: [drm:intel_plane_atomic_calc_changes [i915]] [PLANE:26:primary A] visible 1 -> 1, off 0, on 0, ms 0
Jun 09 19:28:29 tinkpad kernel: [drm:drm_atomic_commit [drm]] committing ffff8801fad12800
Jun 09 19:28:29 tinkpad kernel: [drm:drm_atomic_state_default_clear [drm]] Clearing atomic state ffff8801fad12800
Jun 09 19:28:29 tinkpad kernel: [drm:__drm_atomic_state_free [drm]] Freeing atomic state ffff8801fad12800

Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_add_affected_connectors [drm]] Adding all current connectors for [CRTC:39:pipe B] to ffff88020f302800
Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_check_only [drm]] checking ffff88020f302800
Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] Updating routing for [CONNECTOR:40:LVDS-1]
Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_helper_check_modeset [drm_kms_helper]] [CONNECTOR:40:LVDS-1] keeps [ENCODER:41:LVDS], now on [CRTC:32:pipe A]
Jun 09 19:38:08 tinkpad kernel: [drm:intel_plane_atomic_calc_changes [i915]] [CRTC:32:pipe A] has [PLANE:26:primary A] with fb 67
Jun 09 19:38:08 tinkpad kernel: [drm:intel_plane_atomic_calc_changes [i915]] [PLANE:26:primary A] visible 1 -> 1, off 0, on 0, ms 0
Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_commit [drm]] committing ffff88020f302800
Jun 09 19:38:08 tinkpad kernel: [drm:drm_atomic_state_default_clear [drm]] Clearing atomic state ffff88020f302800
Jun 09 19:38:08 tinkpad kernel: [drm:__drm_atomic_state_free [drm]] Freeing atomic state ffff88020f302800
Comment 9 Elizabeth 2017-07-26 16:43:30 UTC
Hello Marcel,
A lot of changes have been made on latest kernel, is this still reproducible with latest drm-tip? If so, could you attach dmesg as requested on comment #3 if possible?
Thanks.
Comment 10 Marcel Dijkstra 2017-07-29 15:13:55 UTC
Created attachment 133125 [details]
4.13.0-rc2 drmtip

Tried 4.13.0-rc2 drmtip (git#30aa81) on my T520 thinkpad, with X11 on SNA, DRI3. Display hangs on TTY2. Again two 'flip_done timeout' occur. Some hardware specific quirk or race-condition?
Comment 11 Elizabeth 2017-08-31 18:48:31 UTC
*** Bug 97241 has been marked as a duplicate of this bug. ***
Comment 12 Thomas Capricelli 2017-11-28 14:05:58 UTC
My laptop has always had this problem since i've bought it (sept 2016).

Dmesg is flooded with things like this (see at the end).

I'm using the intel driver, as the modsetting driver in xorg can't even detect my favourite resolution (1600x900) and is unusably slow. I use SNA/DRI3 and very recent software (gentoo).
Currently seeing the problem with kernel 4.14.2, xf86-video-intel-2.99.917_p20171018, xorg-server-1.19.5

A kind of 'workaround' is to add 'irqpoll' to the kernel command line. In which ase i dont see those messages anymore, but instead my dmesg is flooded with 

hpet1: lost 163 rtc interrupts




Nov 28 14:50:30 chaos kernel: pipe A vblank wait timed out
Nov 28 14:50:30 chaos kernel: ------------[ cut here ]------------
Nov 28 14:50:30 chaos kernel: WARNING: CPU: 2 PID: 12508 at drivers/gpu/drm/i915/intel_display.c:12176 intel_atomic_commit_tail+0xeef/0xf00
Nov 28 14:50:30 chaos kernel: Modules linked in:
Nov 28 14:50:30 chaos kernel: CPU: 2 PID: 12508 Comm: kworker/u8:2 Tainted: G        W       4.14.2 #21
Nov 28 14:50:30 chaos kernel: Hardware name: Notebook                         W330AU/W330AU, BIOS 5.011 09/22/2015
Nov 28 14:50:30 chaos kernel: Workqueue: events_unbound intel_atomic_commit_work
Nov 28 14:50:30 chaos kernel: task: ffff880227d08000 task.stack: ffffc90000b64000
Nov 28 14:50:30 chaos kernel: RIP: 0010:intel_atomic_commit_tail+0xeef/0xf00
Nov 28 14:50:30 chaos kernel: RSP: 0018:ffffc90000b67dc8 EFLAGS: 00010292
Nov 28 14:50:30 chaos kernel: RAX: 000000000000001c RBX: 0000000000000000 RCX: 0000000000000000
Nov 28 14:50:30 chaos kernel: RDX: ffff880256d13740 RSI: ffff880256d0ca58 RDI: ffff880256d0ca58
Nov 28 14:50:30 chaos kernel: RBP: ffffc90000b67e70 R08: 000000000000ae2b R09: 0000000000000001
Nov 28 14:50:30 chaos kernel: R10: ffffc90000b67dc8 R11: 0000000000000001 R12: 00000000000111c6
Nov 28 14:50:30 chaos kernel: R13: ffff88024ce00000 R14: ffff88024ce09000 R15: 0000000000000001
Nov 28 14:50:30 chaos kernel: FS:  0000000000000000(0000) GS:ffff880256d00000(0000) knlGS:0000000000000000
Nov 28 14:50:30 chaos kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 28 14:50:30 chaos kernel: CR2: 00007f7741d77140 CR3: 0000000002009003 CR4: 00000000003606e0
Nov 28 14:50:30 chaos kernel: Call Trace:
Nov 28 14:50:30 chaos kernel:  ? wait_woken+0x80/0x80
Nov 28 14:50:30 chaos kernel:  intel_atomic_commit_work+0xd/0x10
Nov 28 14:50:30 chaos kernel:  process_one_work+0x1d9/0x350
Nov 28 14:50:30 chaos kernel:  worker_thread+0x2d/0x3f0
Nov 28 14:50:30 chaos kernel:  kthread+0x11b/0x140
Nov 28 14:50:30 chaos kernel:  ? wq_sysfs_prep_attrs+0x50/0x50
Nov 28 14:50:30 chaos kernel:  ? kthread_create_on_node+0x40/0x40
Nov 28 14:50:30 chaos kernel:  ret_from_fork+0x22/0x30
Nov 28 14:50:30 chaos kernel: Code: 75 b0 4c 89 45 80 48 83 c7 08 e8 5d 51 c4 ff 4c 8b 45 80 4d 85 c0 0f 85 d9 fa ff ff 8d 73 41 48 c7 c7 20 72 e3 81 e8 9d 67 c5 ff <0f> ff e9 c3 fa ff ff 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 
Nov 28 14:50:30 chaos kernel: ---[ end trace fbb2f696c8a355a1 ]---
Comment 13 Jani Saarinen 2018-03-29 07:10:18 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 14 Marcel Dijkstra 2018-04-01 12:32:44 UTC
Created attachment 138477 [details]
linux-4.16.0-rc7-drmtip

No kernel panic or oops on current drm-tip, with X11 on DRI3/SNA. Switching TTY still gives "flip_done time out" errors; system becomes slow and unresponsive, but does power down eventually.
Comment 15 Jani Saarinen 2018-04-23 06:30:56 UTC
Based on this closing, please re-open if still occurs.
If I understood wrongly, please comment.
Comment 16 Marcel Dijkstra 2018-04-23 19:04:33 UTC
There are still "flip_done time out" errors. Currently it does not result in kernel panic or kernel oops. However an unresponsive kernel has happened before with this bug. This bug is not resolved; it is hardly possible to power down after  "flip_done time out" and I cannot reliably switch TTY.
Comment 17 Jani Saarinen 2018-04-24 06:31:15 UTC
Ville, any help here?
Comment 18 Lakshmi 2018-09-11 08:18:43 UTC
Marcel, do you still have the issue?
Please try to reproduce the issue using drm-tip (https://cgit.freedesktop.org/drm-tip) and kernel parameters drm.debug=0x1e log_buf_len=4M, and if the problem persists attach the full dmesg from boot.
Comment 19 Lakshmi 2018-10-01 11:00:57 UTC
No feedback about the issue recently, closing as resolved works for me.

Please create a new bug if the issue is different from the original issue (Kernel panic).

If kernel panic still occurs with latest drm-tip https://cgit.freedesktop.org/drm-tip, reopen the issue and send dmesg from boot with kernel parameters drm.debug=0x1e log_buf_len=4M.


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.