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

Jonathan Cavitt jonathan.cavitt at intel.com
Thu Nov 30 16:02:52 UTC 2023


Add local specifications for DRM_I915_QUERY_L3BANK_COUNT query.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
Acked-by: Kamil Konieczny <kamil.konieczny at linux.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 af0176500d..9257c519bb 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