From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com
Subject: [igt-dev] [PATCH i-g-t v2 1/2] drm-uapi: Add DRM_I915_QUERY_L3BANK_COUNT query
Date: Fri, 22 Sep 2023 07:11:17 -0700 [thread overview]
Message-ID: <20230922141118.3821111-2-jonathan.cavitt@intel.com> (raw)
In-Reply-To: <20230922141118.3821111-1-jonathan.cavitt@intel.com>
Add drm-uapi specifications for DRM_I915_QUERY_L3BANK_COUNT query.
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
include/drm-uapi/i915_drm.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/drm-uapi/i915_drm.h b/include/drm-uapi/i915_drm.h
index a0876ee413..edf3b1e445 100644
--- a/include/drm-uapi/i915_drm.h
+++ b/include/drm-uapi/i915_drm.h
@@ -2813,6 +2813,7 @@ struct drm_i915_query_item {
* - %DRM_I915_QUERY_MEMORY_REGIONS (see struct drm_i915_query_memory_regions)
* - %DRM_I915_QUERY_HWCONFIG_BLOB (see `GuC HWCONFIG blob uAPI`)
* - %DRM_I915_QUERY_GEOMETRY_SUBSLICES (see struct drm_i915_query_topology_info)
+ * - %DRM_I915_QUERY_L3BANK_COUNT (see `L3 Bank Count Query uAPI`)
*/
__u64 query_id;
#define DRM_I915_QUERY_TOPOLOGY_INFO 1
@@ -2821,6 +2822,7 @@ struct drm_i915_query_item {
#define DRM_I915_QUERY_MEMORY_REGIONS 4
#define DRM_I915_QUERY_HWCONFIG_BLOB 5
#define DRM_I915_QUERY_GEOMETRY_SUBSLICES 6
+#define DRM_I915_QUERY_L3BANK_COUNT 7
/* Must be kept compact -- no holes and well documented */
/**
@@ -3502,6 +3504,17 @@ struct drm_i915_gem_create_ext {
__u64 extensions;
};
+/**
+ * DOC: L3 Bank Count Query uAPI
+ *
+ * The L3 bank count query called through the query id
+ * DRM_I915_QUERY_L3BANK_COUNT and returns the count of
+ * the available L3 Banks on a given engine.
+ *
+ * The count itself is an integer, and since no additional
+ * data is returned, the count is returned as such.
+ */
+
/**
* struct drm_i915_gem_create_ext_memory_regions - The
* I915_GEM_CREATE_EXT_MEMORY_REGIONS extension.
--
2.25.1
next prev parent reply other threads:[~2023-09-22 14:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-22 14:11 [igt-dev] [PATCH i-g-t v2 0/2] intel/i915_query: Add query-l3-bank-count subtest Jonathan Cavitt
2023-09-22 14:11 ` Jonathan Cavitt [this message]
2023-09-25 8:34 ` [igt-dev] [PATCH i-g-t v2 1/2] drm-uapi: Add DRM_I915_QUERY_L3BANK_COUNT query Kamil Konieczny
2023-09-22 14:11 ` [igt-dev] [PATCH i-g-t v2 2/2] tests/i915_query.c : Add query-l3-bank-count subtest Jonathan Cavitt
2023-09-22 16:49 ` [igt-dev] ✓ CI.xeBAT: success for intel/i915_query: " Patchwork
2023-09-22 16:54 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-09-23 18:26 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20230922141118.3821111-2-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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