[PATCH v2 0/3] Rust GPUVM prerequisites

Alice Ryhl posted 3 patches 1 month ago
drivers/gpu/drm/drm_gpuvm.c            | 91 ++++++++++++++++++++++++----------
drivers/gpu/drm/imagination/pvr_vm.c   |  2 +-
drivers/gpu/drm/msm/msm_gem.h          |  2 +-
drivers/gpu/drm/msm/msm_gem_vma.c      |  2 +-
drivers/gpu/drm/nouveau/nouveau_uvmm.c |  2 +-
drivers/gpu/drm/panthor/panthor_mmu.c  | 10 ----
drivers/gpu/drm/xe/xe_vm.c             |  4 +-
include/drm/drm_gpuvm.h                | 12 ++---
8 files changed, 76 insertions(+), 49 deletions(-)
[PATCH v2 0/3] Rust GPUVM prerequisites
Posted by Alice Ryhl 1 month ago
See v1 for the Rust code that uses these C changes.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes in v2:
- For this version, only the C prerequisites are included. Rust will be
  sent as follow-up.
- Link to v1: https://lore.kernel.org/r/20251128-gpuvm-rust-v1-0-ebf66bf234e0@google.com

---
Alice Ryhl (3):
      drm/gpuvm: take GEM lock inside drm_gpuvm_bo_obtain_prealloc()
      drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode
      drm/gpuvm: use const for drm_gpuva_op_* ptrs

 drivers/gpu/drm/drm_gpuvm.c            | 91 ++++++++++++++++++++++++----------
 drivers/gpu/drm/imagination/pvr_vm.c   |  2 +-
 drivers/gpu/drm/msm/msm_gem.h          |  2 +-
 drivers/gpu/drm/msm/msm_gem_vma.c      |  2 +-
 drivers/gpu/drm/nouveau/nouveau_uvmm.c |  2 +-
 drivers/gpu/drm/panthor/panthor_mmu.c  | 10 ----
 drivers/gpu/drm/xe/xe_vm.c             |  4 +-
 include/drm/drm_gpuvm.h                | 12 ++---
 8 files changed, 76 insertions(+), 49 deletions(-)
---
base-commit: 44e4c88951fa9c73bfbde8269e443ea5343dd2af
change-id: 20251128-gpuvm-rust-b719cac27ad6

Best regards,
-- 
Alice Ryhl <aliceryhl@google.com>
Re: [PATCH v2 0/3] Rust GPUVM prerequisites
Posted by Danilo Krummrich 1 month ago
On Thu Jan 8, 2026 at 5:07 PM CET, Alice Ryhl wrote:
> Alice Ryhl (3):
>       drm/gpuvm: take GEM lock inside drm_gpuvm_bo_obtain_prealloc()

Applied to drm-misc-fixes, thanks!

>       drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode

   [ Slightly reword commit message to refer to commit 9ce4aef9a5b1
     ("drm/gpuvm: take GEM lock inside drm_gpuvm_bo_obtain_prealloc()").
     - Danilo ]

>       drm/gpuvm: use const for drm_gpuva_op_* ptrs

Applied to drm-misc-next, thanks!
Re: [PATCH v2 0/3] Rust GPUVM prerequisites
Posted by Alice Ryhl 1 month ago
On Thu, Jan 8, 2026 at 5:07 PM Alice Ryhl <aliceryhl@google.com> wrote:
>
> See v1 for the Rust code that uses these C changes.
>
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
> ---
> Changes in v2:
> - For this version, only the C prerequisites are included. Rust will be
>   sent as follow-up.

I forgot to fill out the changelog. Here it is:

Changes in v2:
- For this version, only the C prerequisites are included. Rust will be
  sent as follow-up.
- Add comment to drm_gpuvm_bo_destroy_not_in_lists()
- Add Fixes: tag.
- Pick up Reviewed-by tags.

> - Link to v1: https://lore.kernel.org/r/20251128-gpuvm-rust-v1-0-ebf66bf234e0@google.com
>
> ---
> Alice Ryhl (3):
>       drm/gpuvm: take GEM lock inside drm_gpuvm_bo_obtain_prealloc()
>       drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode
>       drm/gpuvm: use const for drm_gpuva_op_* ptrs
>
>  drivers/gpu/drm/drm_gpuvm.c            | 91 ++++++++++++++++++++++++----------
>  drivers/gpu/drm/imagination/pvr_vm.c   |  2 +-
>  drivers/gpu/drm/msm/msm_gem.h          |  2 +-
>  drivers/gpu/drm/msm/msm_gem_vma.c      |  2 +-
>  drivers/gpu/drm/nouveau/nouveau_uvmm.c |  2 +-
>  drivers/gpu/drm/panthor/panthor_mmu.c  | 10 ----
>  drivers/gpu/drm/xe/xe_vm.c             |  4 +-
>  include/drm/drm_gpuvm.h                | 12 ++---
>  8 files changed, 76 insertions(+), 49 deletions(-)
> ---
> base-commit: 44e4c88951fa9c73bfbde8269e443ea5343dd2af
> change-id: 20251128-gpuvm-rust-b719cac27ad6
>
> Best regards,
> --
> Alice Ryhl <aliceryhl@google.com>
>