summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2023-11-08 03:12:33 +0300
committerDanilo Krummrich <dakr@redhat.com>2023-11-13 20:17:50 +0300
commit9297cfc9405bc6b60540b8b8aaf930b7e449e15a (patch)
tree48c95de9d5c264dd6f41d7342718327cc6393b8a /include/drm
parentd1adea27d0c8a08031b075f1bf4c5ce6f135ad7c (diff)
downloadlinux-9297cfc9405bc6b60540b8b8aaf930b7e449e15a.tar.xz
drm/gpuvm: export drm_gpuvm_range_valid()
Drivers may use this function to validate userspace requests in advance, hence export it. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231108001259.15123-4-dakr@redhat.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_gpuvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h
index 687fd5893624..13eac6f70061 100644
--- a/include/drm/drm_gpuvm.h
+++ b/include/drm/drm_gpuvm.h
@@ -253,6 +253,7 @@ void drm_gpuvm_init(struct drm_gpuvm *gpuvm, const char *name,
const struct drm_gpuvm_ops *ops);
void drm_gpuvm_destroy(struct drm_gpuvm *gpuvm);
+bool drm_gpuvm_range_valid(struct drm_gpuvm *gpuvm, u64 addr, u64 range);
bool drm_gpuvm_interval_empty(struct drm_gpuvm *gpuvm, u64 addr, u64 range);
static inline struct drm_gpuva *