Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Auld, Matthew" <matthew.auld@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tests/perf: bump max number of block/poll interations
Date: Fri, 14 Dec 2018 11:19:06 +0000	[thread overview]
Message-ID: <4d441530-84d3-b9b3-fef6-5b4c9cec6f7e@intel.com> (raw)
In-Reply-To: <20181211180647.23186-1-lionel.g.landwerlin@intel.com>

Adding Matt in Cc ;)

On 11/12/2018 18:06, Lionel Landwerlin wrote:
> Those 2 tests fail regularly on HSW, probably because the OA period
> aligns slightly differently there because of the differnce in the
> timestamp frequency between HSW and other generation. Just bump the
> max number by 1 to fix the issue.
>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102252
> ---
>   tests/perf.c | 16 ++--------------
>   1 file changed, 2 insertions(+), 14 deletions(-)
>
> diff --git a/tests/perf.c b/tests/perf.c
> index 48b323e5..220c52ef 100644
> --- a/tests/perf.c
> +++ b/tests/perf.c
> @@ -2025,7 +2025,7 @@ test_blocking(void)
>   	int64_t tick_ns = 1000000000 / sysconf(_SC_CLK_TCK);
>   	int64_t test_duration_ns = tick_ns * 1000;
>   
> -	int max_iterations = (test_duration_ns / oa_period) + 1;
> +	int max_iterations = (test_duration_ns / oa_period) + 2;
>   	int n_extra_iterations = 0;
>   
>   	/* It's a bit tricky to put a lower limit here, but we expect a
> @@ -2116,12 +2116,6 @@ test_blocking(void)
>   		n++;
>   	}
>   
> -	/* Updated the maximum of iterations based on the time spent
> -	 * in the loop.
> -	 */
> -	max_iterations = (end - start) / oa_period + 1;
> -	igt_debug("adjusted max iter. = %d\n", max_iterations);
> -
>   	times(&end_times);
>   
>   	/* Using nanosecond units is fairly silly here, given the tick in-
> @@ -2190,7 +2184,7 @@ test_polling(void)
>   	int64_t tick_ns = 1000000000 / sysconf(_SC_CLK_TCK);
>   	int64_t test_duration_ns = tick_ns * 1000;
>   
> -	int max_iterations = (test_duration_ns / oa_period) + 1;
> +	int max_iterations = (test_duration_ns / oa_period) + 2;
>   	int n_extra_iterations = 0;
>   
>   	/* It's a bit tricky to put a lower limit here, but we expect a
> @@ -2309,12 +2303,6 @@ test_polling(void)
>   		n++;
>   	}
>   
> -	/* Updated the maximum of iterations based on the time spent
> -	 * in the loop.
> -	 */
> -	max_iterations = (end - start) / oa_period + 1;
> -	igt_debug("adjusted max iter. = %d\n", max_iterations);
> -
>   	times(&end_times);
>   
>   	/* Using nanosecond units is fairly silly here, given the tick in-


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

  parent reply	other threads:[~2018-12-14 11:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11 18:06 [igt-dev] [PATCH i-g-t 1/2] tests/perf: bump max number of block/poll interations Lionel Landwerlin
2018-12-11 18:06 ` [igt-dev] [PATCH i-g-t 2/2] tests/perf: polling: fix uninitialized start_times Lionel Landwerlin
2018-12-14 11:58   ` Matthew Auld
2018-12-14 13:30     ` Lionel Landwerlin
2018-12-14 13:58       ` Lionel Landwerlin
2018-12-11 18:27 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/perf: bump max number of block/poll interations Patchwork
2018-12-11 20:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-12-14 11:19 ` Lionel Landwerlin [this message]
2018-12-14 11:48 ` [igt-dev] [PATCH i-g-t 1/2] " Matthew Auld

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=4d441530-84d3-b9b3-fef6-5b4c9cec6f7e@intel.com \
    --to=lionel.g.landwerlin@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.auld@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