xshader: guard inactive-lane loads through flat descriptor bases and BVH node tests #594

Merged
DrArroway merged 1 commit from upstream-pr/594 into main 2026-11-30 19:16:27 +00:00
DrArroway commented 2026-11-30 19:02:34 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-11-30T19:02:34Z.


Guard vector loads through unbounds-checked descriptor-base root SRVs (such as tb_bvh_heap) and console BVH node intersection helpers against inactive lanes and invalid node types.

Root Cause

Two separate RADV_DEBUG=hang captures on ProjectScarlett 1.0.2.1 (RDNA 2 RX 6900 XT, Mesa RADV) pinned a reproducible CLIENT_ID: (TCP) 0x8, RW: 0, PERMISSION_FAULTS: 3 GPUVM read fault (0x8001e2bfe000) to the same compute pipeline (6e71ad7a642136f9 / 571d96cad08597a9.dxil, DISPATCH_INDIRECT):

  1. tools/shader-compiler/src/hlsl/emitter/scalar_memory.rs (pointer_words, !scalar): emits tb_bvh_heap.Load(...) unconditionally on all vector lanes and only guards writeback in wv(...). On inactive lanes ((exec_lo & 1u) == 0), the address VGPR retained a stale float (-0.00829f = 0xbc07e000), adding ~3 GiB to the 64 KiB tb_bvh_heap root SRV base (0x800126b80000 -> 0x8001e2bfe000 exact faulting page).
  2. tools/shader-compiler/src/hlsl/bvh_node.rs (emit & HELPER): calls tb_bvh_intersect(...) unconditionally across all lanes before wv(...), and inside tb_bvh_intersect, loads nodes.Load4(...) before checking for invalid node types (type > 1u && type != 4u && type != 5u, e.g., 0xffffffff sentinels).

Changes

  • tools/shader-compiler/src/hlsl/emitter/scalar_memory.rs: For vector (!scalar) loads in pointer_words, mask inactive-lane offsets with (exec_lo & 1u) ? (({address}) & ~3u) : 0u and guard the buffer .Load(...) calls inside [branch] if (exec_lo & 1u). Scalar loads remain unguarded.
  • tools/shader-compiler/src/hlsl/bvh_node.rs: Zero-initialize t{t} and guard tb_bvh_intersect(...) inside [branch] if (exec_lo & 1u); check if (type > 1u && type != 4u && type != 5u) and return 0xffffffff before computing address or issuing nodes.Load4(...).
  • tools/shader-compiler/src/tests/hlsl/descriptor_address.rs: Add a_flat_load_through_a_scene_base_guards_inactive_lanes and a_console_bvh_node_test_guards_inactive_lanes_and_invalid_types.

Live Verification (ProjectScarlett 1.0.2.1 offline, RX 6900 XT, GE-Proton11-14, Mesa RADV)

Testing against 87298944 + #389/#589/#590 with TUXBOX_XMEM_PRIVATE_VIEWS=1, TUXBOX_CHECK_ONCE_PER_FRAME=1, VKD3D_CONFIG=no_upload_hvv:

  • Before fix (5/5 runs faulted): all 5 live runs (both section mode and private views, with and without RADV_DEBUG=hang) hit TCP PERMISSION_FAULTS: 3 read faults in 0x8001e...–0x8001f... after 3–36 3D demo frames (234s, 273s, 704s, and 3 demo frames under RADV_DEBUG=hang), with 2/2 RADV_DEBUG=hang dumps capturing 571d96cad08597a9.dxil.
  • After fix (2/3 runs had 0 GPUVM faults; 1/3 hit a separate VA range):
    • Run 1 (RADV_DEBUG=hang): 1,036.8s (21,969 frames, 50+ 3D demo frames), 0 GPUVM faults; exited on an unrelated 6.09 GiB PrivateSpan alias failure (map_private_contiguous, [email protected], err=170, write=true).
    • Run 2 (no RADV_DEBUG=hang): hit 1 separate TCP read fault at 0x80033d962000 after 7 demo frames (294.5s, different VA range / sparse VK_OBJECT_TYPE_IMAGE region, not 0x8001...).
    • Run 3 (VKD3D_CONFIG=no_upload_hvv,breadcrumbs, no RADV_DEBUG=hang or syncshaders): 385.2s (9,616 frames, 49 full 3D demo frames), 0 GPUVM faults; exited on the same unrelated 6.09 GiB PrivateSpan alias failure ([email protected], err=170, write=true).

Automated Verification

  • cargo fmt --all -- --check — passed
  • cargo clippy --locked --target x86_64-unknown-linux-gnu -p tuxbox-xshader --all-targets -- -D warnings — passed
  • cargo clippy --locked --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings — passed
  • RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --target x86_64-unknown-linux-gnu -p tuxbox-xshader --document-private-items — passed
  • cargo test --locked --target x86_64-unknown-linux-gnu -p tuxbox-xshader — 666 lib + 3 bin + 2 integration tests passed

Evidence: TuxBox check of dc50c74c44, no uncommitted changes, GPU 1002:73bf: 16 passed, 0 failed, 0 not run
Evidence: TuxBox check of dc50c74c44, no uncommitted changes, GPU 1002:164e: 16 passed, 0 failed, 0 not run

<!-- greyfinch-sync:brcly/TuxBox:issue:5571832046 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-11-30T19:02:34Z. --- Guard vector loads through unbounds-checked descriptor-base root SRVs (such as `tb_bvh_heap`) and console BVH node intersection helpers against inactive lanes and invalid node types. ### Root Cause Two separate `RADV_DEBUG=hang` captures on ProjectScarlett 1.0.2.1 (RDNA 2 RX 6900 XT, Mesa RADV) pinned a reproducible `CLIENT_ID: (TCP) 0x8`, `RW: 0`, `PERMISSION_FAULTS: 3` GPUVM read fault (`0x8001e2bfe000`) to the same compute pipeline (`6e71ad7a642136f9` / `571d96cad08597a9.dxil`, `DISPATCH_INDIRECT`): 1. **`tools/shader-compiler/src/hlsl/emitter/scalar_memory.rs` (`pointer_words`, `!scalar`):** emits `tb_bvh_heap.Load(...)` unconditionally on all vector lanes and only guards writeback in `wv(...)`. On inactive lanes (`(exec_lo & 1u) == 0`), the address VGPR retained a stale float (`-0.00829f` = `0xbc07e000`), adding ~3 GiB to the 64 KiB `tb_bvh_heap` root SRV base (`0x800126b80000` -> `0x8001e2bfe000` exact faulting page). 2. **`tools/shader-compiler/src/hlsl/bvh_node.rs` (`emit` & `HELPER`):** calls `tb_bvh_intersect(...)` unconditionally across all lanes before `wv(...)`, and inside `tb_bvh_intersect`, loads `nodes.Load4(...)` before checking for invalid node types (`type > 1u && type != 4u && type != 5u`, e.g., `0xffffffff` sentinels). ### Changes - `tools/shader-compiler/src/hlsl/emitter/scalar_memory.rs`: For vector (`!scalar`) loads in `pointer_words`, mask inactive-lane offsets with `(exec_lo & 1u) ? (({address}) & ~3u) : 0u` and guard the buffer `.Load(...)` calls inside `[branch] if (exec_lo & 1u)`. Scalar loads remain unguarded. - `tools/shader-compiler/src/hlsl/bvh_node.rs`: Zero-initialize `t{t}` and guard `tb_bvh_intersect(...)` inside `[branch] if (exec_lo & 1u)`; check `if (type > 1u && type != 4u && type != 5u)` and return `0xffffffff` before computing `address` or issuing `nodes.Load4(...)`. - `tools/shader-compiler/src/tests/hlsl/descriptor_address.rs`: Add `a_flat_load_through_a_scene_base_guards_inactive_lanes` and `a_console_bvh_node_test_guards_inactive_lanes_and_invalid_types`. ### Live Verification (ProjectScarlett 1.0.2.1 offline, RX 6900 XT, GE-Proton11-14, Mesa RADV) Testing against `87298944` + `#389`/`#589`/`#590` with `TUXBOX_XMEM_PRIVATE_VIEWS=1`, `TUXBOX_CHECK_ONCE_PER_FRAME=1`, `VKD3D_CONFIG=no_upload_hvv`: - **Before fix (5/5 runs faulted):** all 5 live runs (both section mode and private views, with and without `RADV_DEBUG=hang`) hit `TCP PERMISSION_FAULTS: 3` read faults in `0x8001e...`–`0x8001f...` after 3–36 3D demo frames (`234s`, `273s`, `704s`, and `3` demo frames under `RADV_DEBUG=hang`), with 2/2 `RADV_DEBUG=hang` dumps capturing `571d96cad08597a9.dxil`. - **After fix (2/3 runs had 0 GPUVM faults; 1/3 hit a separate VA range):** - Run 1 (`RADV_DEBUG=hang`): **1,036.8s (21,969 frames, 50+ 3D demo frames), 0 GPUVM faults**; exited on an unrelated 6.09 GiB `PrivateSpan` alias failure (`map_private_contiguous`, `[email protected]`, `err=170`, `write=true`). - Run 2 (no `RADV_DEBUG=hang`): hit 1 separate `TCP` read fault at `0x80033d962000` after 7 demo frames (`294.5s`, different VA range / sparse `VK_OBJECT_TYPE_IMAGE` region, not `0x8001...`). - Run 3 (`VKD3D_CONFIG=no_upload_hvv,breadcrumbs`, no `RADV_DEBUG=hang` or `syncshaders`): **385.2s (9,616 frames, 49 full 3D demo frames), 0 GPUVM faults**; exited on the same unrelated 6.09 GiB `PrivateSpan` alias failure (`[email protected]`, `err=170`, `write=true`). ### Automated Verification - `cargo fmt --all -- --check` — passed - `cargo clippy --locked --target x86_64-unknown-linux-gnu -p tuxbox-xshader --all-targets -- -D warnings` — passed - `cargo clippy --locked --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings` — passed - `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --target x86_64-unknown-linux-gnu -p tuxbox-xshader --document-private-items` — passed - `cargo test --locked --target x86_64-unknown-linux-gnu -p tuxbox-xshader` — 666 lib + 3 bin + 2 integration tests passed Evidence: TuxBox check of dc50c74c444f, no uncommitted changes, GPU 1002:73bf: 16 passed, 0 failed, 0 not run Evidence: TuxBox check of dc50c74c444f, no uncommitted changes, GPU 1002:164e: 16 passed, 0 failed, 0 not run
1093i3511 commented 2026-11-30 20:48:56 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by 1093i3511 on 2026-11-30T20:48:56Z.


Tested on an RX 6600 (RDNA 2, 8 GB, 1002:73ff, RADV / Mesa 26.3.1, GE-Proton11-14, section-import=substituted descriptor-bytes=64/16). The build is this PR at dc50c74c on bbc26254, with warm caches and TUXBOX_XMEM_PRIVATE_VIEWS=1. I ran Series S (ConsoleMode=96) and packaged, twice each. The baseline is bbc26254 without the PR, same settings.

The 0x8001e… family is gone here. Today all 10 runs without the PR ended on a TCP read fault (PERMISSION_FAULTS 0x3, MAPPING_ERROR 0): 2 on bbc26254 and 8 on e5d2e913 / 87298944, Series S and packaged, with and without the index-map padding. In 9 of them the pages were in 0x8001e5…–0x8001ed…, mostly the last pages below a 2 MiB boundary. The tenth (it had waited long at the account picker) faulted at 0x8002344b0000–0x8002344b2000. With the PR, 0 of 4 runs faulted in 0x8001e….

Build Mode Length / exit Mission set / end Fault pages (TCP)
bbc26254 Series S 280 s / 3 F:1078 / F:1085 0x8001e83fc000, 0x8001e8dfa000, 0x8001e91f8000, 0x8001e91fd000
bbc26254 packaged 336 s / 3 F:1292 / F:1299 0x8001edcf4000–0x8001edcfd000
#594 Series S 406 s / 5 F:1211 / F:1218 0x800242270000, 0x800242271000
#594 packaged 417 s / 3 F:1114 / F:1122 0x800440440000, 0x800440441000
#594 Series S 327 s / 3 F:1187 / F:1193 0x8002380a0000
#594 packaged 397 s / 5 F:1317 / F:1323 0x8002daaf4000, 0x8002daaf5000

But every run with the PR still ends on a TCP read fault 6–8 frames after the mission is set, now in a different shape:

  • It's one page or two adjacent pages, in 0x800238…–0x800440….
  • Three of the four start exactly at a 64 KiB boundary, and the fourth starts 16 KiB past one.
  • The client is still TCP, with PERMISSION_FAULTS 0x3 and MAPPING_ERROR 0, from the game's vkd3d_queue on ring 24.
  • The gfx_0.0.0 ring reset succeeds each time. Afterwards either the device is lost (exit 3) or the title's watchdog fires (exit 5).

That fits the separate fault you saw at 0x80033d962000. The one run without the PR that missed 0x8001e… (0x8002344b0000, also at a 64 KiB boundary) may already have been this second family. So the PR fixes what it targets, and this card shows a second fault family underneath it.

Memory didn't change with the PR:

Mode Requested VRAM Card GTT Peak RAM
Series S 5.9 GB 7.9–8.2 GB about 25 GB
Packaged 6.8–6.9 GB 10.7–10.8 GB 27–29 GB

I haven't captured the faulting program for the new family yet (no RADV_DEBUG=hang dump). If you have a candidate, I can run it with that.

<!-- greyfinch-sync:brcly/TuxBox:comment:7291507716 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594#issuecomment-7291507716). Originally posted by [1093i3511](https://github.com/1093i3511) on 2026-11-30T20:48:56Z. --- Tested on an RX 6600 (RDNA 2, 8 GB, `1002:73ff`, RADV / Mesa 26.3.1, GE-Proton11-14, `section-import=substituted descriptor-bytes=64/16`). The build is this PR at `dc50c74c` on `bbc26254`, with warm caches and `TUXBOX_XMEM_PRIVATE_VIEWS=1`. I ran Series S (`ConsoleMode=96`) and packaged, twice each. The baseline is `bbc26254` without the PR, same settings. **The `0x8001e…` family is gone here.** Today all 10 runs without the PR ended on a TCP read fault (`PERMISSION_FAULTS 0x3`, `MAPPING_ERROR 0`): 2 on `bbc26254` and 8 on `e5d2e913` / `87298944`, Series S and packaged, with and without the index-map padding. In 9 of them the pages were in `0x8001e5…`–`0x8001ed…`, mostly the last pages below a 2 MiB boundary. The tenth (it had waited long at the account picker) faulted at `0x8002344b0000`–`0x8002344b2000`. With the PR, 0 of 4 runs faulted in `0x8001e…`. | Build | Mode | Length / exit | Mission set / end | Fault pages (TCP) | | --- | --- | --- | --- | --- | | `bbc26254` | Series S | 280 s / 3 | F:1078 / F:1085 | `0x8001e83fc000`, `0x8001e8dfa000`, `0x8001e91f8000`, `0x8001e91fd000` | | `bbc26254` | packaged | 336 s / 3 | F:1292 / F:1299 | `0x8001edcf4000`–`0x8001edcfd000` | | #594 | Series S | 406 s / 5 | F:1211 / F:1218 | `0x800242270000`, `0x800242271000` | | #594 | packaged | 417 s / 3 | F:1114 / F:1122 | `0x800440440000`, `0x800440441000` | | #594 | Series S | 327 s / 3 | F:1187 / F:1193 | `0x8002380a0000` | | #594 | packaged | 397 s / 5 | F:1317 / F:1323 | `0x8002daaf4000`, `0x8002daaf5000` | **But every run with the PR still ends on a TCP read fault 6–8 frames after the mission is set**, now in a different shape: - It's one page or two adjacent pages, in `0x800238…`–`0x800440…`. - Three of the four start exactly at a 64 KiB boundary, and the fourth starts 16 KiB past one. - The client is still TCP, with `PERMISSION_FAULTS 0x3` and `MAPPING_ERROR 0`, from the game's `vkd3d_queue` on ring 24. - The `gfx_0.0.0` ring reset succeeds each time. Afterwards either the device is lost (exit 3) or the title's watchdog fires (exit 5). That fits the separate fault you saw at `0x80033d962000`. The one run without the PR that missed `0x8001e…` (`0x8002344b0000`, also at a 64 KiB boundary) may already have been this second family. So the PR fixes what it targets, and this card shows a second fault family underneath it. **Memory** didn't change with the PR: | Mode | Requested VRAM | Card GTT | Peak RAM | | --- | --- | --- | --- | | Series S | 5.9 GB | 7.9–8.2 GB | about 25 GB | | Packaged | 6.8–6.9 GB | 10.7–10.8 GB | 27–29 GB | I haven't captured the faulting program for the new family yet (no `RADV_DEBUG=hang` dump). If you have a candidate, I can run it with that.
DrArroway commented 2026-11-30 21:42:46 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-11-30T21:42:46Z.


@1093i3511 Thanks a lot for the thorough A/B test on your RX 6600 (1002:73ff), and @brcly thanks for the merge!

That second 64 KiB-aligned TCP read fault family (0x800238…–0x800440…) matches what I hit on AMD Radeon RX 6900 XT (1002:73bf) (0x8002e7364000 right at world entry on 451db047 without #389).

Now that #389 has merged into main (40a69c3f), it cleared those remaining GPUVM faults completely in my runs — paired with #600 for TUXBOX_XMEM_PRIVATE_VIEWS=1, I am seeing 0 GPUVM faults across 5 consecutive runs well into the 3D mission (16–93 3D frames, stopping only on the pre-existing 0x80000003 breakpoint at game_scarlett_master.exe + 0x4DA6315).

If you get a chance to re-test on 40a69c3f (with #600 if running TUXBOX_XMEM_PRIVATE_VIEWS=1), it would be great to hear whether #389 clears that second family on the RX 6600 as well.

<!-- greyfinch-sync:brcly/TuxBox:comment:7292788784 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594#issuecomment-7292788784). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-11-30T21:42:46Z. --- @1093i3511 Thanks a lot for the thorough A/B test on your RX 6600 (`1002:73ff`), and @brcly thanks for the merge! That second 64 KiB-aligned TCP read fault family (`0x800238…`–`0x800440…`) matches what I hit on **AMD Radeon RX 6900 XT (1002:73bf)** (`0x8002e7364000` right at world entry on `451db047` without #389). Now that #389 has merged into `main` (`40a69c3f`), it cleared those remaining GPUVM faults completely in my runs — paired with #600 for `TUXBOX_XMEM_PRIVATE_VIEWS=1`, I am seeing **0 GPUVM faults** across 5 consecutive runs well into the 3D mission (16–93 3D frames, stopping only on the pre-existing `0x80000003` breakpoint at `game_scarlett_master.exe + 0x4DA6315`). If you get a chance to re-test on `40a69c3f` (with #600 if running `TUXBOX_XMEM_PRIVATE_VIEWS=1`), it would be great to hear whether #389 clears that second family on the RX 6600 as well.
1093i3511 commented 2026-11-30 21:51:05 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by 1093i3511 on 2026-11-30T21:51:05Z.


@DrArroway thanks, that fits what I saw before: on an older base (fd636d09 + #501 + #389, private views), #389 removed the TCP faults on this card in 3 of 3 runs. One more run on ee38dcf0 with GE-Proton11-15 (no #389, Series S) ended on the second family again (0x80023b190000). Tonight's last run on that build uses RADV_DEBUG=hang, to name the shader behind it.

I'll retest on 40a69c3f, with #600 for TUXBOX_XMEM_PRIVATE_VIEWS=1, in Series S and packaged mode. That will most likely be tomorrow after 15:00 UTC, and I'll post the results here.

<!-- greyfinch-sync:brcly/TuxBox:comment:7292992557 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594#issuecomment-7292992557). Originally posted by [1093i3511](https://github.com/1093i3511) on 2026-11-30T21:51:05Z. --- @DrArroway thanks, that fits what I saw before: on an older base (`fd636d09` + #501 + #389, private views), #389 removed the TCP faults on this card in 3 of 3 runs. One more run on `ee38dcf0` with GE-Proton11-15 (no #389, Series S) ended on the second family again (`0x80023b190000`). Tonight's last run on that build uses `RADV_DEBUG=hang`, to name the shader behind it. I'll retest on `40a69c3f`, with #600 for `TUXBOX_XMEM_PRIVATE_VIEWS=1`, in Series S and packaged mode. That will most likely be tomorrow after 15:00 UTC, and I'll post the results here.
1093i3511 commented 2026-12-01 07:19:42 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by 1093i3511 on 2026-12-01T07:19:42Z.


@DrArroway the promised retest, on main 717a74c4 (with #389, #594 and the tile pool 34be158b). RX 6600 (1002:73ff, 8 GB, RDNA2), Mesa 26.3.1 RADV, GE-Proton11-15, Series S profile. One run per setting.

Setting Ending GPU fault
Defaults about 600 s, probably in the world, then device and desktop lost yes: two adjacent host pages 0x800602d14000 / 0x800602d15000, TCP read (0x00501031, PERMISSION_FAULTS 3)
TUXBOX_XMEM_PRIVATE_VIEWS=1 (no #608, it conflicts with main) world at F:1226, end F:1267 (41 world frames), exit 3 via +0x2592D69 / +0x2215ECA none, no kernel line
TUXBOX_XMEM_SECTION_WATCH=1 + TUXBOX_CHECK_ONCE_PER_FRAME=1 world at F:973, end F:1027, watchdog yes, a different shape (details on #472)
  • Defaults: the fault has the shape of the second family: two adjacent pages, 0x4000 into a 64 KiB block. After it, the compositor's ring gfx_0.1.0 timed out. The ring reset failed, so the kernel did a MODE1 reset and the desktop was lost. The devcoredump names the compositor, because it records the owner of the hung ring; the game's fault came 2 s earlier. So on this card, #389 doesn't remove the second family with default views. On your 6900 XT it did, so it may depend on the card or on VRAM pressure. Peaks: requested VRAM 6.8 GB, card GTT 9.0 GB.
  • Private views: the only run on this build without a GPU fault. Earlier, #389 on an older base removed the TCP faults in 3 of 3 private-views runs, so this fits. The +0x4DA6315 breakpoint didn't come in this run, although #608 isn't in it. 149 Failed to import host memory lines.
  • Side note: the first launch after this build's prepare ended at Game Init, frame 0, on the watchdog path after 53 s. The prepare's pipeline replay could not build 5,986 of 10,311 records, probably older records without 15bd9ab0's root_used. So the first 512 graphics pipelines likely compiled cold at creation. The relaunch got through.

The default run's fault looks like #603 (a placed texture's sparse image read after it was destroyed). A dump from an earlier build matched it there.

<!-- greyfinch-sync:brcly/TuxBox:comment:7303923396 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594#issuecomment-7303923396). Originally posted by [1093i3511](https://github.com/1093i3511) on 2026-12-01T07:19:42Z. --- @DrArroway the promised retest, on main `717a74c4` (with #389, #594 and the tile pool 34be158b). RX 6600 (`1002:73ff`, 8 GB, RDNA2), Mesa 26.3.1 RADV, GE-Proton11-15, Series S profile. One run per setting. | Setting | Ending | GPU fault | | --- | --- | --- | | Defaults | about 600 s, probably in the world, then device and desktop lost | **yes**: two adjacent host pages `0x800602d14000` / `0x800602d15000`, TCP read (`0x00501031`, `PERMISSION_FAULTS 3`) | | `TUXBOX_XMEM_PRIVATE_VIEWS=1` (no #608, it conflicts with main) | world at F:1226, end F:1267 (41 world frames), exit 3 via `+0x2592D69` / `+0x2215ECA` | **none**, no kernel line | | `TUXBOX_XMEM_SECTION_WATCH=1` + `TUXBOX_CHECK_ONCE_PER_FRAME=1` | world at F:973, end F:1027, watchdog | yes, a different shape (details on #472) | - **Defaults:** the fault has the shape of the second family: two adjacent pages, 0x4000 into a 64 KiB block. After it, the compositor's ring `gfx_0.1.0` timed out. The ring reset failed, so the kernel did a MODE1 reset and the desktop was lost. The devcoredump names the compositor, because it records the owner of the hung ring; the game's fault came 2 s earlier. So on this card, **#389 doesn't remove the second family with default views.** On your 6900 XT it did, so it may depend on the card or on VRAM pressure. Peaks: requested VRAM 6.8 GB, card GTT 9.0 GB. - **Private views:** the only run on this build without a GPU fault. Earlier, #389 on an older base removed the TCP faults in 3 of 3 private-views runs, so this fits. The `+0x4DA6315` breakpoint didn't come in this run, although #608 isn't in it. 149 `Failed to import host memory` lines. - **Side note:** the first launch after this build's prepare ended at `Game Init`, frame 0, on the watchdog path after 53 s. The prepare's pipeline replay could not build 5,986 of 10,311 records, probably older records without 15bd9ab0's `root_used`. So the first 512 graphics pipelines likely compiled cold at creation. The relaunch got through. The default run's fault looks like #603 (a placed texture's sparse image read after it was destroyed). A dump from an earlier build matched it there.
DrArroway commented 2026-12-01 07:51:52 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-01T07:51:52Z.


@1093i3511 Thanks for the detailed retest and for sharing the RADV_DEBUG=hang proof on #603 linking VS 281b4977 / PS 96e8aaaa to the placed-texture sparse VkImage use-after-free.

One clarification from our AMD Radeon RX 6900 XT (1002:73bf) runs on 40a69c3f (post-#389 and #594) with TUXBOX_XMEM_PRIVATE_VIEWS=1: we still intermittently hit the same TCP PERMISSION_FAULTS: 3 (RW: 0) 0x800... GPUVM fault family too — TUXBOX_TRACE_GPU_FAULT=1 caught VS 72817cd3 / PS 9bcac3ef in one run and compute dispatch CS 482ad7dc in another (details logged on #232), which fits #603's placed-texture UAF rather than an OOB root-descriptor read.

Also, #608 is now cleanly rebased onto 717a74c4 (including #573) with 5/5 CI checks green if you want to pull it into your next TUXBOX_XMEM_PRIVATE_VIEWS=1 test run.

<!-- greyfinch-sync:brcly/TuxBox:comment:7304578050 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/594#issuecomment-7304578050). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-12-01T07:51:52Z. --- @1093i3511 Thanks for the detailed retest and for sharing the `RADV_DEBUG=hang` proof on #603 linking `VS 281b4977 / PS 96e8aaaa` to the placed-texture sparse `VkImage` use-after-free. One clarification from our **AMD Radeon RX 6900 XT (1002:73bf)** runs on `40a69c3f` (post-#389 and #594) with `TUXBOX_XMEM_PRIVATE_VIEWS=1`: we still intermittently hit the same `TCP` `PERMISSION_FAULTS: 3` (`RW: 0`) `0x800...` GPUVM fault family too — `TUXBOX_TRACE_GPU_FAULT=1` caught `VS 72817cd3 / PS 9bcac3ef` in one run and compute dispatch `CS 482ad7dc` in another (details logged on #232), which fits #603's placed-texture UAF rather than an OOB root-descriptor read. Also, #608 is now cleanly rebased onto `717a74c4` (including #573) with 5/5 CI checks green if you want to pull it into your next `TUXBOX_XMEM_PRIVATE_VIEWS=1` test run.
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
brcly/TuxBox!594
No description provided.