GPU page fault (SQC data) and device removed when braking to a stop, 3 times on the same route (RX 9070 XT) #271

Open
opened 2026-12-02 23:45:33 +00:00 by github-bot · 8 comments
Owner

@⁠joaowtrdev on GitHub · 2026-12-02 23:43 UTC · original

Setup

  • Ryzen 7 5700X3D, RX 9070 XT 16 GB, 32 GB RAM
  • CachyOS, kernel 7.3.4, KDE Plasma 6.8 Wayland (XWayland), system Wine 11.22 (USE_SYSTEM_WINE=1), the repo's patched Mesa and vkd3d-proton
  • tools/wake-race.sh 30 passes on this Wine (no damage in 30 s)
  • 4K output, FSR 4 Performance, ray tracing on, VICTORY_UI_PLANE=3840x2160, VICTORY_CARD_PULL=0, VICTORY_PAGES_SEEN=1, lsfg-vk 2x (on in all three runs)

What happens

While driving my usual route, the game freezes for up to a couple of seconds and closes with device removed: 0x887A0005. It happened 3 times, on 3 builds, each time while braking to a stop: twice a few metres from the player's house on the way back, and once on a hard brake in the city.

# Build Time in the world What I was doing
1 241c79e 4.2 min braking to stop near the house
2 a513077 4.1 min braking to stop near the house
3 97c995c 2.3 min hard brake while driving in the city

About ten other runs on the same route that day ended normally, so it does not happen every time.

Kernel

The same fault each time, from the game's vkd3d_queue thread:

amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:4)
amdgpu:  Process P pid N thread vkd3d_queue pid N
amdgpu:   in page starting at address 0x000080000d304000 from client 10
amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0040153B
amdgpu:          Faulty UTCL2 client ID: SQC (data) (0xa)
amdgpu:          MORE_FAULTS: 0x1
amdgpu:          WALKER_ERROR: 0x5
amdgpu:          PERMISSION_FAULTS: 0x3
amdgpu:          MAPPING_ERROR: 0x1
amdgpu:          RW: 0x0

The address differs each time (0x000080000d304000, 0x00008000261b8000, 0x00008000269fc000). The client is always SQC (data) with RW: 0x0: a shader's scalar read, such as a descriptor or constant load, from a page that is no longer mapped. Crash 3 shows FAULT_STATUS 0x0060153B.

VIctory's summary

All three say nothing of ours was running on the card:

  • 1: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 2019.9 ms
  • 2: the submitting thread was preparing a submission (nothing of ours was running on the card), of 3 lists, for 1.1 ms
  • 3: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 37.2 ms

In all three, the 96 "things done" listed cover the last 85–113 s, and every one is a texture sweep. They are host copies of textures the title fills, held by its title texture alone (no list, no slot), plus staging buffers. That is 6.2–9.2 GB of host copies let go in that span, about every 1–2 s. The last sweep was 2–5 s before the fault. This churn may well be normal, so I am not claiming it is the cause. It is the only thing listed, and a scalar read of an unmapped page is what reading something that was let go would look like.

Attached: the kernel lines and VIctory's full summary for each crash, with paths removed: crash-1-241c79e.txt, crash-2-a513077.txt, crash-3-97c995c.txt.

What I can test

  • The same stop with lsfg-vk off, and with ray tracing off, to see whether either changes it.
  • A VKD3D_CONFIG=breadcrumbs run, which I already tried once, but that run did not crash.
  • Any diagnostics switch you suggest. Braking to a stop on that route seems to be the trigger, so I can repeat it.

crash-3-97c995c.txt
crash-2-a513077.txt
crash-1-241c79e.txt

**@⁠joaowtrdev** on GitHub · 2026-12-02 23:43 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271) ### Setup - Ryzen 7 5700X3D, RX 9070 XT 16 GB, 32 GB RAM - CachyOS, kernel 7.3.4, KDE Plasma 6.8 Wayland (XWayland), system Wine 11.22 (`USE_SYSTEM_WINE=1`), the repo's patched Mesa and vkd3d-proton - `tools/wake-race.sh 30` passes on this Wine (no damage in 30 s) - 4K output, FSR 4 Performance, ray tracing on, `VICTORY_UI_PLANE=3840x2160`, `VICTORY_CARD_PULL=0`, `VICTORY_PAGES_SEEN=1`, lsfg-vk 2x (on in all three runs) ### What happens While driving my usual route, the game freezes for up to a couple of seconds and closes with `device removed: 0x887A0005`. It happened 3 times, on 3 builds, each time while braking to a stop: twice a few metres from the player's house on the way back, and once on a hard brake in the city. | # | Build | Time in the world | What I was doing | |---|---|---|---| | 1 | `241c79e` | 4.2 min | braking to stop near the house | | 2 | `a513077` | 4.1 min | braking to stop near the house | | 3 | `97c995c` | 2.3 min | hard brake while driving in the city | About ten other runs on the same route that day ended normally, so it does not happen every time. ### Kernel The same fault each time, from the game's `vkd3d_queue` thread: ``` amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:4) amdgpu: Process P pid N thread vkd3d_queue pid N amdgpu: in page starting at address 0x000080000d304000 from client 10 amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0040153B amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa) amdgpu: MORE_FAULTS: 0x1 amdgpu: WALKER_ERROR: 0x5 amdgpu: PERMISSION_FAULTS: 0x3 amdgpu: MAPPING_ERROR: 0x1 amdgpu: RW: 0x0 ``` The address differs each time (`0x000080000d304000`, `0x00008000261b8000`, `0x00008000269fc000`). The client is always `SQC (data)` with `RW: 0x0`: a shader's scalar read, such as a descriptor or constant load, from a page that is no longer mapped. Crash 3 shows `FAULT_STATUS 0x0060153B`. ### VIctory's summary All three say nothing of ours was running on the card: - 1: `the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 2019.9 ms` - 2: `the submitting thread was preparing a submission (nothing of ours was running on the card), of 3 lists, for 1.1 ms` - 3: `the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 37.2 ms` In all three, the 96 "things done" listed cover the last 85–113 s, and every one is a texture sweep. They are host copies of textures the title fills, `held by its title texture alone (no list, no slot)`, plus staging buffers. That is 6.2–9.2 GB of host copies let go in that span, about every 1–2 s. The last sweep was 2–5 s before the fault. This churn may well be normal, so I am not claiming it is the cause. It is the only thing listed, and a scalar read of an unmapped page is what reading something that was let go would look like. Attached: the kernel lines and VIctory's full summary for each crash, with paths removed: `crash-1-241c79e.txt`, `crash-2-a513077.txt`, `crash-3-97c995c.txt`. ### What I can test - The same stop with lsfg-vk off, and with ray tracing off, to see whether either changes it. - A `VKD3D_CONFIG=breadcrumbs` run, which I already tried once, but that run did not crash. - Any diagnostics switch you suggest. Braking to a stop on that route seems to be the trigger, so I can repeat it. [crash-3-97c995c.txt](https://github.com/user-attachments/files/35771309/crash-3-97c995c.txt) [crash-2-a513077.txt](https://github.com/user-attachments/files/35771308/crash-2-a513077.txt) [crash-1-241c79e.txt](https://github.com/user-attachments/files/35771307/crash-1-241c79e.txt)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 23:45:33 +00:00
Author
Owner

@⁠DrArroway on GitHub · 2026-12-03 17:22 UTC · original

Reproduced the same SQC (data) (0xa) PERMISSION_FAULTS: 0x3 GPUVM page fault + 0x887A0005 on RDNA 2 today on main (4e02e38), so this isn't RDNA 4-only and wasn't fixed by e92fd7a (#239).

Setup & settings when it faulted

  • GPU: AMD Radeon RX 6900 XT (1002:73bf) (vram_mb=16368), RADV (repo patched Mesa + vkd3d-proton), GE-Proton11-15
  • CPU / RAM / OS: AMD Ryzen 9 7900X, 62 GiB RAM, CachyOS kernel 7.3.7-1-cachyos
  • Settings: VICTORY_BENCH=rt (CONSOLE=series-x, 3840x2160 output, VICTORY_FSR_4K=quality — 4.1.2 via FSR4_UPGRADE=1 at [2560, 1440] render, VICTORY_BVH_BUILDER=1, VICTORY_PARTS_ONE_CALL=1, VICTORY_KEEP_HOST_BUFFERS=1, default page moving on, no framegen)
  • Timing: ~3.3 min after first upscaling (16:47:13Z → 16:50:33Z; ~8.6 min from process start including initial pipeline prep)

Kernel (journalctl -k)

Note thread victory-submit hit the SQC (data) permission fault, and the ensuing gfx_0.0.0 ring timeout reported thread page residency:

amdgpu 0000:03:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:8413)
amdgpu 0000:03:00.0:  Process main pid 8773 thread victory-submit pid 33698
amdgpu 0000:03:00.0:   in page starting at address 0x000080002acad000 from client 0x1b (UTCL2)
amdgpu 0000:03:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701431
amdgpu 0000:03:00.0:          Faulty UTCL2 client ID: SQC (data) (0xa)
amdgpu 0000:03:00.0:          MORE_FAULTS: 0x1
amdgpu 0000:03:00.0:          WALKER_ERROR: 0x0
amdgpu 0000:03:00.0:          PERMISSION_FAULTS: 0x3
amdgpu 0000:03:00.0:          MAPPING_ERROR: 0x0
amdgpu 0000:03:00.0:          RW: 0x0
...
amdgpu 0000:03:00.0: ring gfx_0.0.0 timeout, signaled seq=198214, emitted seq=198216
amdgpu 0000:03:00.0:  Process main pid 8773 thread page residency pid 33618
amdgpu 0000:03:00.0: Starting gfx_0.0.0 ring reset
amdgpu 0000:03:00.0: Ring gfx_0.0.0 reset succeeded
amdgpu 0000:03:00.0: [drm] device wedged, but no recovery needed

VIctory log right before the fault (~2 s earlier + last event)

Right before device removed: 0x887A0005, the texture pool was at 92% budget and sweep let go 588 host copies 0.6 ms before the fault:

textures from the first level viewed ... 622 MB of texture blocks free (pool 5312 MB, staging 640 MB, vram 13878/15580 MB, shared 10507 MB)
texture blocks: 83 alive, 6 being emptied ... room line 92% of the budget, 86% with texture blocks' free space taken off
page residency: 3398 MB of 9330 MB of paged title memory on the card, card room for the title 4080 MB, 1669 MB of the card free; since the start 18111 pages moved up ... 10278 down when the processor touched them (3724 within two seconds of promotion) ... last pass 53458 us
unified memory: 8506 MB in RAM, 3542 MB in VRAM in 30 pools shown at 81916 places; 189342 maps, 43204 unmaps; on the card 36 (0 refused)
...
radv: GPUVM fault detected at address 0x80002acad000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x701431
  CLIENT_ID: (SQC (data)) 0xa  MORE_FAULTS: 1  WALKER_ERROR: 0  PERMISSION_FAULTS: 3  MAPPING_ERROR: 0  RW: 0
when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 0.2 ms; ... submissions started 68607 finished 68606; the last 74 things done, newest last:
  ...
  0.6 ms before, thread 452: sweep: 588 host copies of textures the title fills let go (51200 KiB), each held by its title texture alone (no list, no slot); the first: title texture 0x2003731880
host GPU device removed after 1 submissions sent ahead of 27 lists; device removed: 0x887A0005

Auto-restarted control session right after (2560x1440, no VICTORY_FSR_4K)

run.sh automatically restarted the game without VICTORY_BENCH=rt (now 2560x1440 native, still with VICTORY_PARTS_ONE_CALL=1, VICTORY_KEEP_HOST_BUFFERS=1, RT on, and default page moving on), and that session ran for 21 minutes (16:50:46 → 17:11:44 UTC) with 0 errors, steady 8517 MB RAM / 3521 MB VRAM (26.2 median / 26.5 avg FPS across 227 samples via tools/session-fps.sh), and 0.0 allocators remade for age.

**@⁠DrArroway** on GitHub · 2026-12-03 17:22 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7386395387) Reproduced the same `SQC (data)` (`0xa`) `PERMISSION_FAULTS: 0x3` GPUVM page fault + `0x887A0005` on **RDNA 2** today on `main` (`4e02e38`), so this isn't RDNA 4-only and wasn't fixed by `e92fd7a` (`#239`). ### Setup & settings when it faulted - **GPU:** `AMD Radeon RX 6900 XT (1002:73bf)` (`vram_mb=16368`), RADV (repo patched Mesa + vkd3d-proton), `GE-Proton11-15` - **CPU / RAM / OS:** AMD Ryzen 9 7900X, 62 GiB RAM, CachyOS kernel `7.3.7-1-cachyos` - **Settings:** `VICTORY_BENCH=rt` (`CONSOLE=series-x`, `3840x2160` output, `VICTORY_FSR_4K=quality` — `4.1.2` via `FSR4_UPGRADE=1` at `[2560, 1440]` render, `VICTORY_BVH_BUILDER=1`, `VICTORY_PARTS_ONE_CALL=1`, `VICTORY_KEEP_HOST_BUFFERS=1`, default page moving on, no framegen) - **Timing:** ~3.3 min after first upscaling (`16:47:13Z` → `16:50:33Z`; ~8.6 min from process start including initial pipeline prep) ### Kernel (`journalctl -k`) Note `thread victory-submit` hit the `SQC (data)` permission fault, and the ensuing `gfx_0.0.0` ring timeout reported `thread page residency`: ```text amdgpu 0000:03:00.0: [gfxhub] page fault (src_id:0 ring:24 vmid:7 pasid:8413) amdgpu 0000:03:00.0: Process main pid 8773 thread victory-submit pid 33698 amdgpu 0000:03:00.0: in page starting at address 0x000080002acad000 from client 0x1b (UTCL2) amdgpu 0000:03:00.0: GCVM_L2_PROTECTION_FAULT_STATUS:0x00701431 amdgpu 0000:03:00.0: Faulty UTCL2 client ID: SQC (data) (0xa) amdgpu 0000:03:00.0: MORE_FAULTS: 0x1 amdgpu 0000:03:00.0: WALKER_ERROR: 0x0 amdgpu 0000:03:00.0: PERMISSION_FAULTS: 0x3 amdgpu 0000:03:00.0: MAPPING_ERROR: 0x0 amdgpu 0000:03:00.0: RW: 0x0 ... amdgpu 0000:03:00.0: ring gfx_0.0.0 timeout, signaled seq=198214, emitted seq=198216 amdgpu 0000:03:00.0: Process main pid 8773 thread page residency pid 33618 amdgpu 0000:03:00.0: Starting gfx_0.0.0 ring reset amdgpu 0000:03:00.0: Ring gfx_0.0.0 reset succeeded amdgpu 0000:03:00.0: [drm] device wedged, but no recovery needed ``` ### `VIctory` log right before the fault (~2 s earlier + last event) Right before `device removed: 0x887A0005`, the texture pool was at `92%` budget and `sweep` let go 588 host copies `0.6 ms` before the fault: ```text textures from the first level viewed ... 622 MB of texture blocks free (pool 5312 MB, staging 640 MB, vram 13878/15580 MB, shared 10507 MB) texture blocks: 83 alive, 6 being emptied ... room line 92% of the budget, 86% with texture blocks' free space taken off page residency: 3398 MB of 9330 MB of paged title memory on the card, card room for the title 4080 MB, 1669 MB of the card free; since the start 18111 pages moved up ... 10278 down when the processor touched them (3724 within two seconds of promotion) ... last pass 53458 us unified memory: 8506 MB in RAM, 3542 MB in VRAM in 30 pools shown at 81916 places; 189342 maps, 43204 unmaps; on the card 36 (0 refused) ... radv: GPUVM fault detected at address 0x80002acad000. GCVM_L2_PROTECTION_FAULT_STATUS: 0x701431 CLIENT_ID: (SQC (data)) 0xa MORE_FAULTS: 1 WALKER_ERROR: 0 PERMISSION_FAULTS: 3 MAPPING_ERROR: 0 RW: 0 when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 0.2 ms; ... submissions started 68607 finished 68606; the last 74 things done, newest last: ... 0.6 ms before, thread 452: sweep: 588 host copies of textures the title fills let go (51200 KiB), each held by its title texture alone (no list, no slot); the first: title texture 0x2003731880 host GPU device removed after 1 submissions sent ahead of 27 lists; device removed: 0x887A0005 ``` ### Auto-restarted control session right after (`2560x1440`, no `VICTORY_FSR_4K`) `run.sh` automatically restarted the game without `VICTORY_BENCH=rt` (now `2560x1440` native, still with `VICTORY_PARTS_ONE_CALL=1`, `VICTORY_KEEP_HOST_BUFFERS=1`, RT on, and default page moving on), and that session ran for **21 minutes** (`16:50:46` → `17:11:44` UTC) with **0 errors**, steady `8517 MB` RAM / `3521 MB` VRAM (`26.2` median / `26.5` avg FPS across `227` samples via `tools/session-fps.sh`), and `0.0` allocators remade for age.
Author
Owner

@⁠MJ26gaming on GitHub · 2026-12-04 18:02 UTC · original

Another occurrence of the same signature, this time standing still (no driving), on an RX 9070 XT with the hardware-RT stack.

Setup

  • Ryzen 7 7700, RX 9070 XT 16 GB (RDNA 4), 32 GB RAM, CachyOS kernel 7.3.7, KDE Plasma Wayland
  • GE-Proton11-14, this repo's patched Mesa 26.3.1 and vkd3d-proton from setup.sh
  • Build: main 0fd7614 with LOCKhart07's rt-9-ledger (b0cbfd1) and #459 merged locally; release build
  • CONSOLE=series-x VICTORY_OUTPUT=1920x1080 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_HW_RT=1 VICTORY_HW_RT_LEAN_BUILDER=1 VICTORY_HW_RT_REUSE=1, windowed, warm caches
  • City save, the player standing outside a restaurant; game clock at night (TZ=Asia/Tokyo)

What happened

~4.7 min in the world, steady ~44 fps before it (last 5 s line: fps=38.4, 4464 draws, gpu_wait 5.8 ms). Game log at the end:

ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 2036.2 ms; ...
ERROR victory_gpu::host: host GPU device removed after 17 submissions sent ahead of 235 lists; device removed: 0x887A0005

Last memory lines before it:

victory_gpu::um: page residency: 3363 MB of 9330 MB of paged title memory on the card, card room for the title 4016 MB, 3789 MB of the card free; since the start 16907 pages moved up ...
victory_gpu::host: unified memory: 8546 MB in RAM, 3507 MB in VRAM in 30 pools shown at 57123 places; 117733 maps, 42478 unmaps; on the card 36 (0 refused) ...

HW RT loss counters were all 0. VRAM was not near the budget here (3.8 GB of the card free), unlike the 92% case above.

Kernel

amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:7 pasid:N)
amdgpu:  Process main pid N thread vkd3d_queue pid N
amdgpu:   in page starting at address 0x0000800024b28000 from client 10
amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B
amdgpu:          Faulty UTCL2 client ID: SQC (data) (0xa)
amdgpu:          MORE_FAULTS: 0x1
amdgpu:          WALKER_ERROR: 0x5
amdgpu:          PERMISSION_FAULTS: 0x3
amdgpu:          MAPPING_ERROR: 0x1
amdgpu:          RW: 0x0
amdgpu: ring gfx_0.0.0 timeout, signaled seq=33670919, emitted seq=33670920
amdgpu: Ring gfx_0.0.0 reset succeeded

Frequency

Once so far. Not reproduced in three later 300 s night runs (same scene, same build plus VICTORY_REMOVAL_RANGES=1), nor in a 70 min daytime run of the same build plus #452. I'm now running with VICTORY_REMOVAL_RANGES=1 so a next occurrence should name the title range behind the faulting card address; I'll add it here if it happens.

**@⁠MJ26gaming** on GitHub · 2026-12-04 18:02 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7419819056) Another occurrence of the same signature, this time **standing still** (no driving), on an RX 9070 XT with the hardware-RT stack. ### Setup - Ryzen 7 7700, RX 9070 XT 16 GB (RDNA 4), 32 GB RAM, CachyOS kernel 7.3.7, KDE Plasma Wayland - GE-Proton11-14, this repo's patched Mesa 26.3.1 and vkd3d-proton from `setup.sh` - Build: `main` 0fd7614 with LOCKhart07's `rt-9-ledger` (b0cbfd1) and #459 merged locally; release build - `CONSOLE=series-x VICTORY_OUTPUT=1920x1080 VICTORY_FRAME_INTERVAL_MS=0 VICTORY_HW_RT=1 VICTORY_HW_RT_LEAN_BUILDER=1 VICTORY_HW_RT_REUSE=1`, windowed, warm caches - City save, the player standing outside a restaurant; game clock at night (`TZ=Asia/Tokyo`) ### What happened ~4.7 min in the world, steady ~44 fps before it (last 5 s line: fps=38.4, 4464 draws, gpu_wait 5.8 ms). Game log at the end: ``` ERROR victory_gpu::host: when the host device went: the submitting thread was between submissions (nothing of ours was running on the card), of 0 lists, for 2036.2 ms; ... ERROR victory_gpu::host: host GPU device removed after 17 submissions sent ahead of 235 lists; device removed: 0x887A0005 ``` Last memory lines before it: ``` victory_gpu::um: page residency: 3363 MB of 9330 MB of paged title memory on the card, card room for the title 4016 MB, 3789 MB of the card free; since the start 16907 pages moved up ... victory_gpu::host: unified memory: 8546 MB in RAM, 3507 MB in VRAM in 30 pools shown at 57123 places; 117733 maps, 42478 unmaps; on the card 36 (0 refused) ... ``` HW RT loss counters were all 0. VRAM was not near the budget here (3.8 GB of the card free), unlike the 92% case above. ### Kernel ``` amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:7 pasid:N) amdgpu: Process main pid N thread vkd3d_queue pid N amdgpu: in page starting at address 0x0000800024b28000 from client 10 amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa) amdgpu: MORE_FAULTS: 0x1 amdgpu: WALKER_ERROR: 0x5 amdgpu: PERMISSION_FAULTS: 0x3 amdgpu: MAPPING_ERROR: 0x1 amdgpu: RW: 0x0 amdgpu: ring gfx_0.0.0 timeout, signaled seq=33670919, emitted seq=33670920 amdgpu: Ring gfx_0.0.0 reset succeeded ``` ### Frequency Once so far. Not reproduced in three later 300 s night runs (same scene, same build plus `VICTORY_REMOVAL_RANGES=1`), nor in a 70 min daytime run of the same build plus #452. I'm now running with `VICTORY_REMOVAL_RANGES=1` so a next occurrence should name the title range behind the faulting card address; I'll add it here if it happens.
Author
Owner

@⁠joaowtrdev on GitHub · 2026-12-04 19:38 UTC · original

Two more here, on the same RX 9070 XT as the original report. They're the first on my PR build. This time it was while driving normally through the city, not when braking.

Build: main b2449c4 with #354, #364, #376, #382, #385 and #445 merged in (no HW RT stack). Release build, system Wine, the repo's Mesa and vkd3d-proton. 4K output, FSR 4 Performance, RT on (VICTORY_BVH_BUILDER default), ML frame generation (mode 4), VICTORY_FRAME_INTERVAL_MS unset (so 30 fps since #400).

What happened: about 3.5 min into the world. It was steady at 30 real fps standing, then dropped to 17 to 24 once I started driving. Then the game closed:

ERROR victory_gpu::draw: the host device went while textures picked by index were made ready; ...
ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 44 lists, for 0.9 ms; ... submissions started 104185 finished 104180
ERROR victory_gpu::host: host GPU device removed after 1 submissions sent ahead of 44 lists; device removed: 0x887A0005

Kernel: the same status word as MJ26gaming's (0x0070153B):

amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:7 pasid:N)
amdgpu:  Process main pid N thread vkd3d_queue pid N
amdgpu:   in page starting at address 0x00008000256c1000 from client 10
amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B
amdgpu:          Faulty UTCL2 client ID: SQC (data) (0xa)
amdgpu:          MORE_FAULTS: 0x1
amdgpu:          WALKER_ERROR: 0x5
amdgpu:          PERMISSION_FAULTS: 0x3
amdgpu:          MAPPING_ERROR: 0x1
amdgpu:          RW: 0x0
amdgpu: ring gfx_0.0.0 timeout, signaled seq=1465940, emitted seq=1465942
amdgpu: Ring gfx_0.0.0 reset succeeded

Memory just before (9 s earlier):

page residency: 3855 MB of 9330 MB of paged title memory on the card, card room for the title 4016 MB, 2416 MB of the card free; since the start 79038 pages moved up (...), 9015 down cold, 0 down for room, 54873 down when the processor touched them (13056 within two seconds of promotion) ...
unified memory: 8121 MB in RAM, 3999 MB in VRAM in 30 pools shown at 74603 places; 221418 maps, 78017 unmaps ...

As in MJ26gaming's case, the card had room (2.4 GB free, nothing moved down for room). The texture sweep had been letting go of about 196 MB of host copies every 3 to 4 s before it.

It repeated on the next run of the same build, about 5.5 min in and again while driving. Same status word 0x0070153B, page 0x000080002537d000, 2590 MB of the card free, nothing moved down for room. The devcoredump of that second one is attached (the kernel names the page residency thread as the one running when the ring timed out).

It hadn't happened in my earlier runs on the PR build before this update, and this build is the first with #458 and #459. So I reverted those two (same build otherwise). The first run went about 7 min, 6 of them driving the same kind of route, without a fault, and I closed it myself. Same fps as before (20.4 real while driving).

That's one run, a bit past where the second fault hit, so it's not proof. My first faults (in the report above) were also from before #459 existed. But MJ26gaming had #459 merged locally when theirs happened too. I'll do a longer run on the reverted build, then put back one PR at a time, and add what I find here.

devcoredump-20261204-1622.txt

**@⁠joaowtrdev** on GitHub · 2026-12-04 19:38 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7422180537) Two more here, on the same RX 9070 XT as the original report. They're the first on my PR build. This time it was while driving normally through the city, not when braking. **Build:** main `b2449c4` with #354, #364, #376, #382, #385 and #445 merged in (no HW RT stack). Release build, system Wine, the repo's Mesa and vkd3d-proton. 4K output, FSR 4 Performance, RT on (`VICTORY_BVH_BUILDER` default), ML frame generation (mode 4), `VICTORY_FRAME_INTERVAL_MS` unset (so 30 fps since #400). **What happened:** about 3.5 min into the world. It was steady at 30 real fps standing, then dropped to 17 to 24 once I started driving. Then the game closed: ``` ERROR victory_gpu::draw: the host device went while textures picked by index were made ready; ... ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 44 lists, for 0.9 ms; ... submissions started 104185 finished 104180 ERROR victory_gpu::host: host GPU device removed after 1 submissions sent ahead of 44 lists; device removed: 0x887A0005 ``` **Kernel:** the same status word as MJ26gaming's (`0x0070153B`): ``` amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:7 pasid:N) amdgpu: Process main pid N thread vkd3d_queue pid N amdgpu: in page starting at address 0x00008000256c1000 from client 10 amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa) amdgpu: MORE_FAULTS: 0x1 amdgpu: WALKER_ERROR: 0x5 amdgpu: PERMISSION_FAULTS: 0x3 amdgpu: MAPPING_ERROR: 0x1 amdgpu: RW: 0x0 amdgpu: ring gfx_0.0.0 timeout, signaled seq=1465940, emitted seq=1465942 amdgpu: Ring gfx_0.0.0 reset succeeded ``` **Memory just before (9 s earlier):** ``` page residency: 3855 MB of 9330 MB of paged title memory on the card, card room for the title 4016 MB, 2416 MB of the card free; since the start 79038 pages moved up (...), 9015 down cold, 0 down for room, 54873 down when the processor touched them (13056 within two seconds of promotion) ... unified memory: 8121 MB in RAM, 3999 MB in VRAM in 30 pools shown at 74603 places; 221418 maps, 78017 unmaps ... ``` As in MJ26gaming's case, the card had room (2.4 GB free, nothing moved down for room). The texture sweep had been letting go of about 196 MB of host copies every 3 to 4 s before it. **It repeated on the next run** of the same build, about 5.5 min in and again while driving. Same status word `0x0070153B`, page `0x000080002537d000`, 2590 MB of the card free, nothing moved down for room. The devcoredump of that second one is attached (the kernel names the `page residency` thread as the one running when the ring timed out). It hadn't happened in my earlier runs on the PR build before this update, and this build is the first with #458 and #459. So I reverted those two (same build otherwise). The first run went about 7 min, 6 of them driving the same kind of route, without a fault, and I closed it myself. Same fps as before (20.4 real while driving). That's one run, a bit past where the second fault hit, so it's not proof. My first faults (in the report above) were also from before #459 existed. But MJ26gaming had #459 merged locally when theirs happened too. I'll do a longer run on the reverted build, then put back one PR at a time, and add what I find here. [devcoredump-20261204-1622.txt](https://github.com/user-attachments/files/35889411/devcoredump-20261204-1622.txt)
Author
Owner

@⁠joaowtrdev on GitHub · 2026-12-04 20:05 UTC · original

Follow-up: it points at #459 here.

On the same build as above, with #458 put back and only #459 reverted (main 3fe840c plus my PRs, pool.rs without the tight-alignment commits), I did a 20 min run, 19 min of it driving the same kind of route. It had no fault, and I closed it myself.

build runs fault
with #458 and #459 2 both, at about 3.5 and 5.5 min
without either 1 (~7 min) none
with #458, without #459 1 (~20 min) none

It's still few runs, and this fault was rare before #459 too (my first reports here predate it). But the description of #459 says the earlier 4 KiB placement was taken out after two device losses on 2026-11-25 without a proven cause. MJ26gaming also had #459 merged when theirs happened. So the tight alignment may raise how often it happens on RDNA 4, where tier=1 makes it active (on NVIDIA/WARP the tier is 0, so it never runs there).

The log on the faulting build had pool: the host's tight alignment tier tier=1. I'm staying on the build without #459, and will report if it faults there. If there's a switch or a diagnostics build that would help pin it, I can run it.

**@⁠joaowtrdev** on GitHub · 2026-12-04 20:05 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7422811813) Follow-up: it points at #459 here. On the same build as above, with #458 put back and only #459 reverted (main `3fe840c` plus my PRs, `pool.rs` without the tight-alignment commits), I did a 20 min run, 19 min of it driving the same kind of route. It had no fault, and I closed it myself. | build | runs | fault | |---|---|---| | with #458 and #459 | 2 | both, at about 3.5 and 5.5 min | | without either | 1 (~7 min) | none | | with #458, without #459 | 1 (~20 min) | none | It's still few runs, and this fault was rare before #459 too (my first reports here predate it). But the description of #459 says the earlier 4 KiB placement was taken out after two device losses on 2026-11-25 without a proven cause. MJ26gaming also had #459 merged when theirs happened. So the tight alignment may raise how often it happens on RDNA 4, where `tier=1` makes it active (on NVIDIA/WARP the tier is 0, so it never runs there). The log on the faulting build had `pool: the host's tight alignment tier tier=1`. I'm staying on the build without #459, and will report if it faults there. If there's a switch or a diagnostics build that would help pin it, I can run it.
Author
Owner

@⁠MJ26gaming on GitHub · 2026-12-04 23:44 UTC · original

Another one here, with VICTORY_REMOVAL_RANGES=1 on, and a switch to turn #459 off.

The fault. Main b2449c4 plus the HW RT stack and #452 (so with #458 and #459, tight alignment tier 1). RX 9070 XT, RADV, Mesa 26.3.1. 1080p, standing in the city, about 5 min in the world:

GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B  SQC (data)
in page starting at address 0x0000800021c18000

What the range report rules out. The page is not in title memory on the card: the lowest mirrored title range was 0x8004a0600000. It is also not in any of the 1334 live or 1024 most recently dropped buffers the report lists (upload buffers, HW RT buffers, retired resources). The nearest listed buffer started about 6 GB away. The report says textures and their blocks have no address in it, so a texture or texture block is what's left. That fits #459, which changes how textures are placed.

The pages so far. Both of ours, 0x800021c18000 and 0x800024b28000, and the four reported above (0x80000d304000, 0x8000256c1000, 0x800027514000, 0x80002acad000) are all within the first ~700 MB of the 0x8000_0000_0000 region.

A switch. VICTORY_TIGHT_ALIGNMENT=0 makes tight() in pool.rs report tier 0, so textures are placed at 64 KiB as before #459. It's one commit (7 lines) on current main: https://github.com/MJ26gaming/VIctory-xmem/tree/tight-alignment-switch. The log then says pool: tight alignment off (VICTORY_TIGHT_ALIGNMENT=0): 64 KiB placement. Here it made no difference to frame rate: 43.2 fps with it off, against 43–44 with it on, in matched 300 s runs.

What didn't settle it. #522's VICTORY_VRAM_FIRST=1 moves far more pages: about 1,400 CPU-read demotions and about 3,400 promotions in the 40 s before the fault. With it on, one run faulted the same way (0x0060153B, SQC data, page 0x8000001ad000, again low in that region) about 45 s in. That was 1 of 8 runs with it on, though. The six that followed, three with tight alignment off and three with it on, were all clean. So it doesn't reproduce the fault reliably, and I have no on/off evidence beyond yours yet. I'm playing with the switch off and will report if it faults that way.

**@⁠MJ26gaming** on GitHub · 2026-12-04 23:44 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7427421020) Another one here, with `VICTORY_REMOVAL_RANGES=1` on, and a switch to turn #459 off. **The fault.** Main `b2449c4` plus the HW RT stack and #452 (so with #458 and #459, tight alignment tier 1). RX 9070 XT, RADV, Mesa 26.3.1. 1080p, standing in the city, about 5 min in the world: ``` GCVM_L2_PROTECTION_FAULT_STATUS:0x0070153B SQC (data) in page starting at address 0x0000800021c18000 ``` **What the range report rules out.** The page is not in title memory on the card: the lowest mirrored title range was `0x8004a0600000`. It is also not in any of the 1334 live or 1024 most recently dropped buffers the report lists (upload buffers, HW RT buffers, retired resources). The nearest listed buffer started about 6 GB away. The report says textures and their blocks have no address in it, so a texture or texture block is what's left. That fits #459, which changes how textures are placed. **The pages so far.** Both of ours, `0x800021c18000` and `0x800024b28000`, and the four reported above (`0x80000d304000`, `0x8000256c1000`, `0x800027514000`, `0x80002acad000`) are all within the first ~700 MB of the `0x8000_0000_0000` region. **A switch.** `VICTORY_TIGHT_ALIGNMENT=0` makes `tight()` in `pool.rs` report tier 0, so textures are placed at 64 KiB as before #459. It's one commit (7 lines) on current main: https://github.com/MJ26gaming/VIctory-xmem/tree/tight-alignment-switch. The log then says `pool: tight alignment off (VICTORY_TIGHT_ALIGNMENT=0): 64 KiB placement`. Here it made no difference to frame rate: 43.2 fps with it off, against 43–44 with it on, in matched 300 s runs. **What didn't settle it.** #522's `VICTORY_VRAM_FIRST=1` moves far more pages: about 1,400 CPU-read demotions and about 3,400 promotions in the 40 s before the fault. With it on, one run faulted the same way (`0x0060153B`, SQC data, page `0x8000001ad000`, again low in that region) about 45 s in. That was 1 of 8 runs with it on, though. The six that followed, three with tight alignment off and three with it on, were all clean. So it doesn't reproduce the fault reliably, and I have no on/off evidence beyond yours yet. I'm playing with the switch off and will report if it faults that way.
Author
Owner

@⁠shaina94 on GitHub · 2026-12-05 06:57 UTC · original

Same SQC (data) fault, 8 times in one evening on an RX 9070 XT. Here it went away with ray tracing off (VICTORY_BVH_BUILDER=0). Neither page moving, the tight-alignment switch, a longer retire lag, a reboot nor rolling back our changes made a difference.

Setup

  • RX 9070 XT 16 GB (RDNA 4), Intel Core Ultra 7 270K, 48 GB RAM, Arch Linux kernel 7.3.5, KDE Plasma
  • GE-Proton10-26, this repo's patched Mesa and vkd3d-proton
  • Builds: 3fe840c and later b581f7e (release)
  • Base settings in every run: VICTORY_PRESET=medium, VICTORY_PAGES=0, 4K output with VICTORY_UI_PLANE=3840x2160, FSR balanced, frame generation on (VICTORY_FIDELITYFX_FRAMEGEN=1, later 4), VICTORY_SKIP_BINK=0

The fault

The same signature each time, from the game's vkd3d_queue thread:

amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:N pasid:N)
amdgpu:   in page starting at address 0x00008000220ad000 from client 10
amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0060153B
amdgpu:          Faulty UTCL2 client ID: SQC (data) (0xa)
amdgpu:          MORE_FAULTS: 0x1
amdgpu:          WALKER_ERROR: 0x5
amdgpu:          PERMISSION_FAULTS: 0x3
amdgpu:          MAPPING_ERROR: 0x1
amdgpu:          RW: 0x0
amdgpu: ring gfx_0.0.0 timeout ... Ring gfx_0.0.0 reset succeeded
amdgpu: [drm] device wedged, but no recovery needed
VIctory: host GPU failure: host GPU device removed ... device removed: 0x887A0005

The status words were 0x0050153B, 0x0060153B and 0x0070153B. The pages in the reports I saved were 0x8000220ad000, 0x8000219e5000, 0x8000009fd000, 0x8000224c9000 and 0x800010765000, so they too are all in the first ~700 MB of the 0x8000_0000_0000 region, like the ones above.

Runs

"Minutes" is time in the world (frames with over 1000 draws). The game was often in the background while I answered chats, so they aren't play time.

# Build What was different Ray tracing Minutes Result
1 3fe840c FSR 3.1.6 on 127 fault
2 3fe840c FSR 4.1.1, tight alignment off (MJ26gaming's switch) on 15 fault
3 3fe840c FSR 4.1.1, KDE panels stopped (budget 14.1 GB instead of 13.1) on 88 fault
4 b581f7e ML frame generation (mode 4) on 20 fault
5 b581f7e + retire lag 1024 instead of 128 (local patch, see below) on 43 fault
6 b581f7e same as 5 on 9 fault
7 3fe840c all of the above rolled back to run 1 on 5 fault
8 b581f7e same as 5, after a reboot on 35 fault
9 b581f7e same as 8, VICTORY_BVH_BUILDER=0 off 39 no fault, I closed it

The last runs were the "Coming Home" mission (in a bar). It faulted there on every attempt with ray tracing on, and got through it with ray tracing off in run 9. The other runs were mostly driving in the city. Earlier that day, four shorter runs (5 minutes or less in the world with ray tracing on, 8 minutes with it off) had no fault.

So it's 8 faults in 11 runs with ray tracing on, and none in 2 runs with it off. That's not many runs with it off, but it got past the spot that had faulted on every attempt before. It also matches AxolotOfficialYT's RX 7700 XT in #239, which ran 57 min clean with RT off and faulted 15 min after turning it on.

What didn't help

  • Tight alignment off (run 2): it still faulted. The texture log's "no room" lines came about 8 times as often (149,000 a minute against 19,000), but on a different route.
  • More free VRAM (run 3): with KDE's panels stopped, VRAM started near 87% of the budget instead of 94%. It lasted longer, but it climbed back to about 94% and faulted.
  • A longer retire lag (runs 5 to 8): a local change that reads VICTORY_BURY_LAG in host::bury() and holds objects let go for 1024 submissions instead of 128 (about 4 s at ~250 submissions a second; host lists still reset after 128). It still faulted, so the page probably isn't an object that was let go a few seconds earlier. In run 5, the last sweep before the fault let go of 9 host copies 2.5 s earlier, while that lag still held them.
  • A reboot before run 8: there had been 7 ring resets without a reboot, and the gaps between faults kept getting shorter. It still faulted after the reboot.

Before each fault

In every report, the last of the 96 things done were texture sweeps letting go of host copies, from 1.1 ms to 5 s before the fault. VRAM was at 88% to 95% of the budget each time. As joaowtrdev wrote, this may well be normal churn.

I have the full logs and the kernel lines for each run, so I can post any of them. I'm playing with ray tracing off for now. If there's a diagnostics build (VICTORY_D3D12_DEBUG=1) or a switch that narrows down which ray-tracing pass is reading the page, I can run it with ray tracing on.

**@⁠shaina94** on GitHub · 2026-12-05 06:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7433753912) Same `SQC (data)` fault, 8 times in one evening on an RX 9070 XT. Here it went away with ray tracing off (`VICTORY_BVH_BUILDER=0`). Neither page moving, the tight-alignment switch, a longer retire lag, a reboot nor rolling back our changes made a difference. ### Setup - RX 9070 XT 16 GB (RDNA 4), Intel Core Ultra 7 270K, 48 GB RAM, Arch Linux kernel 7.3.5, KDE Plasma - GE-Proton10-26, this repo's patched Mesa and vkd3d-proton - Builds: `3fe840c` and later `b581f7e` (release) - Base settings in every run: `VICTORY_PRESET=medium`, `VICTORY_PAGES=0`, 4K output with `VICTORY_UI_PLANE=3840x2160`, FSR balanced, frame generation on (`VICTORY_FIDELITYFX_FRAMEGEN=1`, later `4`), `VICTORY_SKIP_BINK=0` ### The fault The same signature each time, from the game's `vkd3d_queue` thread: ``` amdgpu: [gfxhub] page fault (src_id:0 ring:157 vmid:N pasid:N) amdgpu: in page starting at address 0x00008000220ad000 from client 10 amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x0060153B amdgpu: Faulty UTCL2 client ID: SQC (data) (0xa) amdgpu: MORE_FAULTS: 0x1 amdgpu: WALKER_ERROR: 0x5 amdgpu: PERMISSION_FAULTS: 0x3 amdgpu: MAPPING_ERROR: 0x1 amdgpu: RW: 0x0 amdgpu: ring gfx_0.0.0 timeout ... Ring gfx_0.0.0 reset succeeded amdgpu: [drm] device wedged, but no recovery needed VIctory: host GPU failure: host GPU device removed ... device removed: 0x887A0005 ``` The status words were `0x0050153B`, `0x0060153B` and `0x0070153B`. The pages in the reports I saved were `0x8000220ad000`, `0x8000219e5000`, `0x8000009fd000`, `0x8000224c9000` and `0x800010765000`, so they too are all in the first ~700 MB of the `0x8000_0000_0000` region, like the ones above. ### Runs "Minutes" is time in the world (frames with over 1000 draws). The game was often in the background while I answered chats, so they aren't play time. | # | Build | What was different | Ray tracing | Minutes | Result | |---|---|---|---|---|---| | 1 | `3fe840c` | FSR 3.1.6 | on | 127 | fault | | 2 | `3fe840c` | FSR 4.1.1, tight alignment off (MJ26gaming's switch) | on | 15 | fault | | 3 | `3fe840c` | FSR 4.1.1, KDE panels stopped (budget 14.1 GB instead of 13.1) | on | 88 | fault | | 4 | `b581f7e` | ML frame generation (mode 4) | on | 20 | fault | | 5 | `b581f7e` | + retire lag 1024 instead of 128 (local patch, see below) | on | 43 | fault | | 6 | `b581f7e` | same as 5 | on | 9 | fault | | 7 | `3fe840c` | all of the above rolled back to run 1 | on | 5 | fault | | 8 | `b581f7e` | same as 5, after a reboot | on | 35 | fault | | 9 | `b581f7e` | same as 8, **`VICTORY_BVH_BUILDER=0`** | **off** | 39 | **no fault**, I closed it | The last runs were the "Coming Home" mission (in a bar). It faulted there on every attempt with ray tracing on, and got through it with ray tracing off in run 9. The other runs were mostly driving in the city. Earlier that day, four shorter runs (5 minutes or less in the world with ray tracing on, 8 minutes with it off) had no fault. So it's 8 faults in 11 runs with ray tracing on, and none in 2 runs with it off. That's not many runs with it off, but it got past the spot that had faulted on every attempt before. It also matches AxolotOfficialYT's RX 7700 XT in #239, which ran 57 min clean with RT off and faulted 15 min after turning it on. ### What didn't help - **Tight alignment off** (run 2): it still faulted. The texture log's "no room" lines came about 8 times as often (149,000 a minute against 19,000), but on a different route. - **More free VRAM** (run 3): with KDE's panels stopped, VRAM started near 87% of the budget instead of 94%. It lasted longer, but it climbed back to about 94% and faulted. - **A longer retire lag** (runs 5 to 8): a local change that reads `VICTORY_BURY_LAG` in `host::bury()` and holds objects let go for 1024 submissions instead of 128 (about 4 s at ~250 submissions a second; host lists still reset after 128). It still faulted, so the page probably isn't an object that was let go a few seconds earlier. In run 5, the last sweep before the fault let go of 9 host copies 2.5 s earlier, while that lag still held them. - **A reboot** before run 8: there had been 7 ring resets without a reboot, and the gaps between faults kept getting shorter. It still faulted after the reboot. ### Before each fault In every report, the last of the 96 things done were texture sweeps letting go of host copies, from 1.1 ms to 5 s before the fault. VRAM was at 88% to 95% of the budget each time. As joaowtrdev wrote, this may well be normal churn. I have the full logs and the kernel lines for each run, so I can post any of them. I'm playing with ray tracing off for now. If there's a diagnostics build (`VICTORY_D3D12_DEBUG=1`) or a switch that narrows down which ray-tracing pass is reading the page, I can run it with ray tracing on.
Author
Owner

@⁠EdouardSence on GitHub · 2026-12-05 17:37 UTC · original

A narrowing from the addresses, which may rule out the texture / #459 lead.

Every faulting page reported here is in RADV's 32-bit address window. libdrm puts the first 4 GiB of the high VA range (0x8000_0000_0000 as the kernel prints it) in its own manager, vamgr_high_32 (amdgpu/amdgpu_vamgr.c, start = high_va_offset; max = start + 4 GiB). RADV asks for that window only for BOs flagged RADEON_FLAG_32BIT. Everything else goes to vamgr_high above it (libdrm falls back to the 32-bit window only if the high range cannot place a request). All pages in this thread and #594 (0x8000009fd000 … 0x80002b335000) are under +0x2c00_0000.

What RADV (fec8830, this repo's Mesa) puts there:

  • buffers with descriptor-buffer or PREPROCESS_BUFFER usage (radv_buffer.c:97, :196): vkd3d-proton's descriptor heaps, and its DGC preprocess scratch for ExecuteIndirect (vkd3d/device.c ~3409; the scratch goes back to the device on allocator reset, command.c ~2981)
  • command buffer upload BOs (radv_cmd_buffer.c:1518, 16 KiB first, then doubling)
  • descriptor pools, shader BOs, queue rings

Images are never placed there: radv_GetImageMemoryRequirements2 masks out the 32-bit memory types (radv_device.c:1793). The title-range mirrors (um arena, AMDGPU_VA_RANGE_HIGH without 32-bit in patches/mesa.patch) aren't there either. That fits MJ26gaming's range report finding nothing near the page. It also fits SQC (data) with RW: 0, which is a scalar load: descriptors, push or root constants, or a DGC-generated stream.

Which BOs come and go in that window: 2 min run with RADV_DEBUG=bo_history (writes /tmp/radv_bo_history.log), RX 9070 XT, main 8bf4878, mostly boot and menus:

  • 8,694 BO events in the window; the highest address used was 0x8000_2764f000 (~630 MB), which matches "all faults within the first ~700 MB"
  • 2,661 destroyed: 2,477 of 16 KiB and 152 of 32 KiB, ~20–25 a second
  • the large long-lived ones (8 MiB ×51, 64/128 MiB, likely descriptor heaps) are not destroyed

So the likeliest candidate is a use-after-free of a command buffer's upload BO, or of DGC preprocess scratch: memory that RADV or vkd3d frees when a D3D12 allocator or list is reset. That would mean an allocator reset, or a list freed, while something recorded from it is still running. This is a hypothesis; I have not found the site. It doesn't explain the RT-on correlation by itself. It does fit shaina94's run 5: a longer bury lag didn't help, but "host lists still reset after 128".

A test that would settle it, for someone who reproduces with RT on: RADV_DEBUG=bo_history, then look the fault page up in /tmp/radv_bo_history.log. A range that was created and then destroyed=1 before the fault is a use-after-free, and its size says which kind (16/32 KiB = command buffer upload). It flushes on every BO event, so expect some slowdown and a log that grows by a few MB a minute.

#594 is the same signature (SQC (data), 0x60153B, texture sweeps before it).

(Checked with Claude Code; run and log on my machine.)

**@⁠EdouardSence** on GitHub · 2026-12-05 17:37 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7442337103) A narrowing from the addresses, which may rule out the texture / #459 lead. **Every faulting page reported here is in RADV's 32-bit address window.** libdrm puts the first 4 GiB of the high VA range (`0x8000_0000_0000` as the kernel prints it) in its own manager, `vamgr_high_32` (`amdgpu/amdgpu_vamgr.c`, `start = high_va_offset; max = start + 4 GiB`). RADV asks for that window only for BOs flagged `RADEON_FLAG_32BIT`. Everything else goes to `vamgr_high` above it (libdrm falls back to the 32-bit window only if the high range cannot place a request). All pages in this thread and #594 (`0x8000009fd000` … `0x80002b335000`) are under `+0x2c00_0000`. What RADV (`fec8830`, this repo's Mesa) puts there: - buffers with descriptor-buffer or `PREPROCESS_BUFFER` usage (`radv_buffer.c:97`, `:196`): vkd3d-proton's descriptor heaps, and its DGC preprocess scratch for ExecuteIndirect (`vkd3d/device.c` ~3409; the scratch goes back to the device on allocator reset, `command.c` ~2981) - command buffer upload BOs (`radv_cmd_buffer.c:1518`, 16 KiB first, then doubling) - descriptor pools, shader BOs, queue rings Images are never placed there: `radv_GetImageMemoryRequirements2` masks out the 32-bit memory types (`radv_device.c:1793`). The title-range mirrors (`um` arena, `AMDGPU_VA_RANGE_HIGH` without 32-bit in `patches/mesa.patch`) aren't there either. That fits MJ26gaming's range report finding nothing near the page. It also fits `SQC (data)` with `RW: 0`, which is a scalar load: descriptors, push or root constants, or a DGC-generated stream. **Which BOs come and go in that window:** 2 min run with `RADV_DEBUG=bo_history` (writes `/tmp/radv_bo_history.log`), RX 9070 XT, `main` `8bf4878`, mostly boot and menus: - 8,694 BO events in the window; the highest address used was `0x8000_2764f000` (~630 MB), which matches "all faults within the first ~700 MB" - 2,661 destroyed: 2,477 of 16 KiB and 152 of 32 KiB, ~20–25 a second - the large long-lived ones (8 MiB ×51, 64/128 MiB, likely descriptor heaps) are not destroyed So the likeliest candidate is a use-after-free of a command buffer's upload BO, or of DGC preprocess scratch: memory that RADV or vkd3d frees when a D3D12 allocator or list is reset. That would mean an allocator reset, or a list freed, while something recorded from it is still running. This is a hypothesis; I have not found the site. It doesn't explain the RT-on correlation by itself. It does fit shaina94's run 5: a longer bury lag didn't help, but "host lists still reset after 128". **A test that would settle it**, for someone who reproduces with RT on: `RADV_DEBUG=bo_history`, then look the fault page up in `/tmp/radv_bo_history.log`. A range that was created and then `destroyed=1` before the fault is a use-after-free, and its size says which kind (16/32 KiB = command buffer upload). It flushes on every BO event, so expect some slowdown and a log that grows by a few MB a minute. #594 is the same signature (`SQC (data)`, `0x60153B`, texture sweeps before it). (Checked with Claude Code; run and log on my machine.)
Author
Owner

@⁠goldfishdev on GitHub · 2026-12-05 18:57 UTC · original

Thanks for the detailed reports. I added a diagnostic switch in #615: VICTORY_POOL_TIGHT=0 places textures as before #459, at 64 KiB multiples. It did not reproduce here in 22 minutes of RT-on 4K city stress, so it needs a save that faults. Could you run your failing route with VICTORY_POOL_TIGHT=0 and say whether the SQC (data) fault still happens? The log should say pool: tight alignment off.

**@⁠goldfishdev** on GitHub · 2026-12-05 18:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/271#issuecomment-7443586927) Thanks for the detailed reports. I added a diagnostic switch in #615: `VICTORY_POOL_TIGHT=0` places textures as before #459, at 64 KiB multiples. It did not reproduce here in 22 minutes of RT-on 4K city stress, so it needs a save that faults. Could you run your failing route with `VICTORY_POOL_TIGHT=0` and say whether the `SQC (data)` fault still happens? The log should say `pool: tight alignment off`.
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/lobomfz--VIctory-xmem#271
No description provided.