Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] drm-uapi/xe: Add wmtp engine capability
@ 2024-08-09 10:39 Nirmoy Das
  2024-08-09 10:39 ` [PATCH i-g-t 2/2] tests/intel/xe_query: Query engine capabilities Nirmoy Das
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nirmoy Das @ 2024-08-09 10:39 UTC (permalink / raw)
  To: igt-dev
  Cc: Nirmoy Das, Francois Dugast, Joonas Lahtinen, Lucas De Marchi,
	Mateusz Jablonski, Matt Roper

Align with commit ("drm/xe/uapi: Expose wmtp as engine capability")

Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Mateusz Jablonski <mateusz.jablonski@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-10 17:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-09 10:39 [PATCH i-g-t 1/2] drm-uapi/xe: Add wmtp engine capability Nirmoy Das
2024-08-09 10:39 ` [PATCH i-g-t 2/2] tests/intel/xe_query: Query engine capabilities Nirmoy Das
2024-08-09 12:07 ` ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] drm-uapi/xe: Add wmtp engine capability Patchwork
2024-08-09 12:08 ` ✓ CI.xeBAT: " Patchwork
2024-08-09 14:17 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-10 17:53 ` ✗ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox