NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497) #232

Open
opened 2026-11-26 14:00:14 +00:00 by github-bot · 2 comments
Owner

@⁠ReverendOzmund on GitHub · 2026-11-26 13:53 UTC · original

NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497)

Two-hour ProjectScarlett run on an RTX 3080 Ti (driver 620.70.06, GE-Proton11-14, Bazzite), main at c6ce497 plus #225.

Device loss: after about 2h40m vkd3d-proton reported VK_ERROR_DEVICE_LOST. The kernel logged NVRM: Xid 109, name=game_scarlett_m, errorString CTX SWITCH TIMEOUT. That's a context that couldn't be preempted, rather than an Xid 13 fault like Nick's. One candidate: the translator's state-machine watchdog allows tb_guard++ < 1000000u iterations, so a translated spin wait on memory that never changes could hold the GPU far past the switch timeout. VItoriaBr caps shader loops at 4096 for this reason. I haven't confirmed which dispatch was running.

Skipped work (from #223's reason text): 19 skips, all its root indexes the resource heap directly:

6 compute, guest caller 0x248cbc1
5 compute, guest caller 0x248cd0f
3 compute, guest caller 0x2951ba
2 compute, guest caller 0x56bba
1 draw,    guest caller 0x4e33f98

0x248cbc1 and 0x2951ba match NickStallman's 5090 runs. Reading reflected_root in compute_table.rs, a compute root only gets a reflected layout with one or two leading tables (simple), or at least one table followed by constants and descriptors (extended). A bindless root with no tables (root constants plus CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED) matches neither, so it returns Unsupported, and with an arena active every dispatch is skipped. If that's the shape here, accepting zero-table direct-indexed compute roots would bring these dispatches back, since the translated programs already carry tb_heap_map. Happy to write it if that matches your understanding of the layout.

Also seen: 1,297 vkd3d_compile_shader_stage ... result -3 (up from a handful in earlier runs), one list rejected with placed texture publication failed: HRESULT(0x80004005), 3 memory waits released, 7 signaller timeouts.

**@⁠ReverendOzmund** on GitHub · 2026-11-26 13:53 UTC · [original](https://github.com/brcly/TuxBox/issues/232) NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497) Two-hour ProjectScarlett run on an RTX 3080 Ti (driver 620.70.06, GE-Proton11-14, Bazzite), main at c6ce497 plus #225. **Device loss:** after about 2h40m vkd3d-proton reported `VK_ERROR_DEVICE_LOST`. The kernel logged `NVRM: Xid 109, name=game_scarlett_m, errorString CTX SWITCH TIMEOUT`. That's a context that couldn't be preempted, rather than an Xid 13 fault like Nick's. One candidate: the translator's state-machine watchdog allows `tb_guard++ < 1000000u` iterations, so a translated spin wait on memory that never changes could hold the GPU far past the switch timeout. VItoriaBr caps shader loops at 4096 for this reason. I haven't confirmed which dispatch was running. **Skipped work (from #223's reason text):** 19 skips, all `its root indexes the resource heap directly`: 6 compute, guest caller 0x248cbc1 5 compute, guest caller 0x248cd0f 3 compute, guest caller 0x2951ba 2 compute, guest caller 0x56bba 1 draw, guest caller 0x4e33f98 0x248cbc1 and 0x2951ba match NickStallman's 5090 runs. Reading `reflected_root` in `compute_table.rs`, a compute root only gets a reflected layout with one or two leading tables (`simple`), or at least one table followed by constants and descriptors (`extended`). A bindless root with no tables (root constants plus `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED`) matches neither, so it returns `Unsupported`, and with an arena active every dispatch is skipped. If that's the shape here, accepting zero-table direct-indexed compute roots would bring these dispatches back, since the translated programs already carry `tb_heap_map`. Happy to write it if that matches your understanding of the layout. Also seen: 1,297 `vkd3d_compile_shader_stage ... result -3` (up from a handful in earlier runs), one list rejected with `placed texture publication failed: HRESULT(0x80004005)`, 3 memory waits released, 7 signaller timeouts.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:00:14 +00:00
Author
Owner

@⁠NickStallman on GitHub · 2026-11-26 14:24 UTC · original

Yes, that matches what I see, so please go ahead; I won't start on it. On the RTX 5090 the same two callers (0x248cbc1 and 0x2951ba) account for most of the ~1,000 skips per world frame, from before #223 existed. I can run the change on the 5090 past the story intro once it's up.

On the device loss: my second #216 run (PR head 7e0ad65 plus #217, RTX 5090, 595.99.02) also ended in Xid 109 … CTX SWITCH TIMEOUT at Prestream Metadata, about 19 min in. The first ended in Xid 13 … SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW. Neither had a breadcrumb dump (VKD3D_CONFIG=breadcrumbs printed nothing), so I can't confirm the tb_guard theory either, but a translated spin that outlives the preemption timeout would fit the 109.

**@⁠NickStallman** on GitHub · 2026-11-26 14:24 UTC · [original](https://github.com/brcly/TuxBox/issues/232#issuecomment-7194782039) Yes, that matches what I see, so please go ahead; I won't start on it. On the RTX 5090 the same two callers (0x248cbc1 and 0x2951ba) account for most of the ~1,000 skips per world frame, from before #223 existed. I can run the change on the 5090 past the story intro once it's up. On the device loss: my second #216 run (PR head 7e0ad65 plus #217, RTX 5090, 595.99.02) also ended in `Xid 109 … CTX SWITCH TIMEOUT` at Prestream Metadata, about 19 min in. The first ended in `Xid 13 … SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW`. Neither had a breadcrumb dump (`VKD3D_CONFIG=breadcrumbs` printed nothing), so I can't confirm the `tb_guard` theory either, but a translated spin that outlives the preemption timeout would fit the 109.
Author
Owner

@⁠ReverendOzmund on GitHub · 2026-11-26 14:51 UTC · original

@⁠NickStallman draft is up as #235 : table-less, heap-indexed compute roots now get a reflected layout with the index map as a root SRV, and the translator already reads it through tb_heap_index. Would be great to see whether the 0x248cbc1 / 0x2951ba skips disappear on the 5090 past the story intro. I'll add a Lanes scenario next.

**@⁠ReverendOzmund** on GitHub · 2026-11-26 14:51 UTC · [original](https://github.com/brcly/TuxBox/issues/232#issuecomment-7195436040) @⁠NickStallman draft is up as #235 : table-less, heap-indexed compute roots now get a reflected layout with the index map as a root SRV, and the translator already reads it through tb_heap_index. Would be great to see whether the 0x248cbc1 / 0x2951ba skips disappear on the 5090 past the story intro. I'll add a Lanes scenario next.
This discussion has been locked. Commenting is limited to contributors.
No description provided.