Skip to content

Bluetooth: btcentauri: Deliver ACL data by default - #3124

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/btcentauri-acl
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:j815/btcentauri-acl

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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. main already carries ACL (BR/EDR on rings 2/8, LE on rings 4/10), but only with enable_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 new diagnostic_capture parameter.
Tested: J815 (MacBook Air 15" M5) at 1a272cebf274, in the batched candidate m0d16l14n1/linux j815/prtest-r6 8ad9358 (main 70381bd + 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 tests run-host-tests.py --only centauri 16/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=0 gives 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_acl defaults to on. Its existing check stays: it needs arm_le_data_rings (already on by default) and arm_auxiliary_rings.
  • arm_auxiliary_rings defaults to on and arms only rings 2 (ACL TX) and 8 (ACL RX). Their arena offsets are unchanged, so diagnostic_capture=1 lays out every ring as before.
  • diagnostic_capture=1 arms every auxiliary ring and allocates the capture with its debugfs files, which is what arm_auxiliary_rings=1 did before. It needs arm_auxiliary_rings.
  • Rings that aren't open are skipped when draining and in the debugfs status.
Evidence

At 1a272cebf274 (boots 65e8a168, 6aaae3d9):

btcentauri 0000:01:00.2: Beta HCI transport registered; ACL enabled=1, SCO/ISO unsupported
btcentauri options: enable_acl=1 arm_auxiliary_rings=1
acl_enabled=1 acl_tx=76 acl_rx=3110 acl_queued=0, tx_errors=0 rx_errors=0
auxiliary_rings=1, capture_bytes=0 capture_records=0
after a deep sleep and wake (with #3130): exec=2 ipc=2, mouse connected and moving, tx_errors=0 rx_errors=0

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]>
@m0d16l14n1
m0d16l14n1 requested a review from a team as a code owner November 25, 2026 04:40
@m0d16l14n1
m0d16l14n1 requested a review from LiamRay11 November 25, 2026 04:40
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Merge readiness at 1a272ceb: not ready yet

Check Detail
CI at head no failing: host-tests, host-tests, pr-text / pr-text
Review ok approved by satchlj
Requested changes ok none
Hardware row at head ok in the PR body at 1a272ceb
Conflicts ok none
PR text ok Risk: two-way · . J813 and J815 Bluetooth (the only btcentauri users). enableacl=0 gives back today's command/event-only transport.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

J815 (MacBook Air 15" M5) row at 1a272cebf274, in a batched candidate.

Candidate: m0d16l14n1/linux j815/prtest-r6 8ad9358 = main 70381bd with these PR heads merged unchanged: #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 227c89b, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c, plus the open J815 PRs. Stage 2: aura main 508390223 + aura#391/#165/#363. Command line: default + pcie_aspm=off apple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1 apple_sep.xart_writes=0 apple_sep.provision_keybag=0.

Default module parameters (enable_acl=1 arm_auxiliary_rings=1, no diagnostic_capture). An LE HID mouse paired and used:

btcentauri 0000:01:00.2: Beta HCI transport registered; ACL enabled=1, SCO/ISO unsupported
acl_enabled=1 acl_tx=76 acl_rx=3110 acl_queued=0, tx_errors=0 rx_errors=0
auxiliary_rings=1, capture_bytes=0 capture_records=0 (no capture buffer allocated)

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 hci0: Opcode 0x0c52 failed: -112 once at suspend entry (its EIR write cancelled as suspend starts; not from this driver). It did not appear on the r6 boot.

Regression on the same boot (6aaae3d9, after the wake): 0 SELinux denials (SELinux off), 0 failed units, 0 new kernel errors vs the previous boot, 0 WARN/BUG/Oops.

Not yet: a J813 row at this head; a BR/EDR (non-LE) device.

@m0d16l14n1

Copy link
Copy Markdown
Contributor Author

J815 (MacBook Air 15" M5) row at 1a272cebf274 unchanged: PASS.

Candidate: m0d16l14n1/linux j815/prtest-r7 d70fd05 = main a60fef7 with these PR heads merged unchanged: #2384 f9d03e8, #2385 b1c3392, #2192 c5daf57, #2193 8be9e73, #3123 822a1dd, #3124 1a272ce, #3125 4ad71b8, #3129 6d5ec4d, #3130 76bf36c, plus the open J815 PRs (r6 + #3123's new head). Stage 2 as on r6. Command line: default + pcie_aspm=off apple_sleep.deep=1 nvme_apple.sleep_untested=1 appledrm.s2r_untested=1 apple_sep.xart_writes=0 apple_sep.provision_keybag=0 apple_sleep.t8142_wake_s=0 (the last one turns off the timed PMU wake, so the sleep lasts until a key).

One deep sleep with no timer, woken by a key on the built-in keyboard after about 10 minutes (boot 9325546c): Timekeeping suspended for 603.654 seconds, 9 cores started in one burst, CPUs 0-9 online, suspend_stats success=1 fail=0; the wake source is the built-in keyboard/trackpad. Panel, NVMe, Wi-Fi (up 5 s after the wake) and Bluetooth (LE mouse still connected, 0 TX/RX errors, exec 2 / IPC 2) back.

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 satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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_rings and enable_acl now default to true, while non-ACL auxiliary rings and the 4 MiB bt->capture allocation are cleanly gated behind the new diagnostic_capture module parameter (default false, rejecting diagnostic_capture && !arm_auxiliary_rings).
  • Verified cen_aux_start() preserves ring arena offset calculation while only opening rings 2 and 8 unless diagnostic_capture is enabled, marking state->opened = true only for opened rings and guarding both cen_aux_drain() and cen_status_show() on opened.
  • Verified all bt->capture consumers (cen_capture_frame(), debugfs creation of auxiliary_capture/capture_reset, kvfree()) remain NULL-safe when diagnostic_capture is disabled.
  • Live CI green (0 pending, 0 failed) with exact-head J815 hardware verification recorded on the PR.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Nov 25, 2026
@gig3m

gig3m commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

J813 (MacBook Air 13" M5) row at 1a272cebf274, in m0d16l14n1/linux j815/prtest-r8 7b4bbe9 plus the local XRGB plane patch. Default btcentauri parameters (enable_acl=Y): PASS for LE.

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)

@DjDeveloperr
DjDeveloperr merged commit 02c235a into aurora-silicon:main Nov 25, 2026
8 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants