GPU: keep descriptor fallback scans outside marked ranges #178

Open
stritphatographir wants to merge 1 commit from upstream-pr/178 into main
stritphatographir commented 2026-11-26 10:30:40 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by stritphatographir on 2026-11-26T10:30:40Z.


Marked descriptor runs and sampled write-watch pages feed the same parallel heap sync. If a fallback page covers an already marked slot, two workers can update the same copied-record state. The worker code assumes each range has one owner.

Subtract the sorted marked runs from each sampled page before assigning work. Marked slots keep their existing path. Unmarked gaps still go through the fallback and keep its missed-mark reporting.

Validation

  • The new synthetic test failed with the original full-page enqueue. It passed after the change and covers partially covered pages and a fully covered range.
  • All 9 descriptor tests passed in both the default and diagnostics builds.
  • GPU Clippy passed for all targets and features with warnings treated as errors.
  • The repository and staged asset-policy checks passed. This PR changes one Rust source file.

Codex assisted with the upstream port and verification.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6624667320 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/178). Originally posted by [stritphatographir](https://github.com/stritphatographir) on 2026-11-26T10:30:40Z. --- Marked descriptor runs and sampled write-watch pages feed the same parallel heap sync. If a fallback page covers an already marked slot, two workers can update the same copied-record state. The worker code assumes each range has one owner. Subtract the sorted marked runs from each sampled page before assigning work. Marked slots keep their existing path. Unmarked gaps still go through the fallback and keep its missed-mark reporting. ## Validation - The new synthetic test failed with the original full-page enqueue. It passed after the change and covers partially covered pages and a fully covered range. - All 9 descriptor tests passed in both the default and diagnostics builds. - GPU Clippy passed for all targets and features with warnings treated as errors. - The repository and staged asset-policy checks passed. This PR changes one Rust source file. Codex assisted with the upstream port and verification.
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/178:upstream-pr/178'
git switch 'upstream-pr/178'

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/178'
git switch 'upstream-pr/178'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/178'
git switch 'upstream-pr/178'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/178'
git switch 'main'
git merge --squash 'upstream-pr/178'
git switch 'main'
git merge --ff-only 'upstream-pr/178'
git switch 'main'
git merge 'upstream-pr/178'
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
avatarmanz/VIctory-7900XTX!178
No description provided.