gpu: nova-core: add DMA object struct
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:57 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 17:16:02 +0000 (19:16 +0200)
commit9bcc046a929f73358bf23678306b31d927a7e088
tree981bc77d24974b2fe48048e70514ebd2e1b73dc7
parentbbe5db761086e870678697f8920db518a6297a18
gpu: nova-core: add DMA object struct

Since we will need to allocate lots of distinct memory chunks to be
shared between GPU and CPU, introduce a type dedicated to that. It is a
light wrapper around CoherentAllocation.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-13-ecf41ef99252@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/dma.rs [new file with mode: 0644]
drivers/gpu/nova-core/nova_core.rs