|
|
Log in / Subscribe / Register

Rust bindings for gem shmem

From:  Lyude Paul <lyude-AT-redhat.com>
To:  nouveau-AT-lists.freedesktop.org, Gary Guo <gary-AT-garyguo.net>, Daniel Almeida <daniel.almeida-AT-collabora.com>, rust-for-linux-AT-vger.kernel.org, Danilo Krummrich <dakr-AT-kernel.org>, dri-devel-AT-lists.freedesktop.org
Subject:  [PATCH v13 0/5] Rust bindings for gem shmem
Date:  Tue, 28 Apr 2026 15:03:40 -0400
Message-ID:  <20260428190605.3355690-1-lyude@redhat.com>
Cc:  Matthew Maurer <mmaurer-AT-google.com>, FUJITA Tomonori <fujita.tomonori-AT-gmail.com>, Lorenzo Stoakes <lorenzo.stoakes-AT-oracle.com>, christian.koenig-AT-amd.com, Asahi Lina <lina-AT-asahilina.net>, Miguel Ojeda <ojeda-AT-kernel.org>, Andreas Hindborg <a.hindborg-AT-kernel.org>, Simona Vetter <simona-AT-ffwll.ch>, Alice Ryhl <aliceryhl-AT-google.com>, Boqun Feng <boqun-AT-kernel.org>, Sumit Semwal <sumit.semwal-AT-linaro.org>, Krishna Ketan Rai <prafulrai522-AT-gmail.com>, linux-media-AT-vger.kernel.org, Shankari Anand <shankari.ak0208-AT-gmail.com>, David Airlie <airlied-AT-gmail.com>, Benno Lossin <lossin-AT-kernel.org>, Viresh Kumar <viresh.kumar-AT-linaro.org>, linaro-mm-sig-AT-lists.linaro.org, Asahi Lina <lina+kernel-AT-asahilina.net>, Greg Kroah-Hartman <gregkh-AT-linuxfoundation.org>, kernel-AT-vger.kernel.org
Archive-link:  Article

Most of this patch series has already been pushed upstream, this is just
the second half of the patch series that has not been pushed yet + some
additional changes which were required to implement changes requested by
the mailing list. This patch series is originally from Asahi, previously
posted by Daniel Almeida.

The previous version of the patch series can be found here:

	https://patchwork.freedesktop.org/series/164580/

Branch with patches applied available here
sure this builds:

	https://gitlab.freedesktop.org/lyudess/linux/-/commits/ru...

This patch series applies on top of drm-rust-next

Lyude Paul (5):
  rust: drm: gem: s/device::Device/Device/ for shmem.rs
  drm/gem/shmem: Introduce __drm_gem_shmem_free_sgt_locked()
  rust: drm: gem/shmem: Add DmaResvGuard helper
  rust: drm: gem: Introduce shmem::SGTable
  rust: drm: gem: Add vmap functions to shmem bindings

 drivers/gpu/drm/drm_gem_shmem_helper.c |  32 +-
 include/drm/drm_gem_shmem_helper.h     |   1 +
 rust/kernel/drm/gem/shmem.rs           | 602 ++++++++++++++++++++++++-
 3 files changed, 614 insertions(+), 21 deletions(-)


base-commit: d9a6809478f9815b6455a327aa001737ac7b2c09
-- 
2.54.0




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds