Repository navigation
wifi: apple: centauri: t6050: warm-reset an N1 found past its ROM - #3955
Conversation
The driver's unbind leaves the N1 firmware running, so the next probe (a module reload, or a sysfs unbind and bind) finds the boot stage register non-zero and fails the ROM boot with -EBUSY. Nothing restarts the N1 after that, and Wi-Fi and Bluetooth stay down until a reboot. When the board describes the warm reset, report that boot as a hardware failure instead. The fault recovery then warm-resets the N1 and brings its functions back from the ROM, as it does for a firmware that stops. Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
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. |
satchlj
left a comment
There was a problem hiding this comment.
Code audit at bdc95c469b3e (drivers/net/wireless/apple/centauri/t6050/centauri_pci.c) looks clean:
- In
centauri_t6050_rom_boot(), findingstage != 0whenc->warm_reset(apple,function-warm-resetDT property) is present marksc->boot_hw_failed = trueand returns-EIO, handing off cleanly to the existing warm-reset fault recovery path (CEN_BOOT_FAILED && boot_hw_failed && link_ready), while boards without the property preserve-EBUSY. - Strictly DT-property gated with no board/model checks; DCO,
Risk:, checkpatch--strict,centauri-*-tests.py, and K116s reload verification look good.
Waiting on queued CI (apple-build, host-tests, KUnit plan, pr-text) and exact-head T6050 verification before flipping to approve.
|
Exact-head M5 Max (
Scope: |
satchlj
left a comment
There was a problem hiding this comment.
Reviewed bdc95c469b3e (wifi: apple: centauri: t6050: warm-reset an N1 found past its ROM):
drivers/net/wireless/apple/centauri/t6050.ccleanly distinguishes an N1 already past ROM (stage != 0) withc->warm_resetavailable (returning-EIOinto the existing fault-recovery warm-reset path) from boards withoutapple,function-warm-reset(preserving-EBUSY), keeping the warm-reset hook device-tree driven.- All CI checks (
apple-build,host-tests,KUnit plan,pr-text,readiness) are green, DCO andRisk:are present, and exact-head verification landed on bothK116s(reload recovery PASS) and M5 Max (J775c, boot + Wi-Fi/BT + 2/2s2idle+ sysfs unbind/rebind exercising the!c->warm_reset-EBUSYguard with 0 faults).
LGTM.
Problem
The T6050 driver's unbind leaves the N1 firmware running. The next probe (a module reload, or an unbind and bind in sysfs) finds the boot stage register non-zero and fails the ROM boot with -EBUSY. Nothing restarts the N1 after that, so Wi-Fi and Bluetooth stay down until a reboot.
Change
When the board describes the warm reset (
apple,function-warm-reset), report a ROM boot that finds the stage past zero as a hardware failure (-EIO) instead. The fault recovery from #3346 then warm-resets the N1 and brings its functions back from the ROM, as it does for a firmware that stops. Boards without the warm reset keep -EBUSY.Tested: K116s, firmware 27.2.
Risk: two-way · T6050 Wi-Fi/Bluetooth probe (
apple_centauri_t6050), only when it finds the N1 already running.Testing
K116s (MacBook Pro 16-inch M5 Pro, firmware 27.2), aura
main7f5a1df5, default command line. Kernel:main8a42aee + #2355 + both centauri fixes (this one unchanged), ATC0 left out locally (#3598); the module was swapped in and reloaded withmodprobe -r btcentauri_t6050 apple_centauri_t6050; modprobe apple_centauri_t6050. Counts: 0 oops/WARN, 0 new kernel errors besides the one probe line below, 1 failed unit (anacron start limit on AC plug-in, also without these patches), no SELinux on Debian.modprobe. The first probe hits the port mid-reset and logs one failure, then the re-enumerated function probes normally:tools/asahi/centauri-*-tests.pypass; checkpatch --strict clean.Still to run
Bluetooth after the reload (kept off on this machine), and a J714s row.