Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] intel_compute: Use valid number of array size for unbind
@ 2024-11-22 10:29 Zbigniew Kempczyński
  2024-11-22 16:09 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Zbigniew Kempczyński @ 2024-11-22 10:29 UTC (permalink / raw)
  To: igt-dev; +Cc: Zbigniew Kempczyński

Due to copy-paste number of elements for unbind is wrong for xe2.
Fix this as it should be paired with bind.

This is likely subject for refactor and use ARRAY_SIZE() but at the
moment it's a quickfix. Luckily number or entries value was smaller
than for bind so we didn't notice the failure, only there were some
dangling vmas in the vm.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
 lib/intel_compute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 3ab9ace793..879928ab64 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1406,7 +1406,7 @@ static void xe2lpg_compute_exec(int fd, const unsigned char *kernel,
 		igt_assert(f1 == f2 * f2);
 	}
 
-	bo_execenv_unbind(&execenv, bo_dict, XEHPC_BO_DICT_ENTRIES);
+	bo_execenv_unbind(&execenv, bo_dict, XE2_BO_DICT_ENTRIES);
 	bo_execenv_destroy(&execenv);
 }
 
-- 
2.34.1


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

end of thread, other threads:[~2024-11-25 13:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 10:29 [PATCH i-g-t] intel_compute: Use valid number of array size for unbind Zbigniew Kempczyński
2024-11-22 16:09 ` ✓ Xe.CI.BAT: success for " Patchwork
2024-11-22 16:25 ` ✓ i915.CI.BAT: " Patchwork
2024-11-23 15:32 ` ✗ Xe.CI.Full: failure " Patchwork
2024-11-25  7:16   ` Zbigniew Kempczyński
2024-11-24 18:49 ` ✗ i915.CI.Full: " Patchwork
2024-11-25  7:17   ` Zbigniew Kempczyński
2024-11-25  9:58 ` [PATCH i-g-t] " Grzegorzek, Dominik
2024-11-25 13:36 ` Kamil Konieczny

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