Re: [PATCH] rust: drm: gpuvm: update DriverGpuVm for DeviceContext
From: Danilo Krummrich
Date: Thu Jun 11 2026 - 18:30:11 EST
On 6/11/26 2:01 AM, Deborah Brouwer wrote:
> Since the introduction of DeviceContext, there is no longer a single
> driver object type to equate with the GPUVM object type.
>
> Instead of threading DeviceContext through GPUVM, remove the strict
> identity between DriverGpuVm::Object and drm::Driver::Object and
> instead tighten the requirement that the DriverGpuVm::Object be an
> allocatable GEM object associated with the same DRM driver.
>
> Also, make GpuVm::new() generic over DeviceContext so it can accept a
> drm::Device<T::Driver, Ctx>.
>
> Signed-off-by: Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>
Fixes: 0023a1e8d01a ("rust/drm/gem: Use DeviceContext with GEM objects")