Bug 219405 - [regression] mt7922 bluetooth scanning does not work in 6.11.4
Summary: [regression] mt7922 bluetooth scanning does not work in 6.11.4
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Bluetooth (show other bugs)
Hardware: AMD Linux
: P3 normal
Assignee: linux-bluetooth@vger.kernel.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-21 09:29 UTC by Eugene Shalygin
Modified: 2024-10-22 10:15 UTC (History)
3 users (show)

See Also:
Kernel Version: 6.11.4
Subsystem:
Regression: Yes
Bisected commit-id: e63125eec47dcc169cf62a2a56448bec92a0a271


Attachments

Description Eugene Shalygin 2024-10-21 09:29:20 UTC
6.11.3 -> 6.11.4 update broke bluetooth scanning for mt7922. 

09:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
    Subsystem: Foxconn International, Inc. Device e0cd
    Kernel driver in use: mt7921e
    Kernel modules: mt7921e

With 6.11.3:
$ dmesg| grep -i bluetooth                                                                                                                                                                                                      [    5.170554] Bluetooth: Core ver 2.22
[    5.170762] NET: Registered PF_BLUETOOTH protocol family
[    5.170949] Bluetooth: HCI device and connection manager initialized
[    5.171130] Bluetooth: HCI socket layer initialized
[    5.171313] Bluetooth: L2CAP socket layer initialized
[    5.171495] Bluetooth: SCO socket layer initialized
[    6.574657] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20240716163633
[    6.614305] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    6.614311] Bluetooth: BNEP filters: protocol multicast
[    6.614316] Bluetooth: BNEP socket layer initialized
[   27.410062] Bluetooth: hci0: Device setup in 20480957 usecs
[   27.410070] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[   27.687794] Bluetooth: hci0: AOSP extensions version v1.00
[   27.687800] Bluetooth: hci0: AOSP quality report is supported
[   27.687914] Bluetooth: MGMT ver 1.23
[   27.687951] Bluetooth: ISO socket layer initialized
[   27.784423] Bluetooth: RFCOMM TTY layer initialized
[   27.784430] Bluetooth: RFCOMM socket layer initialized
[   27.784432] Bluetooth: RFCOMM ver 1.11
[   27.955038] Bluetooth: hci0: Invalid LTK for a8:79:8d:fe:ef:cb
Comment 1 Eugene Shalygin 2024-10-21 09:35:36 UTC
With 6.11.4
# btmon
Bluetooth monitor ver 5.78
btmon[3582]: = Note: Linux version 6.11.4-gentoo (x86_64)                                                                                                                                                                                         0.553232
btmon[3582]: = Note: Bluetooth subsystem version 2.22                                                                                                                                                                                             0.553233
= New Index: 10:B1:DF:B8:17:42 (Primary,USB,hci0)                                                                                                                                                                                          [hci0] 0.553234
= Open Index: 10:B1:DF:B8:17:42                                                                                                                                                                                                            [hci0] 0.553234
= Index Info: 10:B1:DF:B8:17:42 (MediaTek, Inc.)                                                                                                                                                                                           [hci0] 0.553234
bluetoothd[1187]: @ MGMT Open: bluetoothd (privileged) version 1.23                                                                                                                                                                      {0x0001} 0.553235
bluetoothd[1187]: @ MGMT Command: Start Discovery (0x0023) plen 1                                                                                                                                                                {0x0001} [hci0] 12.563728
        Address type: 0x07
          BR/EDR
          LE Public
          LE Random
@ MGMT Event: Command Complete (0x0001) plen 4                                                                                                                                                                                   {0x0001} [hci0] 12.563758
      Start Discovery (0x0023) plen 1
        Status: Success (0x00)
        Address type: 0x07
          BR/EDR
          LE Public
          LE Random
@ MGMT Event: Discovering (0x0013) plen 2                                                                                                                                                                                        {0x0001} [hci0] 12.563764
        Address type: 0x07
          BR/EDR
          LE Public
          LE Random
        Discovery: Enabled (0x01)

And nothing more appears.
Comment 2 Eugene Shalygin 2024-10-21 11:03:36 UTC
Connecting to paired devices is broken as well.
Comment 3 Eugene Shalygin 2024-10-22 09:21:32 UTC
Reverting e63125eec47dcc169cf62a2a56448bec92a0a271 makes it work.
Comment 4 Paul Menzel 2024-10-22 09:34:48 UTC
Thank you for your report and pinpointing the breaking commit. It’s a known regression, and commit 4084286151 (Bluetooth: btusb: Fix not being able to reconnect after suspend) [1] should fix it. It was queued as a 6.11-stable review patch yesterday, and should make it into Linux 6.11.5.


[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4084286151fc91cd093578f615bfb68f9efbbfcb
[2]: https://lore.kernel.org/stable/20241021102303.120595342@linuxfoundation.org/T/#u
Comment 5 Eugene Shalygin 2024-10-22 10:15:10 UTC
Thanks for the feedback! Can confirm 4084286151fc91cd093578f615bfb68f9efbbfcb fixes this problem as well.

Note You need to log in before you can comment on or make changes to this bug.