Files
reims-vgpu/docs
Anees Iqbal 560e96b2cc 🐛 Map whole 16 KiB pages of an arm64 process's surface blocks
On arm64 a window maps whole 16 KiB pages, and refused every span of a
surface's block or the scanout that was whole 4 KiB guest pages alone: a
27.0.1 WindowServer's 1920x1080 RGBA16Float plane (0xfd3000 bytes) and others
were "not mapped in: 0xe00002c2", so it never reached their blocks. Every
caller of mapSpan and unmapSpan now passes the span of whole window pages
(rgfxWindowSpanLength): a surface block's runs start past that span
(rgfxSurfaceRunsFrom), the scanout's grant is rounded to it, and a block's
write-combined split in the block's rounding leaves the block write-back
(rgfxWindowWriteBackPart). Every block is whole window pages, so the pages a
span adds are its block's own.

On x86-64 a window page is 4 KiB and every length was a 4 KiB multiple, so
each span is as before; the kext's code differs, not what it maps. The arm64
region test checks the layouts on 16 KiB pages, with the refused sizes, and
that every mapSpan and unmapSpan call passes a span.
2026-11-09 11:09:07 -08:00
..