public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jose.souza@intel.com, sushma.venkatesh.reddy@intel.com
Subject: [PATCH i-g-t 2/2] tests/intel/xe_oa: more CRI changes
Date: Mon, 23 Feb 2026 16:41:51 -0800	[thread overview]
Message-ID: <20260224004151.1836090-3-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20260224004151.1836090-1-ashutosh.dixit@intel.com>

Changes to consume the CRI metric set xml and for the mertoa unit.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 lib/xe/xe_oa.c      | 3 +++
 tests/intel/xe_oa.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/lib/xe/xe_oa.c b/lib/xe/xe_oa.c
index 229deafa71..b2f447c944 100644
--- a/lib/xe/xe_oa.c
+++ b/lib/xe/xe_oa.c
@@ -40,6 +40,7 @@
 #include "xe_oa_metrics_lnl.h"
 #include "xe_oa_metrics_bmg.h"
 #include "xe_oa_metrics_ptl.h"
+#include "xe_oa_metrics_cri.h"
 
 static struct intel_xe_perf_logical_counter_group *
 intel_xe_perf_logical_counter_group_new(struct intel_xe_perf *perf,
@@ -303,6 +304,8 @@ intel_xe_perf_for_devinfo(uint32_t device_id,
 		intel_xe_perf_load_metrics_bmg(perf);
 	} else if (devinfo->is_pantherlake) {
 		intel_xe_perf_load_metrics_ptl(perf);
+	} else if (devinfo->is_crescentisland) {
+		intel_xe_perf_load_metrics_cri(perf);
 	} else if (intel_graphics_ver(device_id) >= IP_VER(20, 0)) {
 		intel_xe_perf_load_metrics_lnl(perf);
 	} else {
diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 927f3f4f20..2c739f6363 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -359,6 +359,7 @@ static const char *oa_unit_name[] = {
 	[DRM_XE_OA_UNIT_TYPE_OAG] = "oag",
 	[DRM_XE_OA_UNIT_TYPE_OAM] = "oam",
 	[DRM_XE_OA_UNIT_TYPE_OAM_SAG] = "sag",
+	[DRM_XE_OA_UNIT_TYPE_MERT] = "mert",
 };
 
 /* Wrapper to deconstify @inst for xe_exec_queue_create */
@@ -381,6 +382,8 @@ static struct intel_xe_perf_metric_set *oa_unit_metric_set(const struct drm_xe_o
 		 (oau->oa_unit_type == DRM_XE_OA_UNIT_TYPE_OAM ||
 		  oau->oa_unit_type == DRM_XE_OA_UNIT_TYPE_OAM_SAG))
 		test_set_name = "MediaSet1";
+	else if (oau->oa_unit_type == DRM_XE_OA_UNIT_TYPE_MERT)
+		test_set_name = "MertExtSet";
 	else
 		igt_assert_f(!"reached", "Unknown oa_unit_type %d\n", oau->oa_unit_type);
 
-- 
2.48.1


  parent reply	other threads:[~2026-02-24  0:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24  0:41 [PATCH i-g-t 0/2] lib/xe/oa: Add CRI metrics XML Ashutosh Dixit
2026-02-24  0:41 ` [PATCH i-g-t 1/2] " Ashutosh Dixit
2026-03-30 19:54   ` Umesh Nerlige Ramappa
2026-03-30 21:56     ` Dixit, Ashutosh
2026-04-01 20:59       ` Umesh Nerlige Ramappa
2026-02-24  0:41 ` Ashutosh Dixit [this message]
2026-02-24  1:34 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-02-24  1:51 ` ✗ i915.CI.BAT: failure " Patchwork
2026-02-24 16:45 ` ✗ Xe.CI.FULL: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260224004151.1836090-3-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jose.souza@intel.com \
    --cc=sushma.venkatesh.reddy@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox