Repository navigation
drm/asahi: opt-in T6030 mixed batches and completion diagnostics - #93
Merged
chriskearney merged 13 commits intoOct 13, 2026
Merged
Conversation
Signed-off-by: Chris Kearney <[email protected]>
Signed-off-by: Chris Kearney <[email protected]>
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]>
Signed-off-by: Chris Kearney <[email protected]>
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]>
This was referenced Oct 12, 2026
chriskearney
marked this pull request as ready for review
October 13, 2026 04:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
-62timeout, 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:
.932is 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. Normalquakemeasured 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.