Bug 199451

Summary: Intel 9260: immediate resume after suspend when connected with BT device
Product: Drivers Reporter: Ethan Hsieh (ethan.hsieh)
Component: BluetoothAssignee: linux-bluetooth (linux-bluetooth)
Status: NEW ---    
Severity: high CC: kai.heng.feng
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.17rc1 & 4.13 Subsystem:
Regression: No Bisected commit-id:
Attachments: 2_kern.log_4.13_event_mask_fffff3ff07f8bf1d
2_btsnoop.log
3_kern.log_4.13_event_mask_fffffbff07f8bf3d
3_btsnoop.log
1_kern.log_4.13
1_btsnoop.log

Description Ethan Hsieh 2018-04-20 02:42:24 UTC
Created attachment 275451 [details]
2_kern.log_4.13_event_mask_fffff3ff07f8bf1d

System sent ACL DATA TX before suspend and then it was woken up immediately by ACL DATA RX.

//Press "Suspend button" from UI
[ 44.857936] Suspending console(s) (use no_console_suspend to debug)
[ 44.966748] hci_send_acl, hci0 chan ffff90858dd66700 flags 0x0000
[ 44.966749] hci_queue_acl, hci0 nonfrag skb ffff90859225b500 len 11
[ 44.966755] hci_send_frame, hci0 type 2 len 11
[ 45.858722] smpboot: CPU 11 is now offline
//Suspend
//Resume
[ 45.862348] ACPI: Low-level resume complete
[ 45.879717] ACPI: Waking up from system sleep state S3
[ 45.924838] pm_wakeup_dev_event: dev_name=0000:00:14.0
[ 45.998065] PM: early resume of devices complete after 75.899 msecs
[ 46.057641] hci_recv_frame, hci0 type 2 len 29
[ 46.058414] hci_recv_frame, hci0 type 4 len 7

Please refer to attached file (2_kern.log_4.13_event_mask_fffff3ff07f8bf1d) for detailed log.
Comment 1 Ethan Hsieh 2018-04-20 02:43:07 UTC
Created attachment 275453 [details]
2_btsnoop.log
Comment 2 Ethan Hsieh 2018-04-20 02:43:29 UTC
Created attachment 275455 [details]
3_kern.log_4.13_event_mask_fffffbff07f8bf3d
Comment 3 Ethan Hsieh 2018-04-20 02:43:49 UTC
Created attachment 275457 [details]
3_btsnoop.log
Comment 4 Ethan Hsieh 2018-04-20 02:44:02 UTC
Created attachment 275459 [details]
1_kern.log_4.13
Comment 5 Ethan Hsieh 2018-04-20 02:44:18 UTC
Created attachment 275461 [details]
1_btsnoop.log
Comment 6 Ethan Hsieh 2018-04-20 02:50:27 UTC
Failure rate is not 100%.
Here is the log that system can suspend successfully.

//Press "Suspend button" from UI
[ 58.989221] Suspending console(s) (use no_console_suspend to debug)
[ 59.933198] smpboot: CPU 3 is now offline
//Suspend
//System can suspend successfully.
//Press USB keyboard to wake up system
//Resume
[ 59.937275] ACPI: Low-level resume complete
[ 59.942637] ACPI: Waking up from system sleep state S3
[ 60.002027] pm_wakeup_dev_event: dev_name=0000:00:14.0
[ 60.057167] PM: early resume of devices complete after 71.506 msecs
[ 60.229524] hci_send_acl, hci0 chan ffffa03993668200 flags 0x0000
[ 60.229525] hci_queue_acl, hci0 nonfrag skb ffffa0398dd8b300 len 11
[ 60.229560] hci_send_frame, hci0 type 2 len 11

Please refer to attached file (1_kern.log_4.13) for detailed log.

BT device:
https://www.logitech.com/en-us/product/multi-device-keyboard-k480