upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/opus_decoder/leonida_opus_decoder.h
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 22:29:35 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-25 22:29:35 -0500
commite418c1e4b607570e46f9d6e181d44c87f7265b06 (patch)
treea0606f7e462ef7c91d25b8164b85e6c08ddb3eac /runtime/opus_decoder/leonida_opus_decoder.h
parent7f3d0095a2d51892bc7048f24505c37168f25c34 (diff)
vulkan: AMD breadcrumbs name the dispatch that hung (LEONIDA_DEVICE_MARKERS)
On RADV a GPU hang ends in VK_ERROR_DEVICE_LOST with no checkpoints, so the device-fault report lists the 64 dispatches in flight but cannot say which one stopped the queue. LEONIDA_DEVICE_MARKERS=1 (with LEONIDA_DEVICE_FAULT=1 or 2) enables VK_AMD_buffer_marker where the device has it. Every dispatch the report numbers writes its seq into its queue's slot of one persistent host-visible, coherent buffer: at top of pipe before the dispatch (started) and at bottom of pipe after it (finished), with vkCmdWriteBufferMarker2AMD. On a loss or a stall report each queue's last finished and started seq are printed, and the oldest started, unfinished dispatch is reported as the likely hang and marked in the submitted-dispatch list. A history of the last 16,384 dispatches names it when it has left that list. The values are best-effort after a loss, and the report says so. The seq is now handed out when a dispatch is recorded, so the marker and the list share one numbering; it counts every recorded dispatch, and the list can show gaps where a submission recorded more than 64. Cost with the switch on: two marker writes per dispatch and one history entry; with it off nothing changes. Without the extension, or without LEONIDA_DEVICE_FAULT, one "device-markers: unavailable" line is logged. Tests: vulkan_device_markers (portable: numbering, marker writes, ring, likely-hang verdicts, the 32-bit wrap) and vk_device_markers (a real device: after the wait the started and finished markers equal the last seq; SKIP without the extension). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/opus_decoder/leonida_opus_decoder.h')
0 files changed, 0 insertions, 0 deletions