kernelx: a failed physical page read or write commits no earlier home #1781
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!1781
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1781"
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?
@Luislariosss on GitHub · 2026-11-24 20:36 UTC · original
Luislariosss:phys-pages→main· +19 −2 · 1 files · 1 commits · openresolve_physical_pagescommitted each page's home as it resolved it: a multi-page read or write that failed on a later page left the earlier pages' sparse homes reserved — memory the title cannot account for, surfacing later as an allocation or mapping failure.What is in it
page_homelookup forpages[..need]is collected and validated before the firsthome_againruns; a failed read or write commits nothing.failed_physical_page_read_or_write_does_not_commit_earlier_sparse_homes: a write and a read that fail on their second page leave the first page's home uncommitted (the test no-ops on an adapter without sparse pages).Tested
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5 throughXCL_DXC_DIR;CARGO_PROFILE_TEST_DEBUG=0.cargo test -p xcl --lib kernelxat the head: 37 passed, 0 failed, 1 ignored. The new test fails without the fix (verified by reverting the fix hunk and back).cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4): 876 passed, 0 failed, 38 ignored (20 test binaries;SKIPPED:pso_measurement_compiles_an_exact_synthetic_record— cannot disable the driver cache;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows).title:line readsretail-title, the folder name is withheld):main (
85e3826, clean tree):head (
dbdc480, clean tree):Not tested
AI use
@frenziedcoder on GitHub · 2026-11-24 20:55 UTC · original
NVIDIA test report for
dbdc480: an NVIDIA run next to the RX 9060 XT one in the description. Full suite green, the PR's own test passing, and a clean smoke pair (1652 vs 1654 frames).Tested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100.0). Exact headdbdc480262a0c12df0e9e0598bb8759fc1f79a08, no local changes.cargo build --workspace && cargo test --workspace -- --test-threads=4(debug): 876 passed, 0 failed, 42 ignored;failed_physical_page_read_or_write_does_not_commit_earlier_sparse_homespasses. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Regression run (
scripts/smoke.ps1 -Seconds 60, release, the retail title of #505 at its start screen;XCL_PSO_PRELOAD=0for both builds, because this machine's preload list holds the program of #1307)base (
4178e88, this PR's base; the same base run as in my report on #1747):this PR:
Not tested: a failed multi-page physical read or write in the title (none is logged at its start screen); the world load; AMD.
AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it.
@DavidM1911 on GitHub · 2026-11-24 23:36 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@anes66 on GitHub · 2026-11-25 05:57 UTC · original
Independent CPU-only reproduction on exact head
dbdc480262a0c12df0e9e0598bb8759fc1f79a08: optional test companion 0b7fc45 adds a plain-memory variant of the regression, directly on that head. No runtime changes.The existing regression depends on sparse GPU setup. The new test instead registers three reserved Windows pages as a synthetic plain physical-page home in an isolated child process and calls the real
read_physical_pages/write_physical_pagesfunctions. It asserts that XCL's real D3D12 device pointer stays null. UMA's CPU address reservations use 1 MiB settings; no GPU backend is created.Tested
cargo test --locked -p xcl --lib failed_physical_page_io_keeps_plain_homes_reserved_without_a_gpu -j 2 -- --nocapture --test-threads=1: 1 passed / 0 failed / 0 ignored / 0 skips. The output also contains the isolated child's run of that same test; it is not a second independent case.page_home/home_againloop makes the test fail withfailed write committed page 0. Restored before the final passing run and commit.Not tested
Sparse GPU homes, moved/away mappings, actual allocation exhaustion, release, full workspace suite, retail smoke, or newer-main integration. The test establishes that an invalid later page has no earlier plain-home commit side effect; it does not establish atomicity when all page numbers are valid but a later OS commit itself fails. No claim that this PR fixes our retail loading crashes.
AI use: Codex (GPT-6; exact variant unavailable) wrote the CPU variant and negative control, ran verification and prepared this report.
@throny on GitHub · 2026-11-25 09:55 UTC · original
Test report for exact head
dbdc480.Tested
cargo build --workspace && cargo test --workspace -- --test-threads=4ondbdc480as it is (its own base): 876 passed, 0 failed, 42 ignored.SKIPPED: 4 lines (no wave64 on this adapter, and the like).scripts/smoke.ps1, the retail title, 60 s, release builds,main568e7dbfirst, then this head:main:
PR:
Not tested: AMD, the head merged onto current
main, a world load.AI use: Claude Code (Claude Opus 5.5) ran this and wrote the report; the diff was read for safety by a Claude Opus 5.5 sub-agent before it was built.
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.