Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p
@ 2026-05-04 11:38 Zbigniew Kempczyński
  2026-05-04 13:24 ` Francois Dugast
  2026-05-04 17:36 ` ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Zbigniew Kempczyński @ 2026-05-04 11:38 UTC (permalink / raw)
  To: igt-dev; +Cc: Zbigniew Kempczyński, Francois Dugast

Previously hardcoded constants are not correct for handling larger buffers
in compute square tests in Xe3p. Replace these values to commonly used
localgroup size definitions.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
---
 lib/intel_compute.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 7dda423c80..680675982a 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -2054,7 +2054,7 @@ static void xe3p_compute_exec_compute(int fd,
 	addr_bo_buffer_batch[b++] = 0x008004A0; /* dw3 */
 	addr_bo_buffer_batch[b++] = 0xBE040000; /* dw4 */
 	addr_bo_buffer_batch[b++] = 0xFFFFFFFF; /* dw5 */
-	addr_bo_buffer_batch[b++] = 0x000001FF; /* dw6 */
+	addr_bo_buffer_batch[b++] = 0x000003FF; /* dw6 */ // Local X/Y/Z Dimension
 
 	if (threadgroup_preemption)
 		addr_bo_buffer_batch[b++] = XE2_THREADGROUP_PREEMPT_XDIM; // Thread Group ID X Dimension
@@ -2081,7 +2081,7 @@ static void xe3p_compute_exec_compute(int fd,
 
 	addr_bo_buffer_batch[b++] = 0x00000000; /* dw22 */
 	addr_bo_buffer_batch[b++] = 0x00000000; /* dw23 */
-	addr_bo_buffer_batch[b++] = 0x0C000010; /* dw24 */
+	addr_bo_buffer_batch[b++] = 0x0C000000 | THREADS_PER_GROUP; /* dw24 */
 	addr_bo_buffer_batch[b++] = 0x00000000; /* dw25 */
 	addr_bo_buffer_batch[b++] = 0x00000400; /* dw26 */
 
@@ -2135,9 +2135,9 @@ static void xe3p_create_indirect_data(uint32_t *addr_bo_buffer_batch,
 	addr_bo_buffer_batch[b++] = addr_output & 0xffffffff;
 	addr_bo_buffer_batch[b++] = addr_output >> 32;
 	addr_bo_buffer_batch[b++] = loop_count;
-	addr_bo_buffer_batch[b++] = 0x00000200;
-	addr_bo_buffer_batch[b++] = 0x00000001;
-	addr_bo_buffer_batch[b++] = 0x00000001;
+	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_X;
+	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_Y;
+	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_Z;
 	addr_bo_buffer_batch[b++] = 0x00000000;
 	addr_bo_buffer_batch[b++] = 0x00000000;
 	addr_bo_buffer_batch[b++] = 0x00000000;
-- 
2.43.0


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

* Re: [PATCH i-g-t] lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p
  2026-05-04 11:38 [PATCH i-g-t] lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p Zbigniew Kempczyński
@ 2026-05-04 13:24 ` Francois Dugast
  2026-05-04 17:36 ` ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Francois Dugast @ 2026-05-04 13:24 UTC (permalink / raw)
  To: Zbigniew Kempczyński; +Cc: igt-dev

On Mon, May 04, 2026 at 01:38:15PM +0200, Zbigniew Kempczyński wrote:
> Previously hardcoded constants are not correct for handling larger buffers
> in compute square tests in Xe3p. Replace these values to commonly used
> localgroup size definitions.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> Cc: Francois Dugast <francois.dugast@intel.com>

Reviewed-by: Francois Dugast <francois.dugast@intel.com>

> ---
>  lib/intel_compute.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/lib/intel_compute.c b/lib/intel_compute.c
> index 7dda423c80..680675982a 100644
> --- a/lib/intel_compute.c
> +++ b/lib/intel_compute.c
> @@ -2054,7 +2054,7 @@ static void xe3p_compute_exec_compute(int fd,
>  	addr_bo_buffer_batch[b++] = 0x008004A0; /* dw3 */
>  	addr_bo_buffer_batch[b++] = 0xBE040000; /* dw4 */
>  	addr_bo_buffer_batch[b++] = 0xFFFFFFFF; /* dw5 */
> -	addr_bo_buffer_batch[b++] = 0x000001FF; /* dw6 */
> +	addr_bo_buffer_batch[b++] = 0x000003FF; /* dw6 */ // Local X/Y/Z Dimension
>  
>  	if (threadgroup_preemption)
>  		addr_bo_buffer_batch[b++] = XE2_THREADGROUP_PREEMPT_XDIM; // Thread Group ID X Dimension
> @@ -2081,7 +2081,7 @@ static void xe3p_compute_exec_compute(int fd,
>  
>  	addr_bo_buffer_batch[b++] = 0x00000000; /* dw22 */
>  	addr_bo_buffer_batch[b++] = 0x00000000; /* dw23 */
> -	addr_bo_buffer_batch[b++] = 0x0C000010; /* dw24 */
> +	addr_bo_buffer_batch[b++] = 0x0C000000 | THREADS_PER_GROUP; /* dw24 */
>  	addr_bo_buffer_batch[b++] = 0x00000000; /* dw25 */
>  	addr_bo_buffer_batch[b++] = 0x00000400; /* dw26 */
>  
> @@ -2135,9 +2135,9 @@ static void xe3p_create_indirect_data(uint32_t *addr_bo_buffer_batch,
>  	addr_bo_buffer_batch[b++] = addr_output & 0xffffffff;
>  	addr_bo_buffer_batch[b++] = addr_output >> 32;
>  	addr_bo_buffer_batch[b++] = loop_count;
> -	addr_bo_buffer_batch[b++] = 0x00000200;
> -	addr_bo_buffer_batch[b++] = 0x00000001;
> -	addr_bo_buffer_batch[b++] = 0x00000001;
> +	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_X;
> +	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_Y;
> +	addr_bo_buffer_batch[b++] = ENQUEUED_LOCAL_SIZE_Z;
>  	addr_bo_buffer_batch[b++] = 0x00000000;
>  	addr_bo_buffer_batch[b++] = 0x00000000;
>  	addr_bo_buffer_batch[b++] = 0x00000000;
> -- 
> 2.43.0
> 

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

* ✗ Fi.CI.BAT: failure for lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p
  2026-05-04 11:38 [PATCH i-g-t] lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p Zbigniew Kempczyński
  2026-05-04 13:24 ` Francois Dugast
@ 2026-05-04 17:36 ` Patchwork
  1 sibling, 0 replies; 3+ messages in thread
From: Patchwork @ 2026-05-04 17:36 UTC (permalink / raw)
  To: Zbigniew Kempczyński; +Cc: igt-dev

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

== Series Details ==

Series: lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p
URL   : https://patchwork.freedesktop.org/series/165897/
State : failure

== Summary ==

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



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

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

end of thread, other threads:[~2026-05-04 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 11:38 [PATCH i-g-t] lib/intel_compute: Fix localgroup size passed in indirect data for Xe3p Zbigniew Kempczyński
2026-05-04 13:24 ` Francois Dugast
2026-05-04 17:36 ` ✗ 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