Repository navigation
Bluetooth: btcentauri: Deliver ACL data by default - #3124
Conversation
The T8142 Beta transport already carries ACL data: BR/EDR on rings 2 and 8, LE on rings 4 and 10. Delivery was opt-in (enable_acl), and it needed arm_auxiliary_rings, which opens every auxiliary ring and allocates a 1 MiB private capture of what they receive. Without both, hci0 comes up and scans, but no device can connect: pairing, HID and audio all need ACL. Turn ACL delivery on by default and arm only the two ACL rings for it. The other auxiliary rings and the capture move behind a new diagnostic_capture parameter; the frames on them are not delivered either way. enable_acl=0 still gives the command and event transport alone. Signed-off-by: Nick <[email protected]>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J815 (MacBook Air 15" M5) row at Candidate: Default module parameters ( Across a real deep sleep (with #3130): the mouse stays connected and moves after the wake, exec 2 / IPC 2, 0 TX/RX errors. One line to note: on an earlier boot without #3130, the Bluetooth core logged Regression on the same boot ( Not yet: a J813 row at this head; a BR/EDR (non-LE) device. |
|
J815 (MacBook Air 15" M5) row at Candidate: One deep sleep with no timer, woken by a key on the built-in keyboard after about 10 minutes (boot Regression on the same boot, after the wake: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors vs the previous boot, 0 WARN/BUG/Oops. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE at 1a272cebf274
Blockers: none
Checked: full diff in btcentauri.c, diagnostic_capture gating and NULL safety of bt->capture, ring open/drain/status guards, hardware row, and live CI
Evidence
- Verified
arm_auxiliary_ringsandenable_aclnow default totrue, while non-ACL auxiliary rings and the 4 MiBbt->captureallocation are cleanly gated behind the newdiagnostic_capturemodule parameter (defaultfalse, rejectingdiagnostic_capture && !arm_auxiliary_rings). - Verified
cen_aux_start()preserves ring arena offset calculation while only opening rings 2 and 8 unlessdiagnostic_captureis enabled, markingstate->opened = trueonly for opened rings and guarding bothcen_aux_drain()andcen_status_show()onopened. - Verified all
bt->captureconsumers (cen_capture_frame(), debugfs creation ofauxiliary_capture/capture_reset,kvfree()) remain NULL-safe whendiagnostic_captureis disabled. - Live CI green (0 pending, 0 failed) with exact-head J815 hardware verification recorded on the PR.
|
J813 (MacBook Air 13" M5) row at
Not captured: the ACL counters during the mouse session (the boot was replaced before I read them); whether the mouse stayed connected across the deep sleeps on that boot. Not tested: a BR/EDR device. Assisted-by: LLM (Claude:Opus 5.5) |
What: turn on ACL data on the T8142 Bluetooth transport by default, so a Bluetooth device can connect on J813 and J815 without module parameters.
mainalready carries ACL (BR/EDR on rings 2/8, LE on rings 4/10), but only withenable_acl=1 arm_auxiliary_rings=1, and the second one also opened every auxiliary ring and allocated a 1 MiB private capture. Now only the two ACL rings are armed. The other rings and the capture move behind a newdiagnostic_captureparameter.Tested: J815 (MacBook Air 15" M5) at
1a272cebf274, in the batched candidatem0d16l14n1/linuxj815/prtest-r68ad9358 (main70381bd + the open T8142 sleep, N1 and J815 PR heads, unchanged): PASS. Default module parameters, hci0 up, scan found 21 devices, an LE mouse paired and used:acl_tx=76 acl_rx=3110, 0 TX/RX errors, no capture buffer allocated; with #3130 the mouse stays connected across a real deep sleep. Host testsrun-host-tests.py --only centauri16/16 PASS. Regression: 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors, 0 WARN/BUG/Oops.Risk: two-way door. J813 and J815 Bluetooth (the only btcentauri users).
enable_acl=0gives back today's command/event-only transport.Not yet: a J813 row at this head; SCO and LE Audio ISO (not in this PR: their rings stay closed unless
diagnostic_capture=1, and their frames aren't delivered).Details
enable_acldefaults to on. Its existing check stays: it needsarm_le_data_rings(already on by default) andarm_auxiliary_rings.arm_auxiliary_ringsdefaults to on and arms only rings 2 (ACL TX) and 8 (ACL RX). Their arena offsets are unchanged, sodiagnostic_capture=1lays out every ring as before.diagnostic_capture=1arms every auxiliary ring and allocates the capture with its debugfs files, which is whatarm_auxiliary_rings=1did before. It needsarm_auxiliary_rings.Evidence
At
1a272cebf274(boots65e8a168,6aaae3d9):