[PATCH i-g-t 07/28] tests/gem_create: Adopt to use allocator
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Fri Jun 11 11:50:42 UTC 2021
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/i915/gem_create.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c
index 167d7d28a..23ba53a74 100644
--- a/tests/i915/gem_create.c
+++ b/tests/i915/gem_create.c
@@ -248,10 +248,13 @@ static void busy_create(int i915, int timeout)
struct intel_execution_engine2 *e;
igt_spin_t *spin[I915_EXEC_RING_MASK + 1];
unsigned long count = 0;
+ uint64_t ahnd = get_reloc_ahnd(i915, 0);
igt_fork_hang_detector(i915);
__for_each_physical_engine(i915, e)
- spin[e->flags] = igt_spin_new(i915, .engine = e->flags);
+ spin[e->flags] = igt_spin_new(i915,
+ .ahnd = ahnd,
+ .engine = e->flags);
igt_until_timeout(timeout) {
__for_each_physical_engine(i915, e) {
@@ -260,6 +263,7 @@ static void busy_create(int i915, int timeout)
handle = gem_create(i915, 4096);
next = igt_spin_new(i915,
+ .ahnd = ahnd,
.engine = e->flags,
.dependency = handle,
.flags = IGT_SPIN_SOFTDEP);
@@ -276,6 +280,7 @@ static void busy_create(int i915, int timeout)
gem_quiescent_gpu(i915);
igt_stop_hang_detector();
+ put_ahnd(ahnd);
}
static void size_update(int fd)
--
2.26.0
More information about the Intel-gfx-trybot
mailing list