public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Anna Karas <anna.karas@intel.com>,
	igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] Distinguish particular engines during calculating nop calibration
Date: Thu, 23 Jan 2020 14:45:20 +0000	[thread overview]
Message-ID: <8e409b90-1c93-83e4-73d9-7a508ffb00b7@linux.intel.com> (raw)
In-Reply-To: <157962200684.5216.7245636638665670840@skylake-alporthouse-com>


On 21/01/2020 15:53, Chris Wilson wrote:
> Quoting Anna Karas (2020-01-21 15:04:00)
>> @@ -3242,14 +3421,13 @@ int main(int argc, char **argv)
>>                  goto err;
>>          }
>>   
>> -       if (!nop_calibration) {
>> -               if (verbose > 1)
>> -                       printf("Calibrating nop delay with %u%% tolerance...\n",
>> +       if (!has_nop_calibration) {
>> +               if (verbose > 1) {
>> +                       printf("Calibrating nop delays with %u%% tolerance...\n",
>>                                  tolerance_pct);
>> -               nop_calibration = calibrate_nop(tolerance_pct);
>> -               if (verbose)
>> -                       printf("Nop calibration for %uus delay is %lu.\n",
>> -                              nop_calibration_us, nop_calibration);
>> +               }
>> +
>> +               calibrate_engines();
>>   
>>                  goto out;
>>          }
>> @@ -3309,8 +3487,7 @@ int main(int argc, char **argv)
>>   
>>          if (verbose > 1) {
> 
> Hmm, could this be
> if (verbose > 1 || !has_nop_calibration)
> so that a plain run of gem_wsim shows the calibration results?

verbose = 1 is default and currently shows the calibration value.

-q on the command line sets verbose = 0 and then it doesn't.

-v does verbose++.

If with plain run you mean gem_wsim without any arguments it should show 
the calibration. I think that means the check in calibrate_engines() 
needs to be changed to:

+	if (verbose)
+		print_engines_calibrations();

Yes good catch, I missed this. Probably also best to leave 
print_engines_calibrations() (and lose double plural?) outside of 
calibrate_engines().

Regards,

Tvrtko

>>                  printf("Random seed is %u.\n", master_prng);
>> -               printf("Using %lu nop calibration for %uus delay.\n",
>> -                      nop_calibration, nop_calibration_us);
>> +               print_engines_calibrations();
>>                  printf("%u client%s.\n", clients, clients > 1 ? "s" : "");
>>                  if (flags & SWAPVCS)
>>                          printf("Swapping VCS rings between clients.\n");
>> -- 
>> 2.19.0
>>
>> _______________________________________________
>> igt-dev mailing list
>> igt-dev@lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/igt-dev
>>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-01-23 14:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16 13:55 [igt-dev] [PATCH i-g-t] Distinguish particular engines during calculating nop calibration Anna Karas
2020-01-16 15:06 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-01-16 17:38 ` [igt-dev] [PATCH i-g-t] " Tvrtko Ursulin
2020-01-19  8:28 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2020-01-21 15:04 ` [igt-dev] [PATCH i-g-t] " Anna Karas
2020-01-21 15:53   ` Chris Wilson
2020-01-23 14:45     ` Tvrtko Ursulin [this message]
2020-01-21 16:02   ` Tvrtko Ursulin
2020-01-24 11:18     ` [igt-dev] [PATCH i-g-t] gem_wsim: " Anna Karas
2020-01-24 11:35       ` Tvrtko Ursulin
2020-01-24 11:41         ` Chris Wilson
2020-01-24 11:45           ` Tvrtko Ursulin
2020-01-24 11:51             ` Chris Wilson
2020-01-24 12:05       ` Chris Wilson
2020-01-24 13:54       ` Anna Karas
2020-01-21 16:00 ` [igt-dev] ✓ Fi.CI.BAT: success for Distinguish particular engines during calculating nop calibration. (rev2) Patchwork
2020-01-22 18:10 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-01-23 18:13 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
2020-01-24 12:03 ` [igt-dev] ✓ Fi.CI.BAT: success for Distinguish particular engines during calculating nop calibration. (rev4) Patchwork
2020-01-24 14:27 ` [igt-dev] ✓ Fi.CI.BAT: success for Distinguish particular engines during calculating nop calibration. (rev5) Patchwork
2020-01-26 14:06 ` [igt-dev] ✓ Fi.CI.IGT: success for Distinguish particular engines during calculating nop calibration. (rev4) Patchwork
2020-01-26 17:40 ` [igt-dev] ✓ Fi.CI.IGT: success for Distinguish particular engines during calculating nop calibration. (rev5) 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=8e409b90-1c93-83e4-73d9-7a508ffb00b7@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=anna.karas@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@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