From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 383D210E2AE for ; Mon, 25 Sep 2023 16:59:34 +0000 (UTC) From: Jonathan Cavitt To: igt-dev@lists.freedesktop.org Date: Mon, 25 Sep 2023 09:48:51 -0700 Message-Id: <20230925164852.4123643-2-jonathan.cavitt@intel.com> In-Reply-To: <20230925164852.4123643-1-jonathan.cavitt@intel.com> References: <20230925164852.4123643-1-jonathan.cavitt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v4 1/2] lib/i915: Add DRM_I915_QUERY_L3BANK_COUNT query List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jonathan.cavitt@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add local specifications for DRM_I915_QUERY_L3BANK_COUNT query. Signed-off-by: Jonathan Cavitt --- 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