Comment 7 for bug 2061091

Revision history for this message
GuoqingJiang (guoqingjiang) wrote :

And this call trace looks is related to current issue, I guess snd_power_ref_and_wait was waiting for snd_card_disconnect which wakes up power_sleep at the end of the code, but snd_card_disconnect -> snd_device_disconnect_all -> snd_pcm_dev_disconnect was blocked for some reason.

Apr 15 21:48:23 xps9320 kernel: [43261.751897] INFO: task kworker/0:6:34416 blocked for more than 120 seconds.
Apr 15 21:48:23 xps9320 kernel: [43261.751900] Tainted: G OE 6.5.0-27-generic #28~22.04.1-Ubuntu
Apr 15 21:48:23 xps9320 kernel: [43261.751901] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Apr 15 21:48:23 xps9320 kernel: [43261.751903] task:kworker/0:6 state:D stack:0 pid:34416 ppid:2 flags:0x00004000
Apr 15 21:48:23 xps9320 kernel: [43261.751907] Workqueue: usb_hub_wq hub_event
Apr 15 21:48:23 xps9320 kernel: [43261.751913] Call Trace:
Apr 15 21:48:23 xps9320 kernel: [43261.751915] <TASK>
Apr 15 21:48:23 xps9320 kernel: [43261.751916] __schedule+0x2cb/0x750
Apr 15 21:48:23 xps9320 kernel: [43261.751921] schedule+0x63/0x110
Apr 15 21:48:23 xps9320 kernel: [43261.751924] schedule_preempt_disabled+0x15/0x30
Apr 15 21:48:23 xps9320 kernel: [43261.751928] rwsem_down_write_slowpath+0x2a2/0x550
Apr 15 21:48:23 xps9320 kernel: [43261.751940] down_write+0x5c/0x80
Apr 15 21:48:23 xps9320 kernel: [43261.751945] snd_pcm_dev_disconnect+0x1d2/0x280 [snd_pcm]
Apr 15 21:48:23 xps9320 kernel: [43261.751964] snd_device_disconnect_all+0x47/0xa0 [snd]
Apr 15 21:48:23 xps9320 kernel: [43261.751979] snd_card_disconnect.part.0+0x10d/0x290 [snd]
Apr 15 21:48:23 xps9320 kernel: [43261.752019] ? rpm_idle+0x25/0x2b0
Apr 15 21:48:23 xps9320 kernel: [43261.752023] snd_card_disconnect+0x13/0x30 [snd]
Apr 15 21:48:23 xps9320 kernel: [43261.752039] usb_audio_disconnect+0x114/0x2c0 [snd_usb_audio]
Apr 15 21:48:23 xps9320 kernel: [43261.752064] usb_unbind_interface+0x8e/0x280
Apr 15 21:48:23 xps9320 kernel: [43261.752069] device_remove+0x65/0x80
Apr 15 21:48:23 xps9320 kernel: [43261.752072] device_release_driver_internal+0x20b/0x270
Apr 15 21:48:23 xps9320 kernel: [43261.752077] device_release_driver+0x12/0x20
Apr 15 21:48:23 xps9320 kernel: [43261.752080] bus_remove_device+0xcb/0x140
Apr 15 21:48:23 xps9320 kernel: [43261.752083] device_del+0x161/0x3e0
Apr 15 21:48:23 xps9320 kernel: [43261.752086] ? kobject_put+0x67/0xa0
Apr 15 21:48:23 xps9320 kernel: [43261.752090] usb_disable_device+0xd5/0x280
Apr 15 21:48:23 xps9320 kernel: [43261.752093] usb_disconnect+0xe9/0x2e0
Apr 15 21:48:23 xps9320 kernel: [43261.752097] usb_disconnect+0xcd/0x2e0
Apr 15 21:48:23 xps9320 kernel: [43261.752100] usb_disconnect+0xcd/0x2e0
Apr 15 21:48:23 xps9320 kernel: [43261.752102] ? usb_control_msg+0x106/0x160
Apr 15 21:48:23 xps9320 kernel: [43261.752105] hub_port_connect+0x90/0xc30
Apr 15 21:48:23 xps9320 kernel: [43261.752109] hub_port_connect_change+0x91/0x300
Apr 15 21:48:23 xps9320 kernel: [43261.752113] port_event+0x652/0x810
Apr 15 21:48:23 xps9320 kernel: [43261.752117] hub_event+0x155/0x450
Apr 15 21:48:23 xps9320 kernel: [43261.752120] process_one_work+0x23d/0x450
Apr 15 21:48:23 xps9320 kernel: [43261.752125] worker_thread+0x50/0x3f0
Apr 15 21:48:23 xps9320 kernel: [43261.752128] ? __pfx_worker_thread+0x10/0x10
Apr 15 21:48:23 xps9320 kernel: [43261.752131] kthread+0xef/0x120
Apr 15 21:48:23 xps9320 kernel: [43261.752135] ? __pfx_kthread+0x10/0x10
Apr 15 21:48:23 xps9320 kernel: [43261.752139] ret_from_fork+0x44/0x70
Apr 15 21:48:23 xps9320 kernel: [43261.752143] ? __pfx_kthread+0x10/0x10
Apr 15 21:48:23 xps9320 kernel: [43261.752147] ret_from_fork_asm+0x1b/0x30
Apr 15 21:48:23 xps9320 kernel: [43261.752151] </TASK>