]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpu: nova-core: take bound device in Gpu::new
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 7 May 2025 13:52:31 +0000 (22:52 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 13 May 2025 12:15:42 +0000 (14:15 +0200)
commita2a637ffdf8692e9a376383ca82a990036424fe0
treef332c31752aa241436bfd97c31b684486e26b9c3
parent44dda4353b9bd5dcc9cc30d97c0c3cfb00d8f987
gpu: nova-core: take bound device in Gpu::new

We will need to perform things like allocating DMA memory during device
creation, so make sure to take the device context that will allow us to
perform these actions. This also allows us to use Devres::access to
obtain the BAR without holding a RCU lock.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250507-nova-frts-v3-4-fcb02749754d@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/gpu.rs