Re: [PATCH v12.1 1/1] rust: gpu: Add GPU buddy allocator bindings

From: Danilo Krummrich

Date: Thu Mar 12 2026 - 13:46:10 EST


On Mon Mar 9, 2026 at 2:53 PM CET, Joel Fernandes wrote:
> Add safe Rust abstractions over the Linux kernel's GPU buddy
> allocator for physical memory management. The GPU buddy allocator
> implements a binary buddy system useful for GPU physical memory
> allocation. nova-core will use it for physical memory allocation.
>
> Christian Koenig mentioned he'd like to step down from reviewer role for
> GPU buddy so updated accordingly. Arun/Matthew agree on the modified entry.
>
> Cc: Nikola Djukic <ndjukic@xxxxxxxxxx>
> Signed-off-by: Joel Fernandes <joelagnelf@xxxxxxxxxx>
> ---
> MAINTAINERS | 6 +-
> rust/bindings/bindings_helper.h | 11 +
> rust/helpers/gpu.c | 23 ++
> rust/helpers/helpers.c | 1 +
> rust/kernel/gpu/buddy.rs | 611 ++++++++++++++++++++++++++++++++
> rust/kernel/gpu/mod.rs | 5 +
> rust/kernel/lib.rs | 2 +
> 7 files changed, 658 insertions(+), 1 deletion(-)
> create mode 100644 rust/helpers/gpu.c
> create mode 100644 rust/kernel/gpu/buddy.rs
> create mode 100644 rust/kernel/gpu/mod.rs
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 4c66f8261ff2..b2600dd05fc2 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -8513,7 +8513,9 @@ T: git https://gitlab.freedesktop.org/drm/rust/kernel.git
> F: drivers/gpu/drm/nova/
> F: drivers/gpu/drm/tyr/
> F: drivers/gpu/nova-core/
> +F: rust/helpers/gpu.c
> F: rust/kernel/drm/
> +F: rust/kernel/gpu/
>
> DRM DRIVERS FOR ALLWINNER A10
> M: Chen-Yu Tsai <wens@xxxxxxxxxx>
> @@ -8926,7 +8928,7 @@ F: include/drm/ttm/
> GPU BUDDY ALLOCATOR
> M: Matthew Auld <matthew.auld@xxxxxxxxx>
> M: Arun Pravin <arunpravin.paneerselvam@xxxxxxx>
> -R: Christian Koenig <christian.koenig@xxxxxxx>

This should really be a separate patch as it is unrelated to the addition of the
Rust GPU buddy code.

> +R: Joel Fernandes <joelagnelf@xxxxxxxxxx>
> L: dri-devel@xxxxxxxxxxxxxxxxxxxxx
> S: Maintained
> T: git https://gitlab.freedesktop.org/drm/misc/kernel.git
> @@ -8935,6 +8937,8 @@ F: drivers/gpu/buddy.c
> F: drivers/gpu/tests/gpu_buddy_test.c
> F: include/linux/gpu_buddy.h
> F: include/drm/drm_buddy.h
> +F: rust/helpers/gpu.c
> +F: rust/kernel/gpu/