RX 6800 XT (RADV, Linux): GPU hang and full GPU reset a few seconds after loading a save in Kokiri, also with RX_VK_KEEP_RETIRED=1 #604
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot#604
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hookshot version
hookshot 97e7c55 (source 5ea1e377):mainat97e7c55(newer thanlow-vram), built locally on Linux with theultrawideAppImage's toolchain (clang, glibc 2.35 sysroot, FFmpeg, SDL2).hookshot_vk.sowas compiled from the same commit with GCC 13's libstdc++ headers, linked statically as inlinux-appimage.yml.What kind of problem
Crash, freeze or black screen
What happened
The GPU hangs a few seconds after loading a save, as Kokiri Forest first appears. amdgpu's ring reset fails, so it does a full MODE1 GPU reset. VRAM is lost, the Wayland compositor (niri) dies with it, and the second time the whole PC rebooted.
The title screen, the menus and the opening movie run fine at 58-60 fps. After the save is confirmed, fps falls to 32, then to 2. Then
batched submit ... failed (-4)anddevice lostfollow.It happened 2 of 2 times:
gfx_0.0.0ring timeout; ring reset failed; MODE1 resetHOS_HEADLESS=1RX_VK_KEEP_RETIRED=1comp_1.0.1ring timeout (that ring reset succeeded); thengfx_0.0.0ring timeout; ring reset failed; MODE1 reset; PC rebootedGiven #17 (the Arc device loss, fixed with
RX_VK_KEEP_RETIRED=1) and3f5b0aa, I tried keeping the retired pools first. On RDNA2 with RADV it doesn't help: run 2 gave none back and hung at the same point. The kernel logged no GPU page fault in either run, only ring timeouts. That looks like a shader or a wait that never finishes, not a read of freed memory. In run 2 the first queue to hang was a compute queue.VK_EXT_device_faultis not available here, so there's no faulting address. I haven't runRX_VK_CHECKPOINTS=1yet, because every attempt resets the GPU and takes the desktop down. I can do one targeted run if you tell me which switches you want.Possibly related: on this card, one compute program isn't translated:
vk: program 499dbfd0721d2858 not translated: SPIR-V Instruction is not implemented (GlobalAtomicAddF32) is not implemented(#17 also mentions
499dbfd0721d2858faulting now and then). The networks are left out ("a network left out on this card"), and matrix multiplies run in software (no cooperative matrices on RDNA2).Where in the game
Loading a save that stands outside Link's house in Kokiri Forest: Continue, top slot, Load. The hang comes a few seconds after the load is confirmed, as the forest first appears. The save came from another emulator's save folder:
slot_00-slot_03,option.savandaccount.savcopied intosave/<uid>/.How often
Every time (2 of 2).
Graphics card and driver version
AMD Radeon RX 6800 XT (NAVI21, RDNA2), RADV, Mesa 26.2.5 (
driver 0x6802005), Vulkan 1.4CPU, RAM and operating system
Ryzen 7 5700X, 32 GB. NixOS with kernel 7.3.0-cachyos-lto. Wayland (niri). The game runs through
steam-run, NixOS's standard-Linux library environment.Changes from the defaults
Run 1: none. Run 2:
HOS_HEADLESS=1 RX_VK_KEEP_RETIRED=1. Both runs:RX_VK_SHOTS=<dir> RX_VK_SHOT_EVERY=60, plusHOS_INPUT_LIVE=<file>, used only to press A on the title, the save list and the confirm dialog.Other software hooked into the game
None. (steam-run's
LD_PRELOADoflibextest.sofails to load and is ignored: "wrong ELF class".)hookshot_log.txt
Excerpts (home paths shortened to
~):Run 1 (window, defaults)
Kernel:
Run 2 (HOS_HEADLESS=1, RX_VK_KEEP_RETIRED=1)
Kernel:
I can send the full logs if they help.
Before you send it
main97e7c55, newer thanlow-vram)RX_VK_KEEP_RETIRED)Tracked in #1000, follow there. That issue collects every report of Linux / Steam Deck GPU hangs, crashes, low fps and build failures, and this one is linked from it with its GPU, version and log details. If it still happens on v2.0.6 (https://github.com/NotRexed/Hookshot/releases/tag/v2.0.6; Update next to Play in the launcher), please add a comment there with your
hookshot_log.txt.