xcl run: the sync-state dump names the list behind a Wait64 cell #2718
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2718
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2718"
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?
@Kalmarv on GitHub · 2026-11-26 08:17 UTC · original
Kalmarv:sync-dump-recording-list→main· +223 −3 · 3 files · 4 commits · openStacked on #2244; only the top commit belongs here.
#2244's sync-state dump shows a
Wait64BitValueXcell recorded and never submitted (rec 0x619,sub 0x0@qNonein #1452), but not which list recorded the value or what became of that list. Each such cell entry now names the PC list that recorded its highest value, and says whether that list was later executed, reset or released, with each as its time after the recording:That tells apart the ways a recorded Write64 goes missing:
#2717 (a mid-list split that cannot make its next segment no longer closes the list) is one fix for the first case. Part of #1452.
What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:SyncCell::recorded_by(list and time of the recording that setrecorded_max).WRITE64_LISTSholds the last execute, Reset and Release of each list that recorded a Write64; it is filled in bysignal_write64_fences, the KickoffX submit,reset_pc,clear_segment_stateandon_release.cells_behind_summaryprints them (try_lock, as for the graph).the_cells_behind_summary_names_the_recording_list_and_what_came_to_it.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at590fb10f(on #2244's97e22f64,main72f848ca): 1415 passed, 0 failed, 46 ignoredV_MUL_F16,V_PK_MUL_F16,V_CVT_F16_F32),heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windowsby <list> … (executed no, reset no, released no), thenreset +… msandreleased +… msafter a Reset and a Release.Regression run
main (
b49be18):this PR (
590fb10):Not tested
XCL_THREAD_DUMP_AT, so no dump is logged in themAI use
🤖 Generated with Claude Code
@luckyteagirl on GitHub · 2026-11-26 08:36 UTC · original · reviewed
At exact head
590fb10(stacked on97e22f6, current mainb49be18), the new trace can label a discarded Write64 as executed. This is a source-derived review; I did not run a title reproduction.SyncCell::recorded_bysaves only the raw PC-list address and a timestamp, whileWRITE64_LISTShas one mutable trace per address. For example, record a Write64 for a cell, Reset that list before submission, then record an unrelated Write64 and execute the new recording on the same list.reset_pcnotes Reset, but the latersignal_write64_fences/KickoffX updatesexecutedon the same trace.recording_traceaccepts that later timestamp, so the old cell reportsexecuted +…even though its recording was discarded. This conflicts with the PR's interpretation that “executed” means the write went out. Releasing the original list and reusing its address for a different list can produce the same attribution, since the address entry remains afteron_release.Could the trace be tied to a recording lifetime, so a Reset/Release closes the old recording and a later execution on the same address belongs to a new one? Extending
the_cells_behind_summary_names_the_recording_list_and_what_came_to_itwith Reset, an unrelated new recording, and Execute should leave the old cell atexecuted no; a release/address-reuse case would cover the other path.AI assistance: GPT-6.2 Sol agents independently found the Reset and address-reuse cases; GPT-6.2 Astra verified the exact-head source and combined the report.
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.