Re: [RFC PATCH 0/3] rust: dma: require device configuration before DMA

From: Danilo Krummrich

Date: Mon Nov 23 2026 - 18:49:27 EST


Hi Matteo,


On Mon Nov 23, 2026 at 9:39 PM CET, Matteo Kloiber wrote:
> Matteo Kloiber (3):

Thanks for working on this!

A few notes below, ahead of a proper review.

> rust: pci, platform: pass InitTokens to probe()
> gpu: nova-core: build Gpu inside pin_init_scope

I want to avoid wrapping everything in pin_init_scope(). Now that we have
pin-init self-ref, we can just store dma::Handle in Gpu itself and then borrow
it from GspResources.

> rust: dma: require device configuration before DMA

I think this should be broken down in multiple patches, e.g.

1. Introduce Setup, Params, and Handle.
2. Convert drivers to configure DMA and retain/pass the handle.
3. Change each DMA API to require a handle, converting all callers.
4. Remove the obsolete setters.

Thanks,
Danilo