Repository navigation
Revert "drm/asahi: let the G14 27.2 GPU use its full performance-state range" - #3091
Conversation
…e range" This reverts the merge of #3075 (1b09b76). With all three Globals state selectors at the board's ceiling, the M2 mini's GPU runs up to the 944 mV operating point, and the G14 firmware 27.2 then hangs under sustained load. Both a native GL render (fragment never retired) and a deep compute queue (commands fetched but never retired) time out with no MMU fault and no firmware timeout event, and the GPU is lost for every client. The same kernel with +0x98 back at 100 ran the gpubench GL plan five times in a row with every case passing and no timeout. Its rail never went above 600 mV. The rows that justified #3075 (piglit and Geekbench 6) did not reach these hangs. Restore the cap until the firmware's behaviour at the higher states is understood. Signed-off-by: Ryan Murray <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Source review at eea5439e: no blockers for the revert. Its reverse patch ID matches the original #3075 merge against its first parent, with only the two original files touched. The four retained G14 ABI tests passed locally. The J473 comparison supports restoring the previous cap: the high-state run lost the GPU in loop 1, and the restored-cap run completed 5/5 loops at 43/43 each.
The exact-head J473 row and hosted checks are still pending.
|
Independent source pass at The paired J473 run supports the revert: the full range timed out on its first run, the earlier range finished five runs of 43/43 checks, and the saved fleet88 boot was verified after both arms. The owner’s exact-head signed J473 run and hosted checks remain the qualification for this head. |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
J473 row: Evidence
|
|
Verdict at The changed range is specific to the G14 27.2 path. The J413 13.5 smoke remains useful as a shared-driver follow-up. The broader signed fleet89 qualification comes from the merged tip. #3091 (comment) |
The comments added with the compute flush_stamps word said that a clear word stalls a compute queue that writes user timestamps. A later A/B on the M2 mini showed that those hangs came from the raised GPU performance-state cap (reverted in #3091). With the cap restored, the same compute loop ran 24 times clean. Say only why the word is set: the 27.2 render commands and the M3 27.2 compute command set it. Comment-only change. Signed-off-by: Ryan Murray <[email protected]>
… GPU range Since aurora-silicon#3091 the G14 GPU on firmware 27.2 has been capped at its first operating point (444 MHz): at the higher states the firmware stalled compute work under load (fetched > retired, no fault) and held the top voltage even when idle. The 27.2 builder left most of the firmware's power data zero. The 27.2 records keep that data in the 13.5 layout, and this driver already builds all of it for the 13.5 InitData: - Globals: HwDataShared1 at +0xec and HwDataShared2 at +0x1b4, which includes the G14 curves computed from each operating point's frequency and voltage. - Power record: the average-power filter at +0x10..+0x20 and HwDataShared3 at +0x4f0. - Hardware data: the 13.5 HwDataB words from the power sample period to the fragment count, at the chip id's distance (power sample period at +0xff4, fragment count at +0x10a4); the SRAM power coefficient of each operating point (sram_k); the identity state index map. Drop the second MHz series at +0x1924, which is not part of the block. - Globals +0x9b8/+0x9bc/+0x9c0, the compute back-off words that the M3 and M4 27.2 runtimes also set. Copy these values from the 13.5 InitData: same builders, same chip configuration and DT operating points, with no new constants. offset_of checks tie each destination to the 13.5 structures. With the data in place, publish the ceiling at Globals +0x98, as +0x88 and +0x8c already do. The firmware then governs the whole range itself: the rail follows the load (about 0.68-0.82 V instead of a fixed 0.94 V). Signed-off-by: Ryan Murray <[email protected]>
What: Reverts #3075 (merged as 1b09b76). With all three Globals state selectors at the board's ceiling, the M2 mini's GPU reaches the 944 mV operating point, and the G14 firmware 27.2 then hangs intermittently under sustained load. A native GL render (fragment never retired) or a deep compute queue (commands fetched, never retired) times out with
FAULT_INFO=0and no firmware timeout event. Main has no per-client recovery, so every GPU client loses its device, gnome-shell included. This restores +0x98 = 100 until the firmware's behaviour at the higher states is understood.Tested: J473 (M2 mini, G14G firmware 27.2), A/B on the same harness and boot recipe: fleet88 Stage 2, default cmdline, gpubench GL native plan up to 5 times, stopping at the first GPU timeout.
g14_v27_2_abi.rs: 4/4.The exact-head row on this revert's own kit follows.
Risk: two-way · J473 and any G14G Mac on the 27.2 firmware: the GPU goes back to the 444 MHz cap, about 1.6x slower in Geekbench 6 Vulkan than with #3075, which is the state fleet88 ships. No other runtime runs this code.
Not yet:
Evidence
Our own traces,
traces/gpu/20261125-m2gpu-next/:*-j473-ab-m2z1(ceiling) and*-j473-ab-m2z2lab(100),row/hang/klog-*.txt,gpu-mv.txt.*-j473-u1b-m2t3,*-j473-r-m2t3,*-j473-rs2b15-m2t3,*-j473-u1c-m2t6,*-j473-z1-m2z1.*-j473-h9b-*) ran piglit and Geekbench 6 only, which did not reach these hangs.