[Intel-xe] [RFC PATCH 1/1] drm/xe: Extend drm_xe_vm_bind_op

Mika Kuoppala mika.kuoppala at linux.intel.com
Mon Sep 4 12:36:05 UTC 2023


The bind api is extensible but for a single bind op, there
is not a mechanism to extend. Take one reserved field and
mark it as an extensions.

Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
---
 include/uapi/drm/xe_drm.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
index 86f16d50e9cc..74fb3db99fde 100644
--- a/include/uapi/drm/xe_drm.h
+++ b/include/uapi/drm/xe_drm.h
@@ -637,8 +637,11 @@ struct drm_xe_vm_bind_op {
 	/** @mem_region: Memory region to prefetch VMA to, instance not a mask */
 	__u32 region;
 
+	/** @extensions: Pointer to the first extension struct, if any */
+	__u64 extensions;
+
 	/** @reserved: Reserved */
-	__u64 reserved[2];
+	__u64 reserved[1];
 };
 
 struct drm_xe_vm_bind {
-- 
2.34.1



More information about the Intel-xe mailing list