From: Matthew Brost Date: Thu, 6 Mar 2025 01:26:38 +0000 (-0800) Subject: drm/gpuvm: Add DRM_GPUVA_OP_DRIVER X-Git-Tag: block-6.15-20250403~41^2~10^2~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e53c1e263e5c6e22120390c4a4a335a0e3f9ac13;p=linux-block.git drm/gpuvm: Add DRM_GPUVA_OP_DRIVER 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 Signed-off-by: Matthew Brost Reviewed-by: Thomas Hellström Link: https://patchwork.freedesktop.org/patch/msgid/20250306012657.3505757-14-matthew.brost@intel.com --- diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h index 00d4e43b76b6..2a9629377633 100644 --- a/include/drm/drm_gpuvm.h +++ b/include/drm/drm_gpuvm.h @@ -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, }; /**