drm/gpuvm: rust: add RUST_DRM_GPUVM option to Kconfig
Subsystems (5)
Alice Ryhl
maintainerPATCH 1/1 drm/gpuvm: rust: add RUST_DRM_GPUVM option to Kconfig
Since Rust uses GPUVM via the kernel crate, which is built-in, the GPUVM module must also be built-in to use GPUVM from Rust. Adjust the Kconfig settings accordingly.
--- drivers/gpu/drm/Kconfig | 7 +++++++ rust/helpers/drm_gpuvm.c | 4 ++-- rust/kernel/drm/gpuvm/mod.rs | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-)
drivers/gpu/drm/Kconfig +7 -0
@@ -218,6 +218,13 @@ config DRM_GPUVM GPU-VM representation providing helpers to manage a GPUs virtual address space +config RUST_DRM_GPUVM + bool + depends on DRM + select DRM_GPUVM + help + Choose this if you need GPUVM functions in Rust + config DRM_GPUSVM tristate depends on DRM
rust/helpers/drm_gpuvm.c +2 -2
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 or MIT -#ifdef CONFIG_DRM_GPUVM +#ifdef CONFIG_RUST_DRM_GPUVM #include <drm/drm_gpuvm.h>
@@ -23,4 +23,4 @@ bool rust_helper_drm_gpuvm_is_extobj(struct drm_gpuvm *gpuvm, return drm_gpuvm_is_extobj(gpuvm, obj); } -#endif // CONFIG_DRM_GPUVM +#endif // CONFIG_RUST_DRM_GPUVM
rust/kernel/drm/gpuvm/mod.rs +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0 OR MIT -#![cfg( CONFIG_DRM_GPUVM = "y" )] +#![cfg( CONFIG_RUST_DRM_GPUVM )] //! DRM GPUVM in immediate mode //!
---
base-commit: 5ba12cca3230f6bee5fe1090a30db6b70733e2c7
change-id: 20260427-gpuvm-config-7abf27967f8d
prerequisite-change-id: 20251128-gpuvm-rust-b719cac27ad6:v6
prerequisite-patch-id: f1f55d8f1e7d6e5378673812830d40a6ab00ac15
prerequisite-patch-id: 69eaacfa09229181832b2c2a19ce1a2f96e5e532
prerequisite-patch-id: 27fb7278e13bb18b493e207720dcad4e41862281
prerequisite-patch-id: 76a7592dd4f4da18243091a615f9a8f8579b5d56
prerequisite-patch-id: 0044f8f6356e6fe0759db08ec663822df204cdad
Best regards,
Signature · 1 line
Alice Ryhl <[email protected]>
Quoted 1 line · Alice Ryhl
[PATCH] drm/gpuvm: rust: add
RUST_DRM_GPUVMoption toKconfig
Applied, thanks!
Branch: drm-rust-next
Tree: https://gitlab.freedesktop.org/drm/rust/kernel.git
[1/1] drm/gpuvm: rust: add RUST_DRM_GPUVM option to Kconfig
commit: 37f748ed0c19
The patch will appear in the next linux-next integration (typically within 24 hours on weekdays).
The patch is queued up for the upcoming merge window for the next major kernel release.