Repository navigation
drm/asahi: g15: admit the T6030 GPU by SoC and firmware identity, not by board - #2438
RyanTheTide wants to merge 2 commits into
Conversation
… by board Native G15 admission on the T6030 refused any machine that is not apple,j514s or apple,j516s (asahi_g15_board(), checked in admit(), asahi_g15_pmp_prepare() and asahi_g15_pmp_get()), and the pinned B0 firmware build was listed twice, once per board, each row pinned on its machine. The board list was the set the generation was first qualified on; it names no hardware difference. What admission depends on is already checked by hardware and firmware properties: the platform device is the apple,agx-t6030 GPU node (also checked again by the PMP helpers), the machine is apple,t6030, the PMP supplier and its AGX bridge must be up, the boot loader's ADT export must hold the GPU regions and the four reserved UAT regions, and the loaded firmware TEXT must match a pinned build by size, GKTS marker and SHA-256. The board images come from hash-checked templates patched with the ADT's own performance states. The J514S and J516S load the same B0 image (986132e), so its identity does not depend on the board. Check the configuration's machine compatible on T6030 as on T6031 (apple,t6030 here; T6031 keeps its apple,j516c pin, whose board record reference words and measured layout are that machine's), drop the board helper, and list the B0 build once, unpinned. Every T6030 machine in the tree is a J514S or J516S, so nothing changes on today's hardware; a T6030 machine would now be refused only by a missing supplier, ADT export or unknown firmware, each with its own message. The maintained-handoff host test checks the single row. Credit: Eryk Wieliczko wrote the G15 generation and its admission; Jeppe Bylov measured the J514S B0 build. Fixes: 1633fb9 ("drm/asahi: g15: Add the UAPI glue and register the G15 generation") Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Blockers: 1.
The rest checks out. With HW row: J514S or J516S on this head with Assisted-by: LLM (Claude:Opus 5.5) |
|
The J514S/J516S board check ( |
admit() no longer asks for a J514S/J516S board on T6030: it checks the configuration's machine compatible first, as it already did on T6031, and then takes the PMP vote. The admit() model still stubbed glue::board() and expected the old ["board", "pmp"] call order, so the control failed: left: (Ok(()), ["machine", "pmp", "adt", ...]) right: (Ok(()), ["board", "pmp", "adt", ...]) Drop the board stub and its state, and expect ["machine", "pmp"] on the four T6030 rows. Add a T6030 row for a machine that is not a T6030: it must be refused with -ENODEV before any PMP vote. Two new admit() mutants keep that honest: one moves the machine check behind the PMP vote or display wait, one checks the machine on T6031 only. Both must fail the control. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Host-test blocker fixed in 1dc2531: g15-display-order-tests follows the machine check instead of the old board stub (T6030 rows expect machine then pmp), adds a T6030 Testing: |
Problem
Native G15 admission on the T6030 (M3 Pro) refused every machine that is not
apple,j514sorapple,j516s.asahi_g15_board()(drivers/gpu/drm/asahi/g15/glue.c:209-214 at 0abc2f3) is checked inadmit()(g15/boot.rs:466),asahi_g15_pmp_prepare()andasahi_g15_pmp_get(). The pinned B0 firmware build was also listed twice in g15/hw.rs, once per board, with each row pinned to its machine. The list is the set of boards the generation was first qualified on (1633fb9, "the boards the generation was qualified on"). It names no hardware difference.Change
Admission on T6030 now rests on the hardware and firmware properties it already checks:
apple,agx-t6030GPU node, and the PMP helpers check that node again.apple,t6030: the configuration's machine compatible, now checked first on T6030 as it already was on T6031.The board images come from the hash-checked templates, patched with the ADT's own performance states.
The J514S and J516S boot chains load the same B0 image: identical sizes, marker and digest, as measured in 986132e. That build is now listed once, as a T6030 build that names no board. The stub-firmware row is unchanged.
T6031 keeps its
apple,j516cpin. Its board record's reference words and measured layout are that machine's and not the J514C's, which is a hardware reason (g15/hw/t6031.rs:162).Every T6030 machine in the tree (t6030-j514s.dts, t6030-j516s.dts) is a J514S or J516S, so nothing changes on existing hardware. A machine is now refused only by a missing supplier, a missing ADT export or unknown firmware, and each of those has its own message.
The host tests follow the change:
Testing
ARCH=arm64 LLVM=1:make prepareandmake drivers/gpu/drm/asahi/build, andW=1on g15/glue.o gives 0 warnings. The module's 13 remaining rustc warnings are existingdead_codewarnings in g17/g16/mmu/regs; none is in the touched code.tools/asahi/g15-maintained-handoff-tests.py --mutations: actual passes, all mutants fail as intended.tools/asahi/g15-zero-words-tests.py --mutations: rc 0.tools/asahi/t6030-display-admission-tests.py --mutations: control passes, 8/8 mutants caught.tools/testing/selftests/drivers/gpu/asahi-g15/run.py: rc 0, Rust host suite 81 passed, 2 ignored.Still to run
CONFIG_DRM_ASAHI_G15. Expect "GPU firmware build: T6030 B0 RTKit-2419.140.12 (maintained 14.x handoff)" (before: the J514S or J516S row name), "M3: firmware identity accepted", and a render node. Then runvkmark --winsys headlessandglmark2-es2-drm --off-screen, expecting N/N pass and 0 device losses.Thanks to Eryk Wieliczko, who wrote the G15 generation and its admission, and to Jeppe Bylov, who measured the J514S B0 build.
Hardware rows (combined test kernel, 2026-11-20)
This change was booted in a combined test kernel: integration/aurora 0abc2f3 plus the open gate-sweep drafts plus this and the related drafts (7.3.0-aurora-hk2/pwr1/hk3). It ran once on each lab Mac (M1 Pro J316s, M2 J413, J616s, Neo J700) and was compared against the production kernel on the same Mac, using the same silent row script:
M1 Pro, M2 and J616s matched production on every row, apart from the new counters and lines the drafts add. The Neo row found the old-DTB display regression that #2358's follow-up commit fixes.
This PR: No lab Mac has a T6030; boot-clean regression rows only.
Assisted-by: LLM (Claude:Opus 5.5)