HLE: implement DirectStorage CancelRequestsWithTag and Query queue slots #2086
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2086
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2086/head"
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?
@fuzeofficlal on GitHub · 2026-11-25 04:32 UTC · original
fuzeofficlal:feat/hle-dstorage-cancel-query-889→main· +366 −6 · 1 files · 1 commits · closed without mergingFixes #889.
Summary
0x38,CancelRequestsWithTag): drop unsubmitted and queued-not-yet-started read requests matching(request.tag & mask) == value, flush newly unblocked status entries without recording a failure, and wake full-queue waiters.0x58,Query): populate the0x20-byte 2020DSTORAGE_QUEUE_INFOlayout from the queue's creation description (retaining an ownedCStringforname) and live empty / auto-submit slot counts, reporting(0, 0)once closed and tolerating null output pointers.Testing
queue_info_tracks_layout_counts_and_closed_stateandcancel_by_tag_drops_matching_reads_without_errorincrates/victory-hle/src/modules/dstorage.rs.cargo test -p victory-hle --locked,cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo xtask policy.@jeremygold02 on GitHub · 2026-11-25 04:36 UTC · original
Triage verdict — Keep Query and cancellation, share the auto-submit threshold (
c931aac)Evidence
Querycurrently reports four entries until auto-submit on an idle capacity-eight queue. That matches the current enqueue policy. #2074 proposes five for the same queue, so taking both changes as written could makeQuerydisagree with the enqueue path. Query calculation · Idle-count assertion · #2074 boundary evidenceChecks and limits
Next step
This verification was AI-assisted.
@Dathinel on GitHub · 2026-11-25 04:39 UTC · original
I ran the status-only check suggested above. Before each enqueue I called
Query, then enqueued a new status entry and checked whether the first status had completed. No reads or explicitSubmit.At capacity 8 the combined tree reports
4, 3, 2, 1, 0before the five enqueues; the first status is still pending when the count reaches zero. Using #2074'slane.submits_at()inQuerymade every step match for all four capacities. With the four countdown expectations updated in the Query and cancellation tests, all 17 DirectStorage module tests passed.Tested on Windows at
c931aac5and2ced7715. This verifies reporting against the runtime's actual behavior for either merge decision. AI-assisted.@fuzeofficlal on GitHub · 2026-11-25 05:00 UTC · original
Updated in
45a34efb— thanks @jeremygold02. FactoredLane::submits_atsoqueue()andQueryshare a single auto-submit threshold calculation, and added status-onlyenqueue_statuscountdown/auto-submit assertions across capacities2,4, and8.@Marvisak on GitHub · 2026-11-25 10:33 UTC · original · edited 2026-11-25 15:56 UTC
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-hle/src/modules/dstorage.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs-work) was for an older state ofmain.Generated by Claude Code
@fuzeofficlal on GitHub · 2026-11-25 16:13 UTC · original
Closing per triage feedback: the title only calls queue slots
0x18,0x20,0x30, and0x40, so keepingmissing::<7>(0x38) andmissing::<11>(0x58) avoids committing to an unverifiedQueueInfolayout (0x20vs0x28bytes aroundQueueDesc) until a real call site is observed.Pull request closed