Skip to content

kboot: give every T8122 board the M3 graphics defaults, not only the Airs - #648

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/583-t8122-gpu-default-every-board
Dec 2, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/583-t8122-gpu-default-every-board

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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 sgx and gfx-asc properties 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=0 and chosen.asahi,m3-defaults=0 still 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 =0 gives 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 no m1n1.conf, Stage 2 GPU lines ("enabled (27.2 firmware, calibrated from this Mac's ADT)"), /soc/gpu@292400000 okay, renderD128, vkcube/glmark2 with no GPU faults, plus one chosen.asahi,t8122-gpu=0 boot 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=1 and chosen.asahi,t8122-gpu-fuse-leakage=1 in /etc/m1n1.conf.

…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>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 2, 2026 07:04
@github-actions github-actions Bot added blast:m3 Macs affected, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 66ee63cf: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no review verdict FINISH at 66ee63cf
Hardware row at head no no line with the head SHA 66ee63cf, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok 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=1 and chosen.asahi,t8122-gpu-fuse-leakage=1 in /etc/m1n1.conf.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks required sections (bot) labels Dec 2, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 66ee63cffea2
Blockers:

  1. Hardware row at 66ee63cffea2: no hardware row at this head yet (J504 default boot + chosen.asahi,t8122-gpu=0 opt-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 failed pr-text run is cleared if needed by pr-readiness), this can merge without a full re-review.
    Checked: no Apple material, removes the J613/J615 board list gate in src/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/latest pr-text green
Evidence
  • Read the full diff across src/kboot.c, docs/t8122-gpu-diagnostics.md, tests/python/test_m3_defaults_optout.py, and tests/python/test_m3_graphics_defaults.py at 66ee63cffea2.
  • Confirmed m3_default_boards[] collapses the two T8122 entries to a single {"apple,t8122", NULL, m3_air_switches, true, m3_air_graphics} entry, removing m3_air_boards and m3_t8122_display_switches cleanly 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-run pr-text (46833496644) passed; pr-readiness still flags the earlier failed pr-text run (46829637552) alongside the missing hardware row at 66ee63cf.

@github-actions github-actions Bot added the changes-requested A reviewer requested changes (bot) label Dec 2, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Hardware row at 66ee63cf, on a J615 (M3 MacBook Air, T8122, 27.2), the closest T8122 Mac we have to the J504. It stands in for the path #648 changes: the J615 now gets the T8122 recipe from the single apple,t8122 entry, with no board list, the same entry a J504 takes. One guarded ESP Stage 2 one-shot (aura-try). The candidate was this head's Stage 2 (local build, 1.0.0b18-86-g66ee63cf) swapped into the Mac's saved Stage 2 (same DTB, U-Boot and kernel). No Stage 1, NVRAM or startup-disk change.

  • Baseline (saved b18): /chosen has asahi,t8122-dcp, -gpu, -gpu-power-standin, -gpu-fuse-leakage = 1; gpu@292400000 okay, renderD128, glmark2 6959 on Apple M3 (G15G C0).
  • Trial (this head): the same four switches = 1, plus asahi,t8122-gpu-powered-identity; gpu@292400000 okay; GPU firmware build: Apple GFX 26B123 G15G, [drm] Initialized aurora 1.0.0, renderD128; glmark2 6865 on Apple M3 (G15G C0). 0 failed units; panel connected; 2/2 DCP bound; Wi-Fi connected.
  • Differences: the feature rows differ only in the Stage 2 version, plus one brcmfmac Wi-Fi ring warning in the trial's kernel log. No GPU line differs.
  • Restore: the saved Stage 2 is unchanged (sha checked), saved GRUB entry, Enforcing, 0 failed units, no trial marker left.

The chosen.asahi,t8122-gpu=0 opt-out is covered by test_a_j504_owner_can_turn_its_gpu_off (reservation-only path). A J504 default boot from its owner is still welcome as confirmation on that board.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 66ee63cffea237933c582ac15332931cb186c2d6 on J615 (M3 MacBook Air, T8122, 27.2), standing in for the single board-list-free apple,t8122 entry: guarded ESP Stage 2 one-shot (1.0.0b18-86-g66ee63cf), all four switches armed + asahi,t8122-gpu-powered-identity, gpu@292400000 okay, 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.py covering chosen.asahi,t8122-gpu=0 on J504, and test_m3_graphics_defaults.py), plus all CI checks green including the re-run pr-text (SUCCESS).
Evidence
  • Exact head: 66ee63cffea237933c582ac15332931cb186c2d6
  • Hardware receipt: Comment on this PR at 66ee63cf (J615 closest T8122 stand-in on the unified apple,t8122 path, with J504 chosen.asahi,t8122-gpu=0 opt-out covered by test_a_j504_owner_can_turn_its_gpu_off).
  • CI note: All 24 build/test/policy checks and the latest pr-text run (143296115259) are SUCCESS; pr-readiness had not yet re-run since the J615 row comment (adding an explicit PASS word on a 66ee63cf row line will also let the automated check clear needs-hw-row).

@RyanTheTide
RyanTheTide merged commit 43d363c into main Dec 2, 2026
28 of 29 checks passed
@RyanTheTide
RyanTheTide deleted the fix/583-t8122-gpu-default-every-board branch December 2, 2026 10:28
omarchy-pkgs-merge Bot pushed a commit to omacom/omarchy-pkgs that referenced this pull request Dec 2, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m3 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants