Skip to content

Bluetooth: btcentauri: Drop the bring-up module parameters - #3726

Merged
RyanTheTide merged 1 commit into
mainfrom
gates/btcentauri-params
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
gates/btcentauri-params

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: remove nine bring-up module parameters from btcentauri (T8142/T8152 N1 Bluetooth) with no change in behaviour at the defaults. The seven that default to on (arm_le_data_rings, arm_auxiliary_rings, enable_acl, native_hrb, factory_address, fixup_adv_phy, scan_dup_filter) become unconditional code. The two diagnostic ones that default to off go with their code: diagnostic_capture (1 MiB private capture of every received frame plus the unused auxiliary rings, read through debugfs) and native_startup (random locally administered address when the loader gives no local-bd-address). accept_list stays (see Not yet).
Tested: build only, no N1 hardware here. make ARCH=arm64 LLVM=1 W=1 drivers/bluetooth/btcentauri.o at 27d913e: no warnings. checkpatch.pl -g HEAD: clean. Host tests run-host-tests.py --only centauri --jobs 8: 22/22 pass (includes centauri-bt-arena-tests, centauri-bt-sco-tests and their negative controls). No KUnit suite exists for btcentauri.
Risk: two-way door. J813, J815 and J873 (T8152) Bluetooth, the only btcentauri users (T6050 boards use btcentauri_t6050, untouched). Anyone loading the module with one of these parameters now gets an "unknown parameter" warning and the default behaviour. The debugfs status file loses the parameter values (le_rings=, native_startup=, native_hrb=, acl_enabled=, auxiliary_rings=, capture counters); scan_dup_filter= becomes scan_dup_fallback=.
Not yet: a row on J813/J815/J873 from their owners (we have no N1 hardware; J815 owner m0d16l14n1 can row): expected to match the #3461 J815 row, since every default path is unchanged. accept_list is not touched: the N1 sends no advertising reports with filter policy 1 (#1529), so it stays off until that is retested.

Details
  • native_startup was the only in-driver way to give a controller an address when the loader passes none. Every board btcentauri binds (pci106b,1903 outside apple,t6050-pcie: t8142-j813, t8142-j815, t8152-j873-n1) has local-bd-address in its DT for the loader to fill, so no board needs the random fallback. Without a factory address the driver still logs "No factory local-bd-address from the loader" and skips the startup commands, as it does today by default.
  • The auxiliary ring table keeps every entry, so the arena offsets of the open rings (2, 3, 5, 8, 9, 11) are unchanged; only cen_aux_required() rings are opened, as with the defaults today.
  • With diagnostic_capture gone, cen_aux_drain(bt, false) after an abort only counts the completed frames (they were never delivered on that path).
  • The probe checks between the parameters (enable_acl needs the LE and auxiliary rings, and so on) go away with them.
  • scan_dup_filter=1 (the default) meant: reset the controller duplicate filter through hdev->reset_dup_filter (0xff3f) and fall back to Filter_Duplicates = 0 only if the firmware refuses it. That is now the only path.

btcentauri carries nine module parameters from bring-up. Seven default
to on and every validated row ran with them on: arm_le_data_rings,
arm_auxiliary_rings, enable_acl, native_hrb, factory_address,
fixup_adv_phy and scan_dup_filter. Make what they enable unconditional.
The probe checks between them go away with them.

Two default to off and only serve diagnosis:

- diagnostic_capture armed the unused auxiliary rings and copied every
  received frame into a 1 MiB private buffer read through debugfs.
  Remove it with the capture buffer and its debugfs files; the unused
  rings keep their arena space, so the open rings' layout is unchanged.
- native_startup gave the controller a random locally administered
  address when the loader passed no local-bd-address. Every board this
  driver binds (T8142 J813/J815, T8152 J873) carries local-bd-address
  in its DT for the loader to fill, so no board needs it. Without a
  factory address the driver still logs it and leaves the controller
  as before.

The debugfs status file drops the parameter values. accept_list stays:
the N1 sends no advertising reports with filter policy 1.

No change in behaviour with the default parameters.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 1, 2026 04:43

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 27d913e (merge once one N1 row, J813/J815/J873, is in, per the 12-01 bar)

Checked: the full diff of drivers/bluetooth/btcentauri.c at 27d913e against the old defaults.

  • The seven default-on parameters become the code they selected: LE rings 10/4 always opened and posted, aux rings started, ACL/SCO/ISO send and receive paths ungated, native HRB translation always on, the LE ext adv PHY quirk always set, factory WriteBdAddr path kept.
  • scan_dup_filter: the old (!scan_dup_filter || dup_filter_fallback) is dup_filter_fallback at the default. hdev->reset_dup_filter = cen_hci_reset_dup_filter is set unconditionally at head (line 1407), so the reset-then-fallback path is the only one, as described.
  • The removed probe -EINVAL combinations are all unreachable at the defaults. goto stop is still used (lines 1390/1395/1430), so dropping the capture allocation leaves no dead label.
  • No leftover reference to any removed parameter at head (grep). accept_list is untouched.
  • cen_poll: budget = CEN_RX_SLOTS moved out of the old if (arm_le_data_rings) block, which is the same at the default.
  • No setup without a factory address still logs and returns 0 before any vendor command, matching the old default (factory_address=1, native_startup=0).
    Non-blocking: the debugfs status lines change keys (documented in Risk); any lab script grepping acl_enabled= or le_rings= will need updating.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@m0d16l14n1 could you run one N1 row on your J815 at 27d913e (BT pairs, LE + BR/EDR audio as today; no behaviour change intended: the removed params were all at their defaults)? The review asked for one N1 row before merge; we own no N1 Mac.

@github-actions github-actions Bot added blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Merge readiness at 27d913e2: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at 27d913e2
Conflicts ok none
PR text ok Risk: two-way · . J813, J815 and J873 (T8152) Bluetooth, the only btcentauri users (T6050 boards use btcentaurit6050, untouched). Anyone loading the module with one of these parameters now gets an "unknown parameter" warning and the default behaviour. The debugfs status file loses the parameter values (lerings=, nativestartup=, nativehrb=, aclenabled=, auxiliaryrings=, capture counters); scandupfilter= becomes scandupfallback=.

Areas: none matched in CODEOWNERS

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

@RyanTheTide
RyanTheTide merged commit f06827c into main Dec 1, 2026
4 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the gates/btcentauri-params branch December 1, 2026 06:58
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged as f06827c under the 12-01 merge-then-fix rule for boards the lab doesn't own: App approval at 27d913e, and the removed params were all at their default values, so nothing should change at runtime. The N1 row is still owed: @m0d16l14n1, when you have a minute, please run one on your J815 at main (BT pairs, LE + BR/EDR audio). If it regresses we revert the same day. accept_list stays a param until an N1 owner retests it (linux#1529).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant