[igt-dev] [PATCH i-g-t v4 1/2] lib/i915: Add DRM_I915_QUERY_L3BANK_COUNT query

Jonathan Cavitt jonathan.cavitt at intel.com
Mon Sep 25 16:48:51 UTC 2023


Add local specifications for DRM_I915_QUERY_L3BANK_COUNT query.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
---
 lib/i915/i915_drm_local.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/i915/i915_drm_local.h b/lib/i915/i915_drm_local.h
index 0f47578c63..0127eef540 100644
--- a/lib/i915/i915_drm_local.h
+++ b/lib/i915/i915_drm_local.h
@@ -22,6 +22,19 @@ extern "C" {
 #define I915_ENGINE_CLASS_COMPUTE 4
 
 #define DRM_I915_QUERY_GEOMETRY_SUBSLICES      6
+#define DRM_I915_QUERY_L3BANK_COUNT		7
+
+/**
+ * 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.
+ */
+
 
 #define DRM_I915_PERF_PROP_OA_ENGINE_CLASS	9
 #define DRM_I915_PERF_PROP_OA_ENGINE_INSTANCE	10
-- 
2.25.1



More information about the igt-dev mailing list