Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time
@ 2024-07-03  6:33 Zbigniew Kempczyński
  2024-07-03  7:39 ` Piecielska, Katarzyna
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Zbigniew Kempczyński @ 2024-07-03  6:33 UTC (permalink / raw)
  To: igt-dev; +Cc: Zbigniew Kempczyński, Kamil Konieczny

Test xe_intel_bb verifies intel-bb so it doesn't make sense to perform
large render operations as those are covered in xe_render_copy test.
Use 256px surface for render instead 512 and 1024 px.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
 tests/intel/xe_intel_bb.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
index 5dd794b186..647fd64e7e 100644
--- a/tests/intel/xe_intel_bb.c
+++ b/tests/intel/xe_intel_bb.c
@@ -40,6 +40,7 @@
 #define HEIGHT	64
 #define STRIDE	(WIDTH * 4)
 #define SIZE	(HEIGHT * STRIDE)
+#define RENDER_WIDTH 256
 
 #define COLOR_00	0x00
 #define COLOR_33	0x33
@@ -1054,11 +1055,11 @@ igt_main_args("dpib", NULL, help_str, opt_handler, NULL)
 			if (!render_supports_tiling(xe, tiling, false))
 				continue;
 
-			for (width = 512; width <= 1024; width += 512)
-				igt_dynamic_f("render-%s-%u",
-					      blt_tiling_name(tiling), width)
-					render(bops, blt_tile_to_i915_tile(tiling),
-					       width, width);
+			width = RENDER_WIDTH;
+			igt_dynamic_f("render-%s-%u",
+				      blt_tiling_name(tiling), width)
+				render(bops, blt_tile_to_i915_tile(tiling),
+				       width, width);
 		}
 	}
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time
  2024-07-03  6:33 [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time Zbigniew Kempczyński
@ 2024-07-03  7:39 ` Piecielska, Katarzyna
  2024-07-03 10:12 ` Kamil Konieczny
  2024-07-03 14:43 ` ✗ Fi.CI.BAT: failure for " Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Piecielska, Katarzyna @ 2024-07-03  7:39 UTC (permalink / raw)
  To: Kempczynski, Zbigniew, igt-dev@lists.freedesktop.org
  Cc: Kempczynski, Zbigniew, Kamil Konieczny

LGTM 😊 Let's do this.

Acked-by: Katarzyna Piecielska <katarzyna.piecielska@intel.com>

Kasia

-----Original Message-----
From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Zbigniew Kempczynski
Sent: Wednesday, July 3, 2024 8:33 AM
To: igt-dev@lists.freedesktop.org
Cc: Kempczynski, Zbigniew <zbigniew.kempczynski@intel.com>; Kamil Konieczny <kamil.konieczny@linux.intel.com>
Subject: [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time

Test xe_intel_bb verifies intel-bb so it doesn't make sense to perform large render operations as those are covered in xe_render_copy test.
Use 256px surface for render instead 512 and 1024 px.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
 tests/intel/xe_intel_bb.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c index 5dd794b186..647fd64e7e 100644
--- a/tests/intel/xe_intel_bb.c
+++ b/tests/intel/xe_intel_bb.c
@@ -40,6 +40,7 @@
 #define HEIGHT	64
 #define STRIDE	(WIDTH * 4)
 #define SIZE	(HEIGHT * STRIDE)
+#define RENDER_WIDTH 256
 
 #define COLOR_00	0x00
 #define COLOR_33	0x33
@@ -1054,11 +1055,11 @@ igt_main_args("dpib", NULL, help_str, opt_handler, NULL)
 			if (!render_supports_tiling(xe, tiling, false))
 				continue;
 
-			for (width = 512; width <= 1024; width += 512)
-				igt_dynamic_f("render-%s-%u",
-					      blt_tiling_name(tiling), width)
-					render(bops, blt_tile_to_i915_tile(tiling),
-					       width, width);
+			width = RENDER_WIDTH;
+			igt_dynamic_f("render-%s-%u",
+				      blt_tiling_name(tiling), width)
+				render(bops, blt_tile_to_i915_tile(tiling),
+				       width, width);
 		}
 	}
 
--
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time
  2024-07-03  6:33 [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time Zbigniew Kempczyński
  2024-07-03  7:39 ` Piecielska, Katarzyna
@ 2024-07-03 10:12 ` Kamil Konieczny
  2024-07-03 12:06   ` Zbigniew Kempczyński
  2024-07-03 14:43 ` ✗ Fi.CI.BAT: failure for " Patchwork
  2 siblings, 1 reply; 5+ messages in thread
From: Kamil Konieczny @ 2024-07-03 10:12 UTC (permalink / raw)
  To: igt-dev; +Cc: Zbigniew Kempczyński

Hi Zbigniew,
On 2024-07-03 at 08:33:14 +0200, Zbigniew Kempczyński wrote:
> Test xe_intel_bb verifies intel-bb so it doesn't make sense to perform
> large render operations as those are covered in xe_render_copy test.
> Use 256px surface for render instead 512 and 1024 px.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>

LGTM,
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>

I will merge this without waiting for CI as this works on my
test machine and it just reduced number of performed tests.

Regards,
Kamil

> ---
>  tests/intel/xe_intel_bb.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
> index 5dd794b186..647fd64e7e 100644
> --- a/tests/intel/xe_intel_bb.c
> +++ b/tests/intel/xe_intel_bb.c
> @@ -40,6 +40,7 @@
>  #define HEIGHT	64
>  #define STRIDE	(WIDTH * 4)
>  #define SIZE	(HEIGHT * STRIDE)
> +#define RENDER_WIDTH 256
>  
>  #define COLOR_00	0x00
>  #define COLOR_33	0x33
> @@ -1054,11 +1055,11 @@ igt_main_args("dpib", NULL, help_str, opt_handler, NULL)
>  			if (!render_supports_tiling(xe, tiling, false))
>  				continue;
>  
> -			for (width = 512; width <= 1024; width += 512)
> -				igt_dynamic_f("render-%s-%u",
> -					      blt_tiling_name(tiling), width)
> -					render(bops, blt_tile_to_i915_tile(tiling),
> -					       width, width);
> +			width = RENDER_WIDTH;
> +			igt_dynamic_f("render-%s-%u",
> +				      blt_tiling_name(tiling), width)
> +				render(bops, blt_tile_to_i915_tile(tiling),
> +				       width, width);
>  		}
>  	}
>  
> -- 
> 2.34.1
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time
  2024-07-03 10:12 ` Kamil Konieczny
@ 2024-07-03 12:06   ` Zbigniew Kempczyński
  0 siblings, 0 replies; 5+ messages in thread
From: Zbigniew Kempczyński @ 2024-07-03 12:06 UTC (permalink / raw)
  To: Kamil Konieczny, igt-dev, Zbigniew Kempczyński

On Wed, Jul 03, 2024 at 12:12:22PM +0200, Kamil Konieczny wrote:
> Hi Zbigniew,
> On 2024-07-03 at 08:33:14 +0200, Zbigniew Kempczyński wrote:
> > Test xe_intel_bb verifies intel-bb so it doesn't make sense to perform
> > large render operations as those are covered in xe_render_copy test.
> > Use 256px surface for render instead 512 and 1024 px.
> > 
> > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> > Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> 
> LGTM,
> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> 
> I will merge this without waiting for CI as this works on my
> test machine and it just reduced number of performed tests.

Thank you for the review and merge.

--
Zbigniew

> 
> Regards,
> Kamil
> 
> > ---
> >  tests/intel/xe_intel_bb.c | 11 ++++++-----
> >  1 file changed, 6 insertions(+), 5 deletions(-)
> > 
> > diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
> > index 5dd794b186..647fd64e7e 100644
> > --- a/tests/intel/xe_intel_bb.c
> > +++ b/tests/intel/xe_intel_bb.c
> > @@ -40,6 +40,7 @@
> >  #define HEIGHT	64
> >  #define STRIDE	(WIDTH * 4)
> >  #define SIZE	(HEIGHT * STRIDE)
> > +#define RENDER_WIDTH 256
> >  
> >  #define COLOR_00	0x00
> >  #define COLOR_33	0x33
> > @@ -1054,11 +1055,11 @@ igt_main_args("dpib", NULL, help_str, opt_handler, NULL)
> >  			if (!render_supports_tiling(xe, tiling, false))
> >  				continue;
> >  
> > -			for (width = 512; width <= 1024; width += 512)
> > -				igt_dynamic_f("render-%s-%u",
> > -					      blt_tiling_name(tiling), width)
> > -					render(bops, blt_tile_to_i915_tile(tiling),
> > -					       width, width);
> > +			width = RENDER_WIDTH;
> > +			igt_dynamic_f("render-%s-%u",
> > +				      blt_tiling_name(tiling), width)
> > +				render(bops, blt_tile_to_i915_tile(tiling),
> > +				       width, width);
> >  		}
> >  	}
> >  
> > -- 
> > 2.34.1
> > 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* ✗ Fi.CI.BAT: failure for tests/xe_intel_bb: Reduce render subtest execution time
  2024-07-03  6:33 [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time Zbigniew Kempczyński
  2024-07-03  7:39 ` Piecielska, Katarzyna
  2024-07-03 10:12 ` Kamil Konieczny
@ 2024-07-03 14:43 ` Patchwork
  2 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2024-07-03 14:43 UTC (permalink / raw)
  To: Zbigniew Kempczyński; +Cc: igt-dev

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

== Series Details ==

Series: tests/xe_intel_bb: Reduce render subtest execution time
URL   : https://patchwork.freedesktop.org/series/135678/
State : failure

== Summary ==

Series 135678 revision 1 was fully merged or fully failed: no git log



[-- Attachment #2: Type: text/html, Size: 716 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-03 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-03  6:33 [PATCH i-g-t] tests/xe_intel_bb: Reduce render subtest execution time Zbigniew Kempczyński
2024-07-03  7:39 ` Piecielska, Katarzyna
2024-07-03 10:12 ` Kamil Konieczny
2024-07-03 12:06   ` Zbigniew Kempczyński
2024-07-03 14:43 ` ✗ Fi.CI.BAT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox