Device-removed report: "nothing of ours was running" only when every submission had finished #412
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!412
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-412"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MamaLeVrai on GitHub · 2026-11-27 00:17 UTC · original
MamaLeVrai:removal-phase→a-publier· +129 −9 · 2 files · 3 commits · openWhat
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 afterExecuteCommandLists+Signal, while up tolate_most()lists still run on the card.VICTORY_RELAY=2is ascripts\play.ps1default.Now:
N submissions of ours not finished: their lists may have been running on the card(newremoval_phase);the drawing queue's fence: X of Y signalled(GetCompletedValue, and the last value signalled if its lock is free). Otherwise it saysX reached, because the caller may hold the lock.Files:
crates/victory-gpu/src/host.rsonly.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
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 diagnosticsbuilds.a-publier4eb6cfd. 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
@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.
@MamaLeVrai on GitHub · 2026-11-27 12:34 UTC · original
Pushed
3ac2266after 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 read18446744073709551615(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 givesN when last seen (the device is removed), orunknown (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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.