Relay: a fence wait cut short by a lost device says so, not "fence 18446744073709551615" #993
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!993
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-993"
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?
@kibagami-nc on GitHub · 2026-11-28 10:53 UTC · original
kibagami-nc:diag/lost-device-fence-message→main· +24 −3 · 1 files · 2 commits · merged 2026-11-29 08:16 UTCWhy
Once the device is removed,
GetCompletedValuereturnsu64::MAXfor every fence. The relay already takes that as the device gone (fence_reached, since fxceless#1366's check came in). But its message prints the value as it is:On #972 that was read as an underflow of ours, "the fence value the relay read is 0 - 1", when the cause was the hang named after it:
0x887A0006, the card no longer responding. Device-removed reports are common here, and each one now carries that number.The change
wait_host_fence's message comes fromfence_short. A lost device is named as such:A fence that read a real value short of its target is told as before:
relay: fence 6 did not reach 7. Nothing else changes, and the failure is still a failure.Tests
host::a_lost_device_is_named_not_its_fence_value: the lost-device text names the target and not18446744073709551615. The other text is unchanged.cargo test -p victory-gpu --lib --locked: 454 passed, 36 ignored.-D warnings, default and--all-features): nothing in the changed lines. It stops onmain's ownmanual_is_multiple_of(fixed in #665). With that lint allowed, both builds are clean.No game files, dumps or extracted data are included.
A review asked for the removal reason (hung or reset) in the lost-device wording. fail() already adds it to the same line ("; device removed: ... (0x887A0006)", as in #972's log), so the note says so instead of asking twice.@Exopus-0x65f7ad0 on GitHub · 2026-11-28 13:00 UTC · original
Looks right. The
u64::MAXbranch matchesfence_reached, and the test pins both wordings.One optional addition while you're in
wait_host_fence: the fence alone can name why the device went away. In #972 the reason (0x887A0006hung or0x887A0005reset) had to be dug out of other lines. Something like:Then add
reasonto the lost-device wording. That way a pasted line alone tells a hang from a reset. Fine to leave for a follow-up.@kibagami-nc on GitHub · 2026-11-28 13:13 UTC · original
Thanks for the review. The reason is already on that line:
wait_host_fencereports throughfail(), andfail()asksGetDeviceRemovedReasonand appends it. #972's line has both halves:With this PR it reads
relay: the device was lost before fence value 312701 was reached (...); device removed: ... (0x887A0006). The pasted line alone tells a hang from a reset. Asking from the fence too would print the code twice.So I left the code as it was, and added a note to
fence_short's doc thatfail()names the reason (b4a2be5), so it doesn't get asked twice later. In #972 the hard part was theu64::MAXprinted as a value, which sent the reading toward an underflow; that is what this PR changes.