Repository navigation
kboot: give every T8122 board the M3 graphics defaults, not only the Airs - #648
Conversation
…Airs Since #604 (0ed3c1e) the full T8122 recipe (display, GPU, stand-in power model, leakage fuse) goes in by default only on a board list (J613, J615); every other T8122 board, the J504 14" MacBook Pro included, gets the display switch only, and its GPU node stays disabled ("GPU: not armed (no chosen.asahi,t8122-gpu=1)"). The list stood in for "the stand-in power model was run on these boards", but the inputs the GPU setup acts on are this Mac's own on every T8122: its ADT perf states and power values, its leakage fuse, its powered identity (G15G, one cluster of 8 or 10 cores) and, on 27.2, its ADT start values (#455). The J504's 27.2 ADT describes the same sgx and gfx-asc properties as the J613's, and the J504 loads the same G15G images. Every check behind the switch still fails closed. Drop the board list: every T8122 board gets the one recipe. chosen.asahi,t8122-gpu=0, chosen.asahi,t8122-dcp=0 and chosen.asahi,m3-defaults=0 still turn it off. Link: #583 Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 66ee63cffea2
Blockers:
- Hardware row at
66ee63cffea2: no hardware row at this head yet (J504 default boot +chosen.asahi,t8122-gpu=0opt-out, or the closest equivalent T8122 row stating what it stands in for). Code, docs and host tests are ready; once the row lands (and the stale failedpr-textrun is cleared if needed bypr-readiness), this can merge without a full re-review.
Checked: no Apple material, removes the J613/J615 board list gate insrc/kboot.c(m3_default_boards[]) so every T8122 board uses the same ADT/fuse/powered-identity-gated recipe, opt-out switches (chosen.asahi,t8122-gpu=0,asahi,t8122-dcp=0,asahi,m3-defaults=0) preserved, no AI attribution, DCO present,build/ESP stage 2 vital size/gcc/Pytest(all 4 matrices)/policy/latestpr-textgreen
Evidence
- Read the full diff across
src/kboot.c,docs/t8122-gpu-diagnostics.md,tests/python/test_m3_defaults_optout.py, andtests/python/test_m3_graphics_defaults.pyat66ee63cffea2. - Confirmed
m3_default_boards[]collapses the two T8122 entries to a single{"apple,t8122", NULL, m3_air_switches, true, m3_air_graphics}entry, removingm3_air_boardsandm3_t8122_display_switchescleanly without affecting T6030/T6031/T6034 rows or Air behaviour. - Confirmed all 4 Python test matrices,
build,ESP stage 2 vital size,selftest,clang-macos,fedora,alarm,nix,policy, and the re-runpr-text(46833496644) passed;pr-readinessstill flags the earlier failedpr-textrun (46829637552) alongside the missing hardware row at66ee63cf.
|
Hardware row at
The |
satchlj
left a comment
There was a problem hiding this comment.
Verdict: MERGE
Blockers: none (the earlier FINISH, then merge blocker is satisfied by the exact-head J615 T8122 hardware row posted at 66ee63cf)
Checked:
- Verified the exact-head hardware row at
66ee63cffea237933c582ac15332931cb186c2d6on J615 (M3 MacBook Air, T8122, 27.2), standing in for the single board-list-freeapple,t8122entry: guarded ESP Stage 2 one-shot (1.0.0b18-86-g66ee63cf), all four switches armed +asahi,t8122-gpu-powered-identity,gpu@292400000okay,Apple GFX 26B123 G15G,[drm] Initialized aurora 1.0.0,renderD128,glmark2 6865, 0 failed units, display/DCP/Wi-Fi working, and SHA-verified clean restore. - Re-confirmed
src/kboot.c,docs/t8122-gpu-diagnostics.md, and both test suites (test_m3_defaults_optout.pycoveringchosen.asahi,t8122-gpu=0on J504, andtest_m3_graphics_defaults.py), plus all CI checks green including the re-runpr-text(SUCCESS).
Evidence
- Exact head:
66ee63cffea237933c582ac15332931cb186c2d6 - Hardware receipt: Comment on this PR at
66ee63cf(J615 closest T8122 stand-in on the unifiedapple,t8122path, with J504chosen.asahi,t8122-gpu=0opt-out covered bytest_a_j504_owner_can_turn_its_gpu_off). - CI note: All 24 build/test/policy checks and the latest
pr-textrun (143296115259) areSUCCESS;pr-readinesshad not yet re-run since the J615 row comment (adding an explicitPASSword on a66ee63cfrow line will also let the automated check clearneeds-hw-row).
…J504 and M3 Max laptops as 7.2 did (#4519) On 7.2, m1n1-aurora turned the GPU on by default on every M3 laptop. The 7.3 aura pin leaves the J504, J514C, J514M and J516M display-only, so they render in software. Carry two patches on the pin: - aurora-silicon/aura#648, backported to the pin (which lacks #604): the J504 gets the M3 Air graphics recipe. - Ours: the J514C gets t6031-gpu and the J514M/J516M get t6034-gpu by default, beside their display defaults, as on 7.2 (omacom/m1n1#31, #32, #42). The J516C and the Airs already default on with the same stand-ins.
Fixes the J504 half of #583: on a 14" M3 MacBook Pro (J504) aura leaves the GPU node disabled by default ("GPU: not armed (no chosen.asahi,t8122-gpu=1)"), so Linux renders in software.
Why it happens.
dt_set_m3_defaults()gives the full T8122 recipe (asahi,t8122-dcp,-gpu,-gpu-power-standin,-gpu-fuse-leakage) only to a board list, J613/J615 (m3_air_boards, from 0ed3c1e in #604). Any other T8122 board gets the display switch alone. In upstream aura the J504 never had the GPU default: b13 and b17 tags both lack it. The reporter's b13 armed it because Omarchy's b13 build carried a fork patch (omacom/m1n1#25, ported here as b975e58 and taken back by 0ed3c1e).The change. Drop the board list, so every T8122 board gets the one recipe. The list stood for "the stand-in power model was run on these boards". But the values the GPU setup acts on come from the Mac itself on every T8122:
The J504's 27.2 ADT (public ADT collection render) describes the same
sgxandgfx-ascproperties as the J613's, with the same lengths, and the J504 loads the same G15G images as the Airs. Every check behind the switch still fails closed and leaves the boot framebuffer with a disabled GPU node.chosen.asahi,t8122-gpu=0,chosen.asahi,t8122-dcp=0andchosen.asahi,m3-defaults=0still turn it off.This also covers the J433/J434 iMacs (T8122). They have the same checks, and no lab row exists for them.
Tested:
pytest tests/python/test_m3_defaults_optout.py tests/python/test_m3_graphics_defaults.py: 262 passed, 8 skipped. The J504/J433/unknown-T8122 cases now expect the four-switch recipe, and=0gives the reservation-only path. Without the test edits, the old J504 display-only expectations fail as they should. No J504 boot on this head yet. Owner row: default config with nom1n1.conf, Stage 2 GPU lines ("enabled (27.2 firmware, calibrated from this Mac's ADT)"),/soc/gpu@292400000okay,renderD128, vkcube/glmark2 with no GPU faults, plus onechosen.asahi,t8122-gpu=0boot showing the GPU off.Risk: two-way · J504, J433/J434 (T8122). turns on the GPU power-on, identity probe and 27.2 start by default on T8122 boards other than the Airs (J504, iMacs). A failed check falls back to the boot framebuffer, as on the Airs today. The Airs' recipe is unchanged.
Until this lands, a J504 owner can get the same result with
chosen.asahi,t8122-gpu=1,chosen.asahi,t8122-gpu-power-standin=1andchosen.asahi,t8122-gpu-fuse-leakage=1in/etc/m1n1.conf.