FS#52238 - [linux-zen] 4.9 DRM(?) regression

Attached to Project: Arch Linux
Opened by Nikita Puzyryov (Nekit) - Thursday, 22 December 2016, 13:16 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 13 January 2017, 12:32 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

testing/linux-zen 4.9-1

Description:
Xorg stuck in D state after boot.

Hardware:
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 325M] (rev a2)

$ grep 'model name' /proc/cpuinfo
model name : Intel(R) Core(TM) i5 CPU M 450 @ 2.40GHz

Xorg conf:
$ cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "intel"
Driver "intel"
Option "TearFree" "true"
Option "DRI" "3"
EndSection

Log:
Dec 22 15:50:29 NekLaptop kernel: INFO: task kworker/0:35:337 blocked for more than 120 seconds.
Dec 22 15:50:29 NekLaptop kernel: Not tainted 4.9.0-1-zen #1
Dec 22 15:50:29 NekLaptop kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Dec 22 15:50:29 NekLaptop kernel: kworker/0:35 D 0 337 2 0x00000000
Dec 22 15:50:29 NekLaptop kernel: Workqueue: events output_poll_execute [drm_kms_helper]
Dec 22 15:50:29 NekLaptop kernel: ffff8801229283c0 ffff8801229283c0 ffff880140584e00 ffff880147c180c0
Dec 22 15:50:29 NekLaptop kernel: ffff8801228e8d00 ffffc90000e73c58 ffffffff81618d0f ffff88013ecfd200
Dec 22 15:50:29 NekLaptop kernel: 00ffc90000e73c60 ffff880147c180c0 ffff880147c180c0 ffff880140584e00
Dec 22 15:50:29 NekLaptop kernel: Call Trace:
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81618d0f>] ? __schedule+0x22f/0x6e0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff816191fd>] schedule+0x3d/0x90
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146f9ca>] rpm_resume+0x11a/0x6f0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff810ca010>] ? wake_atomic_t_function+0x60/0x60
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146ffdf>] __pm_runtime_resume+0x3f/0x60
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0c6de10>] nouveau_connector_detect+0x70/0x510 [nouveau]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8102d752>] ? __switch_to+0x2d2/0x630
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff810be501>] ? pick_next_task_fair+0x451/0x4c0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0093b71>] output_poll_execute+0xe1/0x1e0 [drm_kms_helper]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81098cb5>] process_one_work+0x1e5/0x470
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81098f88>] worker_thread+0x48/0x4e0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81098f40>] ? process_one_work+0x470/0x470
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8109eb19>] kthread+0xd9/0xf0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8102d752>] ? __switch_to+0x2d2/0x630
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8109ea40>] ? kthread_park+0x60/0x60
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8161d9d5>] ret_from_fork+0x25/0x30
Dec 22 15:50:29 NekLaptop kernel: INFO: task Xorg.wrap:1820 blocked for more than 120 seconds.
Dec 22 15:50:29 NekLaptop kernel: Not tainted 4.9.0-1-zen #1
Dec 22 15:50:29 NekLaptop kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Dec 22 15:50:29 NekLaptop kernel: Xorg.wrap D 0 1820 1 0x00000004
Dec 22 15:50:29 NekLaptop kernel: ffff8801229283c0 0000000000000000 ffff8801228e8d00 ffff880147c180c0
Dec 22 15:50:29 NekLaptop kernel: ffffffff81a0e500 ffffc90005537928 ffffffff81618d0f ffffc90005537918
Dec 22 15:50:29 NekLaptop kernel: 00ffffff810a06c2 ffff880147c180c0 ffffc90005537950 ffff8801228e8d00
Dec 22 15:50:29 NekLaptop kernel: Call Trace:
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81618d0f>] ? __schedule+0x22f/0x6e0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff816191fd>] schedule+0x3d/0x90
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81619545>] schedule_preempt_disabled+0x15/0x20
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8161aa1b>] __mutex_lock_slowpath+0xcb/0x150
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8161aab7>] mutex_lock+0x17/0x30
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa009426e>] drm_kms_helper_poll_enable+0x1e/0x40 [drm_kms_helper]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0c62dba>] nouveau_pmops_runtime_resume+0x8a/0x120 [nouveau]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8136ddeb>] pci_pm_runtime_resume+0x7b/0xa0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8136dd70>] ? pci_restore_standard_config+0x40/0x40
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146e8d2>] __rpm_callback+0x32/0x70
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8136dd70>] ? pci_restore_standard_config+0x40/0x40
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146e934>] rpm_callback+0x24/0x80
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8136dd70>] ? pci_restore_standard_config+0x40/0x40
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146fd7a>] rpm_resume+0x4ca/0x6f0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa002c362>] ? drm_property_free_blob+0x72/0x80 [drm]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8146ffdf>] __pm_runtime_resume+0x3f/0x60
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0c6342d>] nouveau_drm_open+0x3d/0x280 [nouveau]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0025cb8>] ? drm_atomic_state_default_release+0x28/0x30 [drm]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff812bfb78>] ? security_capable+0x48/0x60
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa000fb6c>] drm_open+0x21c/0x420 [drm]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffffa0015eab>] drm_stub_open+0xbb/0xf0 [drm]
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81217d50>] chrdev_open+0xb0/0x1e0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8121047a>] do_dentry_open+0x20a/0x2f0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81217ca0>] ? cdev_put+0x30/0x30
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8121159c>] vfs_open+0x4c/0x70
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8121f99b>] ? may_open+0x9b/0x100
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81221a02>] path_openat+0x282/0x1170
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8161ab43>] ? __mutex_unlock_slowpath+0x73/0xa0
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81223ac1>] do_filp_open+0x91/0x100
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81231ad2>] ? __alloc_fd+0xb2/0x160
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff812119d5>] do_sys_open+0x155/0x290
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff81211b2e>] SyS_open+0x1e/0x20
Dec 22 15:50:29 NekLaptop kernel: [<ffffffff8161d777>] entry_SYSCALL_64_fastpath+0x1a/0xa9

LMK if you need anything else.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 13 January 2017, 12:32 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.9.3-1
Comment by Nikita Puzyryov (Nekit) - Friday, 23 December 2016, 00:55 GMT
FWIW having the same issue with the vanilla `linux` kernel.
Comment by Bastian Beranek (totsilence) - Saturday, 24 December 2016, 11:46 GMT
Also seeing the same with the vanilla 'linux' kernel. My Laptop is a Lenovo W520 with Intel HD 3000 + NVIDIA Quadro 2000M GPUs.

Issue seems to be related to the nouveau driver in the kernel, if I switch from NVIDIA Optimus to the Intel GPU in BIOS I can workaround this issue.
Comment by Bastian Beranek (totsilence) - Saturday, 24 December 2016, 11:50 GMT Comment by Bastian Beranek (totsilence) - Thursday, 12 January 2017, 22:25 GMT
Could we add this patch to the Arch kernel?

https://bugs.freedesktop.org/attachment.cgi?id=128720

It fixes the problem for me, but is not yet included upstream.
Comment by Nikita Puzyryov (Nekit) - Friday, 13 January 2017, 12:28 GMT
The issue seem to have vanished for me. Successfully booted with testing/linux-zen 4.9.3-1 and xorg 1.19.1-1 (previously I ran 1.18.4).

Edit: looks like the patch mentioned by Bastian have been pulled into -zen https://github.com/zen-kernel/zen-kernel/commit/99132e274c4c7e503a970c39cdf1ffd8244ed63a
Comment by Jan Alexander Steffens (heftig) - Friday, 13 January 2017, 12:31 GMT
Yes, I did cherry-pick the patch you linked into ZEN; thanks.
https://github.com/zen-kernel/zen-kernel/commit/99132e274c4c7e503a970c39cdf1ffd8244ed63a

Loading...