vblank wait timed out on crtc 0?

I’ve recently installed 64-bit Leap on my Lenovo T420, running 4.1.27-27-default.

I’ve noticed a problem where I get KDE freezing on startup, which seems to be caused by switching between the X display and the console (CTRL-ALT-F1 and F7). Not every time, but very often. After login, the screen goes blank and never makes it to the desktop. It may be possible to switch back to the console, and “ps” shows that various KDE processes are starting, but clearly something is failing. Eventually you cannot even switch consoles, and the only solution is to reboot.

The /var/log/messages reports “vblank wait timed out on crtc 0”, followed by a stack dump that appears to be related to the frame switching. Details below.

Is anyone else seeing this?

It appears to be related to this freedesktop bug (see the last couple of comments): https://bugs.freedesktop.org/show_bug.cgi?id=93782

Jul 23 10:10:45 linux kernel: ------------ cut here ]------------
Jul 23 10:10:45 linux kernel: WARNING: CPU: 0 PID: 31461 at ../drivers/gpu/drm/drm_irq.c:1141 drm_wait_one_vblank+0x175/0x180 [drm]()
Jul 23 10:10:45 linux kernel: vblank wait timed out on crtc 0
Jul 23 10:10:45 linux kernel: Modules linked in: dm_crypt loop dm_mod nf_log_ipv6 af_packet xt_pkttype nf_log_ipv4 nf_log_common xt_LOG xt_limit iscsi_ibft iscsi_boot_sysfs ip6t_REJECT nf_reject_ipv6 xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_raw ipt_REJECT nf_reject_ipv4 iptable_raw xt_CT iptable_filter ip6table_mangle nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables arc4 snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic snd_hda_intel snd_hda_controller snd_hda_codec snd_hda_core snd_hwdep snd_pcm btusb btbcm intel_rapl x86_pkg_temp_thermal intel_powerclamp snd_timer iTCO_wdt iwldvm iTCO_vendor_support coretemp btintel thinkpad_acpi mac80211 iwlwifi cfg80211 bluetooth uvcvideo kvm snd rfkill videobuf2_vmalloc videobuf2_memops crct10dif_pclmul
Jul 23 10:10:46 linux kernel:  videobuf2_core v4l2_common soundcore tpm_tis tpm videodev crc32_pclmul crc32c_intel cryptd processor ac thermal joydev pcspkr serio_raw i2c_i801 lpc_ich mfd_core shpchp battery e1000e ptp pps_core wmi mei_me mei sr_mod cdrom firewire_ohci sdhci_pci firewire_core sdhci crc_itu_t mmc_core i915 i2c_algo_bit drm_kms_helper ehci_pci ehci_hcd video usbcore drm usb_common button sg [last unloaded: fan]
Jul 23 10:10:46 linux kernel: CPU: 0 PID: 31461 Comm: Xorg Not tainted 4.1.26-21-default #1
Jul 23 10:10:46 linux kernel: Hardware name: LENOVO 4178CTO/4178CTO, BIOS 83ET61WW (1.31 ) 07/07/2011
Jul 23 10:10:46 linux kernel:  0000000000000286 0000000000000000 ffffffff8165f200 000000009af39af3
Jul 23 10:10:46 linux kernel:  ffff8800820eb878 ffffffffa004c77d ffffffff81068951 0000000000000000
Jul 23 10:10:46 linux kernel:  ffff88003755c800 0000000000000000 00000000006efb66 ffff880037608200
Jul 23 10:10:46 linux kernel: Call Trace:
Jul 23 10:10:46 linux kernel:  <ffffffff810055cc>] dump_trace+0x8c/0x340
Jul 23 10:10:46 linux kernel:  <ffffffff8100597c>] show_stack_log_lvl+0xfc/0x1a0
Jul 23 10:10:46 linux kernel:  <ffffffff81006ec1>] show_stack+0x21/0x50
Jul 23 10:10:46 linux kernel:  <ffffffff8165f200>] dump_stack+0x5d/0x79
Jul 23 10:10:46 linux kernel:  <ffffffff81068951>] warn_slowpath_common+0x81/0xb0
Jul 23 10:10:46 linux kernel:  <ffffffff810689ca>] warn_slowpath_fmt+0x4a/0x50
Jul 23 10:10:46 linux kernel:  <ffffffffa00209f5>] drm_wait_one_vblank+0x175/0x180 [drm]
Jul 23 10:10:46 linux kernel:  <ffffffffa0129798>] drm_plane_helper_commit+0x278/0x2d0 [drm_kms_helper]
Jul 23 10:10:46 linux kernel:  <ffffffffa01d2036>] intel_crtc_set_config+0xb96/0xf90 [i915]
Jul 23 10:10:46 linux kernel:  <ffffffffa0029468>] drm_mode_set_config_internal+0x68/0x100 [drm]
Jul 23 10:10:46 linux kernel:  <ffffffffa0132430>] restore_fbdev_mode+0xc0/0xe0 [drm_kms_helper]
Jul 23 10:10:46 linux kernel:  <ffffffffa01342d0>] drm_fb_helper_restore_fbdev_mode_unlocked+0x20/0x60 [drm_kms_helper]
Jul 23 10:10:46 linux kernel:  <ffffffffa0134332>] drm_fb_helper_set_par+0x22/0x50 [drm_kms_helper]
Jul 23 10:10:46 linux kernel:  <ffffffffa01df326>] intel_fbdev_set_par+0x16/0x60 [i915]
Jul 23 10:10:46 linux kernel:  <ffffffff813d4c2e>] fb_set_var+0x15e/0x3b0
Jul 23 10:10:46 linux kernel:  <ffffffff813cc03b>] fbcon_blank+0x1cb/0x2b0
Jul 23 10:10:46 linux kernel:  <ffffffff814494d5>] do_unblank_screen+0xa5/0x1c0
Jul 23 10:10:46 linux kernel:  <ffffffff8143f633>] complete_change_console+0x53/0xe0
Jul 23 10:10:46 linux kernel:  <ffffffff814405f9>] vt_ioctl+0xf39/0x10c0
Jul 23 10:10:46 linux kernel:  <ffffffff814330f7>] tty_ioctl+0x207/0xc80
Jul 23 10:10:46 linux kernel:  <ffffffff811f1fbf>] do_vfs_ioctl+0x2ff/0x510
Jul 23 10:10:46 linux kernel:  <ffffffff811f2251>] SyS_ioctl+0x81/0xa0
Jul 23 10:10:46 linux kernel:  <ffffffff816659b2>] system_call_fastpath+0x16/0x75
Jul 23 10:10:46 linux kernel:  <00007fdd53008b87>] 0x7fdd53008b87
Jul 23 10:10:46 linux kernel: --- end trace 62b40481160b28a9 ]---

Fully up-to-date?

Video card / driver

Yes, I did a zypper dup, just to make sure - in fact if you look at the trace I included, you’ll see it had the previous kernel version that I was using before the update. So the problem wasn’t fixed by the update.

The card itself lists (X.org.log) as “Integrated Graphics Chipset: Intel(R) HD Graphics 3000” and talks about “intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20150327”.

Hi
I have a couple of bugs opened on this as well…https://bugs.freedesktop.org/show_bug.cgi?id=96441 and https://bugzilla.suse.com/show_bug.cgi?id=980429

The Kernel guys are working on it…

Thanks Malcolm, nice to know it’s not just me :). I can’t access your SUSE bug for some reason? Even after logging in (with the account I use for this site) it just says, “You are not authorized to access bug #980429”. But I can see bug 989501, which also seems to be the same issue.

Hi
That’s because it’s a SLE 12 SP2 beta bug, do you want me to get you added, or just want to follow the freedesktop one?

I’ve managed to follow 989501, which is Leap 42.1. Hopefully that will be closed when the issue is resolved, so I’ll get notified that way. Thanks.

I’ve just zyppered up to kernel 4.1.31-30-default, and the problem seems to have disappeared - many CTRL-ALT-F screen switches and no sign of the error in the logs. Can anyone conform?

Cheers,
-nick

Hi
I still have the issue (4.4.X kernel), I can trigger it via chvt 1 and chvt 7 (aka ctrl+alt+F1/F7).

Hi guys, just had a similar problem on my test laptop with Intel 965GM graphics, worked around adding “video=SVIDEO-1:d” to the kernel boot line.
Not sure you have the same problem, but worth giving a shot IMHO.
Details here:
https://bugzilla.redhat.com/show_bug.cgi?id=1342755
https://bugs.freedesktop.org/show_bug.cgi?id=93782

On Wed 25 Jan 2017 10:36:01 AM CST, OrsoBruno wrote:

Hi guys, just had a similar problem on my test laptop with Intel 965GM
graphics, worked around adding “video=SVIDEO-1:d” to the kernel boot
line.
Not sure you have the same problem, but worth giving a shot IMHO.
Details here:
https://bugzilla.redhat.com/show_bug.cgi?id=1342755
https://bugs.freedesktop.org/show_bug.cgi?id=93782

Hi
Indeed it did… thanks :slight_smile: Also updated my bug (which did reference the
freedesktop one you referenced…)
https://bugs.freedesktop.org/show_bug.cgi?id=96441


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE Leap 42.1|GNOME 3.16.2|4.1.36-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!