Repository navigation
wifi: apple: centauri: station statistics, band capabilities, ethtool and data path - #3458
Conversation
…, 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]>
|
Merge readiness at
Areas: 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 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, andtools/asahi/centauri-scan-tests.py. - Verified NAPI GRO teardown:
napi_enableon open,napi_disable+skb_queue_purge(&wifi->rx_gro_queue)on stop, andskb_queue_purgeon 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/asahiPASS; remaining KUnit jobs queued.
|
Merge-train status at |
|
J716c (16-inch M5 Max, T6050) at EvidenceBatched kernel
|
|
K114s (Mac17,13, T6050): this PR was part of the stack tested with #3461 at |
|
Standalone J813 (MacBook Air 13-inch, M5, T8142, FW 27.2) hardware row at exact head
|
What: report what the N1 Wi-Fi firmware already measures, and tune the shared-transport data path.
iw station dumpandiw survey dumpget TX retries/failures, live RX/TX bitrates, beacon loss, per-chain signal and noise;iwsees the HT/VHT/HE band capabilities;ethtool -igives the running firmware version; disconnects say why. RX goes through NAPI GRO, and TX has an in-flight cap. Until nowiwshowed 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_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. 5 GHz VHT80 NSS2 link at 5745 MHz, 0% gateway ping loss (rtt 7.7 ms avg), station/survey/TX power fields filled,ethtool -imatches 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 -ihook. 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:wiphy->fw_versionfrom the firmware version query;ethtool_ops.get_drvinfo = cfg80211_get_drvinfoon the shared-transport and T6050 netdevs.Documentation/networking/device_drivers/wifi/apple/centauri.rst(new) and its MAINTAINERS entry. The scan host test follows the scan code moved here.Base:
mainae0119904114.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 oftools/asahi/run-host-tests.pyregistering the new host tests of the other branches. Modules built from that tree, 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.Host tests (
tools/asahi/run-host-tests.py --only centauri, gcc, Docker): 20/20 runs pass, negative controls included.