Skip to content

drm/asahi: g15: admit the T6031 GPU by SoC, not only on the J516C - #3752

Merged
RyanTheTide merged 1 commit into
mainfrom
gates/g15-t6031-board
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
gates/g15-t6031-board

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: The G15 driver's T6031 (M3 Max) configuration checked the machine compatible apple,j516c, so the GPU stayed off on every other T6031 board (the 14-inch J514C), even with the native display handed over and the firmware identity accepted. This checks the SoC instead (apple,t6031), as the T6030 configuration already does. Every other admission check stays: the first start still waits for the T6031 native display (which #3729 made depend on the boot loader's handoff, not the board), and the firmware TEXT digest, hardware identity, core mask and device-tree GPU regions must still match.

Tested:

  • make W=1 (arm64, gcc, Rust 1.96) of drivers/gpu/drm/asahi/: builds at main 3e5df4e and at 14a2b89, with the same 21 warnings (identical lines).
  • Host tests: g15-display-order 1/1 (admit() model with its mutants, now on apple,t6031), g15-maintained-handoff 2/2, g15-probe-init 2/2, and the asahi-g15 selftest (run.py) 81 passed, 2 ignored (the off-tree J516C fixture tests).
  • checkpatch: clean.
  • Hardware: none. We have no T6031 Mac.

Risk: Two-way door. It only affects T6031 boards. On the J516C nothing changes. On a J514C the G15 driver now goes on to its firmware identity check once the native display is up. Main pins only the two J516C stub TEXT digests, so a J514C whose loaded firmware is a different build is still refused there, with a log line, and its firmware is left alone. Not affected: T6030, T6034 (no apple,t6031 compatible) and the fleet Macs (M1 Pro, M2, M3 Air, M4 Air, M4 Pro, A18 Pro).

Not yet:

  • No J514C or J516C (T6031) row, because we own no M3 Max. Could a J514C owner boot this head with the boot loader's display handoff and post the G15:/M3: lines from dmesg (identity accepted or refused, admitted) and whether glxinfo -B shows the M3 Max GPU?
  • J514C power/thermal: the record words that neither the device tree nor the ADT carries (maximum power, the relative-power table, the MTR masks) are the J516C reference machine's on every T6031 board. See Detail.
Detail
  • History check: I searched linux PRs and issues for J514C. There's no recorded J514C GPU failure. drm/asahi, drm/apple: M3 Max: J514C, J514M, J516M and J516C graphics and native display #2148 (open) carries the J514C work: its commits "start J514C graphics on normal boots" and "describe normal J514C profile admission" record short native GL/Vulkan and normal-login checks on a J514C with this same configuration and the J516C reference words, and leave power/thermal qualification open. drm/asahi, drm/apple: M3 Max: J514C, J514M, J516M and J516C graphics and native display #2148 adds a J514C-only branch in admit() and J514C firmware pins. After this PR the board branch isn't needed, and its firmware pins still apply.
  • Board-specific data: every per-machine value of the hardware record (operating points, voltages, gains, power zones, sensor rows, the GPU regions) comes from the device tree the boot loader fills from that machine's ADT, so it is already keyed off DT. The only J516C-specific part is board::record::J516C, four groups of words with no DT or ADT source. T6030 already applies its templates' reference machine's words to the J514S the same way, and the J514C ran with these words in drm/asahi, drm/apple: M3 Max: J514C, J514M, J516M and J516C graphics and native display #2148. If a J514C owner measures different values, the place to add them is a per-board Reference chosen by the device tree. That is a follow-up, not a reason to keep the GPU off.
  • Files: drivers/gpu/drm/asahi/g15/hw/t6031.rs (machine and comments), tools/asahi/g15-display-order-tests.py (model string). +15/-5.

The T6031 configuration's machine check named apple,j516c, so every
other T6031 board (the 14-inch J514C) kept its GPU off even with the
native display handed over, the firmware identity accepted and the
device tree filled by the boot loader.

None of the checks that make a T6031 GPU start safe is per board. The
first start already waits for the T6031 native display, which the
display gate enables only where the boot loader marked the handoff
(#3729 made that board-independent); the loaded firmware TEXT, the
hardware identity and the core mask must still match; the GPU regions
and every per-machine value of the hardware record (operating points,
voltages, gains, power zones, sensor rows) come from the device tree
the boot loader fills from this machine's ADT.

The record words neither carries (maximum power, the relative-power
table and the MTR masks) stay the J516C reference machine's on every
board, as the T6030 templates' words already are on the J514S. That is
how the J514C ran in #2148's earlier lab boots (short native GL/Vulkan
and a normal login, no power or thermal qualification).

Check the SoC compatible instead, as T6030 does, and update the host
admission model to match.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners December 1, 2026 06:28

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 14a2b89

Checked: g15/hw/t6031.rs and the host test model. machine goes from apple,j516c to apple,t6031, as T6030 does. The display-first wait (now gated by the boot loader's handoff, #3729), the firmware TEXT digest, the hardware identity, the core mask and the DT GPU region checks are all unchanged, and the J516C path is identical.
Follow-ups:

  • On a J514C (14-inch) the GPU now runs with the J516C reference record words for maximum power, relative powers and MTR masks (your module comment). Thermals differ between the 14- and 16-inch chassis, so the J514C owner's row should include a sustained GPU load with temperatures and power, not only a bring-up.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 14a2b89 under the 12-01 bar: one non-author approval + local proof (touched-object W=1 build / KUnit / host tests in the body) while PR CI is queued. Boards without a row stay in Not yet; a regression gets a same-day revert.

@RyanTheTide
RyanTheTide merged commit 6740420 into main Dec 1, 2026
6 of 10 checks passed
@RyanTheTide
RyanTheTide deleted the gates/g15-t6031-board branch December 1, 2026 06:35
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