Skip to content

drm/asahi: opt-in T6030 mixed batches and completion diagnostics - #93

Merged
chriskearney merged 13 commits into
integration/aurorafrom
pr/m3pro-performance-kernel-20261012
Oct 13, 2026
Merged

chriskearney merged 13 commits into
integration/aurorafrom
pr/m3pro-performance-kernel-20261012

Conversation

@chriskearney

@chriskearney chriskearney commented Oct 12, 2026 •

Copy link
Copy Markdown

T6030 render/compute sequences currently retire between engine changes. Add opt-in mixed batches with firmware barriers and retained DMA ownership through final stamps, queue cursors, events and idle checks. Include bounded completion/power diagnostics and stage-specific render microsequence length fields; experimental controls remain disabled by default.

The exact source candidate is ac34611f8de50386b6c08872c07f857fdbc24cf2, kernel .932. With render/compute limits four, completion wait 25 µs and the separate compressed-attachment Vulkan build, the original 1920×1080 vkQuake demo1 measured 232.0 and 230.1 FPS. Rendering quality, gamma/contrast and the game executable are unchanged. This aggregate result includes Mesa improvements; it is not a kernel-only speedup claim. Native GL and M1/M2 remain distinct driver paths.

Validation: aarch64 package build, focused source controls, original-game runs, GPU pixel controls and one-shot boot/OMT completed. Latest full run: 32 passes, 15 known failures, 26 skips, zero regressions. Earlier boots intermittently showed an AOP -62 timeout, so this remains draft pending qualification. M1 same-artifact Mesa controls passed; this is not a new M1 boot qualification of .932. Public latest remains release 15.

Kernel package SHA256: 91b6e4b35281dee4b3e33f767923d2460f206173c11dcea63f56daac1bd37b51. See the companion profile PR for driver pins and settings. Effective pipeline depth remains one; no premature fence signaling, speculative clock/register changes or Vulkan-25 support is introduced.

Companion: #94

Installed follow-through: .932 is now the M3 Pro's normal default, with native OpenGL and the pinned Vulkan driver inherited by applications. GL blend and GL/VK readback passed. Normal quake measured 229.2/228.0 FPS without driver overrides (earlier same-candidate runs 232.0/230.1). Bootloader bytes are unchanged, only kernel/headers package versions changed, and recovery is retained. Internal eDP is active; TS3 is detected but no external monitor link is active, so this boot has no external-picture qualification.

Queue one bounded packet prefix across render and compute without intermediate host retirement. Each engine change waits for the preceding firmware stamp. Retain both job graphs and packet guards through final stamps, queue cursors, events, health and engine-idle checks; partial publication failures retain DMA owners. Keep mixed batching disabled by default and exclude other chips and the initial buffer-manager draw.

Signed-off-by: Chris Kearney <[email protected]>
Keep application timestamp requests in both render stages. Omit only internal measurement packets under the root-controlled switch, retaining WaitForIdle2, finalization, restart displacements and End. Preserve all completion stamps, queue checks and the default microsequences on every chip.

Signed-off-by: Chris Kearney <[email protected]>
Write the tiler sequence length at 0x778 and the fragment sequence length at 0x1c. Share those offsets with the command encoders so optional measurement packets preserve both command pointers and all other descriptor fields.

Signed-off-by: Chris Kearney <[email protected]>
Read firmware state words and the existing SGX state register while completion stamps are outstanding. Sampling is boot-only, disabled by default, and limited to ten reads per second and 600 samples. Read failures leave completion and recovery unchanged.

Signed-off-by: Chris Kearney <[email protected]>
Request the published top state while T6030 packets are queued or active and clear the packed word on idle, failure, and teardown. Keep firmware thermal caps independent and sample the request alongside those caps.

Signed-off-by: Chris Kearney <[email protected]>
Read the chip identifier before borrowing the ManuallyDrop runtime configuration mutably during teardown.

Signed-off-by: Chris Kearney <[email protected]>
Read back the firmware-owned packed request at most once per millisecond while busy, and restore the requested value when it differs. Clear on idle or failure. Leave inactive requests and other chips unchanged, retaining independent thermal caps. Record write counts and observed request words.

Signed-off-by: Chris Kearney <[email protected]>
Clear only the known zero-or-one debug word when explicitly selected on T6030. Keep the runtime allocation tail, power and idle configuration, other chips and disabled image unchanged. Check its typed offset and read back the uploaded word after firmware readiness.

Signed-off-by: Chris Kearney <[email protected]>
Under M3PassTiming, observe fragment host and firmware stamps and the successful pipe-idle check using the shared 24 MHz counter. Bracket the packet fence signal and associate each retired batch with its packet commands. Include mixed render intervals and summed per-pass fragment timestamps. Preserve completion predicates, polling, firmware records and queue depth.

Signed-off-by: Chris Kearney <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant