From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id A50FD10E1D4 for ; Wed, 22 Mar 2023 00:05:34 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org, Ashutosh Dixit , kamil.konieczny@linux.intel.com Date: Tue, 21 Mar 2023 17:05:19 -0700 Message-Id: <20230322000523.3310187-28-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230322000523.3310187-1-umesh.nerlige.ramappa@intel.com> References: <20230322000523.3310187-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v4 27/31] lib/i915/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