Repository navigation
wifi: apple: centauri: attach Bluetooth after a restart from debugfs - #3459
RyanTheTide merged 1 commit into
Conversation
A restart through rom_boot 4 brought Wi-Fi back but left hci0 away: the Bluetooth function was re-enumerated while its firmware was still down, btcentauri gave up waiting, and nothing attached it again. The fault path's restart and rom_boot 3 both attach it once the IPC runs. Do the same after rom_boot 4. Seen on the J815 test kit: "after the restart: hci0=no (60 s)", while the fault path's restart that followed brought hci0 back in 16 s. 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. |
There was a problem hiding this comment.
Verdict: MERGE at af388dc6
Blockers: none (note: remaining queued KUnit CI jobs must finish green before merge).
Checked: no Apple material, no AI attribution, no chip/board/firmware gates, no cmdline hacks, human Signed-off-by, centauri_boot_write() value == 4 recovery path matches centauri_recover_work() Bluetooth re-attach (centauri_attach_beta()), J815 hardware row (cded55efa713, identical diff, Wi-Fi and hci0 recovered within 1 s after rom_boot 4, 0 errors), apple-build, host-tests, and pr-text green.
Evidence
- Checked
drivers/net/wireless/apple/centauri/centauri_pci.c:375-383:value == 4callscentauri_recover(c)underc->boot_lock, leaving IPC started on success, just likevalue == 3(centauri_start_ipc(c)) andcentauri_recover_work()(which also callscentauri_attach_beta(c)after recovery). Callingcentauri_attach_beta(c)after releasingc->boot_lockwhen(value == 3 || value == 4) && !retis safe and consistent. - Hardware row: J815 (
cded55efa713, identical diff) PASS: afterrom_boot 4, Wi-Fi andhci0returned within 1 s (previouslyhci0stayed missing after 60 s); 20/20 centauri host tests, 0 driver errors. - CI at
af388dc6:apple-build,host-tests,pr-text,KUnit ane-boot/ane-pm/dcp-fabric/dcp-topology/asahiPASS; remaining KUnit jobs queued/in-progress.
|
Merge-train status at |
|
J716c (16-inch M5 Max, T6050) at EvidenceBatched kernel
|
|
Merging at |
What: attach Bluetooth again after an N1 restart started from debugfs (
rom_boot 4). Wi-Fi came back, buthci0stayed away: the Bluetooth function was re-enumerated while its firmware was still down, btcentauri gave up waiting, and nothing attached it again. The fault path's restart androm_boot 3already attach it once the IPC runs; this does the same afterrom_boot 4. This replaces the N1 test branch #3166 for this topic.Tested: J815 (MacBook Air 15" M5) with this head's code:
apple_centauriandbtcentauribuilt from the N1 tester mergecded55efa713and swapped live into the runningj815/prtest-r8(7b4bbe9) kernel (see Evidence), no centauri or Bluetooth words on the command line: PASS. Afterrom_boot 4, Wi-Fi andhci0were both back within 1 s of the IPC start (before this change:hci0=noafter 60 s); the fault path's restart (rom_boot 5) brought Wi-Fi andhci0back in 15 s. Centauri host tests 20/20. Regression: 0 SELinux denials (SELinux not built on this image), 0 failed units, 0 N1 driver errors, 0 WARN/BUG/Oops.Risk: two-way door; N1 boards on the shared transport (J813, J815 and the other T8142/T8152 boards), only when someone writes
4to the debugfsrom_boot. Normal boot and the fault path are unchanged.Not yet: a J813 row; this branch tested on its own.
Details
One commit,
wifi: apple: centauri: attach Bluetooth after a restart from debugfs: therom_boot 4path calls the same Bluetooth attach the fault path's restart uses, after the IPC has started. Base:mainae0119904114; independent of the other N1 PRs.Evidence
Tested tree:
cded55efa713= this branch + #3207 + #3458 and the BT audio, crash-record and AWDL branches. This head's diff is the same as in that merge. Modules swapped live into J8157.3.0-aurora-j815-dev(j815/prtest-r87b4bbe9), command lineconsole=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxtplus the image's root/ESP words,apple_sep.xart_writes=0 apple_sep.provision_keybag=0(removed frommain, logged as unknown and ignored) andaurora.untested_commit=0 aurora.alphasleep=0(stop the test initramfs setting its opt-ins, so the module defaults are what run); no centauri or Bluetooth words.Before this change, same kit:
after the restart: hci0=no (60 s).