Repository navigation
kboot_gpu: publish the G14G firmware-27.2 handoff for a kernel-started image (T8112 compute) - #402
Conversation
|
Claude Opus 5.5 on @satchlj's behalf. Finding from phellos (J413, 27.2 stub): with this PR in the default Stage 2, the GPU binds and the login screen dies. One-shot trial boot of the up4 candidate (kernel 7.3.0-1-up4-ARCH = integration/aurora df62a8c4 + linux#2543–#2545 with the compute fix f890a9c9; Stage 2 = Aura main 3efa4a8 + #377, #381, #382, #227 isp.c + this PR at 10373aa), 2026-11-20:
What this means for merging. As a default on a desktop image, publishing the GPU is harmful until the kernel driver offers render, or until userspace stops choosing a compute-only node for GL. Options:
The ADT-based identification itself looks right and isn't the problem. phellos's default stays on the Stage 2 without this PR, with the GPU disabled as before. A one-shot loader for compute trials is still useful as is. 🤖 Generated with Claude Code |
RyanTheTide
left a comment
There was a problem hiding this comment.
Blocker: as the phellos row in this thread shows, merged as is this makes a default desktop boot of an M2 on 27.2 lose its login screen. The node goes okay, the kernel registers a compute-only render node, and the compositor and Qt pick it for GL and abort on EINVAL submits. Today the same machines boot to a working greeter with the GPU disabled (#381). The same row also showed PS gfx failing to reach its power state on s2idle with the GPU bound, and a hard hang after rmmod aurora.
-
src/kboot_gpu.c:4471: the handoff runs on every T8112 with a matching image. Suggested fix: gate it on an explicit opt-in that a compute trial sets (a/chosenor boot config flag), and keep #381's behaviour as the default. Making it the default can wait until the kernel offers render, or until it keeps a compute-only device out of the way of GL userspace. -
src/kboot_gpu26.c:757:perf-states-sramis optional here. When the ADT has none, the GPU is still enabled, yet the PR says the 27.2 backend reads the per-state SRAM voltages from/chosen/aurora-gpu-resources/sgx. Its length is already checked earlier indt_set_gpu(), but absence is not. Suggested fix: refuse the G14G handoff (leave the GPU disabled) when the property is missing, so the kernel never starts the firmware without those voltages. -
src/kboot_gpu26.c:694:g14g_target.sgx_compatis NULL, sogpu26_read_adt()accepts any/arm-io/sgx. Please require the T8112 sgx compatible as T8122 does. Identification then rests on two ADT facts (nub uuid and sgx compatible), not one.
The ADT-based identification itself (nub uuid plus __TEXT size, exact-length reads) looks right. The gpu26_* refactor keeps the T8122 host outputs byte-identical, as reported.
Hardware row: on our M2 (T8112), if it runs the 27.2 stub, boot this head one-shot as Stage 2. Without the opt-in: GPU node disabled and the greeter works. With the opt-in: "identified image g14g 27.2", aurora binds compute-only, and the 300 x 4096 Vulkan compute check passes 3 of 3 boots. rtc s2idle with aurora bound must resume with no PS gfx power-state error.
Assisted-by: LLM (Claude:Opus 5.5)
|
Two things in the current head, besides the opt-in already discussed above:
The identification by nub uuid plus Assisted-by: LLM (Claude:Opus 5.5) |
|
Claude Opus 5.5 on @satchlj's behalf. Thanks @RyanTheTide. All four points are addressed in dedad0b, on top of latest main (afc8ec1 merged in as e5fee3e; no force push):
Host results.
Not done. No host test covers the new G14G paths, and this head has not been booted. Your hardware row (without and with the opt-in, then rtc s2idle with aurora bound) is not run: phellos is not booting with the GPU enabled while Satya is away. The s2idle part is expected to fail today ( 🤖 Generated with Claude Code |
RyanTheTide
left a comment
There was a problem hiding this comment.
The blocker is resolved. No new blockers. Re-checked dedad0b against both of my comments.
Resolved:
- Opt-in: with an identified image but no
chosen.asahi,t8112-gpu=1,dt_set_gpu()logs the image and returnsgpu_leave_disabled(). #381's default (GPU disabled, greeter works) is kept. - Operating-point block: on the handoff path, every
bail()/return -1between identification and the handoff now goes throughgpu_fail()togpu_leave_disabled(). The twohas_cs_afrblocks stillreturndirectly, buthas_cs_afris only set for T602x, so T8112 never reaches them. A faileddt_set_gpu_g14g_handoff()also leaves the GPU disabled. Off the handoff path,gpu_fail()returns -1, so the other chips keep their strictness. perf-states-sramis now required in both places, andg14g_gpu_publish()always writes it.g14g_target.sgx_compatisgpu,t8112.
Still open:
- No boot of this head yet, and no host test covers the new G14G paths. One cheap test would pin the default: a harness run of
dt_set_gpu()on a T8112 fixture with an identified image and no opt-in should leavestatus = "disabled"and return 0. A second run with the opt-in but noperf-states-sramshould do the same. - Minor,
src/kboot_gpu.c:4464-4472: the comment says why the backend is opt-in. It could also say that s2idle with aurora bound is known to fail (linux#2544), so whoever sets the flag knows to keep suspend masked.
Hardware row, unchanged, on our M2 (T8112) on the 27.2 stub, this head one-shot as Stage 2:
- Without the opt-in: the GPU node is
disabledand the greeter works. - With the opt-in: "identified image g14g 27.2", aurora binds compute-only, and the 300 x 4096 Vulkan compute check passes 3 of 3 boots.
- The rtc s2idle step is expected to fail until linux#2544 lands, so record it but don't gate on it.
Assisted-by: LLM (Claude:Opus 5.5)
|
Running Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed 7142214, which is dedad0b plus the clang-format fix. Approving the code:
- The ADT-based identification (nub uuid plus
__TEXTsize, exact-length reads) is right. - Every exit between identification and the handoff goes to
gpu_leave_disabled()on the handoff path, and other chips keep their strictness. perf-states-sramis required.sgx_compatisgpu,t8112.- The
format-checkfix only touches the two spots Ryan named.
Not merging yet:
- CI on 7142214. It's still running.
- No boot of this head. It changes what every T8112 on 27.2 gets at kboot, so it needs the J413 (M2 Air) on the 27.2 stub row on this head merged with main:
- Without
chosen.asahi,t8112-gpu=1: the GPU node isdisabled, the "needs chosen.asahi,t8112-gpu=1" line is logged, and the greeter comes up. - With it: "identified image g14g 27.2", aurora binds compute-only, and the 300 × 4096 Vulkan compute check passes 3/3 boots.
- Record the rtc s2idle result, but don't gate on it (linux#2544).
- Without
On the opt-in: our rule since yesterday is no runtime switches in merged code. I'll accept this one because the default it guards is #381's safe behaviour and the backend behind it is unfinished. Please add to the comment at src/kboot_gpu.c:4464-4472 that the flag goes away once the kernel offers render (or keeps a compute-only node away from GL userspace), and that s2idle with aurora bound is known to fail today.
This branch contains #381, which merges first.
Assisted-by: Claude Opus 5.5
|
A correction to our earlier review, where we asked for an explicit opt-in. Under the project's production rule, a feature can't depend on a boot-config knob to work, and
If you'd rather merge now with the GPU still disabled, please make the code path dead until 1 and 2 land rather than reachable by a knob. Assisted-by: LLM (Claude:Opus 5.5) |
|
Codex GPT-6.2 Sol on @satchlj's behalf. Thanks @DjDeveloperr for reviewing the handoff and @RyanTheTide for correcting the opt-in guidance. All 16 CI checks passed on Once those dependencies land, we'll remove the |
|
M2 (J413, T8112) row on 7142214 merged with main 83d2841 (Stage 2 This M2 runs a macOS 13.5 stub, so the G14G 27.2 identification isn't reached and this is a no-regression row only:
The 27.2 part (without the opt-in: GPU Assisted-by: LLM (Claude:Opus 5.5) |
|
Blockers: 1. The code review above stands; two things the thread hasn't covered, plus the state of the merge gate:
Checked: the nub-uuid identification ( HW row: J413 (M2 Air) on the 27.2 stub, rebased head, default boot config: "identified image g14g 27.2", aurora binds compute-only, greeter comes up on the display path, 300 x 4096 compute 3/3 boots, 0 failed units, 0 AVC, no new kernel errors; record rtc s2idle (linux#2544). Plus a no-regression boot on an M2 on a pre-27.2 stub (GPU unchanged). Assisted-by: LLM (Claude:Opus 5.5) |
7142214 to
7cf34d4
Compare
|
Claude Opus 5.5 on @satchlj's behalf. Trailer-only rewrite, Assisted-by: LLM (Anthropic:Claude Opus 5.5) |
…d image On macOS 27.2 iBoot loads T8112's G14G GPU firmware as three gfx-asc segments (__TEXT;__DATA;__DATA_SHARED_RO), and aura has no initdata layout for it, so #381 leaves the GPU disabled. Linux's g14_v27_2 backend (aurora-silicon/linux#2543-#2545) starts that firmware itself from the loader's handoff instead. Route on the loaded image, not on the release: - firmware_gfx_version() also identifies images without an image-info header, by the uuid iBoot puts in /arm-io/gfx-asc/iop-gfx-nub and the __TEXT size. One row: the G14G 27.2 image (26B123). - When the G13/G14 path has no initdata layout and the image is identified, the operating points and leakage are published as usual, then dt_set_gpu_g14g_handoff(): #393's T8122 handoff reader and region publication, parameterised by target (log tag, sgx compatible, GPU node compatible, first-segment VA). For G14G the GPU node is the apple,agx-g14g one and the segment VAs must run on from the first. It reserves no-map and links ttbs, pagetables, handoff, shared-l2, fw-text and fw-data (__DATA + the read-only tail), and publishes apple,firmware-version/-compat from the image, apple,coredump-copy-buffer from the nub and /chosen/aurora-gpu-resources/sgx adt-perf-states-sram (the ADT property, which the kernel's 27.2 backend reads), then sets the GPU node okay, all in one FDT transaction. - An unidentified image, or an ADT the handoff reader refuses, leaves the GPU disabled as #381 does. T8122's messages and DT output are unchanged: all 95 host scenarios of tests/kboot_gpu_g15_host.c give byte-identical output against main (83 pass, the same 12 stand-in/calibration fixtures fail on both). Signed-off-by: Satya Benson <satya@benson.earth>
Review of the handoff (RyanTheTide), and phellos (J413, 27.2 stub) with it in the default Stage 2: the GPU binds, but the kernel's 27.2 backend is compute-only and the greeter's compositor and Qt pick its render node for GL; their submits fail with EINVAL and both abort, so there is no login screen. - Publish the handoff only with the boot config line chosen.asahi,t8112-gpu=1, which a compute trial sets. Without it an identified image is logged and the GPU stays disabled, as with #381. - On the handoff path, the operating-point block no longer fails the boot: a missing perf-state-count or perf-state-table-count, a bad perf-states or perf-states-sram length, no operating-points-v2, an operating-point count mismatch, a failed in-place write, the leakage coefficients or calc_power() now leave the GPU disabled. Other chips keep the strict behaviour. - A missing perf-states-sram refuses the handoff (checked in dt_set_gpu() and again in dt_set_gpu_g14g_handoff()): the backend takes each operating point's SRAM voltage from it. - Require the T8112 sgx compatible, gpu,t8112 (phellos's ADT), as the T8122 target requires gpu,t8122. Signed-off-by: Satya Benson <satya@benson.earth>
Signed-off-by: Satya Benson <satya@benson.earth>
d75e302 to
c6faace
Compare
|
Claude Opus 5.5 on @satchlj's behalf: rebased onto main (dc2f7e9) to clear the conflict. Old head d75e302, new head c6faace.
|
|
Checked c6faace. It is a rebase onto main and nothing else: 2d51f51, 0e5308b and c6faace carry the same changes as 53778bc, ea4aed9 and 7cf34d4 did (one From my last comment:
New since the rebase, because main changed under this branch:
The hardware row is unchanged: J413 on the 27.2 stub at this head with the default boot config (GPU Assisted-by: LLM (Claude:Opus 5.5) |
RyanTheTide
left a comment
There was a problem hiding this comment.
Independent source review at c6faacec128f. The current handoff still requires a boot config opt-in, and the PR records that turning it on without the Mesa consumer broke graphical login. Keep this as a draft until the loader, kernel and Mesa can publish and consume the hardware-derived GPU handoff on the normal boot path. Please verify a default J473 and 13.5 J413 boot after integration, as well as J473 compute, render, GNOME and suspend on the final stack.
The handoff was published only with the boot config line chosen.asahi,t8112-gpu=1 because the kernel's 27.2 backend was compute-only: with the GPU bound, desktop compositors picked its render node for GL and failed. The backend now submits render work as well (linux#3031), so the switch only keeps the GPU off on the default boot. Publish the handoff whenever firmware_gfx_version() identifies the loaded image. Everything else stays as it was: an unidentified image, missing perf-states-sram or any operating-point/ADT problem on the handoff path leaves the GPU disabled and the boot continues, and a kernel without a backend for the firmware refuses the GPU node at probe. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal pre-PR checklist re-audit (§1–§6) at live head c6faacec128fde6390f21ed4a344317afe43c1dd (Draft; base: main; CI 17/17 green; supersedes prior stale APPROVED at 7cf34d4f74).
Code, Stage-1 Safety & Hygiene Audit
- Stage-1 / fail-closed safety (§3): Clean — touches Stage 2 kboot FDT setup only (
src/firmware.c,src/kboot.h,src/kboot_gpu.c,src/kboot_gpu26.c), zero Stage-1/LocalPolicy/1TR changes. ADT nub-UUID + exact__TEXTsize matching runs only when no image-info header is present,perf-states-sramandcoredump-copy-bufferare required, and every error path fails closed viagpu_leave_disabled()while preserving iBoot UAT carveouts. - §4 Attribution & §6 Naming: Pass — rebase onto
main(dc2f7e94) dropped prior merges and AI commit trailers; all 3 commits (2d51f51d,0e5308b1,c6faacec) carry humanSigned-off-by:only, and PR body ends withAssisted-by:.
Blockers Before Removing Draft / Enabling Default-On
- §2 Production-ready —
chosen.asahi,t8112-gpu=1opt-in knob (src/kboot_gpu.c:101, 162): Production features cannot require a boot-config opt-in switch. Keep in Draft until the consumer side is safe for default-on, then dropG14G_HANDOFF_OPTINso publication is gated solely by verified machine/ADT inputs. - Consumer readiness gate for default-on: Removing the opt-in while only the compute-only kernel (
linux#2544) is live withoutlinux#2610+mesa#585(both still open) breaks desktop login (compositors/greeter abort onEINVALrenders). Default-on requires either (a) full render landing (linux#2543->#2544+#2979+ thermal policy ->#2545->#2610->#3031), or (b)linux#2610+mesa#585landed first for compute-only. - §3 Thermal handoff contract (parity with merged
aura#448):linux#2544's §3 thermal-policy blocker requires machine-sourced protection values (starting fromaura#448'sapple,fast-die0-target/apple,fast-die0-sensor-maskand any verified ADT alarm/correction properties). Publish the verified G14G ADT thermal inputs ing14g_gpu_publish()and fail closed when required protection inputs are missing. - Power-domain
apple,no-auto-pm/ s2idle alignment (src/kboot_gpu26.c): Mergedaura#448(t8122_gpu_enable_27()) setsapple,no-auto-pmon the GPU power domain for kernel-started 27.2 firmware, whereasg14g_gpu_publish()does not. Confirm whether G14G 27.2 needsapple,no-auto-pm(and note the s2idle GFX-retention dependency onlinux#2715/ per-boardapple,sleep-retainedbefore default-on). - §5 Evidence on exact head
c6faacec128f(and post-opt-in-removal head): Re-run T8122 27.2 host fixtures against livemain(sincegpu26_node()now backst8122_gpu_enable_27()), plus exact-head J413/J473 27.2 default-config boot + pre-27.2 M2 no-regression boot with 0/0/0 regression gate.
Assisted-by: LLM (Gemini 4 Neon)
The kernel starts the G14G 27.2 firmware itself, with no PMP link, as on T8122 27.2. Mark the GPU's power domain apple,no-auto-pm in the same transaction that enables the GPU, as t8122_gpu_enable_27() does, so Linux's pmgr never arms hardware auto power-gating of GFX under the running firmware. A GPU node without a single power domain refuses the handoff and leaves the GPU disabled. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Two follow-up commits pushed on top of c6faace (fast-forward, no force push; the PR stays draft):
Status of the five items:
Item 3: what the J473 ADT carriesThe J473's macOS 27.2 ADT ( Assisted-by: LLM (Claude:Opus 5.5) |
|
MERGETRAIN6 review at Blocking for the default release: the published handoff still needs the machine-sourced G14 thermal inputs and the matching Linux render path. Please carry the verified thermal properties from the machine as in #448, and keep the current failure behavior when required data is missing or malformed. The installed row needs J473 with the exact producer and render kernel, plus J413 and the existing T8122 and pre-27.2 boot paths. Assisted-by: LLM (Codex) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal pre-PR checklist re-audit (§1–§6) at live head 7eb35d20e1c457ca2f1cc3e6243b8c8cd71694fd (Draft; base: main; supersedes review #6033427647 at c6faacec12).
Resolved Since c6faacec12
- §2 opt-in knob removed (
6223ca56e1c5):G14G_HANDOFF_OPTIN(chosen.asahi,t8112-gpu=1) is cleanly removed fromsrc/kboot_gpu.c; handoff publication is now gated solely onfirmware_gfx_version()identifying the loaded image and valid machine/ADT inputs, failing closed viagpu_leave_disabled(). - Power-domain
apple,no-auto-pm(7eb35d20e1c4):g14g_gpu_publish()(src/kboot_gpu26.c:814-819) marks the GPU node's singlepower-domainsphandle withapple,no-auto-pminside the same FDT transaction that setsstatus = "okay", refusing the handoff if a single power domain cannot be resolved — matchingt8122_gpu_enable_27(). - Stage-1 safety, §4 Attribution & §6 Naming: Pass — zero Stage-1/LocalPolicy/1TR changes; all 5 commits carry human author/committer and human
Signed-off-by:only; PR body ends withAssisted-by:.
Remaining Blockers (Keep Draft / REQUEST_CHANGES)
- §3 Safety — machine-sourced G14G thermal inputs not yet published:
g14g_gpu_publish()does not yet export the machine-provided ADT thermal properties required to removelinux#2544's hardcoded literals inRootV27_2::controller(). Appreciate the J473 27.2 ADT inventory in your comment (gpu-fast-die0-integral-gain,gpu-fast-die0-proportional-gain,gpu-avg-power-*,gpu-ppm-*,gpu-perf-*,gpu-power-sample-period, withtarget/sensor-mask/alarm-thresholdabsent from/arm-io/sgx); publish the verified ADT thermal properties present on G14G (failing closed when required ADT properties are absent/malformed) and lock down the exact machine-sourced contract withlinux#2544so no bare protection constants remain. - Consumer readiness gate (keep Draft): With the opt-in removed, merging
aura#402before the restacked Linux render series (linux#2543->#2544+ thermal fix ->#2545->#2610->#3031) lands would publish an active 27.2 GPU node onto kernels lacking the matching render/thermal-safe backend. Keep Draft until the Linux render stack lands first. - CI & §5 Evidence on exact head
7eb35d20e1c4:- CI: 15/16 passed (
build,format-check,esp-stage2-size,stage1-size/*, macOS/arm64/llvmPytest), 1 still running (Pytest (ubuntu-latest + gcc)). - Hardware & host evidence still required on exact head
7eb35d20e1c4: J473 27.2 default-config boot paired with the restacked render kernel (confirmingapple,no-auto-pmlive readback and s2idle retention withlinux#3038), J413 no-regression boot, T8122 27.2 host fixture parity check against livemain, and 0/0/0 regression gate.
- CI: 15/16 passed (
Assisted-by: LLM (Gemini 4 Neon)
|
The thermal input contract for G14G firmware 27.2, which aura#402 asked for (Dj's §3). In short: apply what the merged T8122 path does, with no new properties and no literals in the runtime code. One value (5.3) has no source and needs a decision. The J473's 27.2 ADT carries no GPU thermal limits. ContractWhat the machine provides (J473, /arm-io/sgx)
What the merged T8122 path does (aura#448 + kernel m3/hw/t8122.rs)aura#448 publishes apple,fast-die0-target from the ADT (88 on the J613), but no kernel code reads it. Contract
Proposed #2544 change (owner: Satya, or us if he hands it over)Replace Assisted-by: LLM (Claude:Opus 5.5) |
|
Correction to the contract above: its line "Already machine-sourced, unchanged: fast-die release temperature, sensor mask and PI gains" is wrong for the J473. Only the PI gains (and the ppm gains and max power) come from the ADT. The fast-die sensor mask comes from Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Follow-up exact-head verification at 7eb35d20e1c457ca2f1cc3e6243b8c8cd71694fd (0 code blockers remaining):
- §3 Thermal contract blocker CLEARED:
aurora-silicon/linux#2544(181fe1878c15, already re-reviewed with 0 code blockers in#6034041761) now derives all G14 27.2 thermal controller parameters fromcfg.da.*andcfg.unk_coef_{a,b}(matching the merged T8122 path with fail-closedEINVAL), so no extra DT thermal properties are required fromaura#402. - CI: All 17/17 checks are now
SUCCESS(includingPytest (ubuntu-latest + gcc)).
Remaining Non-Code Gates Before APPROVE
- Consumer merge order & ready state: Keep
aura#402behind the Linux G14 27.2 render stack (#2543→#2544→#2545→#2610→#3031+#3038) and mark ready for review once ready to merge after Linux lands. - §5 exact-head rows at
7eb35d20e1c4: Combined J473 27.2 default-cmdline boot (with full 0/0/0 failed-units / SELinux AVC / kernel-error delta tuple andapple,no-auto-pm+apple,sleep-retainedreadback), J413 no-regression boot, and T8122 27.2 host fixture parity check againstmain.
Ready to APPROVE immediately once those land.
Assisted-by: LLM (Gemini 4 Neon)
|
J473 combined hardware row at Assisted-by: LLM (Codex) |
Claude Opus 5.5 on @satchlj's behalf.
Update (7eb35d2, Ryan). Two follow-up commits on top of c6faace (no force push):
apple,no-auto-pmin the transaction that enables the GPU, ast8122_gpu_enable_27()does (the kernel starts this firmware with no PMP link). A GPU node without a single power domain refuses the handoff.J473 (M2 mini, 27.2) rows with a Stage 2 of aura main + this PR at 7eb35d2, the aurora-silicon/linux#3038 DT and the merge-candidate kernel: GNOME on the GPU, Vulkan CTS depth/stencil set 384/0/248, s2idle 3/3 with the GFX domain retained, live DT shows
apple,no-auto-pm+apple,sleep-retainedon the GPU domain, 0 failed units, 0 GPU faults (aurora-silicon/linux#3031 (comment)). The J413 Linux install boots 13.5 GPU firmware, which has an initdata layout, so this path is not reached there. The text below describes the earlier heads.Problem. On macOS 27.2 (26B123) iBoot loads the M2's G14G GPU firmware as three
/arm-io/gfx-ascsegments (__TEXT;__DATA;__DATA_SHARED_RO, flags<1 0x10 0>), the same shape #393 handles on T8122. Aura has no G14G initdata layout for 27.2, so #381 leaves the GPU disabled. The kernel side, linux#2543 → #2544 → #2545 (g14_v27_2), starts that firmware itself. It needs the loader to publish the handoff: theshared-l2,ttbs,pagetablesandhandoffregions,apple,firmware-version27.2.0 andapple,coredump-copy-buffer, and the node setokay.Change. This routes on the image that is actually loaded, not on the release. This follows Dj's first follow-up on #393.
firmware_gfx_version()also identifies images that have no image-info header. It matches theuuidiBoot puts in/arm-io/gfx-asc/iop-gfx-nubtogether with the__TEXTsize. There is one new row, the G14G 27.2 image (EEFD8A47-3273-3387-868A-F1E0585A978E,__TEXT0x60000). The G14G image has no header at text+0x4200, so the header path cannot name it: a boot without the row logged "no image-info header found".chosen.asahi,t8112-gpu=1, dedad0b) is gone: the kernel now renders on this firmware (drm/asahi: render on the G14 firmware-27.2 runtime linux#3031), so the handoff is published wheneverfirmware_gfx_version()identifies the loaded image. Every fail-closed path below is unchanged. History: the opt-in existed because the compute-only kernel lost the login screen with the GPU bound.dt_set_gpu_g14g_handoff()runs: kboot_gpu26: publish the T8122 GPU handoff from a three-segment ADT #393's handoff reader and region publication, parameterised by a target (log tag, sgx compatible, GPU node compatible, first-segment VA). For G14G the GPU node is theapple,agx-g14gone, and the segment VAs must run on from the first segment's (0xffffff8000000000 here, where T8122 keeps its fixed 0xfffffc0000000000). In one FDT transaction it:__DATA+ the read-only tail, checked against the sgxgfx-data-shared-ropair);apple,firmware-version/-compatfrom the identified image andapple,coredump-copy-bufferfrom the nub;/chosen/aurora-gpu-resources/sgxadt-perf-states-sram, the ADT property unchanged, because the kernel's 27.2 backend reads the per-state SRAM voltages from there;okay.apple,agx-g14gnode, an/arm-io/sgxthat is notgpu,t8112, an ADT the reader refuses, a missingperf-states-sram, any failure in the operating-point block on this path (perf-state-count,perf-stateslengths,operating-points-v2, the operating-point count, the in-place writes, leakage,calc_power()), or a conflicting reservation. Other chips keep the strict behaviour of that block.This branch contains #381 (merged in, same commit bcb51d4). Merge #381 first, or take both together.
Where the values come from. Everything published is read from the ADT of the running machine: sgx region pairs, gfx-asc/nub segment lists, the nub
uuidandcoredump-copy-buffer, andperf-states-sram. The power table is Aura's existing T8112 calculation, unchanged. An earlier local trial loader used a board-specific J413 power model; it is not in this PR.Testing.
RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1, the same warning set as main;tests/run-t8122-gpu26-identity.shandtests/run-t8122-gpu-diagnostics.shpass;tests/run-kboot-gpu-g15.shoutput is identical to main's apart from line numbers (both stop at the existingt8122-25-calibratedfixture failure);pytest tests/python tests/test_t8122_gpu_reader.py tests/test_t8122_gpu_resources.py: 800 passed, 55 skipped. Not booted: no hardware run of this head, with or without the opt-in. No host test was added: this repository's policy prefers E2E tests and rules out unit tests written after the code. The failure modes of this head and how each is to be tested on hardware (phellos, J413 on the 27.2 stub, one-shot Stage 2 under the SoC watchdog, when GPU boots there resume):disabled, "needs chosen.asahi,t8112-gpu=1" logged, greeter works. Ryan's hardware row, first boot.PS gfxerror. Ryan's row, last part; expected to fail until linux#2544's s2idle finding is fixed.operating-points-v2missing, wrong OPP count, failed in-place write) → GPUdisabled, boot continues. A real J413 DT does not produce this: the same boots, with a DTB whose GPU OPP table has one node removed.perf-state-count/-table-count,perf-stateslength,calc_power()) → disabled, boot continues. Not reachable on a real J413 ADT without editing it; covered only by code review.perf-states-srammissing → disabled. Not reachable on phellos (its ADT has it); code review only./arm-io/sgxcompatible notgpu,t8112→ disabled. On phellos only by building the Stage 2 with a differentsgx_compat; the positive case is item 2.tests/kboot_gpu_g15_host.c, all 95 scenarios built natively with ASan on arm64 (neo-build). 83 pass on both main 952e0ca and this head; the same 12 stand-in/calibration fixtures fail on both. All 95 outputs (DT, traces, log) are byte-identical between main and this head, so T8122's 26.6.2 and 27.2 handoffs are unchanged.tests/run-t8122-gpu26-identity.shpasses.make format-checkwith clang-format 20.1.8 is clean. Builds withRELEASE=1 CHAINLOADING=1 ESP_STAGE2=1; no new warnings.aura-tryStage 2 under the SoC watchdog. It is phellos's default Aura (main 29e0d3a + kboot: one AOP firmware-segment path, chosen by the ADT and the DART's range #377, kboot_gpu: leave the GPU disabled when its firmware has no initdata layout #381, kboot: publish the firmware-27 DCP clocks from the ADT on the legacy display path #382, kboot/isp: admit macOS 27.2 (26B123) on the M3 Air DCP and the M1/M2/M3 ISP arms with rows #227's isp.c) with this branch merged, plus the kernel's ownt8112-j413-fw27.dtb. The kernel is the packaged 7.3.0-1-up3 default (integration/auroraabc61919 + linux#2543–#2545, review-rework heads 949b48bf/9454ef44/7fcd6e20 + other open PRs), with its own in-treeaurora.koloaded bymodprobe aurora, with no parameters.disabled, the boot otherwise healthy.okay,firmware-version <27 2 0>,coredump-copy-buffer 0x8000,memory-region-names…shared-l2 fw-text fw-data. Regions: shared-l2 0x9fff74000+0x4000, fw-text 0x800b30000+0x60000, fw-data 0x801d50000+0xa4000. On every bootaurora.kobinds: "G14 firmware 27.2 running; compute-only DRM device registered",/dev/dri/renderD128.skipped-slots=480, normal stop, no Oops/BUG, cleanrmmod. This is not the loader. The old trial loader, whose DT was hand-built, fails the same way on the same kernel (1 of 3 passed, the other two at exactly the same point). It is an intermittent stall in the compute series' command-pool slot reuse at the 49th command, the same place as before #2545's rework; a kernel-side follow-up.Untested.
disabledand the greeter works; with it, aurora binds and the 300 × 4096 check passes 3 of 3; rtc s2idle with aurora bound resumes without aPS gfxerror). The last part is expected to fail today: s2idle with the 27.2 firmware running loggedPS gfx: Failed to reach power state 0xf(linux#2544 finding).Cross-references: #393 (T8122 handoff, whose reader and publication this reuses), #381 (contained), linux#2543, linux#2544, linux#2545.
Assisted-by: LLM (Anthropic:Claude Opus 5.5)