Skip to content

kboot: add opt-in J516M/T6034 display and G15C handoff - #41

Draft
DanielLemky wants to merge 14 commits into
omacom:integration/aurorafrom
DanielLemky:j516m-native-handoff
Draft

DanielLemky wants to merge 14 commits into
omacom:integration/aurorafrom
DanielLemky:j516m-native-handoff

Conversation

@DanielLemky

@DanielLemky DanielLemky commented Nov 8, 2026 •

Copy link
Copy Markdown

Depends on #21 and #24. #24 was originally stacked on #23; that foundation was replaced by merged #31. Target: integration/aurora.
Companion kernel PR: omacom/linux-aurora#415.

Add explicit opt-in J516M/T6034 native display and G15C GPU handoff for the 16-inch, 14 CPU / 30 GPU M3 Max. Select the exact J516M board before the shared SoC profile, retain its established T6031 display/PMP/facts keys, and read its actual fuse masks [0x1fd, 0x1fd, 0x1ed, 0x1ed]. J514M's separate namespace and normal defaults remain unchanged.

Pin the internal 14.7 DCP image and hand off dcpext0 for HDMI. Preserve owner opt-outs and probe power restoration; suppress J516M display/external handoff after configuration loss while retaining live-log reservations. Reserve the working extra 64 KiB of device-tree space for this exact board's PMP and graphics metadata. The first combined hardware test caught that omitted allowance; the corrected loader exports the PMP values and starts the native graphics path.

Validation: release/chainloading/ESP-stage2 build passed. Existing full host suite: 501 passed, 10 skipped, 1 expected failure, 10 subtests passed (LC_ALL=C). Independent read-only review found no actionable findings. The feature extends the existing measurement/selector tests with J516M parameter cases and adapts the existing defaults fixture. The later configuration-loss and buffer-allocation corrections add no test cases; the exact configuration-loss branch was verified statically.

The signed source tree is identical to the corrected hardware-tested tree. The paired kernel/brightness stack passed native OpenGL/Vulkan pixel checks, internal 3456x2234 at 120 Hz, direct HDMI BenQ 2560x1440 at 59.951 Hz, PMP bandwidth and visible brightness/playback/pointer checks. USB-C, repeated hotplug, suspend/resume, other bins and sustained power/thermal behavior remain unqualified; inherited power stand-ins remain. Firmware and raw ADT binaries are excluded.

This is stacked on the open dependencies; rebase as they merge so the diff reduces to the J516M commits.

Assisted-by: Codex:GPT-6

DB and others added 14 commits October 30, 2026 16:51
Hand over dcpext0..3 on T6031 (M3 Max) the way T6030's dcpext0/1 are:
each processor's preloaded firmware memory, then its empty display DART.
Both steps are opt-in, armed by chosen.asahi,t6031-dcpext=1 (memory) or
chosen.asahi,t6031-dispext=1 (memory and display DART). They publish
the T6030 markers, which the kernel's display gate and display driver
already check, and every node stays disabled.

The instance values come from the J516C ADT (dcpextN, dart-dcpextN,
dart-dispextN, translated through /arm-io ranges). Each processor's power
state is dispextN_fe in the second PMGR (0x2_9280_0000): its ADT power
gate DISPEXTn-CPU-V has DISPEXTn_CPU and DISPEXTn_FE as parents, and FE
is CPU's child. The display DART check reads that state before it
touches the DART.

What differs per SoC moves into dcpext6_socs[]: the /chosen flags, the
PMGR base, the power state and DART compatibles, and the AIC's interrupt
cells (T6031's specifier carries the die). An external processor must
now run the panel's own DCP image (dcp6.uuid), not the pinned T6030
UUID. On T6030 the two are the same, and every T6031 dcpext nub names
the J516C image and shares the panel's __TEXT.

tests/python/test_t6030_dispext_dependencies.py builds dcpext6_handoffs()
against its own stubs; give it the per-SoC table, and cover T6031: its
own flags arm the same memory-before-DART handoffs, neither SoC takes the
other's flags, and a SoC without dcpext processors hands nothing off.

Signed-off-by: DB <rafal+claudeai@digitalbrew.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The candidate build defaults both T6031 display and GPU switches on
J514C. Several comments still say it always requires manual config.
Describe the build-only exception at each handoff and firmware setup
site, retaining owner values and the normal-build behavior.

Cover chosen.asahi,t6031-dcp=0 separately: the explicit display opt-out
survives while the independent GPU switch still defaults on. Format the
new board table without reformatting inherited source.

The two production-body defaults/opt-out suites pass 139 tests, with
eight optional updater integration checks skipped. This revision changes
comments, table whitespace and tests only; the target keeps tested
Stage2 22bd961.

Assisted-by: Codex:GPT-6
Give exact J514C/T6031 boots the same display and GPU defaults as
J516C without a build define or manual boot.bin enable line. Remove
the J514C_BRINGUP switch and update each handoff comment accordingly.
The defaults remain subordinate to explicit owner settings, master-off
and configuration-loss handling; T6034 is unchanged.

Exercise no-config Stage2 boots for both T6031 boards, independent
display/GPU opt-outs and loss handling. The production-body host suites
pass 155 tests, with eight optional updater integration cases skipped.

Assisted-by: Codex:GPT-6
The handoff guide still said J514C needed manual chosen lines despite the normal-build default. Describe both J514C and J516C defaults and owner opt-outs, and align host-test names and comments with the behavior they assert.

Assisted-by: Codex:GPT-6
Scope a normal-boot diagnostic to the J514M and T6034 pair. Reuse the bounded G15C identity power closure with exact restoration, publish SoC-specific identity and firmware-header metadata, and export display clock and memory-controller facts. Leave the GPU and mailbox disabled so the stock kernel remains unbound. Honor explicit owner opt-outs and lost configuration.

Test normal boot, mismatched board/SoC, opt-outs, invalid SGX windows, failed power-on, faulted reads and failed restoration with the production probe and real libfdt. This measurement build is an intermediate diagnostic, not completed native graphics support.

Assisted-by: Codex:GPT-6
Scope normal graphics defaults to the J514M and T6034 pair, with independent owner disables, master disable and lost-config handling. Keep T6031 and other T6034 boards on their separate paths.

The fresh J514M ADT supplies the checked internal DCP and DART addresses and the existing 14.7 DCP/PMP image UUIDs. Add a distinct pinned display handoff, PMP value namespace and firmware UUID list; retain all bounded mapping and power-state checks before publishing the handoff. Linux separately validates the complete GPU firmware identity.

Normal-build and owner-choice host tests pass for J514M while wrong boards and SoCs remain excluded. The display clock is independently measured as 400 MHz and represented by the kernel device tree.

Assisted-by: Codex:GPT-6
Add the exact J514M T6034 GPU profile to the shared G15C setup. Its powered identity and firmware family are measured first with exact power restoration; the setup consumes that identity without additional GPU hardware access. Preserve per-board defaults, owner opt-outs, lost-config handling, DT/ADT windows, UAT reservations and family checks. Export an explicit T6034 list of stand-in power properties.

Use per-boot G15C state names so neither T6031 nor T6034 can be mistaken for the other profile. The kernel must independently match the full firmware digest before startup. Host production-body and default/opt-out suites pass 170 tests with eight unavailable optional cases; Stage2 compiles without a board enable build flag.

Assisted-by: Codex:GPT-6
Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>
Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>

# Conflicts:
#	src/kboot.c
#	tests/python/test_m3_defaults_optout.py
#	tests/python/test_m3_graphics_defaults.py
Admit the exact J516M/T6034 root pair to the measured T6031 display
and PMP layout. Keep its established metadata namespace separate
from J514M, pin the DCP image UUID and retain explicit opt-ins.
Pass the shared six-channel T6034 PMP values under the J516M key.
No additional board is added to the normal default-enable policy.

Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>
Reuse the measured four-cluster, six-memory-channel G15C path for
the exact J516M/T6034 board. Read its actual fuse masks rather than
copying the different J514M bin. Preserve owner disable choices and
power restoration on every measurement failure.

Run the existing T6034 measurement/selection fixture for both boards
and retain the J516M no-default assertion in the existing boot fixture.

Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>
J516M deliberately has no graphics defaults entry, so the defaults-table
cleanup does not discard a retained display opt-in when a later owner
opt-out is lost. The GPU already checks chosen_lost, but the display
helper could still publish the internal and external handoffs.

On the exact J516M/T6034 board after config loss, remove the internal and
external display switches from the outgoing DT before dispatch. Continue
through the helper's unarmed path to preserve live OS log reservations;
it returns before native publication or external handoffs. Keep the
normal explicit opt-in path and all other boards' policies unchanged.

Fixes: ae88b8a ("kboot: add explicit J516M native display and PMP handoff")
Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>
The J516M native display handoff also exports this Mac's PMP tunables and
GPU/display facts. Its working loader reserved the same extra 64 KiB as
T6031, but the prepared J516M series omitted that buffer allocation.

On the combined hardware boot, copying PMP tunables failed and the kernel
received no PMP node. It therefore retained the basic framebuffer and
kept native display and GPU acceleration disabled.

Reserve the existing handoff allowance for an exact J516M/T6034 input
device tree as well. Keep allocation for J514M and all other boards
unchanged. This restores the tested board's allocation without changing
handoff data, firmware admission or hardware programming.

Fixes: ae88b8a ("kboot: add explicit J516M native display and PMP handoff")
Assisted-by: Codex:GPT-6
Signed-off-by: Daniel Lemky <daniel@quantumfirelabs.com>
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