Re: [PATCH v10 05/28] gpu: nova-core: set DMA mask width based on GPU architecture

From: Gary Guo

Date: Mon Apr 20 2026 - 13:56:57 EST


On Sat Apr 11, 2026 at 3:49 AM BST, John Hubbard wrote:
> Replace the hardcoded 47-bit DMA mask with per-architecture values.
> Add Architecture::dma_mask() with an exhaustive match, so new
> architectures get a compile-time reminder to specify their width.
>
> Set the DMA mask in Gpu::new(). Gpu owns all DMA allocations for
> the device, so no concurrent allocations can exist while the
> constructor is still running.
>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> drivers/gpu/nova-core/driver.rs | 16 ----------------
> drivers/gpu/nova-core/gpu.rs | 22 ++++++++++++++++++++--
> 2 files changed, 20 insertions(+), 18 deletions(-)