Relay: a fence wait cut short by a lost device says so, not "fence 18446744073709551615" #993
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T10:53:41Z.
Why
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T13:00:40Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T13:13:25Z.
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.