drm/gpuvm: Add DRM_GPUVA_OP_DRIVER
authorMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 01:26:38 +0000 (17:26 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 6 Mar 2025 19:35:42 +0000 (11:35 -0800)
Add DRM_GPUVA_OP_DRIVER which allows driver to define their own gpuvm
ops. Useful for driver created ops which can be passed into the bind
software pipeline.

v3:
 - s/DRM_GPUVA_OP_USER/DRM_GPUVA_OP_DRIVER (Thomas)
 - Better commit message (Thomas)

Cc: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-14-matthew.brost@intel.com
include/drm/drm_gpuvm.h

index 00d4e43b76b6c12e10e422d250ab0ac1c9009bc5..2a9629377633d354983eedc5bedc91dacb1e9e80 100644 (file)
@@ -812,6 +812,11 @@ enum drm_gpuva_op_type {
         * @DRM_GPUVA_OP_PREFETCH: the prefetch op type
         */
        DRM_GPUVA_OP_PREFETCH,
+
+       /**
+        * @DRM_GPUVA_OP_DRIVER: the driver defined op type
+        */
+       DRM_GPUVA_OP_DRIVER,
 };
 
 /**