Skip to content
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

Bluetooth: fix HCI command / data deadlock #52536

Merged
merged 4 commits into from
Dec 15, 2022

Commits on Dec 14, 2022

  1. Bluetooth: host: make HCI fragmentation async

    Make the ACL fragmentation asynchronous, freeing the TX thread for sending
    commands when the ACL buffers are full.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    jori-nordic committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    562293a View commit details
    Browse the repository at this point in the history
  2. Bluetooth: host: poll on CTLR buffers instead of host TX queue

    When there are no buffers, it doesn't make sense to repeatedly try to send
    the host TX queue.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    jori-nordic committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    76deedb View commit details
    Browse the repository at this point in the history
  3. Bluetooth: host: copy fragment data at the last minute

    Only copy the data from the 'parent' buf into the segment buf if we
    successfully acquired the HCI semaphore (ie there are available controller
    buffers).
    
    This way we avoid pulling and pushing back the data in the case where there
    aren't any controller buffers available.
    
    Signed-off-by: Jonathan Rico <[email protected]>
    jori-nordic committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    a538cc3 View commit details
    Browse the repository at this point in the history
  4. Bluetooth: host: update l2cap stress test

    Do these things:
    - use the proper macros for reserving the SDU header
    - make every L2CAP PDU fragment into 3 ACL packets
    - set tx data and verify rx matches the pattern
    - measure segment pool usage
    
    Signed-off-by: Jonathan Rico <[email protected]>
    jori-nordic committed Dec 14, 2022
    Configuration menu
    Copy the full SHA
    e205bd9 View commit details
    Browse the repository at this point in the history