]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: Extend drm_xe_vm_bind_op
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 22 Nov 2023 14:38:20 +0000 (14:38 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:12 +0000 (11:45 -0500)
The bind api is extensible but for a single bind op, there
is not a mechanism to extend. Add extensions field to
struct drm_xe_vm_bind_op.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
include/uapi/drm/xe_drm.h

index 1a844fa7af8a8ba16fd11bfd360f188906aab11b..4c906ff2429e46b4927ec6c7fca347c0d5d9d7a2 100644 (file)
@@ -631,6 +631,9 @@ struct drm_xe_vm_destroy {
 };
 
 struct drm_xe_vm_bind_op {
+       /** @extensions: Pointer to the first extension struct, if any */
+       __u64 extensions;
+
        /**
         * @obj: GEM object to operate on, MBZ for MAP_USERPTR, MBZ for UNMAP
         */