Skip to content

wifi: apple: centauri: station statistics, band capabilities, ethtool and data path - #3458

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:feat/centauri-wifi-stats
Nov 30, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
m0d16l14n1:feat/centauri-wifi-stats

Conversation

@m0d16l14n1

@m0d16l14n1 m0d16l14n1 commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

What: report what the N1 Wi-Fi firmware already measures, and tune the shared-transport data path. iw station dump and iw survey dump get TX retries/failures, live RX/TX bitrates, beacon loss, per-chain signal and noise; iw sees the HT/VHT/HE band capabilities; ethtool -i gives the running firmware version; disconnects say why. RX goes through NAPI GRO, and TX has an in-flight cap. Until now iw showed almost nothing for this card, and channel widths missing from a 20 MHz-only list were treated as forbidden, which dropped the link after a regulatory change. This replaces the N1 test branch #3166 for this topic.
Tested: J815 (MacBook Air 15" M5) with this head's code: apple_centauri and btcentauri built from the N1 tester merge cded55efa713 and swapped live into the running j815/prtest-r8 (7b4bbe9) kernel (see Evidence), no centauri or Bluetooth words on the command line: PASS. 5 GHz VHT80 NSS2 link at 5745 MHz, 0% gateway ping loss (rtt 7.7 ms avg), station/survey/TX power fields filled, ethtool -i matches the driver log, 5/5 scans in 3.4 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; every N1 board on the shared transport (J813, J815 and the other T8142/T8152 boards). T6050 boards only get the ethtool -i hook. Reverting brings back the old empty statistics and the old data path.
Not yet: a J813 row; this branch tested on its own (the run used the merge described below); throughput measured against a fixed reference.

Details

One commit, wifi: apple: centauri: station statistics, band capabilities, ethtool, and data path:

  • Firmware statistics reports parsed into packed wire structures with compile-time layout checks: TX retries/failures and live rates (TLV 0xf901), beacon RX/loss (0xf915), TX power and rate history (0xf920), per-chain RSSI and noise floor (0xf923), station noise (0xf908), CCA channel survey (0xf903).
  • wiphy->fw_version from the firmware version query; ethtool_ops.get_drvinfo = cfg80211_get_drvinfo on the shared-transport and T6050 netdevs.
  • HT, VHT and 2.4/5/6 GHz HE band capabilities, disconnect reason codes, the firmware's initial regulatory country as a hint, and no width restrictions taken from 20 MHz-only channel lists.
  • NAPI GRO receive, a TX in-flight cap with a bypass watchdog, TCP pacing shift.
  • Documentation/networking/device_drivers/wifi/apple/centauri.rst (new) and its MAINTAINERS entry. The scan host test follows the scan code moved here.

Base: main ae0119904114.

Evidence

Tested tree: cded55efa713 = this branch's tree + #3207 + the BT audio, BT-after-restart, crash-record and AWDL branches (opened alongside, each its own PR). This head differs from what was tested only in commit messages and two lines of tools/asahi/run-host-tests.py registering the new host tests of the other branches. Modules built from that tree, swapped live into J815 7.3.0-aurora-j815-dev (j815/prtest-r8 7b4bbe9); command line console=tty0 user4k=on pcie_aspm=off idle=nop arm64.nowfxt plus the image's root/ESP words, apple_sep.xart_writes=0 apple_sep.provision_keybag=0 (removed from main, logged as unknown and ignored) and aurora.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.

PASS wifi scan: 40 on 2.4 GHz, 29 on 5 GHz, 0 on 6 GHz
PASS wifi link: freq: 5745.0; signal: -38 dBm; rx bitrate: 585.0 MBit/s; tx bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2
PASS wifi gateway ping: 0% packet loss; rtt 6.500/7.663/11.215/1.188 ms
PASS stats station: tx retries: 33; tx failed: 0; beacon loss: 0; signal: -39 [-45, -47] dBm; tx bitrate: 780.0 MBit/s VHT-MCS 8 80MHz short GI VHT-NSS 2
PASS stats survey: frequency: 5745 MHz [in use]; noise: -92 dBm; channel active time: 3180 ms; channel busy time: 870 ms; channel transmit time: 327 ms
PASS stats tx power: txpower 19.00 dBm
PASS scans: 5/5 completed: 3.4s 3.5s 3.4s 3.4s 3.4s
PASS regress: no N1 driver errors since the kit started
PASS regress: 0 failed units

Host tests (tools/asahi/run-host-tests.py --only centauri, gcc, Docker): 20/20 runs pass, negative controls included.

…, and data path

Add full station telemetry, channel survey, band capability reporting,
ethtool firmware version reporting, and data-path improvements:

- Parse firmware statistics reports using packed wire structures with
  compile-time layout checks: TX retries/failures and live RX/TX bitrates
  (TLV 0xf901), beacon RX/loss (TLV 0xf915), TX power and rate history
  (TLV 0xf920), per-chain RSSI and noise floor (TLV 0xf923), station
  noise (TLV 0xf908), and CCA channel survey (TLV 0xf903).
- Populate wiphy->fw_version from firmware version query and wire
  ethtool_ops.get_drvinfo = cfg80211_get_drvinfo on both T8142/T8152 and
  T6050 Wi-Fi netdevs so ethtool -i reports the running firmware version.
- Populate HT, VHT, and 2.4/5/6 GHz HE band capabilities, decode
  disconnect reason codes, apply initial firmware regulatory country hint,
  and avoid restricting channel widths absent from 20 MHz-only lists.
- Add NAPI GRO receive processing, TX in-flight cap with bypass watchdog,
  and TCP pacing shift; add Centauri driver documentation.

Signed-off-by: Nick <[email protected]>
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 625fd0f1: not ready yet

Check Detail
CI at head ok 20 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 625fd0f1
Conflicts ok none
PR text ok Risk: two-way · every N1 board on the shared transport (J813, J815 and the other T8142/T8152 boards). T6050 boards only get the ethtool -i hook. Reverting brings back the old empty statistics and the old data path.

Areas: area:gpu

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

@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 625fd0f1

Blockers: none (note: remaining queued KUnit CI jobs must finish green before merge).

Checked: no Apple material, no AI attribution, no new chip/board/firmware gates, no cmdline hacks, human Signed-off-by, NAPI GRO queue lifecycle (netif_napi_add, napi_enable/napi_disable, skb_queue_purge on stop/unregister), get_station/dump_survey/ethtool stats wiring, J815 hardware row (cded55efa713, VHT80 NSS2 link, iw station/survey, ethtool -i, 20/20 centauri host tests, 0 errors), apple-build, host-tests, and pr-text green.

Evidence
  • Inspected drivers/net/wireless/apple/centauri/ (centauri.h, centauri_ipc.c, centauri_pci.c, centauri_wifi.c, t6050/centauri_wifi.c), docs, and tools/asahi/centauri-scan-tests.py.
  • Verified NAPI GRO teardown: napi_enable on open, napi_disable + skb_queue_purge(&wifi->rx_gro_queue) on stop, and skb_queue_purge on unregister.
  • Hardware row: J815 (cded55efa713, identical diff, default cmdline) PASS with 5 GHz VHT80 NSS2 link, station/survey/ethtool reporting, 20/20 centauri host tests, 0 driver errors.
  • CI at 625fd0f1: apple-build, host-tests, pr-text, KUnit ane-boot/ane-pm/dcp-fabric/dcp-topology/asahi PASS; remaining KUnit jobs queued.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merge-train status at 625fd0f1 (App approval and J815 row noted). Under the 6-point rule this still needs: (a) green KUnit; (b) a regression row on a second family, since the centauri N1 driver also runs on T6050 (K114s) and T8152 (J873g). We'll ask for a K114s smoke covering this stack; (c) the code-owner ping, done here: @DjDeveloperr, merge earliest 16:52 AEDT once (a) and (b) are in. Revert: git revert -m 1 <merge>.

@erikwb

erikwb commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

J716c (16-inch M5 Max, T6050) at 625fd0f1: boots; the new ethtool -i hook answers on T6050 and the N1 link is unchanged (5 GHz, 0% gateway ping loss), Bluetooth up.

Evidence

Batched kernel 7.3.0-ewb368+ = main 219311530ef0 + #3605 222e0e6b + #3311 cc26f9ee + #3310 5fb10c0a + #3458 625fd0f1 + #3459 af388dc6 + #3460 f8442a49, each head merged unchanged. The J716c DTB is built without #include "t6050-media.dtsi" (main hangs the J716c at boot otherwise, #3618). One-shot trial boot on the default command line plus watchdog.open_timeout=120 (recovery watchdog for test boots only); compared with the default 7.3.0-ewb342+ on the same Mac, dock and network.

ETHTOOL_GDRVINFO on wlan0 (read with the ioctl directly; the image has no ethtool): driver apple_centauri_t6050, version 7.3.0-ewb368+, firmware-version N/A, bus-info 0000:01:00.0. The default kernel answers with an empty firmware-version. iw dev wlan0 link: associated at 5240 MHz, signal -37 dBm; 20 pings to the gateway 0% loss, rtt 7.1 ms avg (default kernel: 0%, 7.4 ms). bluetoothctl show: powered. Kernel errors are the same set as the default boot; failed units: aurora-peripherals.service only, same as the default boot.

@github-actions github-actions Bot removed needs-hw-row No hardware row at the PR head (bot) ci-failing A check failed at the PR head (bot) labels Nov 29, 2026
@chrisohearn

Copy link
Copy Markdown
Contributor

K114s (Mac17,13, T6050): this PR was part of the stack tested with #3461 at 625fd0f15687. PASS on one Backup boot and since then on ordinary boots as the daily kernel: Wi-Fi associated throughout (signal 100) and the cached scan results matched; the new station statistics were not exercised; 0 N1 warnings or errors, and no new failed units or kernel errors against our previous kernel. Details are in the #3461 row: #3461 (comment)

@sithglan

Copy link
Copy Markdown
Contributor

Standalone J813 (MacBook Air 13-inch, M5, T8142, FW 27.2) hardware row at exact head 625fd0f15687 (this branch built on its own, one-shot aura-try, default cmdline with no centauri/Bluetooth params): PASS

  • Kernel / DTB: 7.3.0-aurora-j813-pr3458+ + t8142-j813.dtb from exact head 625fd0f156875e90ad8561c5dc5ae1b4e17cd5e7.
  • N1 Bring-up: ROM boot: apple/centauri/j813-ftab.bin, 34116315 bytes, board word 0x248142, Alpha Wi-Fi firmware running; IPC handshake complete, Beta HCI transport registered; ACL enabled=1, SCO/ISO unsupported, Wi-Fi association event: status=0.
  • Link & Band Capabilities (iw):
    • wlp1s0f0: 5 GHz channel 40 (5200 MHz), width: 80 MHz, center1: 5210 MHz, txpower 16.00 dBm.
    • iw list advertises HT + HE on Band 1 (2.4 GHz), HT + VHT (0x13b1f076) + HE on Band 2 (5 GHz), and HE on Band 4 (6 GHz).
  • Station & Survey Stats (iw dev wlp1s0f0 station dump / survey dump):
    • Per-chain signal: -32 [-35, -44] dBm; live TX bitrate: 866.7 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 2; tx retries: 0, tx failed: 0, beacon loss: 0, rx drop misc: 0.
    • Survey on 5200 MHz [in use]: noise: -93 dBm.
  • Data path: Gateway ping 20/20 received (0% packet loss, rtt min/avg/max = 4.042/5.169/9.081 ms). (Note: ethtool binary is not installed on this J813 image, so ethtool -i was not run.)
  • Health & stock return: 0 N1/kernel errors, 0 failed systemd units. Removed trial files/modules and verified clean stock return to 7.3.0-aurora-j813-sgv2+ (chosen/aurora,trial absent, wlp1s0f0 UP, 0 failed units).

@RyanTheTide
RyanTheTide merged commit 625fd0f into aurora-silicon:main Nov 30, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:gpu Area from CODEOWNERS (bot) 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.

5 participants