[PATCH i-g-t 1/2] drm-uapi/xe: Add wmtp engine capability
Nirmoy Das
nirmoy.das at intel.com
Fri Aug 9 10:39:21 UTC 2024
Align with commit ("drm/xe/uapi: Expose wmtp as engine capability")
Cc: Francois Dugast <francois.dugast at intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Mateusz Jablonski <mateusz.jablonski at intel.com>
Cc: Matt Roper <matthew.d.roper at intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
include/drm-uapi/xe_drm.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
index 29425d7fd..756c7e110 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -247,13 +247,21 @@ struct drm_xe_engine_class_instance {
/**
* struct drm_xe_engine - describe hardware engine
+ *
+ * The @capabilities can be:
+ * - DRM_XE_ENGINE_CAPABILITY_WMTP - represents a engine's mid-thread
+ * preemption capability.
*/
struct drm_xe_engine {
/** @instance: The @drm_xe_engine_class_instance */
struct drm_xe_engine_class_instance instance;
-
+#define DRM_XE_ENGINE_CAPABILITY_WMTP 1
+ /** @capabilities: Capabilities of this engine. */
+ __u32 capabilities;
+ /** @pad: MBZ */
+ __u32 pad;
/** @reserved: Reserved */
- __u64 reserved[3];
+ __u64 reserved[2];
};
/**
--
2.42.0
More information about the igt-dev
mailing list