-
Notifications
You must be signed in to change notification settings - Fork 105
[Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] Bluetooth: mediatek: use module param to disable isopkt by default #664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Deepin-Kernel-SIG] [linux 6.6-y] [Deepin] Bluetooth: mediatek: use module param to disable isopkt by default #664
Conversation
Reviewer's Guide by SourceryThis pull request introduces a module parameter Sequence diagram for Bluetooth device setup with isopkt disabledsequenceDiagram
participant hci_dev
participant btmtk_data
participant btmtk_usb_setup
participant btmtk_usb_isointf_init
btmtk_usb_setup->>hci_dev: hci_set_aosp_capable(hdev)
alt enable_isopkt && test_bit(BTMTK_ISOPKT_OVER_INTR, &btmtk_data->flags)
btmtk_usb_setup->>btmtk_usb_isointf_init: btmtk_usb_isointf_init(hdev)
alt btmtk_usb_isointf_init success
btmtk_usb_setup->>btmtk_data: set_bit(BTMTK_ISOPKT_RUNNING, &btmtk_data->flags)
else btmtk_usb_isointf_init fails
btmtk_usb_setup->>btmtk_data: Do nothing
end
else enable_isopkt is false or BTMTK_ISOPKT_OVER_INTR is not set
btmtk_usb_setup->>btmtk_data: Skip btmtk_usb_isointf_init
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
close the feature by default for it break mt7921u init flow. for unknown what device show it supports. Test in kernel 6.12.y Log: 3月 15 17:00:19 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:20 uos-PC kernel: xe 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=57761 end=57762) time 139 us, min 1778, max 1799, scanline start 1769, end 1791 3月 15 17:00:21 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:21 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:21 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:21 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:21 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:23 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: Device setup in 4145932 usecs 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:28 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:30 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:32 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:32 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:32 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:32 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:32 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:34 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: Device setup in 4143932 usecs 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:38 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:40 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:42 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:43 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:43 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:43 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:43 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:44 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: Device setup in 4104912 usecs 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:49 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:51 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:53 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:54 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:54 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:54 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:54 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:55 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: Device setup in 4188859 usecs 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:01:00 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:01:02 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) Signed-off-by: Wentao Guan <[email protected]>
08ec487 to
1d45ebc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @opsiff - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment explaining why the module parameter is being introduced.
- It would be good to have a Kconfig option instead of a module parameter.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: hello666888999 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/ok-to-test |
deepin pr auto review关键摘要:
是否建议立即修改:
|
close the feature by default for it break mt7921u init flow.
Test in kernel 6.12.y
Log:
3月 15 17:00:19 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:20 uos-PC kernel: xe 0000:00:02.0: [drm] ERROR Atomic update failure on pipe A (start=57761 end=57762) time 139 us, min 1778, max 1799, scanline start 1769, end 1791 3月 15 17:00:21 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:21 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:21 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:21 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:21 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:23 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: Device setup in 4145932 usecs 3月 15 17:00:26 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:28 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:30 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:32 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:32 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:32 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:32 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:32 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:34 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: Device setup in 4143932 usecs 3月 15 17:00:36 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:38 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:40 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:42 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:43 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:43 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:43 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:43 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:44 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: Device setup in 4104912 usecs 3月 15 17:00:47 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:00:49 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:00:51 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110) 3月 15 17:00:53 uos-PC kernel: Bluetooth: hci0: AOSP get vendor capabilities (-110) 3月 15 17:00:54 uos-PC kernel: usb 4-1: reset SuperSpeed USB device number 8 using xhci_hcd 3月 15 17:00:54 uos-PC kernel: mt7921u 4-1:1.3: HW/SW Version: 0x8a108a10, Build Time: 20241106151007a 3月 15 17:00:54 uos-PC kernel: mt7921u 4-1:1.3: WM Firmware Version: ____010000, Build Time: 20241106151045 3月 15 17:00:54 uos-PC kernel: Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20241106151414 3月 15 17:00:55 uos-PC kernel: mt7921u 4-1:1.3 wlxe0e1a935c9c9: renamed from wlan0 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: command 0xfd98 tx timeout 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: Failed to apply iso setting (-110) 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: Device setup in 4188859 usecs 3月 15 17:00:58 uos-PC kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported. 3月 15 17:01:00 uos-PC kernel: Bluetooth: hci0: Opcode 0x0c03 failed: -110 3月 15 17:01:02 uos-PC kernel: Bluetooth: hci0: Failed to read MSFT supported features (-110)
Summary by Sourcery
Disable the Bluetooth isopkt feature by default for MediaTek devices to prevent issues during device initialization. A module parameter is added to allow enabling the feature.