Files
reims-vgpu/crates/reims-graphics/src
Anees Iqbal 6f4ade4ac9 🐛 Make a block's pages wait for a cached release over them
a47f0b613 made a SURFACE_PAGES wait for a released block's device cache to
land in the same pages, noted at the release's ask. Ring 0's lanes are per
block, and a BLOCK_RELEASE is carried out on its context's lane. Where that
lane was behind a slow message when the kext gave up its 10 s wait for the
release's answer and made the surface's new block, the release had not been
asked yet, no copy was noted, the new block's SURFACE_PAGES went first, and
the old cache's copy could land over what the new block's buffers wrote.

The lanes now keep each block's last SURFACE_PAGES marked cached, until a
block's SURFACE_PAGES over its span, and a SURFACE_PAGES that lists runs
waits for each context's lane through its last BLOCK_RELEASE not yet carried
out of such a block whose runs share a page with its own, both blocks' runs
read out of the region as it is handed. The host's wait for the copy, at
most 10 s, then sees the release's copy. That cap stays: a reset drops a
copy not yet made, and an unbounded wait would hold the block's lane past it.

What the guest sees: a SURFACE_PAGES over pages of a cached block whose
release is still behind its lane is answered after that release is carried
out. a_block_s_pages_wait_for_a_cached_block_s_release_over_their_pages
fails on the lanes before this.
2026-11-07 10:41:12 -08:00
..