Repository navigation
arm64: apple: add basic T8132/J713 (M4 MacBook Air) support - #366
Closed
erykwieliczko wants to merge 27 commits into
Closed
erykwieliczko wants to merge 27 commits into
erykwieliczko wants to merge 27 commits into
Conversation
Describe the M4 controller variants, board power ownership and retained input handoff through the existing subsystem bindings. Source-commit: 9251bffee1094e1c36b9f084546b828a7d2c768e Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Add endpoint-aware setup, validated inherited buffers and protocol selection with matching C/Rust operations. Both CoreAnalytics start and readiness wait require one explicit firmware-instance opt-in; ordinary Rust clients keep the default immutable operations table. Source-commit: 15cfda073d38bceee79a76840b5a1d6bdf11c0f7 Source-commit: 85165a160e24c90fd4e046e56b66c59ef8aa752b Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Validate the loader buffer inventory and preserve its running MTP session. Expose retained input ownership to DockChannel without reallocating firmware storage or restarting the coprocessor. Source-commit: 3149321e28e36d1c36cc9af059e6638bfa5aad05 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Use the retained helper contract before deciding whether to start a new HID session, preserving the boot producer's negotiated transport. Source-commit: 79fbbe154dd0879081d0b3eae0a6dc43f4c18407 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Preserve an inherited MTP bypass and the qualified radio aperture. Leave the boot framebuffer translations with their current display owner. Source-commit: 11b020daf80094b8d721bc8b04ce45d1919f98ed Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Extend the shared GPIO interrupt handling for the T8132 bank layout. Source-commit: aae59e3e58bb8474386cf3231fc1ed75135d8e90 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Use the qualified T8132 register and firmware initialization contract in the existing Apple ANS driver. Source-commit: 01502984b1c9446969a026d61003545ca6f2b20c Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Admit the T8132 controller through the shared Apple PCIe implementation. Source-commit: 5f54074ce557c6f99517d9b79e8732fdfb1463f6 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
The J713 BCM4388 message-buffer ABI carries 64-bit host addresses while its IOVA aperture begins above 1 TiB. Set the T8132 radio DMA mask before allocating rings so the driver can use the retained aperture. Keep integration/aurora's scan deadline, exact BCM4388C2 revision match and validated version-116 BSS parser instead of carrying their older bring-up implementations. Source-commit: b972f208ae8d1698ad05763a4b6b8055b4897a9d Source-snapshot: 6090f9eb8237c86526508d76a4539852089942d5 Assisted-by: LLM
Describe the T8132 ATC PHY fields in the shared driver and extend its register-policy coverage. Source-commit: 8667455a79d1e7acded9295b65947a4a3ba97a24 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Use the M4 USB2 controller variant through the shared Apple DWC3 driver. Source-commit: b71e7184f0ebb4958487a849f5b150ee12150496 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Apply the qualified SPMI transport behavior to the T8132 Type-C controller. Source-commit: 51fa2aacdf22726b8200906811de85ea1ed34ddc Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Describe the T8132 request layout, wait for pending votes and retain the PMP supplier dependency. Extend the shared PMC policy coverage. Source-commit: 69de52847793021b1d1f47de2882503dff46b086 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Select the known active memory floors for CPU and GPU demand without inventing intermediate frequency-to-memory mappings. Source-commit: 551311604a7a12b73eab15d1d60b6c92c68386b7 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Extend the shared memory-controller initialization for T8132. Source-commit: 98d766a19b9c93d3260fbaf363248a6c6a833933 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Provide an opt-in driver hook for hardware whose retained firmware session has no safe manual teardown path. Source-commit: dff38041f82ba1d7c9ea94626df2ee38a5670ad3 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Extend the PMP registry/report contract and link read-only telemetry with the Rust firmware owner. Select CoreAnalytics before mailbox RX only for the qualified T8132/J713 instance; other firmware keeps its previous startup contract. Record consistency does not establish an advancing firmware temperature heartbeat. Source-commit: 27d77701c2d47b90597eab7c662c177e18e4a34a Source-commit: 85165a160e24c90fd4e046e56b66c59ef8aa752b Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Support the T8132 state width and retain a bootstrap QoS ceiling until the board policy owns protection. Preserve policy resources across cluster offline and synchronize ownership with final policy teardown. Source-commit: 9496f1922fd47f653549cd0ac5074043e1460c36 Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Bind CPU protection and measured-rail budgeting to owner-managed PMP telemetry. Separate the explicitly provisional emergency shutdown policy from Linux cooling controls and document the unqualified firmware limits. Keep startup, provider lifetime and policy coverage with the implementation. Source-commit: 2c77214dec2a2604685f53eb1d48477ddd78bb1c Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Match the native J713 pKW4 gP13 action template, inserting only the requested level in its argument. Keep this exact board/key contract separate from generic GPIO commands and the existing J700 pcIO path. Report only the last successful native command when readback is not qualified; serialize cache updates with writes and preserve prior state on errors without claiming firmware rollback. Include production callback coverage with the implementation. Source-commit: 85807365e85eac0cb51b8c44caffc638be98b10d Source-snapshot: 9ffa1fbed1e052d9706ad3e13c8663bc8ffe3d8d Assisted-by: LLM
Describe the M4 storage, retained input, radio, USB2, PMP and memory controllers separately from J713 board activation. Preserve the current CPU cache descriptions and use the existing timer, PMGR and watchdog nodes from integration/aurora rather than duplicating them. Keep optional controllers disabled until the board enables their qualified power and firmware handoffs. The following commit installs J713 PMGR ownership policy and its original-loader compatibility path atomically. Source-commit: 050f1a0059233cf33918f9844a98ed273feb8bad Source-snapshot: 6090f9eb8237c86526508d76a4539852089942d5 Assisted-by: LLM
Enable the J713 platform together with its explicit PMGR availability and firmware-ownership policy. Keep the original-loader adapter in the same change so native and retained legacy descriptions admit the same domains before OF population. Consumer drivers and the SMC radio action precede this board enablement. Resolve OF ancestry component by component, refuse an absent policy parent and include the actual-source PMGR regression. Preserve the native static resource topology when the companion m1n1/U-Boot handoff imports current firmware allocations into the per-kernel device tree. Source-commit: 050f1a0059233cf33918f9844a98ed273feb8bad Source-snapshot: 6090f9eb8237c86526508d76a4539852089942d5 Assisted-by: LLM
Merge with the existing arm64 defconfig and Asahi fragment instead of carrying a separate distribution-sized configuration. Build the boot storage, retained input and platform/thermal owners in, and retain the firmware framebuffer for this first series. Assisted-by: LLM
Qualify the J713 T8132 controller at its own aperture for the existing serialized NVRAM write path. Retain the J613 checks, read-only startup, pinned partition, JEDEC/protection checks and per-mutation verification. Add board/aperture rejection controls to the host harness and document one-time boot-volume selection. Assisted-by: LLM
List the controller compatibles already matched by the driver and used by the J613 and J713 device trees. Assisted-by: LLM
This was referenced Oct 20, 2026
This was referenced Oct 21, 2026
This was referenced Oct 21, 2026
Add banked T8132 ATC calibration and the shared USB host startup needed for the admitted J713 ATC1 port. Check inherited common-domain state before taking ownership and preserve unsupported port profiles as USB2. Keep display crossbar registers outside the mapped resources and support the USB side of multifunction adapters without enabling DP output. Publish the initial DWC3 host role before core initialization, propagate PHY admission failures, and validate the Type-C SPMI response bounds. Refuse suspend while a T8132 common epoch remains owned or incomplete. Cover calibration bounds/order, failure unwind, inherited PMGR policy, initial host-role ordering and transport lengths with host selftests. The integrated driver has repeatedly enumerated a 5 Gbit/s SanDisk drive through a multifunction adapter and completed matching read-only direct 512 MiB reads. Qualification is limited to ATC1; ATC0 stays USB2. Suspend, 10 Gbit/s operation and external display output remain unqualified. Signed-off-by: Eryk Wieliczko <[email protected]> Assisted-by: Codex:GPT-6
Enable the BCM4388 PCIe function and share the radio DART through explicit ordinary SIDs for Wi-Fi and Bluetooth. Admit only inactive, rootless managed streams with unmasked fault reporting, preserve unrelated streams, verify RID-to-SID publication and quarantine on mapping faults. Retain published DMA state and block unsupported takeover, reset and suspend operations until a platform reset. Keep display support outside this basic series. Constrain BCM4388 allocations to one bounded high DMA aperture, publish the context upper address through the chip's actual register and wait for each requested firmware state using one fixed deadline. Preserve legacy chip register layouts and DMA behavior. Add host tests for DMA admission, publication/quarantine, address registers and state waits. The integrated implementation has passed controller initialization, LE discovery, repeated power cycles and concurrent Wi-Fi traffic on J713. Signed-off-by: Eryk Wieliczko <[email protected]> Assisted-by: Codex:GPT-6
This was referenced Oct 22, 2026
Contributor
|
Superseded by #400, which carries these commits with your authorship, rebased onto integration/aurora with fixups (listed in #400: pmgr-pwrstate inherited-on gated to T8132 plus its binding, rtkit-helper T8140 adopted-session buffers, PMP power-command latch gated to J713, retained DART non-posted mapping, apple,t8132-pcie binding, J713 options moved into asahi.config; 7.3 build adaptations folded into your commits with [ryan: ...] notes). Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add basic support for the 13-inch M4 MacBook Air (J713) on
integration/aurora.The series adds:
Display uses the firmware framebuffer with software rendering. Native GPU and DCP support are a separate series.
USB3 and Bluetooth are two additional commits. USB3 uses banked PHY calibration, checks inherited common-domain state before admission, and supports the USB side of multifunction USB/DP adapters without mapping the display crossbar or enabling external display output. ATC0 stays USB2. Bluetooth uses a bounded high DMA aperture and owned SIDs 1/2; unrelated streams and legacy Broadcom register layouts remain unchanged. Unmasked DART reporting and a fault IRQ are required; detected mapping faults quarantine the owned streams while retaining published DMA state.
Validation:
98a8f830df94, m1n1cda8314dand U-Boot6c1d2d148020were built and reboot-tested together on J713. Runtime versions, per-kernel DT import markers, NVMe root, Wi-Fi/SSH, retained MTP devices and zero kernel taint were verified.e9061708e7fdnegotiated ATC1 at 5 Gbit/s and completed two direct, read-only 512 MiB reads at 132/132 MB/s with matching checksums and no new USB errors. On the exact final basic boot, the drive was connected to ATC0: USB2 fallback passed two matching 512 MiB reads at 39 MB/s. A repeat ATC1 SuperSpeed test on the final tip is pending the physical port move; no drive writes or writable mounts were used.CONFIG_WERROR=y; eight host selftest scripts, binding validation, inherited-PMGR policy checks and the module-form DART WERROR object check passed. Negative controls confirmed that the selftests detect the reviewed failure paths.Earlier basic-series validation includes repeated physical display/keyboard/trackpad checks and a successful Omarchy → macOS → Omarchy round trip using one-time boot selection. NVRAM erase, rollover and interrupted updates remain unqualified. The existing
speakersafetydconfiguration failure remains outside this series.Use the matching m1n1 #35 and U-Boot #7 calibration handoffs. The tested bundle preserves the legacy shared control DTB's USB2 topology and radio SID16 profile; the per-kernel DTB supplies USB3 topology and managed radio SIDs 1/2. The boot-source control DTB needs the ATC/Bluetooth aliases documented by those series. Check the selected OS source and completion markers: a rejected EFI DT fixup can leave the stub using the original firmware tree.
Qualification is limited to ATC1 at 5 Gbit/s; 10 Gbit/s, repeated hot-plugging and DP/HDMI output remain unqualified. Suspend is refused while the retained USB/radio resources are owned, and managed radio ownership blocks kexec/kdump for the boot. A Bluetooth transport failure requiring reset needs a platform reboot; automatic in-place reset/reprobe is refused on the high-window path. Manual Bluetooth unbind/module unload and fault injection/IRQ delivery have not been qualified. Speaker protection, keyboard backlight and complete firmware thermal-policy qualification remain gaps.