Need to reset MT7921 BT when the firmware hang or command no response

Bug #1965467 reported by AceLan Kao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HWE Next
Fix Released
Undecided
Unassigned
linux-oem-5.14 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Undecided
AceLan Kao

Bug Description

[Impact]
Encounter BT command timeout issue when doing reboot test, and BT becomes unusable.
Mar 15 22:04:44 u-Inspiron-15-3525 kernel: [ 463.633675] usb 3-4: reset high-speed USB device number 3 using xhci_hcd
Mar 15 22:04:45 u-Inspiron-15-3525 kernel: [ 465.027012] Bluetooth: hci0: command 0x2005 tx timeout
Mar 15 22:04:47 u-Inspiron-15-3525 kernel: [ 467.043176] Bluetooth: hci0: command 0x2041 tx timeout

[Fix]
Backport below 2 commit from v5.15-rc1 fix this issue
e947802657cb Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)
0b10c8c84c0c Bluetooth: btusb: Record debug log for Mediatek Chip.

[Test]
Verified on the problem machine, and confirmed it works

[Where problems could occur]
It adds a new function to cmd_timeout callback, so it won't affect old behaviors. This only affects the chip which has command timeout issue, and could reset the chip when encounter the issue.

CVE References

AceLan Kao (acelankao)
Changed in linux-oem-5.14 (Ubuntu Focal):
status: New → In Progress
assignee: nobody → AceLan Kao (acelankao)
Changed in linux-oem-5.14 (Ubuntu):
status: New → Invalid
tags: added: oem-priority originate-from-1965199 somerville
Timo Aaltonen (tjaalton)
Changed in linux-oem-5.14 (Ubuntu Focal):
status: In Progress → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-oem-5.14/5.14.0-1030.33 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-focal' to 'verification-done-focal'. If the problem still exists, change the tag 'verification-needed-focal' to 'verification-failed-focal'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-focal
AceLan Kao (acelankao)
tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Test on WVB4-DVT2-A2, BIOS 1.2.0. reboot 50 times consecutively.

Didn't see consecutive Bluetooth tx timeout.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-oem-5.14 - 5.14.0-1031.34

---------------
linux-oem-5.14 (5.14.0-1031.34) focal; urgency=medium

  * focal/linux-oem-5.14: 5.14.0-1031.34 -proposed tracker (LP: #1966277)

  * CVE-2022-27666
    - sock: remove one redundant SKB_FRAG_PAGE_ORDER macro
    - esp: Fix possible buffer overflow in ESP transformation

 -- Timo Aaltonen <email address hidden> Fri, 25 Mar 2022 10:04:56 +0200

Changed in linux-oem-5.14 (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

fixed in 5.15

Changed in hwe-next:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.