public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Antonio Argenziano via igt-dev <igt-dev@lists.freedesktop.org>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] i915/gem_exec_latency: Normalize results into ns
Date: Tue, 12 Feb 2019 15:06:06 -0800	[thread overview]
Message-ID: <f0716089-8a89-d008-7b5d-07dd62d431b4@intel.com> (raw)
In-Reply-To: <154878490319.22998.8278392760880838657@skylake-alporthouse-com>



On 29/01/19 10:01, Chris Wilson wrote:
> Quoting Antonio Argenziano (2019-01-29 17:55:45)
>>
>>
>> On 29/01/19 01:55, Chris Wilson wrote:
>>> Present the latency results in nanoseconds not RCS cycles.
>>>
>>> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>>> ---
>>>    tests/i915/gem_exec_latency.c | 38 +++++++++++++++++++++++++++++++----
>>>    1 file changed, 34 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/tests/i915/gem_exec_latency.c b/tests/i915/gem_exec_latency.c
>>> index de16322a6..ea44adc14 100644
>>> --- a/tests/i915/gem_exec_latency.c
>>> +++ b/tests/i915/gem_exec_latency.c
>>> @@ -59,6 +59,7 @@
>>>    #define PREEMPT 0x2
>>>    
>>>    static unsigned int ring_size;
>>> +static double rcs_clock;
>>>    
>>>    static void
>>>    poll_ring(int fd, unsigned ring, const char *name)
>>> @@ -207,7 +208,7 @@ static void latency_on_ring(int fd,
>>>                igt_cork_unplug(&c);
>>>    
>>>        gem_set_domain(fd, obj[1].handle, I915_GEM_DOMAIN_GTT, 0);
>>> -     gpu_latency = (results[repeats-1] - results[0]) / (double)(repeats-1);
>>> +     gpu_latency = (results[repeats-1] - results[1]) / (double)(repeats-2);
>>
>> How come you don't like the value at 0? Maybe adding a comment would
>> make it clearer.
> 
> I was thinking of trying to reduce some context warmup latency, but
> it doesn't matter and the spinner in the second patch is much more
> effective overall.

OK.

Sorry for the long delay, it ended-up in my spam folder. If you still 
need it, the series is:

Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>


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

  reply	other threads:[~2019-02-12 23:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-29  9:55 [igt-dev] [PATCH i-g-t 1/2] i915/gem_exec_latency: Normalize results into ns Chris Wilson
2019-01-29  9:55 ` [igt-dev] [PATCH i-g-t 2/2] i915/gem_exec_latency: Eliminate the wakeup penalty Chris Wilson
2019-01-29 11:12 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] i915/gem_exec_latency: Normalize results into ns Patchwork
2019-01-29 13:29 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-01-29 17:55 ` [igt-dev] [PATCH i-g-t 1/2] " Antonio Argenziano
2019-01-29 18:01   ` Chris Wilson
2019-02-12 23:06     ` Antonio Argenziano via igt-dev [this message]
2019-02-12 23:13       ` Chris Wilson

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=f0716089-8a89-d008-7b5d-07dd62d431b4@intel.com \
    --to=igt-dev@lists.freedesktop.org \
    --cc=antonio.argenziano@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox