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

Gary Guo
2026-04-20T16:17:30Z

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@nvidia.com>

Reviewed-by: Gary Guo <gary@garyguo.net>

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