mbox series

[0/2,SRU,OEM-5.14] Need to reset MT7921 BT when the firmware hang or command no response

Message ID 20220318021526.59259-1-acelan.kao@canonical.com
Headers show
Series Need to reset MT7921 BT when the firmware hang or command no response | expand

Message

AceLan Kao March 18, 2022, 2:15 a.m. UTC
From: "Chia-Lin Kao (AceLan)" <acelan.kao@canonical.com>

BugLink: https://bugs.launchpad.net/bugs/1965467

[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.

mark-yw.chen (2):
  Bluetooth: btusb: Record debug log for Mediatek Chip.
  Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)

 drivers/bluetooth/btusb.c | 154 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 153 insertions(+), 1 deletion(-)

Comments

Timo Aaltonen March 22, 2022, 11 a.m. UTC | #1
AceLan Kao kirjoitti 18.3.2022 klo 4.15:
> From: "Chia-Lin Kao (AceLan)" <acelan.kao@canonical.com>
> 
> BugLink: https://bugs.launchpad.net/bugs/1965467
> 
> [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.
> 
> mark-yw.chen (2):
>    Bluetooth: btusb: Record debug log for Mediatek Chip.
>    Bluetooth: btusb: Support Bluetooth Reset for Mediatek Chip(MT7921)
> 
>   drivers/bluetooth/btusb.c | 154 +++++++++++++++++++++++++++++++++++++-
>   1 file changed, 153 insertions(+), 1 deletion(-)
> 

applied to oem-5.14, thanks