Skip to content

kboot_gpu_m4: publish the G16 handoff on the 26.6.2 firmware on every M4 Mac - #106

Merged
DjDeveloperr merged 1 commit into
mainfrom
gpu/m4-g16-handoff-by-firmware
Nov 7, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
gpu/m4-g16-handoff-by-firmware

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

The M4 GPU handoff (kboot_gpu_m4.c) required the J713's root compatible, so aura disabled the GPU node on the J715, J604, J773g, J623 and J624. Everything it reads and checks is SoC and firmware data: the sgx and gfx-asc registers and interrupts, the four ADT GPU regions and the firmware segment layout. The J604 (26.6.2) and J773g ADTs in work/adt/ carry these as the J713's does, and the kernel admits only the 25G83 image of macOS 26.6.2.

This publishes the handoff on any T8132 Mac whose OS firmware is 26.6.2, and on the J713 on any firmware, as before. Every other check stays, and anything unexpected still disables the GPU. The display, ISP, AOP and radio handoffs stay J713-only, as #104 left them. The display one needs a kernel panel profile per board.

Kernel side: aurora-silicon/linux#1170 and aurora-silicon/linux#1171 start G16 on every M4 Mac on 26.6.2 and don't wait for a display the loader didn't hand over.

Testing

  • test_m4_gpu_handoff.py now also publishes for a J604 on 26.6.2 and for a J713 on 26.6, and still refuses a J715 on 26.6. The new test fails on the old code.
  • make CHAINLOADING=1 builds with clang on macOS. pytest: 566 passed, 47 skipped.
  • Not run on any M4 machine. I don't have one.

🤖 Generated with Claude Code

…y the J713

The M4 GPU handoff required the J713's root compatible, so on the other
T8132 Macs it disabled the GPU node. Everything it reads and checks is
SoC and firmware data: the sgx and gfx-asc registers and interrupts, the
four ADT GPU regions and the firmware segment layout, all of which the
J604 (26.6.2) and J773g ADTs carry as the J713's does. The kernel then
admits only the 25G83 image of macOS 26.6.2.

Publish it on any T8132 Mac whose OS firmware is 26.6.2, and on the
J713 on any firmware as before. Every check stays, and anything
unexpected still disables the GPU.

The host test now also publishes for a J604 on 26.6.2 and for a J713
on 26.6, and still refuses a J715 on 26.6.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr
DjDeveloperr merged commit 98765bc into main Nov 7, 2026
10 checks passed
@RyanTheTide
RyanTheTide deleted the gpu/m4-g16-handoff-by-firmware branch November 16, 2026 05:20
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.

1 participant