Repository navigation
drm/asahi: g17: read M4 Pro 25G83 pstate telemetry - #3549
Conversation
The M4 Pro (T6040) 25G83 firmware emits the same statistics records as the M4 Max (T6041) 25G83 build: performance state reports in tags 0x19 and 0x1b beside the 8 ms utilisation records (tag 0x13). It was left on Protocol::NONE only because it had not been measured, so pstate, the requested and achieved frequency and busy time read unsupported on the M4 Pro. Move PSTATE_8MS into V25G83 itself, drop the now redundant T6041 override, and keep 25F84 and 26B123 on NONE until measured.
There was a problem hiding this comment.
Verdict: MERGE at 343a17b5
Blockers: none (wait for the 20 queued CI checks at 343a17b5 to finish green before merging).
Checked:
drivers/gpu/drm/asahi/g17/fw/variant.rs: movestelemetry_protocol: Protocol::PSTATE_8MSintoV25G83and explicitly overridestelemetry_protocol: Protocol::NONEonV25F84(whichV26B123inherits via..V25F84), so unmeasured 25F84 and 26B123 builds remain onNONE.drivers/gpu/drm/asahi/hw/t6041.rs: drops the now-redundanttelemetry_protocol: PSTATE_8MSoverride onBUILD_25G83(inherits from..fw::variant::V25G83, leaving T6041 behavior unchanged).drivers/gpu/drm/asahi/g17/{stats.rs,telemetry.rs}anddrivers/gpu/drm/asahi/sysfs.c: comment updates match the new protocol assignment accurately.- Verified on J616s M4 Pro (T6040, 25G83) at byte-identical
44ec03a4:pstate_status valid,pstate 10under load,busy_nsintegrates17,786 ms / 17,879 ms(99.5%), 0 CTS failures,glmark2 23116,gpubench 41/41, plus251/251g17 host tests at343a17b5. - Checked for Apple material, tool attribution, and private serials: clean;
MERGEABLEonmain;Tested:andRisk: two-way doorpresent.
Evidence
- Head:
343a17b5(base: main,mergeable: MERGEABLE,+14/-15across 5 files). - Non-blocking note:
Tested:references byte-identical44ec03a4rather than the literal head SHA343a17b5; ifpr-readinesschecks for the literal head SHA, mentioning343a17b5alongside44ec03a4will satisfy the check. - Hosted CI at
343a17b5is currently queued.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train. App approved, CI green, J616s 25G83 row at head (the change only applies to the 25G83 firmware layout). Merges in 1 h under the 6-point rule unless you object. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Resolve g17/fw/variant.rs: keep main's objects_after_release (true on V25G83 from #3544, false on V25F84) and this branch's telemetry_protocol (PSTATE_8MS on V25G83, NONE on V25F84). Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Forward-merged |
There was a problem hiding this comment.
Verdict: MERGE at 593732a
Checked: Compared the forward merge to both parents. V25G83 retains objects_after_release from main and PSTATE_8MS from this PR. V25F84 explicitly disables both and V26B123 inherits the exclusions. T6041 retains its TA mode override and inherits the same telemetry protocol as before. The five-file PR delta preserves unrelated firmware variants.
Testing: Prior J616s telemetry and CTS results cover the telemetry change. Hosted checks on this merged head remain pending.
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What: read the M4 Pro (T6040) 25G83 GPU telemetry. The M4 Pro's 25G83 firmware emits the same statistics records as the M4 Max (T6041) 25G83 build: performance state reports in tags 0x19 and 0x1b beside the 8 ms utilisation records (tag 0x13).
V25G83was left onProtocol::NONEonly because T6040 "had not been measured", soagx_statsreadpstate, frequency andbusy_nsasunsupportedon the M4 Pro. This movesPSTATE_8MSintoV25G83itself and drops the now redundant T6041 override (T6041 behaviour is unchanged).V25F84andV26B123stay onNONEuntil measured. Part of the GPU-UNGATE chip-gate audit (follow-up to #3463 / #3544).Tested: J616s M4 Pro (T6040, 25G83) one-shot at 44ec03a4 (byte-identical to this head for the touched files): pstate valid, busy_ns integrates 17,786 ms over a 17,879 ms 100%-load window, 0 CTS failures, 0 GPU faults, 0 oops, default restored.
Details
/sys/kernel/debug/aurora-g17/firmware_reportsalready counted tag 0x19 x180 and 0x1b x172 after boot, but none were decoded. One 0x19 interval was 0x2854e569 - 0x2851e5d0 = 196,505 ticks = 8.2 ms at 24 MHz, the T6041 25G83 cadence.agx_stats): idlepstate_status valid,pstate 0,busy_nscounting. Under a 12 s full-loadgpubench compute.heavysampled every 0.5 s: 24/24 samplespstate_status valid,pstate 10,util_device_percent 100.busy_nsdelta 17,786 ms over 17,879 ms wall (99.5%), which also checks the 8 ms utilisation period (a wrong period would integrate 2x off). 2,392 0x19 / 2,377 0x1b / 2,245 0x13 records over the boot, with nearly all admitted.tools/asahi/run-host-tests.py --only g17: 251/251 at this head.Not yet:
achieved_frequency_hzstill readsunsupportedon the M4 Pro. The T6040 performance table (hw/t6040.rsPERF.states_a) is all zero, so no state has a known frequency. That is a separate data gap: the state->OPP map comes from the M4 Pro's device tree/IPSW tables.Risk: two-way door. It only changes host-side decoding of records the firmware already sends; T6040 25G83 only. Revert = set
V25G83back toNONEand restore the T6041 override.Evidence: traces/gpu/20261128-gpu-ungate/j616s-k5/ (lab store).