Repository navigation
asahi: log the unbounded CPU fence-wait fallbacks - #60
Merged
RyanTheTide merged 1 commit intoOct 24, 2026
Merged
Conversation
When a sync-file import, dup or merge fails, the driver keeps the acquire ordering by waiting on the fence on the CPU, without a timeout. A process stuck there gives no sign of it: on 2026-10-23 the compositor's main thread was found blocked in a poll with its log silent, and these waits could not be ruled out. Print a line before each of them. Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com> Assisted-by: LLM
This was referenced Oct 24, 2026
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.
asahi: log the unbounded CPU fence-wait fallbacks.
When a sync-file import, dup or merge fails, the gallium driver keeps the acquire ordering by waiting on the fence on the CPU without a timeout (five places in
agx_batch.candagx_fence.c). A process stuck in one of them gives no sign of it: on 2026-10-23 a compositor's main thread on the M4 Pro was found blocked in a poll with its log silent, and these waits could not be ruled out. Each one now printsCPU wait on a fence: <reason>before waiting. Behaviour is otherwise unchanged; these are error paths.Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, macOS 26.6.2 firmware, kernel 7.3.0-m4.14 (aurora
integration/aurora1aa2857509d+ #406, #408-#413).How tested: Built as a system Mesa and used as the desktop's GL driver (Hyprland, Firefox, mpv) on the M4 Pro; the message did not appear in normal use, as expected for error paths. The dEQP-VK and glmark2 runs in this series were done with it in place.
🤖 Generated with Claude Code