Repository navigation
docs: boot stop 13 asserts on the stop 10 placeholder's base, and one… - #9375
DatGuySnowfox wants to merge 1 commit into
Conversation
|
Checked b3f0881 on Linux, Python 3.14.4: docs pass (no game copy here, so the measurements themselves are not rechecked)
|
b3f0881 to
1a09b20
Compare
… ConsoleMode registry DWORD picks Series X or S The value the title compares the first descriptor heap's slot 9 handle against is the pointer the stop 10 placeholder reserve returned, and the heap's byte size is that placeholder's first three sub-ranges. It is not an address the title predicts, it is memory the title already owns. Only one of the title's five descriptor heaps supplies a base, so the other four should follow once that one clears. Four pages: - descriptor_heap_allocation_hook.md: the derivation above, the five descriptor heap call sites, the slot 15 increment's effect on the placeholder's own size, and the full __XMemAllocationHooks__ chain ABI: two walkers, 256-entry head arrays indexed by byte 2 of the class word, the title's single index 128, the host-populated default the walker dereferences before testing it, thread-scoped nodes, the ten-node collect buffer, the class word's bitfield including its log2 alignment field, and the three interceptor kinds. Which walker is allocation and which is release is measured, not inferred from position. - title_descriptor_model.md: the title sub-allocates descriptors itself and keeps a free list inside four of the five heaps' descriptor memory, RTV and DSV included, so it writes a UINT over the first four bytes of 4096 RTV and 2048 DSV slots and reads them back. Views come from device slots 17, 18 and 19 in PC argument order with null resource pointers. A byte at offset 24 of the device object selects a raw-descriptor fallback no proxy can intercept. Includes the bring-up order after the heaps: the submission ring over placeholder sub-range 3, and 64 CreateCommandAllocator calls whose failure aborts bring-up with no assert and no message. - console_sku_detection.md: the title reads one REG_DWORD, ConsoleMode under HKLM\Software\Microsoft\Windows NT\CurrentVersion\OEM, and maps it to a generation id. The virtual-memory setup asserts the id is 1, 6, 7 or 8, so five of the nine ids are fatal before the device exists and the absent value passes. Id 6 is the Series S, and 63 functions across 71 call sites read that one predicate: it picks the ":xbsx" or ":xbss" asset variant, a ten-entry memory budget table, and render target dimensions. Stop 1's two reserves are 24 GiB each. - xbox_only_import_shapes.md: argument counts and in and out roles for the 23 unimplemented Xbox-only imports, so a stand-in can be declared with the right signature before the title reaches it. retail_boot_chain.md's stop 13 row now carries the measurement in place of the hypothesis, and its stop 1 row the reserve sizes. Static analysis only, nothing executed, so none of this is a verified fix. Every XMemVirtualAlloc immediate decoded here reconciles with xmem_exe_calls.md's table, the D3D12ConfigureVirtualMemoryX argument shape with d3d12_xs_surface.md, and device slots 8, 9, 26, 48, 73 and 133 with retail_boot_chain.md section 3.
1a09b20 to
e6fe6a9
Compare
|
Closing this as superseded. I opened it without checking the open pull requests first, which CONTRIBUTING.md asks for and which would have saved everyone the review. The queue already had better-sourced versions of nearly all of it:
Two parts were not already covered, and I have posted them where they are actionable instead of leaving them here:
I also had the hook chain's direction backwards in one place on this branch, describing the head arrays as something the host must populate. The title exports the hooks so the host calls into the title, so the correct caution is only that the host must pass an attribute word the title has an interceptor for, because the walker does not null-check the indexed head slot. #7021 satisfies that by construction. @YordiLorenzo thanks for running it, and sorry for the wasted pass. One correction for the record: |
… ConsoleMode registry DWORD picks Series X or S
The value the title compares the first descriptor heap's slot 9 handle against is the pointer the stop 10 placeholder reserve returned, and the heap's byte size is that placeholder's first three sub-ranges. It is not an address the title predicts, it is memory the title already owns. Only one of the title's five descriptor heaps supplies a base, so the other four should follow once that one clears.
Four pages:
descriptor_heap_allocation_hook.md: the derivation above, the five descriptor heap call sites, the slot 15 increment's effect on the placeholder's own size, and the full XMemAllocationHooks chain ABI: two walkers, 256-entry head arrays indexed by byte 2 of the class word, the title's single index 128, the host-populated default the walker dereferences before testing it, thread-scoped nodes, the ten-node collect buffer, the class word's bitfield including its log2 alignment field, and the three interceptor kinds. Which walker is allocation and which is release is measured, not inferred from position.
title_descriptor_model.md: the title sub-allocates descriptors itself and keeps a free list inside four of the five heaps' descriptor memory, RTV and DSV included, so it writes a UINT over the first four bytes of 4096 RTV and 2048 DSV slots and reads them back. Views come from device slots 17, 18 and 19 in PC argument order with null resource pointers. A byte at offset 24 of the device object selects a raw-descriptor fallback no proxy can intercept. Includes the bring-up order after the heaps: the submission ring over placeholder sub-range 3, and 64 CreateCommandAllocator calls whose failure aborts bring-up with no assert and no message.
console_sku_detection.md: the title reads one REG_DWORD, ConsoleMode under HKLM\Software\Microsoft\Windows NT\CurrentVersion\OEM, and maps it to a generation id. The virtual-memory setup asserts the id is 1, 6, 7 or 8, so five of the nine ids are fatal before the device exists and the absent value passes. Id 6 is the Series S, and 63 functions across 71 call sites read that one predicate: it picks the ":xbsx" or ":xbss" asset variant, a ten-entry memory budget table, and render target dimensions. Stop 1's two reserves are 24 GiB each.
xbox_only_import_shapes.md: argument counts and in and out roles for the 23 unimplemented Xbox-only imports, so a stand-in can be declared with the right signature before the title reaches it.
retail_boot_chain.md's stop 13 row now carries the measurement in place of the hypothesis, and its stop 1 row the reserve sizes.
Static analysis only, nothing executed, so none of this is a verified fix. Every XMemVirtualAlloc immediate decoded here reconciles with xmem_exe_calls.md's table, the D3D12ConfigureVirtualMemoryX argument shape with d3d12_xs_surface.md, and device slots 8, 9, 26, 48, 73 and 133 with retail_boot_chain.md section 3.
Claimed in the coordination issue as:
Depends on:
What and why
Tested
AI-assisted:
Checklist
docs/design.md, with how it was confirmed.