All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] benchmarks/wsim: Simulate and interpret .wsim
Date: Fri, 11 May 2018 10:21:05 +0100	[thread overview]
Message-ID: <662dab41-e607-a422-a58c-f6b31a899a87@linux.intel.com> (raw)
In-Reply-To: <152602949832.22269.10077828845908230616@mail.alporthouse.com>


On 11/05/2018 10:04, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2018-05-11 09:31:52)
>>
>> On 11/05/2018 08:11, Chris Wilson wrote:
>>> A little tool I've been meaning to write for a while... Convert the
>>> .wsim into their dag and find the longest chains and evaluate them on an
>>> simulated machine.
>>
>> Very cool!
>>
>> But I think you need to handle the 's' command which appears in the
>> interesting workloads. Maybe you could just fake it as a zero duration
>> batch with a data dependency.
> 
> Barriers were even more trivial than that. :)
>   
>> Fence related commands would also be useful but more difficult I guess.
>> As would throttling.
> 
> I haven't groked your fence command lines so skipped them. Fortunately,
> syncs appears to be the only one missed from the "interesting" set of
> wsim.

Fences are created with 'f' and then batches can reference them from the 
dependency list the same as with data dependencies. When created they 
are unsignaled and then 'a' advances the fence addresses relatively to 
the 'a' command. For instance 'a.-2' means "signal ready the fence 
created two steps above".

>> Delays could maybe be faked as batches as well by adding input
>> dependency to everything preceding it.
> 
> It would definitely want to be a task with say .engine = -1. It implies
> a full barrier as well? Not limited to waiting for an earlier step?

There is 'd' which is a normal/dumb fixed delay, and then 'p' which is 
relative to start of the loop, meaning "wait how much is needed so that 
time from start of loop to this step is x".

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

WARNING: multiple messages have this Message-ID (diff)
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] benchmarks/wsim: Simulate and interpret .wsim
Date: Fri, 11 May 2018 10:21:05 +0100	[thread overview]
Message-ID: <662dab41-e607-a422-a58c-f6b31a899a87@linux.intel.com> (raw)
In-Reply-To: <152602949832.22269.10077828845908230616@mail.alporthouse.com>


On 11/05/2018 10:04, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2018-05-11 09:31:52)
>>
>> On 11/05/2018 08:11, Chris Wilson wrote:
>>> A little tool I've been meaning to write for a while... Convert the
>>> .wsim into their dag and find the longest chains and evaluate them on an
>>> simulated machine.
>>
>> Very cool!
>>
>> But I think you need to handle the 's' command which appears in the
>> interesting workloads. Maybe you could just fake it as a zero duration
>> batch with a data dependency.
> 
> Barriers were even more trivial than that. :)
>   
>> Fence related commands would also be useful but more difficult I guess.
>> As would throttling.
> 
> I haven't groked your fence command lines so skipped them. Fortunately,
> syncs appears to be the only one missed from the "interesting" set of
> wsim.

Fences are created with 'f' and then batches can reference them from the 
dependency list the same as with data dependencies. When created they 
are unsignaled and then 'a' advances the fence addresses relatively to 
the 'a' command. For instance 'a.-2' means "signal ready the fence 
created two steps above".

>> Delays could maybe be faked as batches as well by adding input
>> dependency to everything preceding it.
> 
> It would definitely want to be a task with say .engine = -1. It implies
> a full barrier as well? Not limited to waiting for an earlier step?

There is 'd' which is a normal/dumb fixed delay, and then 'p' which is 
relative to start of the loop, meaning "wait how much is needed so that 
time from start of loop to this step is x".

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-05-11  9:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-11  7:11 [Intel-gfx] [PATCH i-g-t] benchmarks/wsim: Simulate and interpret .wsim Chris Wilson
2018-05-11  7:11 ` Chris Wilson
2018-05-11  7:33 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-05-11  8:27 ` [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2018-05-11  8:27   ` Chris Wilson
2018-05-11  8:31 ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2018-05-11  8:31   ` Tvrtko Ursulin
2018-05-11  9:04   ` [Intel-gfx] " Chris Wilson
2018-05-11  9:04     ` Chris Wilson
2018-05-11  9:21     ` Tvrtko Ursulin [this message]
2018-05-11  9:21       ` Tvrtko Ursulin
2018-05-11  9:33       ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-05-11  9:33         ` Chris Wilson
2018-05-11 11:56         ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2018-05-11 11:56           ` Tvrtko Ursulin
2018-07-10 13:47   ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-07-10 13:47     ` Chris Wilson
2018-07-10 15:38     ` [Intel-gfx] " Tvrtko Ursulin
2018-07-10 15:38       ` Tvrtko Ursulin
2018-07-10 15:40       ` [Intel-gfx] " Chris Wilson
2018-07-10 15:40         ` Chris Wilson
2018-07-10 16:05         ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2018-07-10 16:05           ` Tvrtko Ursulin
2018-05-11  8:45 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
2018-05-11  9:46 ` [igt-dev] ✓ Fi.CI.BAT: success for benchmarks/wsim: Simulate and interpret .wsim (rev2) Patchwork
2018-05-11 11:24 ` [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=662dab41-e607-a422-a58c-f6b31a899a87@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.