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 14153C3DA42 for ; Fri, 5 Jul 2024 21:43:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5802710E161; Fri, 5 Jul 2024 21:43:30 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Op1cVrr0"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 323A510E0CC for ; Fri, 5 Jul 2024 21:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720215809; x=1751751809; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=dJKCg6kdQkCzyczSjFQoNJ5hagiWH+wC/RXMfuXGtAA=; b=Op1cVrr0UFSug/dJgjD3e69890qJ1+Cw5jbp/1Rq4zy5jVLR7M7eCmnA CNjXWh3NvnKVYIpiuxMNn8QcWk7430cex9Y0rprZIeexEhPKt0jKbbd6l bpqHjmOzvsc5vE1mQ3uT12I9leTD+ExY8jn9XkvI+/N+jmCZyRdgpfv1S RhfrgNG2oA158KCUhHVt3rcuZo9r20FZNspGsfohTnrMKmLw29JpAu0BG k1G6GucAtE7gwff4pahIrweEofFN9IgydUE8uMshXCcYtN/qslhDPHRd0 mkqZkl9LwKIME8T8/lKE6JJAkouwqTn7DJQQJhWWXPNOOj2RmCaRNBylz A==; X-CSE-ConnectionGUID: VW+1/KfXQEGeV2jN4J8HSg== X-CSE-MsgGUID: syUpm2jcQGuMhDcGk+QqGw== X-IronPort-AV: E=McAfee;i="6700,10204,11123"; a="28907013" X-IronPort-AV: E=Sophos;i="6.09,186,1716274800"; d="scan'208";a="28907013" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 14:43:28 -0700 X-CSE-ConnectionGUID: SItl5FnwReOmzpRG2BR9Lg== X-CSE-MsgGUID: 1GvuZJjSQD26TRXXcn5ElA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,186,1716274800"; d="scan'208";a="46902534" Received: from orsosgc001.jf.intel.com ([10.165.21.138]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 14:43:28 -0700 From: Ashutosh Dixit To: igt-dev@lists.freedesktop.org Subject: [PATCH i-g-t 02/15] lib/xe/oa: Add PVC support Date: Fri, 5 Jul 2024 14:43:03 -0700 Message-ID: <20240705214316.2695090-3-ashutosh.dixit@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240705214316.2695090-1-ashutosh.dixit@intel.com> References: <20240705214316.2695090-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