Device-removed report: "nothing of ours was running" only when every submission had finished #412

Open
github-bot wants to merge 3 commits from github-bot/gh-412 into a-publier AGit
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 00:17 UTC · original
MamaLeVrai:removal-phase → a-publier · +129 −9 · 2 files · 3 commits · open

What

The device-removed report (removal_context, when the host device went: ...) said "nothing of ours was running on the card" whenever the submitting thread was not waiting for the card. Under flights in the air that is not true. In the late/relay path the thread goes back to "between submissions" (submitting(0, 0)) right after ExecuteCommandLists + Signal, while up to late_most() lists still run on the card. VICTORY_RELAY=2 is a scripts\play.ps1 default.

Now:

  • the parenthesis is "nothing of ours was running on the card" only when submissions started == finished. Otherwise it says N submissions of ours not finished: their lists may have been running on the card (new removal_phase);
  • the line adds the drawing queue's fence: the drawing queue's fence: X of Y signalled (GetCompletedValue, and the last value signalled if its lock is free). Otherwise it says X reached, because the caller may hold the lock.

Files: crates/victory-gpu/src/host.rs only.

Why

The RDNA 2 device-loss reports (#329, #376, and mine) all lean on that sentence to say that the loss happened with nothing of ours on the card. My own run's report shows submissions started 7809 finished 7808, so one submission was still out while the line said nothing was running. The sentence was misleading the diagnosis. It does not show what was on the card either. The fence values now let the next report tell whether the drawing queue had work left.

Tests

  • New host::tests::the_removal_phase_counts_unfinished_submissions: the "nothing of ours" wording only with 0 unfinished, the count otherwise, and the waiting phase unchanged.
  • cargo test --release -p victory-gpu --lib: 397 passed, 0 failed, 34 ignored. cargo check --profile diag -p victory --features diagnostics builds.
  • RX 6950 XT, Windows 11 build 26300, Rust 1.98.1, on a-publier 4eb6cfd. Not run in the game.

Second commit (b90f6b6): the keep-awake compute queue (VICTORY_CARD_AWAKE) and the relay's copy queue (VICTORY_RELAY_COPY) also hold work of ours. The line now gives each one's fence too: the keep-awake queue's fence: X of Y signalled, the relay's copy queue fence: X of Y signalled. Full suite after it: 397 passed, 0 failed.

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

**@⁠MamaLeVrai** on GitHub · 2026-11-27 00:17 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/412) `MamaLeVrai:removal-phase` → `a-publier` · +129 −9 · 2 files · 3 commits · open ## What The device-removed report (`removal_context`, `when the host device went: ...`) said "nothing of ours was running on the card" whenever the submitting thread was not waiting for the card. Under flights in the air that is not true. In the late/relay path the thread goes back to "between submissions" (`submitting(0, 0)`) right after `ExecuteCommandLists` + `Signal`, while up to `late_most()` lists still run on the card. `VICTORY_RELAY=2` is a `scripts\play.ps1` default. Now: - the parenthesis is "nothing of ours was running on the card" only when submissions started == finished. Otherwise it says `N submissions of ours not finished: their lists may have been running on the card` (new `removal_phase`); - the line adds the drawing queue's fence: `the drawing queue's fence: X of Y signalled` (`GetCompletedValue`, and the last value signalled if its lock is free). Otherwise it says `X reached`, because the caller may hold the lock. Files: `crates/victory-gpu/src/host.rs` only. ## Why The RDNA 2 device-loss reports (#329, #376, and mine) all lean on that sentence to say that the loss happened with nothing of ours on the card. My own run's report shows `submissions started 7809 finished 7808`, so one submission was still out while the line said nothing was running. The sentence was misleading the diagnosis. It does not show what was on the card either. The fence values now let the next report tell whether the drawing queue had work left. ## Tests - New `host::tests::the_removal_phase_counts_unfinished_submissions`: the "nothing of ours" wording only with 0 unfinished, the count otherwise, and the waiting phase unchanged. - `cargo test --release -p victory-gpu --lib`: 397 passed, 0 failed, 34 ignored. `cargo check --profile diag -p victory --features diagnostics` builds. - RX 6950 XT, Windows 11 build 26300, Rust 1.98.1, on `a-publier` `4eb6cfd`. Not run in the game. Second commit (`b90f6b6`): the keep-awake compute queue (`VICTORY_CARD_AWAKE`) and the relay's copy queue (`VICTORY_RELAY_COPY`) also hold work of ours. The line now gives each one's fence too: `the keep-awake queue's fence: X of Y signalled`, `the relay's copy queue fence: X of Y signalled`. Full suite after it: 397 passed, 0 failed. AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With flights in the air (VICTORY_RELAY) the submitting thread goes back to
"between submissions" right after sending, while up to late_most() lists
still run, yet the report said "nothing of ours was running on the card".
It now says that only when every submission had finished, names how many
had not, and adds the drawing queue's fence (reached, of signalled).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Both hold work of ours on the card (VICTORY_CARD_AWAKE, VICTORY_RELAY_COPY),
neither was in the report. Each now says its fence: reached, of signalled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:59:26 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-27 00:18 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-27 00:18 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/412#pullrequestreview-6081909371) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
On an RX 6950 XT the report of a real loss read u64::MAX for both fences:
the device is removed when it is made. The drawing queue's fence (as the
relay lands flights) and the keep-awake fence keep the highest value seen
before; the report gives that, or says it is unknown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 12:34 UTC · original

Pushed 3ac2266 after a real loss on an RX 6950 XT. The new wording worked: 1 submissions of ours not finished: their lists may have been running on the card. But both fences read 18446744073709551615 (u64::MAX), because the device is already removed when the report is made. The drawing queue's fence (read as the relay lands flights) and the keep-awake fence now keep the highest value seen before. The report gives N when last seen (the device is removed), or unknown (the device is removed). Test extended. cargo test --release -p victory-gpu --lib: 397 passed, 0 failed, 34 ignored.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 12:34 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/412#issuecomment-7218406431) Pushed `3ac2266` after a real loss on an RX 6950 XT. The new wording worked: `1 submissions of ours not finished: their lists may have been running on the card`. But both fences read `18446744073709551615` (u64::MAX), because the device is already removed when the report is made. The drawing queue's fence (read as the relay lands flights) and the keep-awake fence now keep the highest value seen before. The report gives `N when last seen (the device is removed)`, or `unknown (the device is removed)`. Test extended. `cargo test --release -p victory-gpu --lib`: 397 passed, 0 failed, 34 ignored. AI-assisted (Claude Code); no game data.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/412/head:github-bot/gh-412'
git switch 'github-bot/gh-412'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-412'
git switch 'github-bot/gh-412'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-412'
git switch 'github-bot/gh-412'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-412'
git switch 'a-publier'
git merge --squash 'github-bot/gh-412'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-412'
git switch 'a-publier'
git merge 'github-bot/gh-412'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.