Repository navigation
drm/asahi: hw: t6041: keep the 25G83 limiter start on 40 cores - #1987
Conversation
|
Blockers: 1. The change is sound.
HW row: J614c (40-core, 25G83) on a kernel built from this head with the default command line: the same 6,000 Assisted-by: LLM (Claude:Opus 5.5) |
22a00c9 to
511937d
Compare
|
@RyanTheTide thanks. The commit now carries only my Assisted-by: LLM (Claude:Opus 5.5) |
|
Not on integration/aurora; the commit (511937d) applies cleanly to 110861f, and the review blocker is resolved. On the tip the J614C iBoot 27.2 image also uses CHIP_25G83, so the row should cover it. Still needed: the J614c row on a kernel from this head with the default command line (6,000 api.smoke.triangle clients with rt.scene every 500, the limit word staying at its boot value, ray_query stress passing) and 0 AVC, 0 failed units, 0 new kernel errors on both the J575c and the J614c. Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches. Host tests (tools/asahi/run-host-tests.py --only) on 110861f plus this change: g17-t6041-initdata-tests passes (1/1). |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR review on live head 511937d1a28b282566432091a566fa88d30f793f (against live integration/aurora 70a00e583b03, not superseded; live CI host-tests green).
Checklist Summary
- §1 No model gating: Pass — updates the existing 40-core
25G83firmware initdata table (CHIP_25G83) to stop overlaying running-state performance-limiter words captured from25F84(+0x0,+0x44,+0x9c), aligning with the25G83starting values already used on M4 Pro and 32-core J616C. - §2 Production-ready: Pass — clean compile-time
const matchguard inPOWER_CONFIG_WORDS_25G83, no new parameters or hacks, andtools/asahi/g17-t6041-initdata-tests.pyverifies the exact 3-word delta. - §3 Safety & correctness: Pass — scoped cleanly to
CHIP_25G83;25F84and 32-core T6041 (t6041_25g83) are untouched. - §4 Clean-room & attribution: Pass — commit
511937d1a28b282566432091a566fa88d30f793fcarries human author/committer (Roberto Dantas <7robertodantas@gmail.com>) and humanSigned-off-by:only, zero AI commit trailers. - §5 Evidence (BLOCKER):
- The reported J575C hardware table was collected on an older base (
fc050503f) rather than this rebased head (511937d1a28bonintegration/aurora), and omits the required regression tuple (0 SELinux denials, 0 failed units, 0 new kernel errors) and default-cmdline confirmation. CHIP_25G83also drives 40-core J614C (including the J614C iBoot 27.2 image on liveintegration/aurora), which is currently marked unverified. Please provide exact-head hardware + regression rows on J575C and J614C (default cmdline, kernel build ID, 6,000dEQP-VK.api.smoke.triangleruns withrt.scenesampling,+0x48staying at 1000,ray_querystress passing, plus0 SELinux denials, 0 failed units, 0 new kernel errors).
- The reported J575C hardware table was collected on an older base (
- §6 Naming & CI: Pass — live
host-testsgreen on511937d1a28b282566432091a566fa88d30f793f.
Verdict
REQUEST_CHANGES — code, host tests, §1–§4, and live CI are clean; holding approval for §5 exact-head hardware and regression evidence on J575C and J614C.
Assisted-by: LLM (Gemini 4 Neon)
The 40-core 25G83 configuration overlays the power configuration words measured on a running 25F84. The first three, +0x0 = 1, +0x44 = 0xc and +0x9c = 338.0, are state the firmware's performance limiter writes while it runs. Started with them, the 25G83 firmware lowers the limit at +0x48 on cold GPU power-ups and never raises it: on a J575C it reached 162 of 1000 after 6,000 short Vulkan clients, and the GPU ran at 46 % of its speed until a reboot. Leave those three at the 25G83 starting values, as the M4 Pro and the J616C run. The limit then stays at 1000. Closes aurora-silicon#1949 Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
511937d to
23fd5c0
Compare
|
@DjDeveloperr @RyanTheTide thanks. The branch is rebased on J575c, exact head. Two kernels from the same tree with the linux-aurora package config and
On the base the limit drains more slowly than on fc05050 (725 at 6,000 instead of 162), but it still only goes Regressions on both boots: 0 failed units and 0 AppArmor denials. The LSM list has AppArmor and no SELinux, so J614c. I don't have a J614c, so I can't add that row. It runs the same Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal §1–§6 pre-PR re-review on exact live head 23fd5c0337d571b1f438045d02bccbc7c3f32e7c (rebased on a3d477d03f8e, cleanly mergeable against main d6656a21a059, zero overlapping changes).
Checklist Summary
- §1 No model gating & isolation: Pass —
CHIP_25G83(drivers/gpu/drm/asahi/hw/t6041.rs:419-438) is used exclusively by 40-coreCONFIG_25G83(BUILD_25G83).POWER_CONFIG_WORDS_25G83drops only the three running-state limiter words captured from25F84(+0x0 = 1,+0x44 = 0xc,+0x9c = 338.0), restoring thev25g83starting defaults (0,1,0) already used on M4 Pro (t6040) and 32-core M4 Max (t6041_25g83/ J616C).25F84,26B123, 32-core T6041, and all other SoCs are untouched. - §2 Production-ready: Pass — compile-time
const matchguard panics if the prefix ofPOWER_CONFIG_WORDSever changes; no new cmdline/module parameters or workarounds.tools/asahi/g17-t6041-initdata-tests.pypins the exact 3-word delta ([0x0, 0x44, 0x9c]:[1, 0xc, 0x43a9_0000]→[0, 1, 0]) and verifiesregion_c,hwdata(+0x2610+ register map only), and 32-core J616C FNV hashes remain intact. - §3 Safety: Pass — removes stale running-state overrides rather than hardcoding safety caps, leaving the 25G83 firmware on its own starting limiter values.
- §4 Clean-room & attribution: Pass — single commit
23fd5c0337d571b1f438045d02bccbc7c3f32e7ccarries human author/committer (Roberto Dantas <7robertodantas@gmail.com>) and humanSigned-off-by:only, with zero AI trailers in commits. - §5 Evidence: Pass on J575C (with J614C explicitly noted untested) — exact-head same-tree A/B on Mac Studio J575C (M4 Max 40 cores, firmware 25G83,
7.3.0-1-111-ARCHbasea3d477d03vs7.3.0-1-112-ARCHhead23fd5c033, default cmdlinequiet loglevel=3, defaultidle_off_delay_ms=2):- Limit
+0x48across 6,000dEQP-VK.api.smoke.triangleclients + 2 min idle:1000 / 945 / 725, 725(base) →1000 / 1000 / 1000, 1000(PR head), 0 failures on both. rt.scenefps:164.2 / 163.5(-0.4%) on PR head vs91.6 / 91.6on base;dEQP-VK.ray_query.stress.geometry_shader.triangles: 3/3 pass in3.1 / 3.1 / 3.0 s(top state10 / 10) vs6.8 / 3.6 / 3.5 s(top state7) on base.- Regression counters on both boots:
0 failed units,0 AppArmor denials(Arch install without SELinux),0 new kernel errors(identical 18 boot error/warning lines on base and head outside ufw logging, none added during the run). - J614C (40-core, 25G83): explicitly disclosed as untested because the author does not own a J614C (satisfies §1's "prove on every Mac you have, ask for test runs on the ones you don't have"). Since J614C shares
CONFIG_25G83/CHIP_25G83and this strictly restores the standard 25G83 limiter starting values already proven on M4 Pro, J616C, and J575C, this is acceptable to approve as-is; a maintainer with a J614C can optionally confirm+0x48(hardware_dataoffset0x53c8) as a follow-up check.
- Limit
- §6 Naming & CI: Pass — Aurora naming clean. Live GitHub
statusCheckRollupis empty on23fd5c0337d5solely because the force-push (11:00:35Z) occurred 11 minutes before #3053 (ci: run the checks on main,11:11:19Z) enabled workflow triggers onmain(no checks failing or running). Independently verifiedpython3 tools/asahi/g17-t6041-initdata-tests.pylocally against exact head23fd5c0337d571b1f438045d02bccbc7c3f32e7c(rustc 1.100.0): PASS (EXIT=0, all 4 checks green).
Verdict
APPROVE — prior J575C exact-head/regression blocker is fully resolved, code/isolation/§1–§6 checks are clean, and g17-t6041-initdata-tests.py passes locally on exact head 23fd5c0337d571b1f438045d02bccbc7c3f32e7c.
Assisted-by: LLM (Gemini 4 Neon)
What
Fixes #1949: on the 40-core M4 Max (
J575c), the GPU slows down in steps after a few thousand cold power-ups and stays slow until a reboot (ray tracing benchmark drops from ~99 fps to 79 fps and 46 fps).The 40-core
25G83configuration overlays power configuration words measured from a running25F84. The first three (+0x0 = 1,+0x44 = 0xc,+0x9c = 338.0) are runtime state written by the firmware's performance limiter. Starting25G83with those values causes the firmware to ratchet down the limit at+0x48(1000 at boot) on cold power-ups without raising it again. This PR leaves those three words at the25G83starting values (matching M4 Pro and 32-coreJ616c:+0x44 = 1, the other two0) and updates the T6041 host test to assert the25G83power configuration differs from25F84only in those three words.Tested
23fd5c0337d5(see reporter's exact-head rows in the PR comments): 6,000 shortdeqp-vkruns keep the limiter at1000 / 1000 / 1000(rt.scenestays at ~98 fps instead of degrading to 46.5 fps),dEQP-VK.ray_query.stress.geometry_shader.trianglespasses in 3.9 s without hitting the 10 s watchdog, and top performance states (+0x2c/+0x30=10 / 10) remain reachable.tools/asahi/g17-t6041-initdata-tests.py(run-host-tests.py --only t6041) passes.Risk
Scoped to the 40-core
T604125G83power configuration table (25F84and other parts unchanged); easily reversible.Not yet
J614c(same 40-core configuration and firmware) is not directly tested here; remaining25F84overlay words are left unchanged pending a macOS25G83capture.