Repository navigation
Bluetooth: btcentauri: Drop the bring-up module parameters - #3726
Conversation
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>
There was a problem hiding this comment.
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)isdup_filter_fallbackat the default.hdev->reset_dup_filter = cen_hci_reset_dup_filteris set unconditionally at head (line 1407), so the reset-then-fallback path is the only one, as described. - The removed probe
-EINVALcombinations are all unreachable at the defaults.goto stopis 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_listis untouched. - cen_poll:
budget = CEN_RX_SLOTSmoved out of the oldif (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 debugfsstatuslines change keys (documented in Risk); any lab script greppingacl_enabled=orle_rings=will need updating.
|
@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. |
|
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. |
|
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). |
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) andnative_startup(random locally administered address when the loader gives nolocal-bd-address).accept_liststays (see Not yet).Tested: build only, no N1 hardware here.
make ARCH=arm64 LLVM=1 W=1 drivers/bluetooth/btcentauri.oat 27d913e: no warnings.checkpatch.pl -g HEAD: clean. Host testsrun-host-tests.py --only centauri --jobs 8: 22/22 pass (includescentauri-bt-arena-tests,centauri-bt-sco-testsand their negative controls). No KUnit suite exists for btcentauri.Risk: two-way door. J813, J815 and J873 (T8152) Bluetooth, the only
btcentauriusers (T6050 boards usebtcentauri_t6050, untouched). Anyone loading the module with one of these parameters now gets an "unknown parameter" warning and the default behaviour. The debugfsstatusfile loses the parameter values (le_rings=,native_startup=,native_hrb=,acl_enabled=,auxiliary_rings=, capture counters);scan_dup_filter=becomesscan_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_listis not touched: the N1 sends no advertising reports with filter policy 1 (#1529), so it stays off until that is retested.Details
native_startupwas the only in-driver way to give a controller an address when the loader passes none. Every boardbtcentauribinds (pci106b,1903outsideapple,t6050-pcie: t8142-j813, t8142-j815, t8152-j873-n1) haslocal-bd-addressin 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.cen_aux_required()rings are opened, as with the defaults today.diagnostic_capturegone,cen_aux_drain(bt, false)after an abort only counts the completed frames (they were never delivered on that path).enable_aclneeds the LE and auxiliary rings, and so on) go away with them.scan_dup_filter=1(the default) meant: reset the controller duplicate filter throughhdev->reset_dup_filter(0xff3f) and fall back toFilter_Duplicates = 0only if the firmware refuses it. That is now the only path.