[igt-dev] [PATCH i-g-t v2] tests/i915/gem_render_copy_redux: reduce looping if on simulation

Kahola, Mika mika.kahola at intel.com
Wed Jan 26 09:50:43 UTC 2022


> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Juha-
> Pekka Heikkila
> Sent: Tuesday, January 25, 2022 9:59 PM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t v2] tests/i915/gem_render_copy_redux: reduce
> looping if on simulation
> 
> On simulation it's interesting plumbing generally works and don't waste time
> executing long loops.
> 
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

Reviewed-by: Mika Kahola <mika.kahola at intel.com>

> ---
> v2: use SLOW_QUICK instead of igt_run_in_simulation (Petri)
> 
>  tests/i915/gem_render_copy_redux.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/i915/gem_render_copy_redux.c
> b/tests/i915/gem_render_copy_redux.c
> index 6c8d7f755..525c14d18 100644
> --- a/tests/i915/gem_render_copy_redux.c
> +++ b/tests/i915/gem_render_copy_redux.c
> @@ -207,13 +207,13 @@ igt_main
>  	}
> 
>  	igt_subtest("normal") {
> -		int loop = 100;
> +		int loop = SLOW_QUICK(100, 3);
>  		while (loop--)
>  			copy(&data);
>  	}
> 
>  	igt_subtest("interruptible") {
> -		int loop = 100;
> +		int loop = SLOW_QUICK(100, 3);
>  		igt_fork_signal_helper();
>  		while (loop--)
>  			copy(&data);
> @@ -221,13 +221,13 @@ igt_main
>  	}
> 
>  	igt_subtest("flink") {
> -		int loop = 100;
> +		int loop = SLOW_QUICK(100, 3);
>  		while (loop--)
>  			copy_flink(&data);
>  	}
> 
>  	igt_subtest("flink-interruptible") {
> -		int loop = 100;
> +		int loop = SLOW_QUICK(100, 3);
>  		igt_fork_signal_helper();
>  		while (loop--)
>  			copy_flink(&data);
> --
> 2.28.0



More information about the igt-dev mailing list