Repository navigation
Conversation
|
Review at 25ab384 (non-author, draft). No blocker found in the two commits of this PR (fe5e85c, 25ab384); it stays blocked on #1173 and #1650 underneath it, and the core-type key of the new status config is the one thing I would want settled before it leaves draft. What I checked:
Before this is ready:
Small points, not blocking:
Still to run, from the description: the G17S and G17C rows on this head (J716s, K116s, J716c, K114c: 27.2 boots as on #1650/#2185, 26A428 still identified on 27.0), and the G17S 27.2 status-config row that decides the first point above. Assisted-by: LLM (Claude:Opus 5.5) |
|
Rebased onto
Re-verified on J775D (own-base A/B row: kit Keeping this PR as a draft pending the two open questions on commit 2:
|
|
@funkzy checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
On the 27.2 (26B123) firmware, build the status config word by word from the laid-out policy across all M5 core types (G17S, G17C, G17D) instead of relocating the 26A428 word table and appending M5_26B123_STATUS_CONFIG_INSERTED. M5_26B123_STATUS_CONFIG_WORDS populates the two GPU power-controller records, the two byte-packed records, the controller block, and the boost block directly from the laid-out policy (75 words), four words looked up at compile time from M5_25G76_STATUS_CONFIG_WORDS, and one value (900, absent from the J775D ADT GPU node) validated compatible with 26B123 on the J775D. M5StatusConfigMap::policy_derived skips the 25G76 band-relocation pass for 26B123 while keeping M5_26B123_STATUS_CONFIG_BANDS for relocating link and submission-history offsets, and removes M5_26B123_STATUS_CONFIG_INSERTED. M5_26B123_BUILD_WORDS also writes the GPU's core slots (clusters times cores per cluster from ID registers) to the HwData USC count field (via shared constant M5_HW_USC_COUNT, replacing the enabled count from set_m5_enabled_cores) and to the policy USC field, and copies the temperature-sensor channel masks into the policy state block followed by an enable flag (see M5_26B123_BUILD_WORDS). Boards without controller defaults fail explicitly rather than emitting an empty policy-derived status config. Every M5 board on 26A428 (J714, J716C, J775D) and common26 (J813) serializes byte-for-byte as before. On 27.2 (26B123/26B8125), G17S and G17C change 86 status-config words to match the policy-derived encoder and require G17S/G17C hardware validation (including binned-part USC slot count and the remaining literal status-config word) before merge. asahi_g17_m5_build_words verifies 26A428 stays unset, 26B123 populates HwData/policy/status-config words while preserving the link tail, and out-of-range core slot counts are rejected. Signed-off-by: Jeff Queisser <[email protected]>
Booted through the 27.2 (26B123) stub, the M5 Ultra's GPU is refused at probe: the only G17D build the driver identifies is 27.0's (26A428), so the firmware found in `fw-text` measures as unknown and the desktop comes up without a GPU. Admit the 27.2 G17D build on the 26B123 InitData layouts, as the M5 Pro's 26B123 build already is. The digest and record offsets match the ones listed for the G17D in an earlier revision of linux#1173's description. They are validated compatible with the 27.2 firmware on the M5 Ultra: its loaded image normalizes to that digest on every boot. m5_ultra_identifies_each_build checks that each of the two G17D builds is admitted only by its own digest and its own record offsets, and that each names the layouts of its firmware. Signed-off-by: Jeff Queisser <[email protected]>
|
Converged the 26B123 status-config encoder into a single build-wide policy-derived encoder across all M5 core types (removing the core-type gate and Re-verified on J775D (kit Keeping this PR as a draft until G17S ( |
What: Converge the 27.2 (26B123) M5 status-config encoder into a single build-wide policy-derived encoder across all M5 core types (G17S, G17C, G17D — removing the core-type key and
M5_26B123_STATUS_CONFIG_INSERTED), and admit the 27.2 (26B123) G17D GPU firmware build inCONFIG_ULTRAso the Mac Studio (M5 Ultra, J775D) brings up its GPU under the 27.2 boot stub.Tested: J775D (Mac Studio, M5 Ultra) at
d7cf90bd9a9eon baremain(8c6992db4b9f) under published Auraaura-main-7bf44a63on both 27.2 and 27.0 stubs: 27.2 admits26B123 for T6050, primary and secondary InitData acknowledged,/dev/dri/renderD128active,gpubench-vk render.light d814,863 submits ok (0 GPU errors/faults/recoveries); 27.0 admits26A428identically (gpubench-vk render.light d814,939 submits ok, 0 GPU errors); KUnit 92 suites, 480/484 pass, 0 fail, 4 skip (includingasahi_g17_m5_build_wordsandm5_ultra_identifies_each_build).Risk: Two-way door · affects all M5 GPUs on 27.2 (
26B123/26B8125: G17S, G17C, G17D); every M5 board on 27.0 (26A428) and common26 (J813) serializes byte-for-byte identically.Not yet: G17S (
J714/J716s/K116s) and G17C (J716c/K114c) 27.2 convergence rows atd7cf90bd9a9econfirming firmware accepts the unified policy-derived status config (86 words change on G17S/G17C on 27.2), including binned-part USC slot count (clusters * cores_per_clustervs enabled count) and the literal900status-config word; stays draft until G17S/G17C 27.2 rows pass.Details
Why this shape
M5_26B123_STATUS_CONFIG_INSERTED, while the earlier draft of this PR added a second per-core-type policy-derived table keyed on G17D. Keeping two encoders for the same 26B123 firmware build left a second hand-maintained copy of policy words and an unnecessary core-type gate.M5PolicyMap::core_words(G17D only) would keepM5_26B123_STATUS_CONFIG_INSERTEDalive for G17S/G17C and split one firmware build across two status-config paths.M5_26B123_STATUS_CONFIG_INSERTEDwith one build-wideM5_26B123_BUILD_WORDS/M5_26B123_STATUS_CONFIG_WORDStable onM5_26B123_POLICY(policy_derived: true, skipped forcommon26and26A428), building all 80 status-config words from the laid-out policy (75 words), four compile-time lookups fromM5_25G76_STATUS_CONFIG_WORDS, and one literal900validated compatible with 26B123 on J775D. The USC count written to HwData (via sharedM5_HW_USC_COUNT) and the policy USC field uses the GPU's core slot count (num_clusters * num_cores), and boards without controller defaults fail explicitly (EINVAL). Commit 2 admits the 27.2 G17DBuildinCONFIG_ULTRAonV26B123_M5layouts after the encoder is in place so bisecting never boots 26B123 G17D without it.build_words: None,policy_derived: false). G17S and G17C on 27.2 (26B123/26B8125) switch to the same policy-derived encoder (86 words change on host diff) and need hardware rows before this comes out of draft.Change
Two commits on
main(8c6992db4b9f):44ecaa554b1e—drm/asahi: g17: m5: build 26B123 status config from policy across M5: unify 26B123 status-config encoding intoM5BuildWords/encode_m5_build_words()for all non-common26 M5 boards, removeM5_26B123_STATUS_CONFIG_INSERTED, guard missing controller defaults, and add KUnit suiteasahi_g17_m5_build_words.d7cf90bd9a9e—drm/asahi: t6050: admit M5 Ultra 26B123 (27.2) G17D firmware: add the 26B123BuildtoCONFIG_ULTRAonV26B123_M5layouts, foldCONFIG_ULTRAintom5_builds_name_their_layouts(), and verify mutual digest and record-offset discrimination inm5_ultra_identifies_each_build.Evidence
Testing
Own-base A/B row on J775D (Mac Studio, M5 Ultra): kit
pr2866-4(windowpr2866r4@20261126-1020,pr-rowsuperseded cleanly after Commit 1 message-only wording polish) is baremain8c6992db4b9fplus these two commits (44ecaa554b1e,d7cf90bd9a9e, no other PRs carried), compared against baseline kitpr2866-4b(windowpr2866r4@20261126-1020), baremain8c6992db4b9falone. All three arms ran one-shot with a read-only root on the default J775D command line under published Auraaura-main-7bf44a63(ALARM has no SELinux):pr2866-272(kit pr2866-4, 27.2 stub):BOOT-OK(58 s),GPU firmware build: 26B123 for T6050, primary and secondary InitData acknowledged,/dev/dri/renderD128active,card0-DP-1andcard0-HDMI-A-1connected,gpubench-vk render.light d814,863 submitsstatus=ok(33.66 us/submit), 0 GPU errors/faults/recoveries, 2 baseline read-only failed units (0 new).pr2866-270(kit pr2866-4, 27.0 stub):BOOT-OK(60 s),26A428firmware admitted identically,/dev/dri/renderD128active,gpubench-vk render.light d814,939 submitsstatus=ok(33.43 us/submit), 0 GPU errors/faults/recoveries, 2 baseline read-only failed units (0 new).pr2866-base(kit pr2866-4b, 27.2 stub):BOOT-OK(61 s), confirmed baselinemainrefuses the 27.2 G17D GPU firmware (Unsupported GPU firmware image, version 27.2).kunit-vz): 92 suites; 480/484 pass, 0 fail, 4 skip (includingasahi_g17_m5_build_wordsandasahi_fwid/m5_ultra_identifies_each_build).