Skip to content

soc: apple: display-gate: take the T6031 display wherever the boot loader hands it over - #3729

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

RyanTheTide merged 1 commit into
mainfrom
gates/t6031-display

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: On M3 Max (T6031) the native display, and with it the GPU, came up by default only on the J516C. Every other T6031 board needed apple_t6031_display.enable=1. This drops the board check and the switch: the gate takes the display on any T6031 board whose boot loader marks the handoff (apple,t6031-handoff on the DCP and display subsystem) and passes this Mac's PMP values. All the existing handoff and PMP checks stay as they are.

Tested:

  • Display gate KUnit on arm64 QEMU (kunit.py run --arch=arm64, LLVM): 73 tests, 67 passed, 6 skipped. The skips are the T8122 dcpext cases that need the display driver, which was not in this kunitconfig. By suite: t6031 21/21, t6030 8/8, t8122 and t6041 pass.
  • checkpatch: clean.
  • Hardware: none. We have no T6031 Mac.

Risk: Two-way door (a revert puts the switch back). Only T6031 boards are affected: the J514C and J516C. On the J516C nothing changes. The J514C now takes the native display by default whenever its boot loader hands it over (aura already arms that handoff on J514C). Before, it stayed on the boot framebuffer unless the owner opted in. No fleet Mac is affected (M1 Pro, M2, M3 Air, M4 Air, M4 Pro, A18 Pro).

Not yet:

  • We don't have a row on J514C (T6031) or J516C (T6031) at this head because we own no M3 Max. Could a J514C or J516C owner post one? Boot with the default command line, no apple_t6031_display.enable, and report apple-t6031-display and apple-drm from dmesg, whether the panel is lit, and the G15 GPU state.
  • The J514C GPU is still refused by the G15 driver's own J516C-only record (g15/hw/t6031.rs). That is a separate gate, so on a J514C this PR brings up the display only.
Detail
  • Why the board check can go: the boot loader sets apple,t6031-handoff only after it has checked and locked the inherited display mappings. The gate also requires /chosen/asahi,t6031-pmp, the T6031 PMP image UUID, the T6031 power-state layout and an unused, complete PMP topology. Those checks are the capability signal. The board name added nothing on top of them.
  • Escape hatch without a kernel switch: the boot loader's chosen.asahi,t6031-dcp=0 (no handoff means no marker, so the gate does nothing), or nomodeset (no display driver, so no PMP start). The PMP report's recovery hint and the G15 wait message now point to those two.
  • History check: I searched linux PRs and issues for T6031, J514C and apple_t6031_display. I found no recorded native-display failure on a T6031 board other than the J516C. The J514C default was proposed in drm/asahi, drm/apple: M3 Max: J514C, J514M, J516M and J516C graphics and native display #2148 (commit "soc: apple: default J514C native display on normal boots"), and main already has a J514C DCP record (iomfb_v14_7.c).
  • Leftover: the m3max test kit in tools/aurora-sep/ still passes apple_t6031_display.enable=1. After this PR it is an unknown, ignored parameter, so the kit is left as it is.
  • Files: drivers/soc/apple/display-gate.c, display-gate-test.c, Kconfig (help text for the gate and its KUnit), drivers/pmdomain/apple/Kconfig and pmp-report.c (recovery hint), drivers/gpu/drm/asahi/g15/glue.c (wait message). 6 files, +51/-229.

…ader hands it over

On T6031 (M3 Max) the native display was on by default only when the
root compatible was apple,j516c; every other T6031 board needed
apple_t6031_display.enable=1, and because the T6031 GPU starts its
firmware only after the native display is up, those boards kept the GPU
off as well.

The board check adds nothing the device tree does not already say. The
boot loader marks the DCP and the display subsystem apple,t6031-handoff
only after it has checked and locked the handover, and the gate still
requires that marker, this Mac's PMP values in /chosen/asahi,t6031-pmp,
the T6031 PMP image and a complete PMP topology before it enables
anything. Take the display on every T6031 board where all of that holds,
as on T6030 and T8122.

Drop apple_t6031_display.enable with the board default. A boot that
should stay on the boot framebuffer already has two ways that do not
need a T6031 kernel switch: the boot loader's chosen.asahi,t6031-dcp=0
(no handoff, so no marker), or nomodeset, which keeps the display driver
and so the PMP start away. The PMP report's recovery hint and the G15
wait message say that now.

The KUnit cases follow: the T6031 path is on with the full handoff on a
tree whose root is no Mac's, the T6030 and T8122 options do not turn it
off, and every refusal case is unchanged apart from no longer setting the
removed switch.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners December 1, 2026 04:50

@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 0aca20d

Checked: display-gate.c, the KUnit changes, Kconfig, pmp-report and G15 glue.

  • T6031 now has .requested = NULL. The only dereference left (display-gate.c:2161) is guarded with gate_soc->requested &&, and the T6030/T8122 records keep &gate_requested, so their escapes are unchanged.
  • The handoff marker, the PMP values, UUID, power layout and topology checks are untouched, and every negative KUnit case stays; they now run without the switch.
  • No gate_t6031_* or opt_in reference is left in display-gate.c.
  • The recovery hints now point to chosen.asahi,t6031-dcp=0 / nomodeset, which do stop the gate (no marker means nothing is done).
    Follow-ups:
  • The m3max kit in tools/aurora-sep still passes the dead apple_t6031_display.enable=1. It is harmless, but drop it when the kit is next touched.
  • The J514C GPU is still refused by g15/hw/t6031.rs, as the PR says.
  • The merge gate still needs one T6031 row (J514C or J516C owner).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 0aca20d under the 12-01 bar: one non-author approval + local proof while linux PR CI is ~19 h behind (B1-CI-REVIEW 17:30). Local proof: this head's own touched-object W=1 build + its KUnit/host tests (see body), plus all ten B1-GATES heads merged on main a29e/b2cd (57856a3b7327) build clean together (drivers/gpu/drm/asahi + apple, soc/apple, mfd, tipd, centauri, pmdomain: rc 0, no warning in a touched file). Boards without a row stay in Not yet; a regression gets a same-day revert.

@RyanTheTide
RyanTheTide merged commit d012c7d into main Dec 1, 2026
10 of 37 checks passed
@RyanTheTide
RyanTheTide deleted the gates/t6031-display branch December 1, 2026 06:07
AxxzyWasTaken pushed a commit to AxxzyWasTaken/linux that referenced this pull request Dec 1, 2026
The T6030 and T8122 native display had command-line switches that only
turned it off: apple_t6030_display.enable, .dcpext and .scanout, and
apple_t8122_display.enable and .dcpext, all on by default, plus
apple_t6030_display.dcpext_manual, a default-off diagnostic mode that
enabled a T6030 external display processor for an explicit start with a
separately mapped scanout buffer instead of joining the DRM device.

None of them is needed to keep the boot framebuffer. The gate acts only
on what the boot loader marks after it has checked and locked the
handover (apple,t6030-handoff / apple,t8122-handoff on the DCP and the
display subsystem, the dcpext memory and display DART handoffs on
T6030, apple,t8122-dcpext-firmware-ready on T8122), and the boot loader
already has its own switches for each of them. nomodeset keeps the
display driver, and so the PMP start, away. That is what aurora-silicon#3729 left
for T6031.

Drop the six options. Every default is unchanged: the panel and the
external processors are enabled exactly when they were without options.
With the manual mode gone, a T6030 external processor is either enabled
for the DRM device or refused, as by default before; the gate no longer
enables the scanout child or marks it apple,t6030-scanout-verified.
The PMP report's recovery hint now names the boot loader's switch.

The KUnit cases that only exercised the switches go; the no-marker
cases that remain cover the way to keep the boot framebuffer.

Signed-off-by: Ryan Murray <[email protected]>
AxxzyWasTaken pushed a commit to AxxzyWasTaken/linux that referenced this pull request Dec 1, 2026
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
(aurora-silicon#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 aurora-silicon#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 <[email protected]>
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