Files
reims-vgpu/docs/graphics-kext
Anees Iqbal 0fc8734741 🐛 Bound a CPU lock's wait on a raised hold word at 1 s in all
A read-write CPU lock of a cached surface waits while the block's hold word
is raised, 1 ms a sleep, ending only once the word is lowered, the thread is
aborted or the device stops. The word lies in the block's header, which each
process holding the surface maps writable: a process that stored RAISED there
held every other holder's read-write locks of the surface, WindowServer's
among them, for as long as it kept the word up. A Mac's locks wait for no
other process.

A lock now waits 1 s in all at most, then goes on with the word raised,
logging the boot's first such lock and counting each. Guests' walks measured
host spans of up to 63.9 ms on an Iris Xe (m3-max-83207) and 33.0 ms on a
UHD 630 (m3-max-83316), while the make shares its batch with the guest's
command buffers: the bound is about 15 times that. What the guest sees: a
lock on a word held up past 1 s goes on; a real span over 1 s, possible only
while rt shares its batch with a guest command buffer of over 1 s, could lose
that lock's write. The native test holds the bound and a span inside it.
Both kext sets are built again.
2026-12-03 06:05:46 -08:00
..