[PATCH i-g-t 27/57] tests/gem_mmap_offset: Add allocator support

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Jul 21 05:56:02 UTC 2021


From: Sai Gowtham <sai.gowtham.ch at intel.com>

Signed-off-by: Sai Gowtham <sai.gowtham.ch at intel.com>
---
 tests/i915/gem_mmap_offset.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_mmap_offset.c b/tests/i915/gem_mmap_offset.c
index f1ba67b7c..0d6b8264b 100644
--- a/tests/i915/gem_mmap_offset.c
+++ b/tests/i915/gem_mmap_offset.c
@@ -248,7 +248,9 @@ static void isolation(int i915)
 
 static void pf_nonblock(int i915)
 {
-	igt_spin_t *spin = igt_spin_new(i915);
+	igt_spin_t *spin;
+	uint64_t ahnd = get_reloc_ahnd(i915, 0);
+	spin = igt_spin_new(i915, .ahnd = ahnd);
 
 	for_each_mmap_offset_type(i915, t) {
 		uint32_t *ptr;
@@ -268,6 +270,7 @@ static void pf_nonblock(int i915)
 	}
 
 	igt_spin_free(i915, spin);
+	put_ahnd(ahnd);
 }
 
 static void *memchr_inv(const void *s, int c, size_t n)
-- 
2.26.0



More information about the Intel-gfx-trybot mailing list