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: Enable C2H ACL data flow control by default #20208

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PavelVPV
Copy link
Contributor

@PavelVPV PavelVPV commented Feb 5, 2025

This commit enables C2H ACL data flow control by default to avoid potential deadlocks. See NCSDK-30959 for details.

Known issues are updated in #20200.

@PavelVPV PavelVPV requested a review from a team as a code owner February 5, 2025 13:45
@github-actions github-actions bot added the changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. label Feb 5, 2025
@NordicBuilder
Copy link
Contributor

NordicBuilder commented Feb 5, 2025

CI Information

To view the history of this post, clich the 'edited' button above
Build number: 11

Inputs:

Sources:

sdk-nrf: PR head: 1067af7ecb5285f7d560ecf273d262fb1e71cd64

more details

sdk-nrf:

PR head: 1067af7ecb5285f7d560ecf273d262fb1e71cd64
merge base: ab80a432d15d247daea8f0af580669af9fc841f7
target head (main): ab80a432d15d247daea8f0af580669af9fc841f7
Diff

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (2)
doc
│  ├── nrf
│  │  ├── releases_and_maturity
│  │  │  ├── releases
│  │  │  │  │ release-notes-changelog.rst
subsys
│  ├── bluetooth
│  │  │ Kconfig

Outputs:

Toolchain

Version: 4cff34261a
Build docker image: docker-dtr.nordicsemi.no/sw-production/ncs-build:4cff34261a_bece0367df

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ◻️ Toolchain - Skipped: existing toolchain is used
  • ❌ Build twister
    • sdk-nrf test count: 837
  • ❌ Integration tests
    • ❌ desktop52_verification
    • ❌ test-fw-nrfconnect-apps
    • ❌ test_ble_nrf_config
    • ❌ test-fw-nrfconnect-ble_samples
    • ❌ test-fw-nrfconnect-rs
    • ❌ test-fw-nrfconnect-fem
    • ❌ test-sdk-find-my
Disabled integration tests
    • doc-internal
    • test-fw-nrfconnect-ble_mesh
    • test-fw-nrfconnect-boot
    • test-fw-nrfconnect-chip
    • test-fw-nrfconnect-nfc
    • test-fw-nrfconnect-nrf-iot_cloud
    • test-fw-nrfconnect-nrf-iot_lwm2m
    • test-fw-nrfconnect-nrf-iot_mosh
    • test-fw-nrfconnect-nrf-iot_positioning
    • test-fw-nrfconnect-nrf-iot_samples
    • test-fw-nrfconnect-nrf-iot_serial_lte_modem
    • test-fw-nrfconnect-nrf-iot_thingy91
    • test-fw-nrfconnect-nrf-iot_zephyr_lwm2m
    • test-fw-nrfconnect-nrf_crypto
    • test-fw-nrfconnect-proprietary_esb
    • test-fw-nrfconnect-ps
    • test-fw-nrfconnect-rpc
    • test-fw-nrfconnect-tfm
    • test-fw-nrfconnect-thread
    • test-fw-nrfconnect-zigbee
    • test-low-level
    • test-sdk-audio
    • test-sdk-dfu
    • test-sdk-mcuboot
    • test-sdk-pmic-samples
    • test-sdk-sidewalk
    • test-sdk-wifi
    • test-secdom-samples-public

Note: This message is automatically posted and updated by the CI

@NordicBuilder
Copy link
Contributor

You can find the documentation preview for this PR at this link.

Note: This comment is automatically posted by the Documentation Publish GitHub Action.

HaavardRei
HaavardRei previously approved these changes Feb 10, 2025
@HaavardRei HaavardRei dismissed their stale review February 10, 2025 13:29

Seems some dependencies are needed in the direction finding samples?

@PavelVPV PavelVPV force-pushed the enable_c2h_acl_data_fc_by_default branch 3 times, most recently from 4c0ee57 to 7f55a97 Compare February 17, 2025 09:24
Comment on lines 48 to 54
if BT_CONN
config BT_HCI_ACL_FLOW_CONTROL
# Enabling this option by default for now to avoid potential deadlocks. See NCSDK-30959.
bool
default y
endif # BT_CONN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this says enable option, but I don't see it being used anywhere? If it already exists then fix:

if BT_CONN

config BT_HCI_ACL_FLOW_CONTROL
	# Enabling this option by default for now to avoid potential deadlocks. See NCSDK-30959.
	default y

endif # BT_CONN

@PavelVPV PavelVPV force-pushed the enable_c2h_acl_data_fc_by_default branch from 7f55a97 to a21ff40 Compare February 17, 2025 15:01
@PavelVPV PavelVPV requested a review from a team as a code owner February 17, 2025 15:07
@github-actions github-actions bot added doc-required PR must not be merged without tech writer approval. and removed changelog-entry-required Update changelog before merge. Remove label if entry is not needed or already added. labels Feb 17, 2025
Comment on lines 130 to 135
* Fixed an issue where a flash operation executed on the system workqueue might result in ``-ETIMEDOUT``, if there is an active Bluetooth LE connection.
* Fixed an issue where Bluetooth applications built with the ``nordic-bt-rpc`` snippet (in the :ref:`ble_rpc` configuration) did not work on the nRF54H20 devices due to incorrect memory mapping.

* Updated:

* The kconfig option :kconfig:option:`CONFIG_BT_HCI_ACL_FLOW_CONTROL` to be enabled by default to mitigate risk of potential deadlocks in the Bluetooth Host.
Copy link
Contributor

@peknis peknis Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Fixed an issue where a flash operation executed on the system workqueue might result in ``-ETIMEDOUT``, if there is an active Bluetooth LE connection.
* Fixed an issue where Bluetooth applications built with the ``nordic-bt-rpc`` snippet (in the :ref:`ble_rpc` configuration) did not work on the nRF54H20 devices due to incorrect memory mapping.
* Updated:
* The kconfig option :kconfig:option:`CONFIG_BT_HCI_ACL_FLOW_CONTROL` to be enabled by default to mitigate risk of potential deadlocks in the Bluetooth Host.
* Fixed:
* An issue where a flash operation executed on the system workqueue might result in ``-ETIMEDOUT``, if there is an active Bluetooth LE connection.
* An issue where Bluetooth applications built with the ``nordic-bt-rpc`` snippet (in the :ref:`ble_rpc` configuration) did not work on the nRF54H20 devices due to incorrect memory mapping.
* Updated the :kconfig:option:`CONFIG_BT_HCI_ACL_FLOW_CONTROL` Kconfig option to be enabled by default to mitigate the risk of potential deadlocks in the Bluetooth Host.

@PavelVPV PavelVPV force-pushed the enable_c2h_acl_data_fc_by_default branch 3 times, most recently from a5355eb to 882df6d Compare February 18, 2025 10:36
This commit enables C2H ACL data flow control by default to avoid
potential deadlocks. See NCSDK-30959 for details.

Known issues are updated in a separate PR.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
Fix 'fixed' section in Bluetooth LE.

This commit adds a note that C2H ACL FC is now enabled by default.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit adds a note that C2H ACL FC is now enabled by default.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
@PavelVPV PavelVPV force-pushed the enable_c2h_acl_data_fc_by_default branch from 882df6d to 1067af7 Compare February 20, 2025 08:55
Copy link

After documentation is built, you will find the preview for this PR here.

Preview links for modified nRF Connect SDK documents:

https://ncsdoc.z6.web.core.windows.net/PR-20208/nrf/releases_and_maturity/releases/release-notes-changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required PR must not be merged without tech writer approval.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants