Diagnostics: distinguish submit-thread phase from unfinished work #4594

Open
tyr0nsur wants to merge 1 commit from upstream-pr/4594 into main
tyr0nsur commented 2026-11-30 23:31:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T23:31:23Z.


What it changes

The device-removal report used the submitting thread's phase to say the GPU had no work running. With the relay, a thread can be between submissions while earlier work is still outstanding. The RTX 5060 log in #4505 shows that phase alongside 90,651 submissions started and 90,627 marked finished. The RTX 2080 retry in #4293 shows the same 24-submission gap.

The report now describes the CPU thread's phase and prints how many started submissions were still unmarked as finished when the counters were sampled. Those counters cover the whole submission path. The fence and DRED data remain the evidence for where the hang occurred.

How it was tested

The local results below were recorded on 36193175 before the upstream history rewrite.

  • cargo test --locked -p victory-gpu --lib the_removal_report_says_the_newest_things_done passed, and the staged asset-policy check passed.
  • Git merges this change cleanly with #3740 and #4573.

Checked for overlap

Related: #3740 and #4573.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5575710358 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4594). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T23:31:23Z. --- ## What it changes The device-removal report used the submitting thread's phase to say the GPU had no work running. With the relay, a thread can be between submissions while earlier work is still outstanding. The RTX 5060 log in #4505 shows that phase alongside 90,651 submissions started and 90,627 marked finished. The RTX 2080 retry in #4293 shows the same 24-submission gap. The report now describes the CPU thread's phase and prints how many started submissions were still unmarked as finished when the counters were sampled. Those counters cover the whole submission path. The fence and DRED data remain the evidence for where the hang occurred. ## How it was tested The local results below were recorded on 36193175 before the upstream history rewrite. - `cargo test --locked -p victory-gpu --lib the_removal_report_says_the_newest_things_done` passed, and the staged asset-policy check passed. - Git merges this change cleanly with #3740 and #4573. ## Checked for overlap Related: #3740 and #4573.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/4594:upstream-pr/4594'
git switch 'upstream-pr/4594'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/4594'
git switch 'upstream-pr/4594'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/4594'
git switch 'upstream-pr/4594'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/4594'
git switch 'main'
git merge --squash 'upstream-pr/4594'
git switch 'main'
git merge --ff-only 'upstream-pr/4594'
git switch 'main'
git merge 'upstream-pr/4594'
git push origin 'main'
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
trustno1-coder/VIctory-NVIDIA!4594
No description provided.