All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: "José Roberto de Souza" <jose.souza@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t v3 3/4] xe/oa: Update scripts to support BMG
Date: Thu, 05 Sep 2024 09:36:50 -0700	[thread overview]
Message-ID: <87y146xdjx.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20240903205457.109320-3-jose.souza@intel.com>

On Tue, 03 Sep 2024 13:54:56 -0700, José Roberto de Souza wrote:
>
> diff --git a/lib/xe/xe_oa.c b/lib/xe/xe_oa.c
> index 4764ed1fcf..a7df68488c 100644
> --- a/lib/xe/xe_oa.c
> +++ b/lib/xe/xe_oa.c
> @@ -38,6 +38,7 @@
>  #include "xe_oa_metrics_mtlgt3.h"
>  #include "xe_oa_metrics_pvc.h"
>  #include "xe_oa_metrics_lnl.h"
> +#include "xe_oa_metrics_bmg.h"
>
>  static struct intel_xe_perf_logical_counter_group *
>  intel_xe_perf_logical_counter_group_new(struct intel_xe_perf *perf,
> @@ -300,8 +301,10 @@ intel_xe_perf_for_devinfo(uint32_t device_id,
>	} 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)) {
> +	} else if (devinfo->is_lunarlake) {
>		intel_xe_perf_load_metrics_lnl(perf);
> +	} else if (devinfo->is_battlemage) {
> +		intel_xe_perf_load_metrics_bmg(perf);

I made a small change to this patch here:

https://patchwork.freedesktop.org/patch/612713/?series=138273&rev=1

Basically retaining the "else if (intel_graphics_ver(device_id) >=
IP_VER(20, 0))" line, so that we can have LNL as the default platform for
Xe2+. Since generally LNL metrics will work, even for new platforms, at
least for the initial checkout, say during power-on's. And if not, we can
add a condition for that specific platform, which we anyway need to do with
the above code. So may save a little bit of work for the initial checkout.

Thanks.
--
Ashutosh

  reply	other threads:[~2024-09-05 16:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-03 20:54 [PATCH i-g-t v3 1/4] tests/xe_oa: Drop TestOa from metric_set() José Roberto de Souza
2024-09-03 20:54 ` [PATCH i-g-t v3 2/4] xe/oa: Update oa-lnl.xml José Roberto de Souza
2024-09-03 20:54 ` [PATCH i-g-t v3 3/4] xe/oa: Update scripts to support BMG José Roberto de Souza
2024-09-05 16:36   ` Dixit, Ashutosh [this message]
2024-09-03 20:54 ` [PATCH i-g-t v3 4/4] xe/oa: Add oa-bmg.xml José Roberto de Souza
2024-09-03 22:03 ` ✓ CI.xeBAT: success for series starting with [i-g-t,v3,1/4] tests/xe_oa: Drop TestOa from metric_set() Patchwork
2024-09-03 22:27 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-09-04  1:44 ` ✗ CI.xeFULL: " Patchwork
2024-09-05 23:41 ` ✓ CI.xeBAT: success for series starting with [i-g-t,v3,1/4] tests/xe_oa: Drop TestOa from metric_set() (rev2) Patchwork
2024-09-06  0:12 ` ✓ Fi.CI.BAT: " Patchwork
2024-09-08  4:24 ` ✗ CI.xeFULL: failure " Patchwork
2024-09-10  0:35 ` ✗ Fi.CI.IGT: " 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=87y146xdjx.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jose.souza@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.