Repository navigation
J813: T8142 mailbox, PMC, CLPC (GPU input) and PMP - #997
Merged
Merged
Conversation
The M5's two GPU firmware CPUs (GFX and GFX1) sit at T8140's wrapper and IOP VBAR windows moved up by 0x100000000. Add their role table, the T8142 provider and the compatible; the GPU deferred forever without them. Signed-off-by: Thomas Glanzmann <[email protected]>
Signed-off-by: Thomas Glanzmann <[email protected]>
The AppleT8142PMC accessors put the floors at agent << 14, the per-agent states at 0x106000 and the static voter enables at 0x108000, as on T8140. It has three rails, DCS, SOC and DISP (ADT voter-rail-data), and clamps a floor to DCS 7 and SOC 4. iBoot leaves every rail enable at 0, so without the PMC no vote is honoured and DRAM and the fabric stay at their lowest states (CPU DRAM latency 171 ns instead of 70 ns). Signed-off-by: Thomas Glanzmann <[email protected]>
T8142's CLPC drives DCS states 0-7 on rail 0 and fabric states 0-4 on rail 1; the map is the one measured on J813 (four P cores copy at ~40 GB/s with the fabric at 1 and ~110 GB/s at 4). The M5 GPU driver reports its submissions in flight through apple_clpc_gpu_get(), as on T6040, but the CLPC allocated that input only for the t6041 compatible or a gpu_dense table, so on T8142 the GPU waited for it forever. Make it a per-SoC flag, gpu_input, set for T6040 and T8142, and let apple_clpc_gpu_get() accept the T8142 CLPC. Signed-off-by: Thomas Glanzmann <[email protected]>
The J813 PMP runs the same registry-v2 firmware as T8140. Its DART window starts at 1 TiB, so it takes T8140's 42-bit DMA mask, and like T6041 it starts endpoint 7 (CoreAnalytics) and takes its 8 KiB buffer before it acknowledges the IOP power state. Signed-off-by: Thomas Glanzmann <[email protected]>
RyanTheTide
added a commit
that referenced
this pull request
Nov 6, 2026
Carries the work merged on aurora-wip since #1018 into the release branch: M5 T8142/J813 bring-up (#995 #996 #997 #998 #1001 #1002 #1003), T8152/J873 bring-up (#984 #1009 #1013 #1022), J813 AVD/ISP (#1026) and the selftest harness updates (#1014). The merge is clean; the 13 integration/aurora commits since #1018 are kept. Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
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.
T8142 (M5) support in the SoC drivers, added to integration's versions:
Tested on the MacBook Air 13-inch M5 (J813): the nine J813 branches (nvme, platform, dts, soc, wireless, media, sound, display, gpu-m5) merged onto integration/aurora 11eccbe, built with the J813 config (7.3.0) and booted through aura's aura-try trial boot. systemd reaches running: NVMe root, the N1 Wi-Fi, the AVD and ISP drivers, PSCI cpuidle, the E/P states, CLPC/PMC and the PMP come up, the M5 GPU backend starts firmware 25G76, and drm/apple drives the panel.
Two sound findings from that boot, neither yet resolved: the installed aura predates the amp-level injection now in aura main, so macaudio disables the speakers (the card binds, but the DT this boot used carries no apple,speaker-config); and opening the microphone fails with
LEAP leaf 2 did not power up: Error(110), while the same T8152 driver on the J813's current 7.1 kernel records.Stability caveat: a second boot of the same image hung about 38 s in, just after the NTP step set off the daily fstrim/apt timers, with no panic record (no pstore). The first boot went through the same timer burst and stayed up for minutes. Until the hang is understood, the combined tree is not proven stable across reboots.
Rebased onto integration/aurora c6cc36e (2026-11-06); this branch builds with the J813 config (Image.gz and modules). Booted on the MacBook Air M5 (J813) on 2026-11-06 in the combined stack: this branch merged with the other J813 branches, built as 7.3.0-aurora-j813-rb+ (Image.gz and 65 modules), trial-booted with the t8142-j813 DTB and promoted to the configured ESP boot, where it now boots by default. NVMe root, the N1 Wi-Fi, the DCP panel at 2560x1600, the aurora GPU driver (WebGL with EXT_shader_texture_lod), the AVD and ISP nodes, AOP sound (AppleJ813 card; a 1 kHz tone played to the speakers is captured by the HPAI microphone at about -50 dBFS) and the PMP all come up; systemd reports no failed units. btcentauri still returns -16, the known pre-existing condition.
cc @Acelogic @DjDeveloperr @RyanTheTide @LiamRay10