Repository navigation
Conversation
When sparse UMA is exhausted, AllocateTitlePhysicalPages fell back to u.alloc in the committed coherent window without respecting the 96 MiB KEEP headroom in VirtualAlloc, and created non-lazy homes that cannot be decommitted when mapped elsewhere. Skip the coherent u.alloc fallback when u.has_sparse() is true so overflow goes straight to MEM_RESERVE plain memory (keeping u.alloc only for coherent-only layouts), and add synthetic unit tests. Part of xcl-dev#1566 Assisted-by: Antigravity (Gemini 4 Neon)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows x64 test report on commit Environment
Command xcl-97fdf2b9ff8e1482.exe hle::kernelx::tests::physical_home_ --nocapture --test-threads=1Results
Not tested
AI use
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When sparse UMA windows are full on a runtime layout,
AllocateTitlePhysicalPagescurrently falls back tou.allocin the committed coherent window before falling back toMEM_RESERVEplain memory. UnlikeVirtualAlloc(which reserves 96 MiBKEEPheadroom for XCL's own readback/internal allocations), that fallback can consume the remaining coherent headroom and yields a home wherelazy_home(home)isfalse(already committed and never decommitted when moved away).This skips the coherent
u.allocfallback whenu.has_sparse()is true, sending sparse-layout overflow straight toMEM_RESERVEplain memory while preservingu.allocfor coherent-only layouts without sparse windows. Part of #1566.What is in it
alloc_physical_home&AllocateTitlePhysicalPages: skipu.allocwhenu.has_sparse()is true (crates/xcl/src/hle/kernelx.rs)crates/xcl/src/hle/kernelx.rs)Tested
cargo test) + release (smoke.ps1)cargo test -p xcl --lib hle::kernelx::tests: 38 passed, 0 failed, 1 ignored (scatter_timing)cargo test --workspace -- --test-threads=4(withXCL_DXC_DIR=D:\Windows Kits\10\bin\10.0.26100.0\x64): 1156 passed, 0 failed, 46 ignored (24SKIPPEDGPU sub-checks on RTX 5080 wave32: 20no wave64, 3DIFFERS_ON_1426f16/V_CVT_F16_F32 per-lane refusals, 1no heap windows)Regression run
Not tested
sparse 7445 MB), so sparse overflow was exercised by the synthetic unit test rather than the retail run (withXCL_DXC_DIRonD:\before VFS: exempt xcl.exe and host tool dirs from console drive mounts #2101 lands, host DXC lookup is also intercepted by theD:mount in both themainand PR smoke runs)AI use
kernelx.rs/uma.rs, wrote the fix and unit tests, ran the test suite and smoke runs, and drafted this PR description.