summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2023-11-08 03:12:31 +0300
committerDanilo Krummrich <dakr@redhat.com>2023-11-13 20:17:26 +0300
commit546ca4d35dccaca6613766ed36ccfb2b5bd63bfe (patch)
treea784c862c333ff2943d578ac847b374b3083674b /include/drm
parent7add80126bcedddd157ddc09988b032c93ed56c7 (diff)
downloadlinux-546ca4d35dccaca6613766ed36ccfb2b5bd63bfe.tar.xz
drm/gpuvm: convert WARN() to drm_WARN() variants
Use drm_WARN() and drm_WARN_ON() variants to indicate drivers the context the failing VM resides in. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231108001259.15123-2-dakr@redhat.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_gpuvm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h
index bdfafc4a7705..687fd5893624 100644
--- a/include/drm/drm_gpuvm.h
+++ b/include/drm/drm_gpuvm.h
@@ -29,6 +29,7 @@
#include <linux/rbtree.h>
#include <linux/types.h>
+#include <drm/drm_device.h>
#include <drm/drm_gem.h>
struct drm_gpuvm;
@@ -202,6 +203,11 @@ struct drm_gpuvm {
const char *name;
/**
+ * @drm: the &drm_device this VM lives in
+ */
+ struct drm_device *drm;
+
+ /**
* @mm_start: start of the VA space
*/
u64 mm_start;
@@ -241,6 +247,7 @@ struct drm_gpuvm {
};
void drm_gpuvm_init(struct drm_gpuvm *gpuvm, const char *name,
+ struct drm_device *drm,
u64 start_offset, u64 range,
u64 reserve_offset, u64 reserve_range,
const struct drm_gpuvm_ops *ops);