Skip to content

Bluetooth: controller: Workaround multi-link DLE assert #14553

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

Merged

Conversation

cvinayak
Copy link
Collaborator

Workaround from asserting when Rx PDU buffers from pool
needing resize is acquired by another connection. By
skipping the connection events to give some headroom for
the host to process the Rx packets and eventually make the
pool available for resize.

Fixes #11841.

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

@cvinayak
Copy link
Collaborator Author

@alexsven could you verify if this is a suitable workaround in comparison to commenting out the assert?

*/
LL_ASSERT(0);
return -EAGAIN;
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look right. You changed the return value of this function to u32_t but here you're returning a negative value?

Copy link
Collaborator Author

@cvinayak cvinayak Mar 15, 2019

Choose a reason for hiding this comment

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

Oversight, will fix it. Thank you. Changed the return type to int.

@cvinayak cvinayak force-pushed the github_dle_assert_fix branch from 881f968 to 206c35a Compare March 15, 2019 07:37
Workaround from asserting when Rx PDU buffers from pool
needing resize is acquired by another connection. By
skipping the connection events to give some headroom for
the host to process the Rx packets and eventually make the
pool available for resize.

Fixes zephyrproject-rtos#11841.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak cvinayak force-pushed the github_dle_assert_fix branch from 206c35a to 0f44aa2 Compare March 15, 2019 07:38
@codecov-io
Copy link

Codecov Report

Merging #14553 into master will decrease coverage by 0.03%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14553      +/-   ##
==========================================
- Coverage   52.02%   51.98%   -0.04%     
==========================================
  Files         309      309              
  Lines       45574    45575       +1     
  Branches    10555    10555              
==========================================
- Hits        23711    23694      -17     
- Misses      17057    17070      +13     
- Partials     4806     4811       +5
Impacted Files Coverage Δ
subsys/bluetooth/controller/ll_sw/ctrl.c 54.41% <28.57%> (-0.04%) ⬇️
subsys/testsuite/ztest/include/ztest_assert.h 38.88% <0%> (-38.89%) ⬇️
subsys/testsuite/ztest/src/ztest.c 65.28% <0%> (-7.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1c2159...0f44aa2. Read the comment docs.

@aescolar aescolar added bug The issue is a bug, or the PR is fixing a bug area: Bluetooth labels Mar 15, 2019
Copy link
Collaborator

@thoh-ot thoh-ot left a comment

Choose a reason for hiding this comment

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

QUICK-ACK

@alexsven
Copy link
Collaborator

alexsven commented Mar 15, 2019

@cvinayak
Verified that it is working here!

@carlescufi carlescufi merged commit 0437fd7 into zephyrproject-rtos:master Mar 15, 2019
@cvinayak cvinayak deleted the github_dle_assert_fix branch March 1, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants