From: Nirmoy Das <nirmoy.das@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Nirmoy Das <nirmoy.das@intel.com>,
Francois Dugast <francois.dugast@intel.com>,
Joonas Lahtinen <joonas.lahtinen@linux.intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>,
Mateusz Jablonski <mateusz.jablonski@intel.com>,
Matt Roper <matthew.d.roper@intel.com>
Subject: [PATCH i-g-t 1/2] drm-uapi/xe: Add wmtp engine capability
Date: Fri, 9 Aug 2024 12:39:21 +0200 [thread overview]
Message-ID: <20240809103922.12964-1-nirmoy.das@intel.com> (raw)
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
next reply other threads:[~2024-08-09 10:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 10:39 Nirmoy Das [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240809103922.12964-1-nirmoy.das@intel.com \
--to=nirmoy.das@intel.com \
--cc=francois.dugast@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=joonas.lahtinen@linux.intel.com \
--cc=lucas.demarchi@intel.com \
--cc=mateusz.jablonski@intel.com \
--cc=matthew.d.roper@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox