public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v7 0/2] rust: Add CList and GPU buddy allocator bindings
@ 2026-02-06  0:41 Joel Fernandes
  2026-02-06  0:41 ` [PATCH -next v7 1/2] rust: clist: Add support to interface with C linked lists Joel Fernandes
  2026-02-06  0:41 ` [PATCH -next v7 2/2] rust: gpu: Add GPU buddy allocator bindings Joel Fernandes
  0 siblings, 2 replies; 23+ messages in thread
From: Joel Fernandes @ 2026-02-06  0:41 UTC (permalink / raw)
  To: linux-kernel
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Jonathan Corbet, Alex Deucher,
	Christian König, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, Huang Rui, Matthew Auld, Matthew Brost,
	Lucas De Marchi, Thomas Hellström, Helge Deller,
	Danilo Krummrich, Alice Ryhl, Miguel Ojeda, Alex Gaynor,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Trevor Gross, John Hubbard, Alistair Popple,
	Timur Tabi, Edwin Peer, Alexandre Courbot, Andrea Righi,
	Andy Ritger, Zhi Wang, Balbir Singh, Philipp Stanner,
	Elle Rhumsaa, Daniel Almeida, joel, nouveau, dri-devel,
	rust-for-linux, linux-doc, amd-gfx, intel-gfx, intel-xe,
	linux-fbdev, Joel Fernandes

This series provides Rust bindings infrastructure needed for nova-core
memory management:

1. CList module for interfacing with C circular linked lists, required
   for iterating over GPU buddy allocator blocks.

2. GPU buddy allocator bindings for physical memory management in
   nova-core.

These patches are based on the RFC v6 nova-core memory management series:
https://lore.kernel.org/all/20260120204303.3229303-1-joelagnelf@nvidia.com/

Main changes from v6 are based on suggestions by Gary and Dave.

This patch requires the DRM buddy code movement patch as a prerequisite:
https://lore.kernel.org/all/20260206003451.1914130-1-joelagnelf@nvidia.com/

Rebased on linux-next commit 9845cf73f7db ("Add linux-next specific files
for 20260205").

Joel Fernandes (2):
  rust: clist: Add support to interface with C linked lists
  rust: gpu: Add GPU buddy allocator bindings

 MAINTAINERS                     |   7 +
 drivers/gpu/Kconfig             |   7 +
 rust/bindings/bindings_helper.h |  11 +
 rust/helpers/gpu.c              |  23 ++
 rust/helpers/helpers.c          |   2 +
 rust/helpers/list.c             |  21 ++
 rust/kernel/clist.rs            | 315 +++++++++++++++++++
 rust/kernel/gpu/buddy.rs        | 530 ++++++++++++++++++++++++++++++++
 rust/kernel/gpu/mod.rs          |   5 +
 rust/kernel/lib.rs              |   4 +
 10 files changed, 925 insertions(+)
 create mode 100644 rust/helpers/gpu.c
 create mode 100644 rust/helpers/list.c
 create mode 100644 rust/kernel/clist.rs
 create mode 100644 rust/kernel/gpu/buddy.rs
 create mode 100644 rust/kernel/gpu/mod.rs

-- 
2.34.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2026-02-09 19:42 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06  0:41 [PATCH -next v7 0/2] rust: Add CList and GPU buddy allocator bindings Joel Fernandes
2026-02-06  0:41 ` [PATCH -next v7 1/2] rust: clist: Add support to interface with C linked lists Joel Fernandes
2026-02-06 15:25   ` Gary Guo
2026-02-06 15:53     ` Danilo Krummrich
2026-02-06 16:05       ` Joel Fernandes
2026-02-06 16:13         ` Gary Guo
2026-02-06 17:13           ` Danilo Krummrich
2026-02-06 17:20             ` Gary Guo
2026-02-06 17:27               ` Danilo Krummrich
2026-02-06 21:30                 ` Daniel Almeida
2026-02-09 19:42                   ` Joel Fernandes
2026-02-06 20:44             ` Joel Fernandes
2026-02-09 19:41     ` Joel Fernandes
2026-02-06 17:49   ` Daniel Almeida
2026-02-06 20:46     ` Joel Fernandes
2026-02-06 20:51       ` Gary Guo
2026-02-06 21:12         ` Joel Fernandes
2026-02-06 20:51     ` Joel Fernandes
2026-02-06 21:21       ` Daniel Almeida
2026-02-06 21:26         ` Joel Fernandes
2026-02-06 22:33           ` Daniel Almeida
2026-02-09 17:02             ` Joel Fernandes
2026-02-06  0:41 ` [PATCH -next v7 2/2] rust: gpu: Add GPU buddy allocator bindings Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox