From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8361810EA14 for ; Wed, 15 Feb 2023 00:47:03 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Tue, 14 Feb 2023 16:46:44 -0800 Message-Id: <20230215004648.2100655-28-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230215004648.2100655-1-umesh.nerlige.ramappa@intel.com> References: <20230215004648.2100655-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 27/31] lib/perf: Update MTL OA timestamp and EU thread config List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lionel G Landwerlin Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: MTL has configuration similar to DG2 for OA timestamp and threads per EU. Update the same for MTL. Signed-off-by: Umesh Nerlige Ramappa --- lib/i915/perf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/i915/perf.c b/lib/i915/perf.c index d8624dc0..24ef3819 100644 --- a/lib/i915/perf.c +++ b/lib/i915/perf.c @@ -432,6 +432,14 @@ intel_perf_for_devinfo(uint32_t device_id, else return unsupported_i915_perf_platform(perf); } else if (devinfo->is_meteorlake) { + perf->devinfo.eu_threads_count = 8; + /* OA reports have the timestamp value shifted to the + * right by 1 bits, it also means we cannot use the + * top bit for comparison. + */ + perf->devinfo.oa_timestamp_shift = -1; + perf->devinfo.oa_timestamp_mask = 0x7fffffff; + if (is_mtl_gt2(&perf->devinfo)) intel_perf_load_metrics_mtlgt2(perf); else if (is_mtl_gt3(&perf->devinfo)) -- 2.36.1