Bluetooth: ISO: Fix defer tests being unstable
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH 1/1 Bluetooth: ISO: Fix defer tests being unstable
From: Luiz Augusto von Dentz <[email protected]>
iso-tester defer tests seem to fail with hci_conn_hash_lookup_cig being unable to resolve a cig in set_cig_params_sync due a race where it is run immediatelly before hci_bind_cis is able to set the QoS settings into the hci_conn object.
So this moves the assigning of the QoS settings to be done directly by hci_le_set_cig_params to prevent that from happening again.
--- net/bluetooth/hci_conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/hci_conn.c +2 -2
@@ -1944,6 +1944,8 @@ static bool hci_le_set_cig_params(struct hci_conn *conn, struct bt_iso_qos *qos)return false; done: + conn->iso_qos = *qos; +if (hci_cmd_sync_queue (hdev, set_cig_params_sync,UINT_PTR (qos->ucast.cig),NULL ) <0 )return false;
@@ -2013,8 +2015,6 @@ struct hci_conn *hci_bind_cis(struct hci_dev *hdev, bdaddr_t *dst, }hci_conn_hold (cis); - - cis->iso_qos = *qos; cis->state =BT_BOUND ;return cis;
Signature · 1 line
2.52.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1059247
---Test result---
Test Summary:
CheckPatch PENDING 0.40 seconds GitLint PENDING 0.31 seconds SubjectPrefix PASS 0.07 seconds BuildKernel PASS 24.35 seconds CheckAllWarning PASS 26.44 seconds CheckSparse PASS 29.51 seconds BuildKernel32 PASS 23.55 seconds TestRunnerSetup PASS 522.70 seconds TestRunner_l2cap-tester FAIL 32.67 seconds TestRunner_iso-tester PASS 80.33 seconds TestRunner_bnep-tester PASS 6.40 seconds TestRunner_mgmt-tester FAIL 125.56 seconds TestRunner_rfcomm-tester PASS 9.76 seconds TestRunner_sco-tester FAIL 17.74 seconds TestRunner_ioctl-tester PASS 10.37 seconds TestRunner_mesh-tester FAIL 12.47 seconds TestRunner_smp-tester PASS 8.93 seconds TestRunner_userchan-tester PASS 6.76 seconds IncrementalBuild PENDING 0.81 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_l2cap-tester - FAIL
Desc: Run l2cap-tester with test-runner Output:
Total: 96, Passed: 94 (97.9%), Failed: 2, Not Run: 0
Failed Test Cases
L2CAP LE Client - Read 32k Success Timed out 2.512 seconds L2CAP LE Client - RX Timestamping 32k Timed out 1.895 seconds
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.114 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 2.642 seconds Mesh - Send cancel - 2 Timed out 1.993 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 8 lines · On Fri, 27 Feb 2026 15:35:06 -0500 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
iso-tester defer tests seem to fail with
hci_conn_hash_lookup_cigbeing unable to resolve a cig inset_cig_params_syncdue a race where it is run immediatelly beforehci_bind_cisis able to set the QoS settings into thehci_connobject.[...]
Here is the summary with links:
- [v1] Bluetooth: ISO: Fix defer tests being unstable
https://git.kernel.org/bluetooth/bluetooth-next/c/094ef2d048f8
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html