Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
To: "Bernatowicz, Marcin" <marcin.bernatowicz@linux.intel.com>,
	igt-dev@lists.freedesktop.org
Cc: adam.miszczak@linux.intel.com, lukasz.laguna@intel.com,
	Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Subject: Re: [PATCH i-g-t 0/2] benchmarks/gem_wsim: explicit VM create/assign + LR mode
Date: Fri, 17 Jul 2026 13:32:11 +0100	[thread overview]
Message-ID: <334ad2b5-a477-4985-8dd4-ca4d2faa8603@igalia.com> (raw)
In-Reply-To: <7739fa70-a7f2-42a0-8c92-4645c9dedfe5@linux.intel.com>


On 17/07/2026 13:09, Bernatowicz, Marcin wrote:
> 
> On 7/17/2026 10:03 AM, Bernatowicz, Marcin wrote:
>>
>> On 7/15/2026 3:36 PM, Tvrtko Ursulin wrote:
>>>
>>> On 14/07/2026 16:12, Marcin Bernatowicz wrote:
>>>> This series extends gem_wsim VM management for Xe.
>>>>
>>>> Patch 1 adds explicit VM create/assign steps in workload descriptors:
>>>> V.N to create VM N and v.N.M to bind context M to VM N.
>>>>
>>>> Patch 2 adds c.N to enable compute/LR mode on selected VMs.
>>>> README is updated with syntax and VM usage examples.
>>>>
>>>> Marcin Bernatowicz (2):
>>>>    benchmarks/gem_wsim: add explicit VM create/assign steps
>>>>    benchmarks/gem_wsim: add compute/LR mode support for Xe VMs
>>>
>>> I see these two patches have my Suggested-by but to be honest I do 
>>> not remember any of it! :)
>>
>> That's a very old thread on the first patches adjusting the tool to 
>> Xe: https://lore.kernel.org/all/431b9135-1c7c-cbf7-cc3a- 
>> f8d52ff1f015@linux.intel.com/ ;)
>>
>>>
>>> Can I use the opportunity to ask how is the status of the tool on xe? 
>>> Do working set and working set dependencies work for example?
>> It's used for basic/simple workloads on VMs (Virtual Machines) with 
>> passed-through SR-IOV VF devices in regular runs (we use the expected 
>> duration of repeated workloads).
>>
>> Lately, it helped me investigate an RCS/CCS dependency issue: https:// 
>> lore.kernel.org/all/20260708100616.1050537-1- 
>> marcin.bernatowicz@linux.intel.com/
>>
>> So, I find it very useful for quick scheduling dependency checks 
>> without having to craft or adjust IGT tests.
>>
>> I haven't looked at working set / working set dependencies on Xe yet :/
> 
> I'm planning to send a follow-up series for working sets on Xe soon.

For the record I don't personally need it, but was just curious given a 
colleague is looking into TTM eviction behaviour so this reminded me how
  back in the day, when I added working set support to wsim, it was 
exactly for improving the eviction behaviour of i915 as we we adding 
discrete GPU support I believe. Details escape me.. But 61d49ef6f274 
("gem_wsim: Snippet of a workload extracted from carchase") suggests 
this demo was useful back then and I think I had a script which 
converted the trace log to this wsim. Plan being to make some more 
mirroring interesting games, with the benefit of not needing to install 
the actual game, etc, but if the system can run IGT that's it, done, it 
can be replayed to oblivion and kernel tweaks tested quickly and easily.

Anyway, I'll copy Cascardo just as a curiosity/visibility on 
crazy/interesting tools. If you go to read it, you will sure get 
confused by the .wsim syntax.

Essentially the tools allows to write a workload defining arbitrary 
dummy GPU jobs, each with arbitrary buffers and/or fence dependencies, 
loop them, run N in parallel or not etc. It could be useful for TTM 
improvements once Marcin brings the xe backend to feature parity with i915.

Regards,

Tvrtko


> 
>>
>> Regards,
>>
>> marcin
>>
>>>
>>> Regards,
>>>
>>> Tvrtko
>>>
>>>>   benchmarks/gem_wsim.c  | 310 +++++++++++++++++++++++++++++++++++ 
>>>> +-----
>>>>   benchmarks/wsim/README |  32 +++++
>>>>   2 files changed, 311 insertions(+), 31 deletions(-)
>>>>
>>>


      reply	other threads:[~2026-07-17 12:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-14 15:12 [PATCH i-g-t 0/2] benchmarks/gem_wsim: explicit VM create/assign + LR mode Marcin Bernatowicz
2026-07-14 15:12 ` [PATCH i-g-t 1/2] benchmarks/gem_wsim: add explicit VM create/assign steps Marcin Bernatowicz
2026-07-16 14:27   ` Kamil Konieczny
2026-08-03  9:26   ` Adam Miszczak
2026-07-14 15:12 ` [PATCH i-g-t 2/2] benchmarks/gem_wsim: add compute/LR mode support for Xe VMs Marcin Bernatowicz
2026-08-03  9:27   ` Adam Miszczak
2026-07-14 20:26 ` ✗ Xe.CI.BAT: failure for benchmarks/gem_wsim: explicit VM create/assign + LR mode Patchwork
2026-07-14 20:39 ` ✗ i915.CI.BAT: " Patchwork
2026-07-15  4:17 ` ✗ Xe.CI.FULL: " Patchwork
2026-07-15 13:36 ` [PATCH i-g-t 0/2] " Tvrtko Ursulin
2026-07-17  8:03   ` Bernatowicz, Marcin
2026-07-17 12:09     ` Bernatowicz, Marcin
2026-07-17 12:32       ` Tvrtko Ursulin [this message]

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=334ad2b5-a477-4985-8dd4-ca4d2faa8603@igalia.com \
    --to=tvrtko.ursulin@igalia.com \
    --cc=adam.miszczak@linux.intel.com \
    --cc=cascardo@igalia.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lukasz.laguna@intel.com \
    --cc=marcin.bernatowicz@linux.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