From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id E5F6310EB83 for ; Thu, 23 Mar 2023 22:55:44 +0000 (UTC) From: Umesh Nerlige Ramappa To: igt-dev@lists.freedesktop.org Date: Thu, 23 Mar 2023 15:55:31 -0700 Message-Id: <20230323225534.3739835-28-umesh.nerlige.ramappa@intel.com> In-Reply-To: <20230323225534.3739835-1-umesh.nerlige.ramappa@intel.com> References: <20230323225534.3739835-1-umesh.nerlige.ramappa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v5 27/30] lib/i915/perf: Update MTL OA timestamp and EU thread config List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 as per Wa_14015846243:mtl. Signed-off-by: Umesh Nerlige Ramappa Reviewed-by: Ashutosh Dixit --- 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