Skip to content

asahi: log the unbounded CPU fence-wait fallbacks - #60

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
jgoyvaerts:pr/asahi-log-fence-waits
Oct 24, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
jgoyvaerts:pr/asahi-log-fence-waits

Conversation

@jgoyvaerts

Copy link
Copy Markdown

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.c and agx_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 prints CPU 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/aurora 1aa2857509d + #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

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
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.

2 participants