Skip to content

J813: T8142 mailbox, PMC, CLPC (GPU input) and PMP - #997

Merged
Acelogic merged 5 commits into
aurora-silicon:aurora-wipfrom
sithglan:j813/rb/soc
Nov 6, 2026
Merged

Acelogic merged 5 commits into
aurora-silicon:aurora-wipfrom
sithglan:j813/rb/soc

Conversation

@sithglan

@sithglan sithglan commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

T8142 (M5) support in the SoC drivers, added to integration's versions:

  • mailbox: the GPU's two ASCWrap v6 firmware CPUs (T8140's windows moved up by 0x100000000, like T6050's role table). Without it the GPU's mailboxes never bind.
  • pmc: the T8142 table (three rails, DCS 0-7, fabric 0-4).
  • clpc: the T8142 map, and a per-SoC gpu_input flag: the CLPC only handed out the GPU input for the t6041 compatible or a gpu_dense table, so on T8142 the GPU driver waited for it forever. T6040 moves to the flag.
  • pmp: T8142 (42-bit DMA as on T8140, endpoint 7 before the IOP power state as on T6041).

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

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]>
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]>
@Acelogic
Acelogic changed the base branch from integration/aurora to aurora-wip November 6, 2026 11:07
@Acelogic
Acelogic merged commit 774504b into aurora-silicon:aurora-wip Nov 6, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants