Skip to content

HLE: identify DirectStorage physical page write failures - #329

Open
avt0m4t48 wants to merge 3 commits into
fxceless:mainfrom
avt0m4t48:fix/dstorage-physical-write-diagnostics
Open

avt0m4t48 wants to merge 3 commits into
fxceless:mainfrom
avt0m4t48:fix/dstorage-physical-write-diagnostics

Conversation

@avt0m4t48

@avt0m4t48 avt0m4t48 commented Nov 24, 2026 •

Copy link
Copy Markdown

Refs #268.

DirectStorage's terminal physical-page write warning reports the unknown page ID, an invalid page range, or the Win32 mapping or commit error captured at the failure site. The branch includes main's new buffered-write retry behavior. If it exhausts its retries, it logs the retry count and the final attempt's specific error in the same warning. The request still reports E_INVALIDARG.

On the updated head, seven source-built checks passed using the production destination and physical-memory logic with simulated Win32 calls. With retries off, the original five checks cover direct writes, fallback, missing pages, map failure and commit failure. With two retries enabled, one check verifies a transient write recovers and logs the number of attempts. Another verifies a map error followed by commit errors reports the final commit error. The diagnostic assertion for the final attempt failed on main. Windows MSVC HLE and GPU test targets type-checked with warnings denied.

Native Windows error injection and the cutscene symptom remain unverified. AI-assisted using Codex.

@avt0m4t48

Copy link
Copy Markdown
Author

Merged 0b0074e into this branch at 2014383. The resolution preserves the new retry counters and page-written notifications and adds the final write error to the terminal warning.

The seven simulated host-error controls still pass, including a successful retry and an exhausted sequence where the final error differs from the first. Native Windows also passed all 14 DirectStorage tests and 12 physical-memory tests. The native suite exercises source-built requests and page mappings. Host mapping/commit errors were injected in the separate simulation.

Exact-head Windows run

AI-assisted using Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant