From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44C40C38150 for ; Thu, 4 Jul 2024 01:11:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EEFAA10E1C1; Thu, 4 Jul 2024 01:11:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="QDVpUqoz"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id C511810E1C1 for ; Thu, 4 Jul 2024 01:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720055506; x=1751591506; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=dJKCg6kdQkCzyczSjFQoNJ5hagiWH+wC/RXMfuXGtAA=; b=QDVpUqozdDIDSQXDhryWcpl7MfntAnevsJjRXLG2Tyy9pwHYSS2SrTYY Zao3hcioJJO/ISIYo/VQiWf9sJzxG4lx41c87Zdogd9mLxTLfnLwiZPlp WU7G5CtKC7CytzZqcM7Q6Aol+kN0wgoWWmdE/cJgnw4vXGSxVd7TEYlQP GhC5e8ce+vJooTRd2kQPwIkNMamo9FmuDcgQuKWoNKUWyQWl33/oVyUgU 22vVW/3+It2VIWOY58g4hMoNa67pXnc2fkIsNobT1jV8LLW39cWu85gsc Ny4cIfyQLjKEWBOBavMd5RdPFCj355a/YRnmJ04+ivo5y4wg3WgDlT69S A==; X-CSE-ConnectionGUID: 3DUQmyTMTOCghnb5DlNWBg== X-CSE-MsgGUID: fNDsIGWWR/uY0NztnaPK/A== X-IronPort-AV: E=McAfee;i="6700,10204,11122"; a="17450010" X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="17450010" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2024 18:11:46 -0700 X-CSE-ConnectionGUID: cnYV+VWrTW2ZMieyrkcNSQ== X-CSE-MsgGUID: SAhzNboSQKSmCXdlUicuNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,183,1716274800"; d="scan'208";a="46320129" Received: from orsosgc001.jf.intel.com ([10.165.21.138]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2024 18:11:45 -0700 From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Subject: [PATCH i-g-t 02/15] lib/xe/oa: Add PVC support Date: Wed, 3 Jul 2024 18:11:29 -0700 Message-ID: <20240704011142.2618968-3-ashutosh.dixit@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240704011142.2618968-1-ashutosh.dixit@intel.com> References: <20240704011142.2618968-1-ashutosh.dixit@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add oa-pvc.xml and enable support for PVC. Signed-off-by: Ashutosh Dixit Reviewed-by: Umesh Nerlige Ramappa --- lib/meson.build | 5 +- lib/xe/oa-configs/oa-pvc.xml | 1018 ++++++++++++++++++++++++++++++++++ lib/xe/xe_oa.c | 4 + 3 files changed, 1024 insertions(+), 3 deletions(-) create mode 100644 lib/xe/oa-configs/oa-pvc.xml diff --git a/lib/meson.build b/lib/meson.build index 8c032cbb66..7577bee9d3 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -403,10 +403,9 @@ xe_oa_files = [ xe_oa_hardware = [ 'tglgt1', 'tglgt2', - 'dg1', - 'rkl', - 'adl', + 'dg1', 'rkl', 'adl', 'acmgt1', 'acmgt2', 'acmgt3', + 'pvc', 'mtlgt2', 'mtlgt3', 'lnl', ] diff --git a/lib/xe/oa-configs/oa-pvc.xml b/lib/xe/oa-configs/oa-pvc.xml new file mode 100644 index 0000000000..9d212e65ad --- /dev/null +++ b/lib/xe/oa-configs/oa-pvc.xml @@ -0,0 +1,1018 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/xe/xe_oa.c b/lib/xe/xe_oa.c index 98c53620d3..7974584392 100644 --- a/lib/xe/xe_oa.c +++ b/lib/xe/xe_oa.c @@ -36,6 +36,7 @@ #include "xe_oa_metrics_acmgt3.h" #include "xe_oa_metrics_mtlgt2.h" #include "xe_oa_metrics_mtlgt3.h" +#include "xe_oa_metrics_pvc.h" #include "xe_oa_metrics_lnl.h" static struct intel_xe_perf_logical_counter_group * @@ -296,6 +297,9 @@ intel_xe_perf_for_devinfo(uint32_t device_id, intel_xe_perf_load_metrics_acmgt3(perf); else return unsupported_xe_oa_platform(perf); + } else if (devinfo->is_pontevecchio) { + perf->devinfo.eu_threads_count = 8; + intel_xe_perf_load_metrics_pvc(perf); } else if (intel_graphics_ver(device_id) >= IP_VER(20, 0)) { intel_xe_perf_load_metrics_lnl(perf); } else { -- 2.41.0