Re: [PATCH] rust: drm: mm: Add DRM MM Range Allocator abstraction

2025-06-25 Thread Daniel Almeida
Hmm, this has an issue [..] > > +impl, T> Drop for MmInner { > +fn drop(&mut self) { > +// SAFETY: If the MmInner is dropped then all nodes are gone (since > they hold references), > +// so it is safe to tear down the allocator. > +unsafe { > +bindings::d

Re: [PATCH] rust: drm: mm: Add DRM MM Range Allocator abstraction

2025-06-25 Thread Daniel Almeida
Hi Miguel > On 25 Jun 2025, at 09:47, Miguel Ojeda > wrote: > > On Tue, Jun 24, 2025 at 12:13 AM Daniel Almeida > wrote: >> >> Signed-off-by: Asahi Lina > > Patches from others also need to be signed off by you as carrier. Thanks for catching that. This was indeed forgotten on this patch.

Re: [PATCH] rust: drm: mm: Add DRM MM Range Allocator abstraction

2025-06-25 Thread Miguel Ojeda
On Tue, Jun 24, 2025 at 12:13 AM Daniel Almeida wrote: > > Signed-off-by: Asahi Lina Patches from others also need to be signed off by you as carrier. > Changes from v0: I assume you mean the RFC patch from more than 2 years ago, i.e. https://lore.kernel.org/rust-for-linux/20230307-rust-

[PATCH] rust: drm: mm: Add DRM MM Range Allocator abstraction

2025-06-23 Thread Daniel Almeida
From: Asahi Lina drm_mm provides a simple range allocator, useful for managing virtual address ranges. Add a Rust abstraction to expose this module to Rust drivers. This code will be used by upcoming GPU drivers soon in order to manage a range of memory reserved to the kernel driver. This includ