Re: [PATCH v5 17/20] gpu: nova-core: use I/O projection for cleaner encapsulation
From: Gary Guo
Date: Fri Jul 03 2026 - 11:20:37 EST
On Fri Jul 3, 2026 at 3:46 PM BST, Alexandre Courbot wrote:
> On Fri Jun 26, 2026 at 11:45 PM JST, Gary Guo wrote:
>> Use `io_project!` for PTE array and message queues to restore the proper
>> encapsulation.
>>
>> The remaining `dma_read!` and `dma_write!` is now only acting on
>> primitives; thus replace by `io_read!` and `io_write!`.
>>
>> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
>
> This is beautiful. :_)
>
> Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
>
> (the memory barrier concern raised by Sashiko looks real - and IIUC was
> already discussed before - but not introduced by this series so let's
> address that separately)
See https://lore.kernel.org/rust-for-linux/20260609-rust-barrier-v2-3-30fcc48e1cd0@xxxxxxxxxxx.
Boqun already queued the first two patches for 7.3; Nova can start using it next
cycle.
Best,
Gary