Files
reims-vgpu/guest/bundle/tests
Anees Iqbal a4a91ef8e2 🆕 Name a command buffer's set*Bytes extents in its own stream
On a discrete GPU the bundle's set*Bytes chunks are Managed, and each
commit told the host the bytes written in each with a
BUFFER_DID_MODIFY_RANGE on ring 0 ahead of the buffer. That cost a
one-dispatch command buffer 41 to 44 us of commit-to-wait on the RX 7900
XTX and RTX 3090 hosts. Traced on the XTX, the held message's timer and the
kext call that posts it added 11 to 12 us each before the host took the
buffer, and the buffer then waited 18 to 26 us at the gate for the context
lane that carried the range out.

UPLOADS_WRITTEN (feature bit 53, FEATURES_HI bit 21) lets the buffer's own
stream carry them: op 0x000f, before the first encoder, as many
RgfxUploadWritten records (buffer, bytes from its start) as its length
holds. The host carries each out as the platform's didModifyRange: as it
begins the buffer, before its commit; a record that names no Managed
buffer, or bytes past one, fails the buffer, and none of its records is
carried out. Every host offers the bit and both kexts take it. The bundle
names the bytes there where its chunks are Managed, and sends the range
messages as before where the host did not offer it.

The guest sees the same results: the same bytes reach the GPU's copy before
the buffer's work. The host takes those ranges from the buffer, and ring 0
carries no range message for them.
2026-11-16 17:45:04 -08:00
..