Re: [PATCH v5 05/19] rust: drm: change default DeviceContext to Normal
"Alexandre Courbot" <[email protected]>
| Newsgroups | dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Sun Jun 28, 2026 at 11:53 PM JST, Danilo Krummrich wrote: > Change the default DeviceContext from Registered to Normal for > drm::Device, gem::Object, gem::shmem::Object and > gem::shmem::ObjectConfig. > > Normal is the general-purpose, reference-counted context suitable for > most uses; Registered represents a device that was registered with > userspace and will become a non-owning context obtained through a > RegistrationGuard. > > Update the create_handle/lookup_handle bounds from Object<Registered> to > Object<Normal> to match the new default context of GEM objects, and > update the driver device type aliases (NovaDevice, TyrDrmDevice) to > default to Normal. > > Reviewed-by: Lyude Paul <[email protected]> > Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]>