[GH-ISSUE #3680] [Engine] gfx1200 (RX 9060 XT), 0.1.45: page fault ("prefill copy_i32: unspecified launch failure") and a batched-prefill hang, both on the first chunk after a reused 3,358-token prefix with a full conversation cache; MES then fails and… #1523

Closed
opened 2026-11-04 01:51:57 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @codywb on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3680

Area

Engine

Desktop app, Terminal or source?

Source build (tag v0.1.45, commit 477ac13), serve/server.py, Linux.

What happened

A client sends independent chat requests one at a time. Every request is a new conversation that starts with the same 3,358-token system prompt (thinking off, max_tokens 4096, prompts of about 4.6K-5K tokens, answers of 100-450 tokens). Strata reuses the shared prefix from the conversation cache on each request (prompt N tokens = 3358 reused + M read), and the cache is full (parked=4, one eviction per request).

227 of these requests completed normally today. Two failures, both on the first prompt chunk after the reused 3,358 tokens, right after a park with the cache full:

  1. 06:59 JST, kernel 7.2.6: hang.
    • The engine's stall check fired: strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 43 of the prompt chunk from token 3358), exit -6.
    • When the hung queue was removed, the kernel logged MES(0) failed to respond to msg=REMOVE_QUEUE, followed by a MODE1 reset (VRAM lost).
  2. 11:46 JST, kernel 7.3.0: GPU page fault in the strata process.
    • The engine printed prefill copy_i32: unspecified launch failure.
    • 7.3's per-queue reset recovered Strata's queues. Two seconds later the desktop compositor's gfx ring (same card) timed out, the ring reset failed, MES stopped responding, and the card did two MODE1 resets.

The last engine lines before each failure:

strata serve: prompt 4930 tokens = 3358 reused + 1572 read in 5313 ms (295.9 tok/s), 448 generated ...
strata serve: conversation cache: parked 5379 tokens in 116.7 ms; parked=4 bytes=1727336580 evictions=39 ...
strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 43 of the prompt chunk from token 3358) ...
strata serve: prompt 4911 tokens = 3358 reused + 1553 read in 5481 ms (283.3 tok/s), 125 generated ...
strata serve: conversation cache: parked 5037 tokens in 194.9 ms; parked=4 bytes=1716892812 evictions=44 ...
prefill copy_i32: unspecified launch failure

This looks like the pattern described in #1569: stalled reads sat at exactly the length of a saved shared prefix, for new conversations sharing a system prompt. #579 (gfx1201, batched-prefill stall) may be related.

Smaller, separate bug: the crash message after the 11:46 fault quoted the wrong log line. The server reported "The engine stopped itself because it had stopped making progress ... no progress for 60 s ... layer 43 of the prompt chunk from token 3358", but that line was from the 06:59 crash (it appears once in the engine log). The 11:46 engine ended with prefill copy_i32: unspecified launch failure, after 9 s, not 60.

A third reset today (09:15, kernel 7.2.6) started with a desktop gfx job timing out while Strata was serving the same workload, followed by the same MES failure. I can't tell whether that one is connected.

Smallest steps or command that reproduce it

Not deterministic. Serve with --conversation-cache-mib 8192 --conversation-cache-slots 4 and send a stream of new conversations that share a ~3.4K-token system prompt plus 1-2K tokens of per-request text, one at a time. Here the failures came after 6 and roughly 220 requests of that stream.

Reproduction status

Intermittent: 2 failures in about 229 requests of this shape today.

Strata version

0.1.45 (tag commit 477ac13), engine built from source for gfx1200 only. CMake options: Release, HIP, PREFILL_MMQ, Q6K_EXPERTS, MMQ_KQUANTS, CMAKE_HIP_ARCHITECTURES=gfx1200. ROCm from TheRock wheels 7.10.0a20251120.

Graphics card, memory and system

  • AMD Radeon RX 9060 XT 16 GB (gfx1200), MES firmware 0x91. This card also drives the desktop (COSMIC compositor).
  • Ryzen 5 5600, 94 GB RAM, PCIe 4.0 x16.
  • Pop!_OS 24.04. Kernel 7.2.6 (Pop) for the first failure; 7.3.0, built from kernel.org with Pop's config, for the second.
  • A second card (Radeon VII) runs an unrelated llama.cpp server and is not visible to Strata (ROCR_VISIBLE_DEVICES).

Model, size and settings

  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, MTP draft, images on (CPU encoder).
  • Engine arguments: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 524288 --kv int8 --mmap-experts --kv-resident 32768 --vision --vram-reserve-mib 4096 --rope-scaling yarn --rope-scale 2 --yarn-orig-ctx 262144 --conversation-cache-mib 8192 --conversation-cache-slots 4
  • Environment: HSA_ENABLE_SDMA=0 HSA_USERPTR_FOR_PAGED_MEM=0 GPU_PINNED_MIN_XFER_SIZE=1048576 STRATA_HIP_WMMA=1 STRATA_TOPK_OLD=1 STRATA_SCORES_THREAD=0 STRATA_QUANT_GATHER=1 STRATA_ROUTE_TAIL_SKIP=0 STRATA_PCIE_FRAC_DEFAULT=old STRATA_PF_FUSED=0 STRATA_HC_Q8=0 STRATA_GFX12_CHUNK=0 STRATA_MTP_HIP_PRIO=0, plus the hipBLASLt gfx1200 tuning table.

Logs

Kernel log at 11:46 (7.3.0):

amdgpu 0000:2d:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:50)
amdgpu 0000:2d:00.0:  Process strata pid 1984 thread strata pid 1984
amdgpu 0000:2d:00.0:   in page starting at address 0x00007a6ff3749000 from client 10
amdgpu 0000:2d:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00801030
amdgpu 0000:2d:00.0:          Faulty UTCL2 client ID: TCP (0x8)
amdgpu 0000:2d:00.0:          PERMISSION_FAULTS: 0x3
amdgpu 0000:2d:00.0:          RW: 0x0
amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=REMOVE_QUEUE
amdgpu 0000:2d:00.0: reset compute queue (1:0:2)
amdgpu 0000:2d:00.0: Queues reset on process strata tid 1984 thread strata pid 1984
amdgpu 0000:2d:00.0: ring gfx_0.0.0 timeout, signaled seq=203921, emitted seq=203924
amdgpu 0000:2d:00.0:  Process cosmic-comp pid 5596 thread cosmic-com:cs0 pid 5624
amdgpu 0000:2d:00.0: Ring gfx_0.0.0 reset failed
amdgpu 0000:2d:00.0: MODE1 reset

Full engine, server and kernel logs, and the device coredump from the 09:15 reset, are available on request.

Originally created by @codywb on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3680 ### Area Engine ### Desktop app, Terminal or source? Source build (tag v0.1.45, commit 477ac13), `serve/server.py`, Linux. ### What happened A client sends independent chat requests one at a time. Every request is a new conversation that starts with the same 3,358-token system prompt (thinking off, `max_tokens` 4096, prompts of about 4.6K-5K tokens, answers of 100-450 tokens). Strata reuses the shared prefix from the conversation cache on each request (`prompt N tokens = 3358 reused + M read`), and the cache is full (`parked=4`, one eviction per request). 227 of these requests completed normally today. Two failures, both on the first prompt chunk after the reused 3,358 tokens, right after a park with the cache full: 1. **06:59 JST, kernel 7.2.6: hang.** - The engine's stall check fired: `strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 43 of the prompt chunk from token 3358)`, exit -6. - When the hung queue was removed, the kernel logged `MES(0) failed to respond to msg=REMOVE_QUEUE`, followed by a MODE1 reset (VRAM lost). 2. **11:46 JST, kernel 7.3.0: GPU page fault in the strata process.** - The engine printed `prefill copy_i32: unspecified launch failure`. - 7.3's per-queue reset recovered Strata's queues. Two seconds later the desktop compositor's gfx ring (same card) timed out, the ring reset failed, MES stopped responding, and the card did two MODE1 resets. The last engine lines before each failure: ``` strata serve: prompt 4930 tokens = 3358 reused + 1572 read in 5313 ms (295.9 tok/s), 448 generated ... strata serve: conversation cache: parked 5379 tokens in 116.7 ms; parked=4 bytes=1727336580 evictions=39 ... strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 43 of the prompt chunk from token 3358) ... ``` ``` strata serve: prompt 4911 tokens = 3358 reused + 1553 read in 5481 ms (283.3 tok/s), 125 generated ... strata serve: conversation cache: parked 5037 tokens in 194.9 ms; parked=4 bytes=1716892812 evictions=44 ... prefill copy_i32: unspecified launch failure ``` This looks like the pattern described in #1569: stalled reads sat at exactly the length of a saved shared prefix, for new conversations sharing a system prompt. #579 (gfx1201, batched-prefill stall) may be related. **Smaller, separate bug: the crash message after the 11:46 fault quoted the wrong log line.** The server reported "The engine stopped itself because it had stopped making progress ... no progress for 60 s ... layer 43 of the prompt chunk from token 3358", but that line was from the 06:59 crash (it appears once in the engine log). The 11:46 engine ended with `prefill copy_i32: unspecified launch failure`, after 9 s, not 60. A third reset today (09:15, kernel 7.2.6) started with a desktop gfx job timing out while Strata was serving the same workload, followed by the same MES failure. I can't tell whether that one is connected. ### Smallest steps or command that reproduce it Not deterministic. Serve with `--conversation-cache-mib 8192 --conversation-cache-slots 4` and send a stream of new conversations that share a ~3.4K-token system prompt plus 1-2K tokens of per-request text, one at a time. Here the failures came after 6 and roughly 220 requests of that stream. ### Reproduction status Intermittent: 2 failures in about 229 requests of this shape today. ### Strata version 0.1.45 (tag commit 477ac13), engine built from source for gfx1200 only. CMake options: Release, HIP, `PREFILL_MMQ`, `Q6K_EXPERTS`, `MMQ_KQUANTS`, `CMAKE_HIP_ARCHITECTURES=gfx1200`. ROCm from TheRock wheels 7.10.0a20251120. ### Graphics card, memory and system - AMD Radeon RX 9060 XT 16 GB (gfx1200), MES firmware 0x91. This card also drives the desktop (COSMIC compositor). - Ryzen 5 5600, 94 GB RAM, PCIe 4.0 x16. - Pop!_OS 24.04. Kernel 7.2.6 (Pop) for the first failure; 7.3.0, built from kernel.org with Pop's config, for the second. - A second card (Radeon VII) runs an unrelated llama.cpp server and is not visible to Strata (`ROCR_VISIBLE_DEVICES`). ### Model, size and settings - Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, MTP draft, images on (CPU encoder). - Engine arguments: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 524288 --kv int8 --mmap-experts --kv-resident 32768 --vision --vram-reserve-mib 4096 --rope-scaling yarn --rope-scale 2 --yarn-orig-ctx 262144 --conversation-cache-mib 8192 --conversation-cache-slots 4` - Environment: `HSA_ENABLE_SDMA=0 HSA_USERPTR_FOR_PAGED_MEM=0 GPU_PINNED_MIN_XFER_SIZE=1048576 STRATA_HIP_WMMA=1 STRATA_TOPK_OLD=1 STRATA_SCORES_THREAD=0 STRATA_QUANT_GATHER=1 STRATA_ROUTE_TAIL_SKIP=0 STRATA_PCIE_FRAC_DEFAULT=old STRATA_PF_FUSED=0 STRATA_HC_Q8=0 STRATA_GFX12_CHUNK=0 STRATA_MTP_HIP_PRIO=0`, plus the hipBLASLt gfx1200 tuning table. ### Logs Kernel log at 11:46 (7.3.0): ``` amdgpu 0000:2d:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:8 pasid:50) amdgpu 0000:2d:00.0: Process strata pid 1984 thread strata pid 1984 amdgpu 0000:2d:00.0: in page starting at address 0x00007a6ff3749000 from client 10 amdgpu 0000:2d:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00801030 amdgpu 0000:2d:00.0: Faulty UTCL2 client ID: TCP (0x8) amdgpu 0000:2d:00.0: PERMISSION_FAULTS: 0x3 amdgpu 0000:2d:00.0: RW: 0x0 amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=REMOVE_QUEUE amdgpu 0000:2d:00.0: reset compute queue (1:0:2) amdgpu 0000:2d:00.0: Queues reset on process strata tid 1984 thread strata pid 1984 amdgpu 0000:2d:00.0: ring gfx_0.0.0 timeout, signaled seq=203921, emitted seq=203924 amdgpu 0000:2d:00.0: Process cosmic-comp pid 5596 thread cosmic-com:cs0 pid 5624 amdgpu 0000:2d:00.0: Ring gfx_0.0.0 reset failed amdgpu 0000:2d:00.0: MODE1 reset ``` Full engine, server and kernel logs, and the device coredump from the 09:15 reset, are available on request.
Author
Owner

@codywb commented on GitHub (Oct 22, 2026):

Follow-up: checked against v0.2.2, a stopgap, and two related threads.

Still applies on v0.2.2. I compared v0.1.45 (477ac13) with v0.2.2 (011c9e6, engine 0.1.47) along the failing path: copy_i32 and check() in src/prefill/kernels.cu, their single-GPU callers in src/prefill/prefill.cpp, the mapped grouping tables set up there (grp_host/grp_dev), and src/core/conversation_*. None of it changed. I'm building v0.2.2 for gfx1200 now and will retest on it and post the result with the engine's version line.

Stopgap since the report. At 04:01 UTC I added --conversation-cache-min-tokens 16384, so short requests like the two that failed are no longer parked and no eviction runs before them. Long conversations are still parked. I'll report whether the failures stop.

Two closed threads describe the same chain:

  • #579: @s91402001 found the batched-prefill stall fired 12/12 times while a desktop client rendered on the same GPU and 0/23 with the desktop idle. My card also drives the display, and the 09:15 JST reset mentioned in the report started with a desktop gfx job timing out while Strata was busy.
  • #1569: @cjdell reported the same chain on gfx1201 (prefill hang, watchdog abort, MES REMOVE_QUEUE failure, MODE1 reset). You noted there that the stalled reads sat at the length of a saved shared prefix; both of mine were on the first chunk after a reused 3,358-token prefix.

Diagnostics I can run, one at a time. Which would help you most?

  1. "--prompt-cache", "0", as you asked for in #1569.
  2. STRATA_GROUP_COPY=1, which takes the grouping tables off mapped host memory (the fault was a read of a host address).
  3. AMD_SERIALIZE_KERNEL=3 on a repro run, to name the kernel that faults rather than the check() that sees it.

The wrong crash message noted at the end of the report is also unchanged in v0.2.2: death_note() in serve/server.py searches the last 256 KB of the log, across engine restarts, for the watchdog line.

<!-- gh-comment-id:6337806846 --> @codywb commented on GitHub (Oct 22, 2026): Follow-up: checked against v0.2.2, a stopgap, and two related threads. **Still applies on v0.2.2.** I compared v0.1.45 (477ac13) with v0.2.2 (011c9e6, engine 0.1.47) along the failing path: `copy_i32` and `check()` in `src/prefill/kernels.cu`, their single-GPU callers in `src/prefill/prefill.cpp`, the mapped grouping tables set up there (`grp_host`/`grp_dev`), and `src/core/conversation_*`. None of it changed. I'm building v0.2.2 for gfx1200 now and will retest on it and post the result with the engine's version line. **Stopgap since the report.** At 04:01 UTC I added `--conversation-cache-min-tokens 16384`, so short requests like the two that failed are no longer parked and no eviction runs before them. Long conversations are still parked. I'll report whether the failures stop. **Two closed threads describe the same chain:** - #579: @s91402001 found the batched-prefill stall fired 12/12 times while a desktop client rendered on the same GPU and 0/23 with the desktop idle. My card also drives the display, and the 09:15 JST reset mentioned in the report started with a desktop gfx job timing out while Strata was busy. - #1569: @cjdell reported the same chain on gfx1201 (prefill hang, watchdog abort, MES `REMOVE_QUEUE` failure, MODE1 reset). You noted there that the stalled reads sat at the length of a saved shared prefix; both of mine were on the first chunk after a reused 3,358-token prefix. **Diagnostics I can run, one at a time.** Which would help you most? 1. `"--prompt-cache", "0"`, as you asked for in #1569. 2. `STRATA_GROUP_COPY=1`, which takes the grouping tables off mapped host memory (the fault was a read of a host address). 3. `AMD_SERIALIZE_KERNEL=3` on a repro run, to name the kernel that faults rather than the `check()` that sees it. The wrong crash message noted at the end of the report is also unchanged in v0.2.2: `death_note()` in `serve/server.py` searches the last 256 KB of the log, across engine restarts, for the watchdog line.
Author
Owner

@codywb commented on GitHub (Oct 22, 2026):

Reproduced on v0.2.2, with the prompt cache off, so the conversation cache and prefix reuse are not required.

While qualifying v0.2.2 (011c9e6, engine 0.1.47, same gfx1200 source build and model as above) I ran tools/quant_quality.py prompt (20 prompts of up to 1,000 tokens, first-token logits). Its engine line includes --prompt-cache 0 --kv fp16 --max-context 1512 --expert-cache 1500 --pcie-frac 0. This arm had 0.2.2's defaults on: queue priming ("opened 2 GPU queues in a fixed order") and the Linux file-tier defaults. 16 prompts completed; the 17th hung:

strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 45 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.47): stage "reading the prompt (batched): layer 45 of the prompt chunk from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  VRAM free when this request began: 6493 MiB
  expert pool: epoch 1536, batch epoch 1536: 18 of 18 jobs claimed, 18 done; 5 of 5 workers parked, 5 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping; host idle for 63300 ms
  threads waiting on the disk (state D): 0 of 39
  memory: 46520 MiB resident, 0 MiB in swap, 77173 MiB RAM available; 0 major page faults so far

Then the same chain as before (times JST):

20:53:19 amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=REMOVE_QUEUE
20:53:21 amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=SUSPEND
20:53:21 amdgpu 0000:2d:00.0: failed to suspend all gangs
20:53:21 amdgpu 0000:2d:00.0: reset compute queue (1:0:3) / failed to wait on hqd deactivate
20:53:22 amdgpu 0000:2d:00.0: [drm] device wedged, but no recovery needed
20:53:24 amdgpu 0000:2d:00.0: ring gfx_0.0.0 timeout ... Process cosmic-comp
20:53:26 amdgpu 0000:2d:00.0: Ring gfx_0.0.0 reset failed
20:53:28 amdgpu 0000:2d:00.0: MODE1 reset
20:53:29 amdgpu 0000:2d:00.0: VRAM is lost due to GPU reset!

So this is the batched-prefill hang itself, on the first chunk of a fresh short prompt; the reused prefix in my earlier two cases was probably incidental. It also answers the --prompt-cache 0 question from #1569: the hang still happens with it. The host side was idle (pool parked, no I/O wait, no paging), so the GPU stopped making progress on its own.

Context: it was 1 hang in roughly 60 to 70 minutes of mixed testing across 0.1.45 and 0.2.2, the only one in that session. All the other arms, including 0.2.2 with the new defaults pinned off, ran clean, but that is too little to blame queue priming or the file-tier defaults. Kernel 7.3.0 (mainline, with the MES12 fixes 288cc4a54a00 and 41eb81a30665); per-queue reset recovered the compute queues, but the desktop's gfx job on the same card then timed out and the card fell back to MODE1. I've switched production to 0.2.2 with the new defaults pinned off and will report how often this recurs. The full engine stderr and kernel log are available, and I can run a build or settings you want on this card.

<!-- gh-comment-id:6340333051 --> @codywb commented on GitHub (Oct 22, 2026): Reproduced on v0.2.2, **with the prompt cache off**, so the conversation cache and prefix reuse are not required. While qualifying v0.2.2 (011c9e6, engine 0.1.47, same gfx1200 source build and model as above) I ran `tools/quant_quality.py prompt` (20 prompts of up to 1,000 tokens, first-token logits). Its engine line includes `--prompt-cache 0 --kv fp16 --max-context 1512 --expert-cache 1500 --pcie-frac 0`. This arm had 0.2.2's defaults on: queue priming ("opened 2 GPU queues in a fixed order") and the Linux file-tier defaults. 16 prompts completed; the 17th hung: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 45 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.47): stage "reading the prompt (batched): layer 45 of the prompt chunk from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow) VRAM free when this request began: 6493 MiB expert pool: epoch 1536, batch epoch 1536: 18 of 18 jobs claimed, 18 done; 5 of 5 workers parked, 5 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping; host idle for 63300 ms threads waiting on the disk (state D): 0 of 39 memory: 46520 MiB resident, 0 MiB in swap, 77173 MiB RAM available; 0 major page faults so far ``` Then the same chain as before (times JST): ``` 20:53:19 amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=REMOVE_QUEUE 20:53:21 amdgpu 0000:2d:00.0: MES(0) failed to respond to msg=SUSPEND 20:53:21 amdgpu 0000:2d:00.0: failed to suspend all gangs 20:53:21 amdgpu 0000:2d:00.0: reset compute queue (1:0:3) / failed to wait on hqd deactivate 20:53:22 amdgpu 0000:2d:00.0: [drm] device wedged, but no recovery needed 20:53:24 amdgpu 0000:2d:00.0: ring gfx_0.0.0 timeout ... Process cosmic-comp 20:53:26 amdgpu 0000:2d:00.0: Ring gfx_0.0.0 reset failed 20:53:28 amdgpu 0000:2d:00.0: MODE1 reset 20:53:29 amdgpu 0000:2d:00.0: VRAM is lost due to GPU reset! ``` So this is the batched-prefill hang itself, on the first chunk of a fresh short prompt; the reused prefix in my earlier two cases was probably incidental. It also answers the `--prompt-cache 0` question from #1569: the hang still happens with it. The host side was idle (pool parked, no I/O wait, no paging), so the GPU stopped making progress on its own. Context: it was 1 hang in roughly 60 to 70 minutes of mixed testing across 0.1.45 and 0.2.2, the only one in that session. All the other arms, including 0.2.2 with the new defaults pinned off, ran clean, but that is too little to blame queue priming or the file-tier defaults. Kernel 7.3.0 (mainline, with the MES12 fixes 288cc4a54a00 and 41eb81a30665); per-queue reset recovered the compute queues, but the desktop's gfx job on the same card then timed out and the card fell back to MODE1. I've switched production to 0.2.2 with the new defaults pinned off and will report how often this recurs. The full engine stderr and kernel log are available, and I can run a build or settings you want on this card.
Author
Owner

@lbbit commented on GitHub (Oct 23, 2026):

Adding data from a second machine with the same symptom, in case it helps to narrow it down.

Setup: 2x AMD Radeon RX 7900 XTX 24 GB (gfx1100, Navi 31), ROCm 7.2.4, kernel 6.8.0, Strata 0.1.45 built from source for gfx1100, HIP backend. Model: Qwen3.8-Flash-Next-Uncensored UD-IQ4_XS, --max-context 262144 --kv int8 --spec 4 --expert-cache auto --prefill auto --layer-split auto.

What we see: the engine aborts in prefill and the kernel resets the card:

[strata] the engine reported an error: prefill: the layer split's hand-off: unspecified launch failure
[drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3
amdgpu 0000:85:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1202
amdgpu 0000:85:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset
amdgpu 0000:85:00.0: amdgpu: Failed to evict queue 3
amdgpu 0000:85:00.0: amdgpu: GPU reset(1) succeeded!

Things we ruled out (each with a controlled test):

  1. VRAM headroom. Three reserve settings (--vram-reserve-later-mib 974 / 2048 / 4096, plus --vram-reserve-mib on the first card) all crash the same way, and the crash happens at every prompt size that also worked before.
  2. A failing GPU. Swapping the two cards' PCIe slots did not help; the fault followed the role (the card that runs layers 0-24 and the prefill hand-off), not the physical card. With the roles swapped, the same error code and the same doorbell=0x1202 appeared on the other card.
  3. Power / clocks. Capping both cards at their minimum (294 W / 305 W) still crashed on the first round.
  4. amdgpu.cwsr_enable=0. The advice in ROCm/TheRock#9217 made it worse on gfx1100: the crash moved to the second card with a different doorbell (0x1004), the error changed to verify: layer 35 never rang (unspecified launch failure), and it now triggers on a 162-token prompt instead of a 43K one. (That report was on gfx1103, so it may not carry over to Navi 31.)
  5. Hardware error counters. Machine check events are present in the kernel log (909 over several days) but they are not concurrent with the resets, and they do not correlate with the crashes.

What does fix it for us (as a workaround, not a real fix):

HSA_USERPTR_FOR_PAGED_MEM=0
GPU_PINNED_MIN_XFER_SIZE=1048576
HSA_ENABLE_SDMA=0

With those three, a 132,285-token prefill passes 6/6 rounds with zero GPU reset / MES failed in the kernel log. Removing only HSA_ENABLE_SDMA=0 brings the crash back on the first round, so the SDMA queue appears to be the main trigger. The cost is roughly 20% slower prefill (SDMA off means the copies and the compute no longer overlap).

One more data point that may be relevant: the kernel log shows this before the crashes, growing exponentially:

workqueue: svm_range_restore_work [amdgpu] hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND
... 8 times ... 16 times ... 32 times ... 64 times ... 128 times

svm_range_restore_work restores SVM page tables, and HSA_USERPTR_FOR_PAGED_MEM=0 is exactly the path that goes through SVM. We are not sure whether that is a cause or a symptom.

If it helps, we can also share the full kernel-log tail and the exact engine arguments.

<!-- gh-comment-id:6356700894 --> @lbbit commented on GitHub (Oct 23, 2026): Adding data from a second machine with the same symptom, in case it helps to narrow it down. **Setup:** 2x AMD Radeon RX 7900 XTX 24 GB (gfx1100, Navi 31), ROCm 7.2.4, kernel 6.8.0, Strata 0.1.45 built from source for gfx1100, HIP backend. Model: Qwen3.8-Flash-Next-Uncensored UD-IQ4_XS, `--max-context 262144 --kv int8 --spec 4 --expert-cache auto --prefill auto --layer-split auto`. **What we see:** the engine aborts in prefill and the kernel resets the card: ``` [strata] the engine reported an error: prefill: the layer split's hand-off: unspecified launch failure ``` ``` [drm:mes_v11_0_submit_pkt_and_poll_completion.constprop.0 [amdgpu]] *ERROR* MES failed to response msg=3 amdgpu 0000:85:00.0: amdgpu: failed to remove hardware queue from MES, doorbell=0x1202 amdgpu 0000:85:00.0: amdgpu: MES might be in unrecoverable state, issue a GPU reset amdgpu 0000:85:00.0: amdgpu: Failed to evict queue 3 amdgpu 0000:85:00.0: amdgpu: GPU reset(1) succeeded! ``` **Things we ruled out** (each with a controlled test): 1. **VRAM headroom.** Three reserve settings (`--vram-reserve-later-mib` 974 / 2048 / 4096, plus `--vram-reserve-mib` on the first card) all crash the same way, and the crash happens at every prompt size that also worked before. 2. **A failing GPU.** Swapping the two cards' PCIe slots did not help; the fault followed the **role** (the card that runs layers 0-24 and the prefill hand-off), not the physical card. With the roles swapped, the same error code and the same `doorbell=0x1202` appeared on the other card. 3. **Power / clocks.** Capping both cards at their minimum (294 W / 305 W) still crashed on the first round. 4. **`amdgpu.cwsr_enable=0`.** The advice in ROCm/TheRock#9217 made it **worse** on gfx1100: the crash moved to the second card with a different doorbell (`0x1004`), the error changed to `verify: layer 35 never rang (unspecified launch failure)`, and it now triggers on a 162-token prompt instead of a 43K one. (That report was on gfx1103, so it may not carry over to Navi 31.) 5. **Hardware error counters.** `Machine check` events are present in the kernel log (909 over several days) but they are not concurrent with the resets, and they do not correlate with the crashes. **What does fix it for us** (as a workaround, not a real fix): ``` HSA_USERPTR_FOR_PAGED_MEM=0 GPU_PINNED_MIN_XFER_SIZE=1048576 HSA_ENABLE_SDMA=0 ``` With those three, a 132,285-token prefill passes 6/6 rounds with zero `GPU reset` / `MES failed` in the kernel log. Removing only `HSA_ENABLE_SDMA=0` brings the crash back on the first round, so the SDMA queue appears to be the main trigger. The cost is roughly 20% slower prefill (SDMA off means the copies and the compute no longer overlap). **One more data point that may be relevant:** the kernel log shows this before the crashes, growing exponentially: ``` workqueue: svm_range_restore_work [amdgpu] hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND ... 8 times ... 16 times ... 32 times ... 64 times ... 128 times ``` `svm_range_restore_work` restores SVM page tables, and `HSA_USERPTR_FOR_PAGED_MEM=0` is exactly the path that goes through SVM. We are not sure whether that is a cause or a symptom. If it helps, we can also share the full kernel-log tail and the exact engine arguments.
Author
Owner

@codywb commented on GitHub (Oct 23, 2026):

Thanks @lbbit, useful data. On my gfx1200 card those three settings don't prevent it:

  • All three (HSA_USERPTR_FOR_PAGED_MEM=0, GPU_PINNED_MIN_XFER_SIZE=1048576, HSA_ENABLE_SDMA=0) have been in my engine's environment since 2026-10-19 (the last two since 2026-10-14). Since then the kernel has logged MES(0) failed to respond to msg=REMOVE_QUEUE on the 9060 XT 17 times between 2026-10-20 and 2026-10-23 (some are the auto-restart failing again on a card that was still stuck), 4 of them ending in a MODE1 reset. That includes the --prompt-cache 0 repro in my comment above.
  • My kernel log never shows svm_range_restore_work ... hogged CPU (0 across 12 boots, 2026-10-18 to now).
  • The failure looks different too: no launch failure up front. The batched prefill stops making progress for 60 s while the host is idle (pool parked, no I/O wait), the watchdog stops the engine, and MES then fails on the queue removal. Single card, no layer split.

So the SDMA trigger you found looks like a separate path from this hang, at least on gfx12.

Two more things ruled out here since my last comment:

  • Desktop on the same card (#579). I moved the display and desktop to another GPU. The 9060 XT showed 0% graphics use, and Strata still hung after about 71 requests (2026-10-23 10:16 JST).
  • The process reaching the second GPU. Strata's process was also registered on my other card (gfx906), with about 7.8 GB of its pinned memory in that card's GTT. Restricting it to the 9060 XT with a systemd device rule (DevicePolicy=closed + DeviceAllow) stopped the second card from faulting during resets, but the hang itself came back 17 minutes in.

Now testing the upstream GC 12.0.0 firmware from 2026-10-16 (MES 0x97, was 0x91) on kernel 7.3.0 mainline, with the device restriction kept. I'll report the result.

<!-- gh-comment-id:6357985225 --> @codywb commented on GitHub (Oct 23, 2026): Thanks @lbbit, useful data. On my gfx1200 card those three settings don't prevent it: - All three (`HSA_USERPTR_FOR_PAGED_MEM=0`, `GPU_PINNED_MIN_XFER_SIZE=1048576`, `HSA_ENABLE_SDMA=0`) have been in my engine's environment since 2026-10-19 (the last two since 2026-10-14). Since then the kernel has logged `MES(0) failed to respond to msg=REMOVE_QUEUE` on the 9060 XT 17 times between 2026-10-20 and 2026-10-23 (some are the auto-restart failing again on a card that was still stuck), 4 of them ending in a MODE1 reset. That includes the `--prompt-cache 0` repro in my comment above. - My kernel log never shows `svm_range_restore_work ... hogged CPU` (0 across 12 boots, 2026-10-18 to now). - The failure looks different too: no launch failure up front. The batched prefill stops making progress for 60 s while the host is idle (pool parked, no I/O wait), the watchdog stops the engine, and MES then fails on the queue removal. Single card, no layer split. So the SDMA trigger you found looks like a separate path from this hang, at least on gfx12. Two more things ruled out here since my last comment: - **Desktop on the same card (#579).** I moved the display and desktop to another GPU. The 9060 XT showed 0% graphics use, and Strata still hung after about 71 requests (2026-10-23 10:16 JST). - **The process reaching the second GPU.** Strata's process was also registered on my other card (gfx906), with about 7.8 GB of its pinned memory in that card's GTT. Restricting it to the 9060 XT with a systemd device rule (`DevicePolicy=closed` + `DeviceAllow`) stopped the second card from faulting during resets, but the hang itself came back 17 minutes in. Now testing the upstream GC 12.0.0 firmware from 2026-10-16 (MES 0x97, was 0x91) on kernel 7.3.0 mainline, with the device restriction kept. I'll report the result.
Author
Owner

@codywb commented on GitHub (Oct 23, 2026):

Update (2026-10-23): a +150 MHz / -50 mV overclock-undervolt on my RX 9060 XT was aggravating this. At stock clocks the stall has not reproduced.

Since my last comment I ran a full root-cause pass instead of one fix at a time. The relevant finding for this issue:

  • My card had been running an overdrive profile applied by LACT since mid-September: OD_SCLK_OFFSET +150 MHz, OD_VDDGFX_OFFSET -50 mV, power cap raised 170 → 182 W. It had been validated only under llama.cpp on Vulkan (where the card peaked at ~124 W) and was not in my earlier reports. Under Strata's prefill the card draws only ~100–120 W, so the cap never engages and it sits pinned at the raised boost ceiling (3,46x–3,51x MHz at ~1.08–1.09 V) for the whole prefill.
  • With that profile, the failure rate was 0.9–1.4 incidents per 100 completed requests (stalls caught by the 60 s heartbeat → MES REMOVE_QUEUE/SUSPEND failures → per-queue reset, plus illegal memory access faults), and it was flat across Strata 0.1.41/0.1.45/0.2.2, kernels 7.1.5/7.2.6/7.3.0, MES firmware 0x91/0x97, with and without the desktop on the card, with and without the conversation cache.
  • Today at stock (offsets 0/0, 170 W cap, LACT otherwise unchanged, nothing else touched): 620 back-to-back requests of the same shape that was failing (≈3,365 tokens reused prefix + ≈1,750 read, ≈360 generated, thinking off, forced tool call), 0 stalls, 0 engine faults, 0 abnormal amdgpu lines. At the previous rate a clean 600 happens by chance well under 1 % of the time. Prefill/decode speed is unchanged from the overclocked configuration (≈290 tok/s prefill on that shape, ≈30 tok/s decode), so the profile was buying nothing. I'm continuing to 1,500 and will post the result.

Two caveats so nobody over-reads this:

  1. The identical signature is reported on stock-clocked gfx120X and gfx1100 cards (e.g. ROCm/TheRock #9279, #9299, #9235), so I read my overclock as something that pushed a marginal path over the edge, not as the only cause. The stall itself (a dispatch that MES can neither suspend nor remove, card at 100 % busy) is still unexplained upstream.
  2. The gather_native_group / copy_i32 names in the fault messages are just the first launch to see a sticky error; the faulting addresses were all different (one write, one aperture violation), consistent with a garbage GPU-computed address rather than a stale pointer.

If you are hitting this: cat /sys/class/drm/card*/device/pp_od_clk_voltage and cat .../hwmon/hwmon*/power1_cap are worth a look before anything else, especially if the profile was tuned for games or Vulkan. Reset to stock is echo r > pp_od_clk_voltage; echo c > pp_od_clk_voltage as root (or remove the offsets in LACT and restart lactd; LACT re-applies its profile after every GPU reset, so clearing the sysfs values alone does not stick).

Versions checked: 0.2.2 is still the latest release (engine 0.1.47); nothing newer touches this path. Kernel 7.3.0, GC 12.0.0 firmware from linux-firmware 2026-10-16 (MES 0x97), ROCm 7.10.0a20251120 as pinned by setup.py.

<!-- gh-comment-id:6363011177 --> @codywb commented on GitHub (Oct 23, 2026): **Update (2026-10-23): a +150 MHz / -50 mV overclock-undervolt on my RX 9060 XT was aggravating this. At stock clocks the stall has not reproduced.** Since my last comment I ran a full root-cause pass instead of one fix at a time. The relevant finding for this issue: - My card had been running an overdrive profile applied by LACT since mid-September: `OD_SCLK_OFFSET +150 MHz`, `OD_VDDGFX_OFFSET -50 mV`, power cap raised 170 → 182 W. It had been validated only under llama.cpp on Vulkan (where the card peaked at ~124 W) and was not in my earlier reports. Under Strata's prefill the card draws only ~100–120 W, so the cap never engages and it sits pinned at the raised boost ceiling (3,46x–3,51x MHz at ~1.08–1.09 V) for the whole prefill. - With that profile, the failure rate was 0.9–1.4 incidents per 100 completed requests (stalls caught by the 60 s heartbeat → MES `REMOVE_QUEUE`/`SUSPEND` failures → per-queue reset, plus `illegal memory access` faults), and it was flat across Strata 0.1.41/0.1.45/0.2.2, kernels 7.1.5/7.2.6/7.3.0, MES firmware 0x91/0x97, with and without the desktop on the card, with and without the conversation cache. - Today at stock (offsets 0/0, 170 W cap, LACT otherwise unchanged, nothing else touched): **620 back-to-back requests of the same shape that was failing (≈3,365 tokens reused prefix + ≈1,750 read, ≈360 generated, thinking off, forced tool call), 0 stalls, 0 engine faults, 0 abnormal amdgpu lines**. At the previous rate a clean 600 happens by chance well under 1 % of the time. Prefill/decode speed is unchanged from the overclocked configuration (≈290 tok/s prefill on that shape, ≈30 tok/s decode), so the profile was buying nothing. I'm continuing to 1,500 and will post the result. Two caveats so nobody over-reads this: 1. The identical signature is reported on stock-clocked gfx120X and gfx1100 cards (e.g. ROCm/TheRock #9279, #9299, #9235), so I read my overclock as something that pushed a marginal path over the edge, not as the only cause. The stall itself (a dispatch that MES can neither suspend nor remove, card at 100 % busy) is still unexplained upstream. 2. The `gather_native_group` / `copy_i32` names in the fault messages are just the first launch to see a sticky error; the faulting addresses were all different (one write, one aperture violation), consistent with a garbage GPU-computed address rather than a stale pointer. If you are hitting this: `cat /sys/class/drm/card*/device/pp_od_clk_voltage` and `cat .../hwmon/hwmon*/power1_cap` are worth a look before anything else, especially if the profile was tuned for games or Vulkan. Reset to stock is `echo r > pp_od_clk_voltage; echo c > pp_od_clk_voltage` as root (or remove the offsets in LACT and restart `lactd`; LACT re-applies its profile after every GPU reset, so clearing the sysfs values alone does not stick). Versions checked: 0.2.2 is still the latest release (engine 0.1.47); nothing newer touches this path. Kernel 7.3.0, GC 12.0.0 firmware from linux-firmware 2026-10-16 (MES 0x97), ROCm 7.10.0a20251120 as pinned by `setup.py`.
bsakaguchi changed title from [GH-ISSUE #3680] [Engine] gfx1200 (RX 9060 XT), 0.1.45: page fault ("prefill copy_i32: unspecified launch failure") and a batched-prefill hang, both on the first chunk after a reused 3,358-token prefix with a full conversation cache; MES then fails and… to [GH-ISSUE #3680] [Engine] gfx1200 (RX 9060 XT), 0.1.45: page fault ("prefill copy_i32: unspecified launch failure") and a batched-prefill hang, both on the first chunk after a reused 3,358-token prefix with a full conversation cache; MES then fails and… 2026-11-07 14:35:47 +07:00
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659605700 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1523
No description provided.