Summary: | [SNB] [4.4 regression] vblank wait timed out on crtc | ||
---|---|---|---|
Product: | DRI | Reporter: | Tomas Janousek <tomi> |
Component: | DRM/Intel | Assignee: | Intel GFX Bugs mailing list <intel-gfx-bugs> |
Status: | CLOSED FIXED | QA Contact: | Intel GFX Bugs mailing list <intel-gfx-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | intel-gfx-bugs, main.haarp, nemesis |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | SNB | i915 features: | display/atomic |
Description
Tomas Janousek
2015-12-26 10:54:43 UTC
I confirm this bug. Sometimes, Xserver hangs when switching back VT from text mode to graphical display. When it hangs, suspend2ram and resume fixes the issue. Here is the stack : ------------[ cut here ]------------ WARNING: CPU: 2 PID: 10921 at drivers/gpu/drm/drm_irq.c:1326 drm_wait_one_vblank+0x1b0/0x1c0 [drm]() vblank wait timed out on crtc 0 Modules linked in: sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm joydev mousedev iTCO_wdt i syscopyarea mei sysfillrect sysimgblt fb_sys_fops i2c_algo_bit snd_timer ptp pps_core nvram snd sound CPU: 2 PID: 10921 Comm: Xorg Tainted: G U W O 4.4.5-1-ARCH #1 Hardware name: LENOVO 4236JZ5/4236JZ5, BIOS 83ET78WW (1.48 ) 01/21/2016 0000000000000286 0000000074de7b7f ffff8800c2edf810 ffffffff812cb391 ffff8800c2edf858 ffffffffa0533272 ffff8800c2edf848 ffffffff810776e2 ffff880118b99800 0000000000000000 0000000000000000 00000000000ac2c4 Call Trace: [<ffffffff812cb391>] dump_stack+0x63/0x82 [<ffffffff810776e2>] warn_slowpath_common+0x82/0xc0 [<ffffffff8107777c>] warn_slowpath_fmt+0x5c/0x80 [<ffffffff810b8825>] ? finish_wait+0x55/0x70 [<ffffffff810747eb>] ? __mmdrop+0x7b/0xd0 [<ffffffffa0506840>] drm_wait_one_vblank+0x1b0/0x1c0 [drm] [<ffffffff810b8cc0>] ? wake_atomic_t_function+0x60/0x60 [<ffffffffa0791685>] intel_atomic_commit+0x475/0x1430 [i915] [<ffffffffa051f55e>] ? drm_atomic_check_only+0x18e/0x590 [drm] [<ffffffffa051f307>] ? drm_atomic_add_affected_connectors+0x27/0xf0 [drm] [<ffffffffa051f997>] drm_atomic_commit+0x37/0x60 [drm] [<ffffffffa0572faf>] restore_fbdev_mode+0x22f/0x260 [drm_kms_helper] [<ffffffffa0575313>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80 [drm_kms_helper] [<ffffffffa057538d>] drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper] [<ffffffffa07a819a>] intel_fbdev_set_par+0x1a/0x60 [i915] [<ffffffff812f2db9>] ? __percpu_counter_add+0x59/0x80 [<ffffffff8133fa46>] fb_set_var+0x236/0x460 [<ffffffff8117db21>] ? shmem_recalc_inode+0x71/0xa0 [<ffffffff810a744c>] ? __enqueue_entity+0x6c/0x70 [<ffffffff810adfeb>] ? enqueue_entity+0x1fb/0xd20 [<ffffffff813366ef>] fbcon_blank+0x30f/0x350 [<ffffffff813b2ef3>] do_unblank_screen+0xc3/0x190 [<ffffffff813a941a>] vt_ioctl+0x50a/0x12e0 [<ffffffff811f0050>] ? filename_parentat+0xe0/0x150 [<ffffffff8139d731>] tty_ioctl+0x361/0xc30 [<ffffffff813e5693>] ? vga_arb_release+0xe3/0x130 [<ffffffff811c33d0>] ? kfree+0x170/0x180 [<ffffffff811fff5c>] ? mntput_no_expire+0x2c/0x1b0 [<ffffffff811f3258>] do_vfs_ioctl+0x298/0x480 [<ffffffff811fd307>] ? __fget+0x77/0xb0 [<ffffffff811f34b9>] SyS_ioctl+0x79/0x90 [<ffffffff815970ee>] entry_SYSCALL_64_fastpath+0x12/0x6d ---[ end trace 5926662876f4c875 ]--- Here, upgrading to linux 4.5 have fixed the issue :) Great ! Yeah, that's good news. Not really surprising given "drm/i915: Calculate watermark related members in the crtc_state, v4." is pretty old and was in the queue already when I researched this, but I'm very glad to hear that they haven't managed to break it with something else. :-) Thanks for following up. (In reply to Tomas Janousek from comment #3) > "drm/i915: Calculate > watermark related members in the crtc_state, v4." is pretty old and was in > the queue already when I researched this, [...] I think I'm hit with the same bug. Is there any way to find out which kernel releases have it. Specifically, has it been back-ported to the 4.1 line? To verify that I am hit with this bug, my trace: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1011 at drivers/gpu/drm/drm_irq.c:1141 drm_wait_one_vblank+0x9d/0x170 [drm]() vblank wait timed out on crtc 0 Modules linked in: ctr ccm af_packet uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev hid_logitech_hidpp hid_logitech_dj btrfs xor zlib_deflate snd_hda_codec_hdmi snd_hda_codec_generic raid6_pq zlib_inflate arc4 i915 coretemp x86_pkg_temp_thermal intel_powerclamp fbcon bitblit softcursor font aesni_intel cfbfillrect cfbimgblt i2c_algo_bit cfbcopyarea aes_x86_64 glue_helper drm_kms_helper iwldvm lrw gf128mul mac80211 drm sdhci_pci ablk_helper cryptd sdhci microcode psmouse mmc_core snd_hda_intel snd_hda_controller i2c_i801 xhci_pci iwlwifi xhci_hcd snd_hda_codec i2c_core snd_hwdep fb snd_hda_core cfg80211 wmi thinkpad_acpi fbdev e1000e intel_gtt snd_pcm agpgart snd_timer nvram ptp snd pps_core soundcore ehci_pci hwmon ehci_hcd rfkill evdev video ipv6 CPU: 0 PID: 1011 Comm: X Not tainted 4.1.15-gentoo-r1 #3 Hardware name: LENOVO 4290W4H/4290W4H, BIOS 8DET70WW (1.40 ) 05/14/2015 0000000000000000 ffffffffa039fd90 ffffffff8143e0e9 ffff88020f843888 ffffffff8104739c 0000000000000000 ffff8800d857a000 0000000000000000 0000000000000000 00000000000024ef ffffffff81047415 ffffffffa03a1518 Call Trace: [<ffffffff8143e0e9>] ? dump_stack+0x40/0x50 [<ffffffff8104739c>] ? warn_slowpath_common+0x7c/0xb0 [<ffffffff81047415>] ? warn_slowpath_fmt+0x45/0x50 [<ffffffff8107c32e>] ? prepare_to_wait_event+0x7e/0xf0 [<ffffffffa037660d>] ? drm_wait_one_vblank+0x9d/0x170 [drm] [<ffffffff8107c220>] ? wait_woken+0x80/0x80 [<ffffffffa04b35f0>] ? drm_plane_helper_commit+0x250/0x2c0 [drm_kms_helper] [<ffffffffa0692587>] ? intel_crtc_set_config+0x817/0xf60 [i915] [<ffffffffa038d91a>] ? drm_atomic_state_clear+0x10a/0x180 [drm] [<ffffffffa037ed0f>] ? drm_mode_set_config_internal+0x5f/0x100 [drm] [<ffffffffa04bb6c9>] ? restore_fbdev_mode+0xb9/0xe0 [drm_kms_helper] [<ffffffffa04bd4eb>] ? drm_fb_helper_restore_fbdev_mode_unlocked+0x1b/0x60 [drm_kms_helper] [<ffffffffa04bd54d>] ? drm_fb_helper_set_par+0x1d/0x40 [drm_kms_helper] [<ffffffffa06a0901>] ? intel_fbdev_set_par+0x11/0x60 [i915] [<ffffffff8114c935>] ? do_sys_poll+0x105/0x530 [<ffffffffa023f80c>] ? fb_set_var+0x16c/0x3a0 [fb] [<ffffffffa05d7355>] ? fbcon_blank+0x225/0x2e0 [fbcon] [<ffffffff812951b2>] ? do_unblank_screen+0xb2/0x1e0 [<ffffffff8128b86f>] ? complete_change_console+0x4f/0xd0 [<ffffffff8128c9ae>] ? vt_ioctl+0x10be/0x1340 [<ffffffffa037450c>] ? drm_ioctl+0x18c/0x580 [drm] [<ffffffff8113a008>] ? __sb_end_write+0x28/0x60 [<ffffffff8128066e>] ? tty_ioctl+0x3ce/0xc00 [<ffffffff8114ac98>] ? do_vfs_ioctl+0x2e8/0x4f0 [<ffffffff8113a008>] ? __sb_end_write+0x28/0x60 [<ffffffff81137fa3>] ? vfs_write+0x183/0x1b0 [<ffffffff8114aed6>] ? SyS_ioctl+0x36/0x80 [<ffffffff81443097>] ? system_call_fastpath+0x12/0x6a ---[ end trace 0dabb2916250fc62 ]--- |
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.