Bug 186201

Summary: Bluetooth kernel oops on suspend following resume - Lenoveo Yoga900, Dell Latitude E7270
Product: Drivers Reporter: Zhang Rui (rui.zhang)
Component: BluetoothAssignee: Marcel Holtmann (marcel)
Status: NEW ---    
Severity: normal CC: lenb, tiwai
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: All Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 178231    

Description Zhang Rui 2016-11-01 07:19:27 UTC
[12064.599249] PM: Preparing system for sleep (mem)
[12064.863840] asix 1-2:1.0 eth0: register 'asix' at usb-0000:00:14.0-2, ASIX AX88772B USB 2.0 Ethernet, 00:24:8c:02:86:27
[12064.872801] asix 1-2:1.0 enx00248c028627: renamed from eth0
[12065.178431] Freezing user space processes ... 
[12066.179546] Bluetooth: hci0: Waiting for firmware download to complete
[12066.180234] Bluetooth: hci0: Firmware loaded in 1684541 usecs
[12066.180394] Bluetooth: hci0: Waiting for device to boot
[12066.197277] Bluetooth: hci0: Device booted in 16629 usecs
[12085.185607] Freezing of tasks failed after 20.007 seconds (1 tasks refusing to freeze, wq_busy=0):
[12085.186141] hciconfig       D ffffffff818159fc     0  3688   3670 0x00080004
[12085.186159]  ffff880166cb4000 ffff8801669e6400 ffff8801258e1dc0 ffff880146ee9dc0
[12085.186172]  ffff880172499280 ffffc90001afbc00 ffffffff818159fc 0000000000000000
[12085.186183]  ffffc90001afbd70 7fffffffffffffff ffff8801258e1dc0 7fffffffffffffff
[12085.186194] Call Trace:
[12085.186217]  [<ffffffff818159fc>] ? __schedule+0x21c/0x6a0
[12085.186226]  [<ffffffff81815eb6>] schedule+0x36/0x80
[12085.186236]  [<ffffffff81818e92>] schedule_timeout+0x292/0x3d0
[12085.186249]  [<ffffffff8118d6aa>] ? get_page_from_freelist+0x32a/0xa00
[12085.186258]  [<ffffffff81818c05>] ? schedule_timeout+0x5/0x3d0
[12085.186267]  [<ffffffff81816875>] wait_for_completion+0xa5/0x110
[12085.186280]  [<ffffffff810a7ed0>] ? wake_up_q+0x80/0x80
[12085.186295]  [<ffffffff8109526b>] flush_workqueue+0x12b/0x530
[12085.186304]  [<ffffffff8152eca7>] ? get_device+0x17/0x20
[12085.186368]  [<ffffffffa02bf5de>] hci_dev_open+0x6e/0xe0 [bluetooth]
[12085.186434]  [<ffffffffa02dfb4c>] hci_sock_ioctl+0x19c/0x400 [bluetooth]
[12085.186444]  [<ffffffff816f0485>] sock_do_ioctl+0x25/0x50
[12085.186451]  [<ffffffff816f0944>] sock_ioctl+0x1d4/0x2b0
[12085.186463]  [<ffffffff8121f9b6>] do_vfs_ioctl+0x96/0x5b0
[12085.186474]  [<ffffffff810673b1>] ? __do_page_fault+0x261/0x4d0
[12085.186484]  [<ffffffff8121ff49>] SyS_ioctl+0x79/0x90
[12085.186496]  [<ffffffff8100391e>] do_syscall_64+0x6e/0x180
[12085.186507]  [<ffffffff8181a6af>] entry_SYSCALL64_slow_path+0x25/0x25
[12085.186532] Restarting tasks ... 
[12085.192804] done.
[12085.197716] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-11-5.ddc
[12085.199198] Bluetooth: hci0: Applying Intel DDC parameters completed
[12085.200193] Bluetooth: hci0: Setting Intel event mask failed (-16)
Comment 1 Zhang Rui 2016-11-09 06:17:16 UTC
*** Bug 187091 has been marked as a duplicate of this bug. ***
Comment 2 Takashi Iwai 2016-11-16 11:47:41 UTC
I'm seeing this on Dell Latitude E7270 with Intel 8260 chip, too.

Also, the bug 117251 looks like a dup.
Comment 3 Zhang Rui 2017-01-16 03:27:47 UTC
so ,there is no update after you file the bug?

I will check latest upstream kernel, and then raise the problem to the mailing list directly.
Comment 4 Takashi Iwai 2017-01-19 10:00:30 UTC
With the latest 4.10-rc (or the recent kernels), the stack trace doesn't show up, but the error from BT occurs at every boot and resume.

The behavior looks racy.  The BT sometimes doesn't work unless reloading the BT driver.