Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	igt-dev@lists.freedesktop.org,
	Ashutosh Dixit <ashutosh.dixit@intel.com>,
	Riana Tauro <riana.tauro@intel.com>,
	Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>,
	Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>,
	vikas.srivastava@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t] i915/gem_engine_topology: Support gem_list_engines on platforms prior to MTL
Date: Fri, 19 May 2023 17:21:42 -0700	[thread overview]
Message-ID: <871qjbx36x.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20230519124525.uw3aqwjge6i65rpg@kamilkon-desk1>

On Fri, 19 May 2023 05:45:25 -0700, Kamil Konieczny wrote:
>

Hi Kamil,

>
> On 2023-05-19 at 01:30:49 -0700, Ashutosh Dixit wrote:
> > gem_list_engines() should list engines correctly on platforms prior to
> > MTL. But at present it doesn't, it only supports MTL, and it skips on the
> ----------------------------------------------------- ^
> s/, and/ and/
>
> > 'igt_require(IS_METEORLAKE)' check for prior platforms. Fix this by
> -- ^
>
> imho better:
> s/skips on the ... prior platforms/skips on other platforms/
>
> > modifying gem_engine_to_gt_map() to return gt 0 for prior platforms,
> > because the only multi-gt platform supported at present in MTL.
> --------------------------------------------------------- ^
> s/in/is/

I will fix up the comments before merging.

> We do support multi-gpu, for example two or more DG2 or ATS-M cards ?

Thanks for reviewing, but I don't understand this question. All this
gem_list_engines stuff is used for listing the engines for a gt (and for a
class), so it's all within a single gpu (see
e.g. intel_ctx_create_for_gt()). Multiple devices is a separate issue. But
may be I am misunderstanding?

>
> >
> > Fixes: d2f39ce8186a ("lib/i915/gem_engine_topology: list engines specific to gt")
> > Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
>
> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>

Thanks.
--
Ashutosh

>
> Regards,
> Kamil
>
> > ---
> >  lib/i915/gem_engine_topology.c | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/lib/i915/gem_engine_topology.c b/lib/i915/gem_engine_topology.c
> > index 6c8929ec591a..7c6cd9ba97db 100644
> > --- a/lib/i915/gem_engine_topology.c
> > +++ b/lib/i915/gem_engine_topology.c
> > @@ -372,8 +372,12 @@ mtl_engine_to_gt_map(const struct i915_engine_class_instance *e)
> >
> >  static int gem_engine_to_gt_map(int i915, const struct i915_engine_class_instance *engine)
> >  {
> > -	igt_require(IS_METEORLAKE(intel_get_drm_devid(i915)));
> > -	return mtl_engine_to_gt_map(engine);
> > +	uint32_t devid = intel_get_drm_devid(i915);
> > +
> > +	/* Only MTL multi-gt supported at present */
> > +	igt_require(intel_graphics_ver(devid) <= IP_VER(12, 70));
> > +
> > +	return IS_METEORLAKE(devid) ? mtl_engine_to_gt_map(engine) : 0;
> >  }
> >
> >  /**
> > --
> > 2.38.0
> >

  reply	other threads:[~2023-05-20  0:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19  8:30 [igt-dev] [PATCH i-g-t] i915/gem_engine_topology: Support gem_list_engines on platforms prior to MTL Ashutosh Dixit
2023-05-19  9:33 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2023-05-19 12:45 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
2023-05-20  0:21   ` Dixit, Ashutosh [this message]
2023-05-20  7:21 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_engine_topology: Support gem_list_engines on platforms prior to MTL (rev2) Patchwork
2023-05-20 11:10 ` [igt-dev] ✓ 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=871qjbx36x.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=riana.tauro@intel.com \
    --cc=umesh.nerlige.ramappa@intel.com \
    --cc=vikas.srivastava@intel.com \
    --cc=zbigniew.kempczynski@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