Ben Skeggs
8fa4338acc
drm/nouveau: enable autosuspend only when it'll actually be used
This prevents a deadlock that somehow results from the suspend() ->
forbid() -> resume() callchain.
[ 125.266960] [drm] Initialized nouveau 1.3.1 20120801 for 0000:02:00.0 on minor 1
[ 370.120872] INFO: task kworker/4:1:77 blocked for more than 120 seconds.
[ 370.120920] Tainted: G O 4.12.0-rc3 #20
[ 370.120947] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 370.120982] kworker/4:1 D13808 77 2 0x00000000
[ 370.120998] Workqueue: pm pm_runtime_work
[ 370.121004] Call Trace:
[ 370.121018] __schedule+0x2bf/0xb40
[ 370.121025] ? mark_held_locks+0x5f/0x90
[ 370.121038] schedule+0x3d/0x90
[ 370.121044] rpm_resume+0x107/0x870
[ 370.121052] ? finish_wait+0x90/0x90
[ 370.121065] ? pci_pm_runtime_resume+0xa0/0xa0
[ 370.121070] pm_runtime_forbid+0x4c/0x60
[ 370.121129] nouveau_pmops_runtime_suspend+0xaf/0xc0 [nouveau]
[ 370.121139] pci_pm_runtime_suspend+0x5f/0x170
[ 370.121147] ? pci_pm_runtime_resume+0xa0/0xa0
[ 370.121152] __rpm_callback+0xb9/0x1e0
[ 370.121159] ? pci_pm_runtime_resume+0xa0/0xa0
[ 370.121166] rpm_callback+0x24/0x80
[ 370.121171] ? pci_pm_runtime_resume+0xa0/0xa0
[ 370.121176] rpm_suspend+0x138/0x6e0
[ 370.121192] pm_runtime_work+0x7b/0xc0
[ 370.121199] process_one_work+0x253/0x6a0
[ 370.121216] worker_thread+0x4d/0x3b0
[ 370.121229] kthread+0x133/0x150
[ 370.121234] ? process_one_work+0x6a0/0x6a0
[ 370.121238] ? kthread_create_on_node+0x70/0x70
[ 370.121246] ret_from_fork+0x2a/0x40
[ 370.121283]
Showing all locks held in the system:
[ 370.121291] 2 locks held by kworker/4:1/77:
[ 370.121298] #0: ("pm"){.+.+.+}, at: [<ffffffffac0d3530>] process_one_work+0x1d0/0x6a0
[ 370.121315] #1: ((&dev->power.work)){+.+.+.}, at: [<ffffffffac0d3530>] process_one_work+0x1d0/0x6a0
[ 370.121330] 1 lock held by khungtaskd/81:
[ 370.121333] #0: (tasklist_lock){.+.+..}, at: [<ffffffffac10fc8d>] debug_show_all_locks+0x3d/0x1a0
[ 370.121355] 1 lock held by dmesg/1639:
[ 370.121358] #0: (&user->lock){+.+.+.}, at: [<ffffffffac124b6d>] devkmsg_read+0x4d/0x360
[ 370.121377] =============================================
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2017-06-06 14:04:03 +10:00
..
2017-05-27 09:06:43 -07:00
2017-05-09 10:01:15 -07:00
2017-05-22 20:32:05 +02:00
2017-05-20 16:12:30 -07:00
2017-04-30 12:22:14 +02:00
2017-05-18 16:53:55 +02:00
2017-05-10 13:38:18 -07:00
2017-05-12 10:43:25 -07:00
2017-05-22 20:28:22 +02:00
2017-05-09 23:21:46 +02:00
2017-05-10 11:33:08 -07:00
2017-05-13 16:18:21 -07:00
2017-05-09 15:40:28 -07:00
2017-05-03 16:27:36 +02:00
2017-05-22 19:31:07 -07:00
2017-04-26 11:38:56 +02:00
2017-05-10 19:13:03 -07:00
2017-06-06 14:04:03 +10:00
2017-05-02 19:09:35 -07:00
2017-05-04 19:15:35 -07:00
2017-05-14 07:49:32 -07:00
2017-05-08 17:15:14 -07:00
2017-05-22 19:22:19 -07:00
2017-05-08 17:36:39 -04:00
2017-05-01 23:17:37 +02:00
2017-05-10 19:13:03 -07:00
2017-05-12 11:44:13 -07:00
2017-05-26 16:45:13 -07:00
2017-05-17 14:51:54 +02:00
2017-05-21 11:45:26 -07:00
2017-05-10 19:13:03 -07:00
2017-05-22 21:12:44 +02:00
2017-05-04 07:53:04 -06:00
2017-05-05 19:33:07 -07:00
2017-04-27 16:20:04 +05:30
2017-05-18 12:04:41 -07:00
2017-05-10 19:13:03 -07:00
2017-05-16 08:12:47 -07:00
2017-04-24 18:21:17 -04:00
2017-04-27 11:54:49 +01:00
2017-05-16 23:05:40 +02:00
2017-05-26 09:05:35 -07:00
2017-05-13 10:23:12 -07:00
2017-05-26 14:55:38 -04:00
2017-05-12 15:43:10 -07:00
2017-05-26 11:53:02 +03:00
2017-05-09 10:01:15 -07:00
2017-05-24 08:21:56 -07:00
2017-05-23 14:18:17 -05:00
2017-05-10 19:13:03 -07:00
2017-05-02 19:09:35 -07:00
2017-05-04 19:15:35 -07:00
2017-05-12 12:02:21 -07:00
2017-05-14 13:30:05 +02:00
2017-05-01 16:15:18 -07:00
2017-05-04 19:15:35 -07:00
2017-04-30 22:17:44 +09:00
2017-05-10 11:33:08 -07:00
2017-05-09 10:01:15 -07:00
2017-05-10 11:33:08 -07:00
2017-05-22 20:32:05 +02:00
2017-05-16 09:24:44 -07:00
2017-05-24 20:29:53 -07:00
2017-05-19 13:36:56 -07:00
2017-04-26 15:58:22 +01:00
2017-05-16 14:23:31 +02:00
2017-05-12 11:44:13 -07:00
2017-05-18 23:54:47 -07:00
2017-05-23 20:09:34 -07:00
2017-05-25 14:36:37 +02:00
2017-05-16 23:06:41 +02:00
2017-05-19 10:10:07 +02:00
2017-05-17 11:27:41 +02:00
2017-05-05 11:36:44 -07:00
2017-05-08 17:15:12 -07:00
2017-05-11 11:12:26 -07:00
2017-05-08 17:15:10 -07:00
2017-05-02 23:41:43 +03:00
2017-05-19 10:42:25 +02:00
2017-05-09 09:12:53 -07:00
2017-05-10 21:03:31 +02:00