]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/gpuvm: Introduce drm_gpuvm_madvise_ops_create
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Tue, 19 Aug 2025 16:20:57 +0000 (21:50 +0530)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 20 Aug 2025 04:19:35 +0000 (21:19 -0700)
commitbaf1638c095686ad970aecee4ca9446c1de18dad
treef517d8aaab126315c78147b28ce7e51373167173
parent3309323241fbb3c1da885e6b84bdf95e9708e4bb
drm/gpuvm: Introduce drm_gpuvm_madvise_ops_create

This ops is used to iterate over GPUVA's in the user-provided range
and split the existing sparse VMA's if the start or end of the input
range lies within it. The operations can create up to 2 REMAPS and 2 MAPs.

The primary use case is for drivers to assign attributes to GPU VAs in
the specified range without performing unmaps or merging mappings,
supporting fine-grained control over sparse va's.

Cc: Danilo Krummrich <dakr@kernel.org>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: <dri-devel@lists.freedesktop.org>
Signed-off-by: Himal Prasad Ghimiray<himal.prasad.ghimiray@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250819162058.2777306-4-himal.prasad.ghimiray@intel.com
drivers/gpu/drm/drm_gpuvm.c
include/drm/drm_gpuvm.h