Repository navigation
arm64: apple: T8132/J713 (M4 MacBook Air) support and native graphics (replaces #366, #367) - #400
Merged
RyanTheTide merged 47 commits intoOct 23, 2026
Merged
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 [ryan: rebased onto 7.3 integration/aurora; the retained PMP and ASC mappings use DevresIoMem, and the T8132 config entries sit next to the T6041 ones] Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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
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
Reject malformed mixed-provider tuple geometry before reserving inherited device addresses. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Provide fence-signalling guards and bound-device event delivery for native GPU backends. Reuse the existing sanitized arm64 feature API and DMA mappings; no private architecture cache exports are needed. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Describe the qualified firmware regions, PMP relationship and inherited display ownership while retaining existing generation contracts. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Add the T8132 G16G firmware backend within the Rust Asahi driver. Use the common DRM, GPUVM, GEM, fence and scheduler interfaces and the existing Mesa UAPI. Allocate private uncached command arenas per VM and fresh PB epochs per render command. Retain both hardware owners until authenticated full displacement; uncertain or aborted work remains pinned and the affected class stays unavailable until reboot. Bound render preparation with interruptible credit backpressure and charge retained VM bindings per DRM file. The current J713 profile pins about 0.7 GiB per rendering VM and does not provide a qualified physical GPU reset. Native rendering, compute, process isolation and focused GL/Vulkan regressions are exercised separately from platform power-policy qualification. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]> [ryan: rebased onto 7.3 integration/aurora; module parameters return values, the scheduler job names its module through this_module(), the RTKit ops carry syslog_is_debug, and the OF table holds &&Config] Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Describe the native GPU and DCP components, firmware carveouts, inherited stream ownership and existing PMP provider relationships. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Build native Rust Asahi and common appledrm with the complete basic platform prerequisites. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Add portable tests of the production firmware encoders, ownership ledgers, page-table failure paths, submission boundaries and power policy using public synthetic fixtures. Cover interrupted submission without output- fence mutation, process close without another VM creation, bounded credit wakeup, generation churn, reserved placeholders and paired display IRQ admission. Keep live hardware regressions opt-in and retain exact source and boot identity in their reports. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
Document the native M4 interfaces, per-VM memory cost and resource lifetime, bounded submission backpressure, and the abort, suspend and kexec limits. State the unqualified firmware telemetry freshness and display power-policy gaps explicitly. Host tests, native functional tests and a complete conformance submission are distinct evidence. Generated-by: Codex Assisted-by: Codex:GPT-6 Signed-off-by: Eryk Wieliczko <[email protected]>
…ed sessions Adopting a live session now refuses every buffer request, so that a request cannot replace storage the firmware negotiated with the boot stage. That is right when the producer published a buffer inventory, or on T8132, where the input session is retained. The T8140 producer does not publish one: its adopted MTP session used to map buffer requests that point into the MTP SRAM, including the crashlog. They now fail, and a J700 MTP crash is reported without its log. Refuse new buffers only when the adopted session has an inventory or the helper is the T8132 MTP. Other adopted sessions map SRAM IOVAs as before. Fixes: 1fac060 ("soc: apple: rtkit-helper: preserve the inherited J713 input session") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
…her boards Any error from handling a PMP message now goes through fail_display(), which also latches the device-power command stream as failed. On T8140, T6041 and the other PMP boards, one unknown opcode or one failed reply then makes every later apple_pmp_set_device_power() return -EIO, including the DCP display vote. Before, the error was only logged. Latch the failure only on the retained J713 bridge, which needs it, and keep logging the error on every board. Fixes: 1ae4d49 ("soc: apple: expose retained PMP display and GPU ownership") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
apple_dart_retained_ioremap() maps the J713 radio and display DARTs with plain ioremap(). Those DARTs sit under a bus with nonposted-mmio, so their resources carry IORESOURCE_MEM_NONPOSTED, and the normal devm_platform_get_and_ioremap_resource() path would have used ioremap_np(). Posted writes to Apple SoC MMIO can complete late and surface as asynchronous SErrors. Use ioremap_np() when the resource asks for it, as __devm_ioremap_resource() does. Fixes: 0877cd7 ("arm64: apple: enable J713 Bluetooth with scoped radio DMA") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The T8122, T6030 and T6031 device trees already carry apple,inherited-on, together with apple,always-on or apple,min-state, from earlier M3 display work. Until now the driver ignored the property. With the J713 contract it fails probe for those domains with "conflicting inherited power policy", which takes the M3 display power domains, and everything behind them, away. Read the property on T8132 domains only, so the existing M3 trees keep probing as before. Fixes: 3949e36 ("arm64: apple: enable qualified J713 SuperSpeed host support") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
…to T8132 The T8122, T6030 and T6031 device trees already carry apple,inherited-on together with apple,always-on or apple,min-state, from earlier M3 display work. The new conflict rule makes them fail dtbs_check, while the driver now only honours the property on T8132. Apply the rule to the T8132 compatible only. Fixes: 3949e36 ("arm64: apple: enable qualified J713 SuperSpeed host support") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The T8132 device tree and the driver use "apple,t8132-pcie" on its own, as T8140 does, but the binding does not list it. dtbs_check then reports that the PCIe node of every T8132 board matches no schema. List it next to apple,t8140-pcie. Fixes: a5573b4 ("PCI: apple: match the T8132 controller") Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Every Apple machine builds from one configuration, defconfig plus asahi.config. The J713 series added two per-device fragments instead, j713-basic.config and j713-graphics.config. Enable the five new options in asahi.config: the G16 GPU backend, the T8132 DCP backend, the retained J713 display DART, the T8132 platform description handoff (its default follows APPLE_PMP, which is modular here) and the PMP thermal policy, as a module. Their code is gated on the T8132 compatibles, so other machines only gain the extra objects. Drop both fragments, and point the bring-up document and the module guard at asahi.config. The J713 bring-up fragment also built the boot storage, input and PMP drivers in, and enabled userspace options (netfilter, zram, dm-crypt). The shared configuration keeps the drivers modular, as on the other machines, so a J713 initramfs must carry them. Userspace options belong in asahi.config for every machine if they are wanted. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Oct 23, 2026
This was referenced Oct 23, 2026
Closed
Closed
This was referenced Oct 23, 2026
Merged
This was referenced Oct 23, 2026
This was referenced Oct 24, 2026
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.
Replacement for #366 and #367 by @erykwieliczko, rebased onto integration/aurora fb0e3ec. GitHub can't merge either PR: #366 conflicts, and #367 is stacked on #366's branch. Eryk's 40 commits keep his authorship and trailers. Where the 7.3 rebase needed code changes, the commit carries a
[ryan: ...]note followed by our sign-off.Rebase adaptations, folded into Eryk's commits
soc: apple: pmp: publish owner-managed T8132 telemetry:Devres<IoMem>becomesDevresIoMem, merged with the T6041 PMP config.drm/asahi: share tracked VM lifetime and native query support:must_useSG table;soft_faults()and the newsupports_soft_faults().drm/asahi: add the T8132 G16 firmware backend: 7.3 module parameter values,this_module(),syslog_is_debugand the OF table type.drm/apple: integrate T8132 IOMFB as a common DCP backend: the linear-only modifier list is nowformat_modifiers_no_ix.Our fixups (separate commits, Assisted-by: LLM + SOB)
pmdomain: apple: pmgr-pwrstate: Honour apple,inherited-on only on T8132anddt-bindings: power: apple,pmgr-pwrstate: Limit the inherited-on rule to T8132. The T8122/T6030/T6031 trees already carry the property, and the new check failed their probe. This was a blocker for M3 machines.soc: apple: rtkit-helper: Keep serving buffer requests on T8140 adopted sessions, which fixes a J700 MTP regression.soc: apple: pmp: Keep power commands after an unhandled message on other boards. Before this, one bad message disabled the J700 DCP display vote.iommu/apple-dart: Map retained DARTs non-posted like every other DART(J713).dt-bindings: pci: apple,pcie: Add the T8132 compatible.arm64: configs: Build J713 from the shared Asahi configuration, which drops thej713-*.configfragments under the one-config rule.Gates (head fcc724c)
Build: the universal kernel (defconfig + asahi.config) builds. Its config differs from the fb0e3ec universal config only by
DRM_ASAHI_G16,DRM_APPLE_DCP_T8132,APPLE_DART_J713_DCP,APPLE_T8132_PLATFORM_HANDOFFandAPPLE_PMP_THERMAL=m.asahi KUnit: 69/69 with and without G16.
rust_drm_sched: 3/3.
apple-dcp host selftests: 63/63.
dt_binding_check: clean on the touched bindings.
dtbs_check (116 DTBs): no new warnings outside T8132. The T8140/T8142 display-subsystem warnings existed before and are only reworded.
Neo smoke: one-shot boot of 73m4e, which was 325ed68, the same series before the final rebase onto fb0e3ec. That rebase only resolved conflicts with the M4 Pro batch 2 in drm/asahi
file.rsand two bindings. Clean:The Neo was returned to 73r afterwards.
Attribution: Eryk's 40 commits keep him as author.
gravity-m4and niklasshethintegration/m4-7.3matched only boilerplate (SPDX lines, common Rust idioms, DT node names). No carried code.The review is in aurora-ctl reports/eryk-pr-review-20261023/PR-366-367.md. Minor findings are left for Eryk.
Supersedes #366 and #367.
🤖 Generated with Claude Code