summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@intel.com>2022-06-10 12:54:57 +0200
committerRamalingam C <ramalingam.c@intel.com>2022-06-15 12:50:02 +0530
commitb96bf5a0307fc0bdbf6c8e86872817306e102883 (patch)
treef67c49f34975178dc9f07e8c0ec50d41828d658d
parentb202293c66680543642883e98d611ce7c1fc6c9f (diff)
i915/gem_exec_balancer: fix parallel_ordering with no-reloc
Make sure to allocate ahnd so that spinner starts with no-reloc execbuf otherwise this will fail on platforms with relocation disabled. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6117 Reviewed-by: Zbigniew KempczyƄski <zbigniew.kempczynski@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
-rw-r--r--tests/i915/gem_exec_balancer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c
index 186975c4..6e6bf470 100644
--- a/tests/i915/gem_exec_balancer.c
+++ b/tests/i915/gem_exec_balancer.c
@@ -3108,6 +3108,7 @@ static void parallel_ordering(int i915, unsigned int flags)
unsigned int count;
int i = 0, fence = 0;
uint32_t batch[16];
+ uint64_t ahnd;
struct drm_i915_gem_execbuffer2 execbuf;
struct drm_i915_gem_exec_object2 obj[32];
igt_spin_t *spin;
@@ -3162,7 +3163,9 @@ static void parallel_ordering(int i915, unsigned int flags)
/* Block parallel submission */
spin_ctx = ctx_create_engines(i915, siblings, count);
+ ahnd = get_simple_ahnd(i915, spin_ctx->id);
spin = __igt_spin_new(i915,
+ .ahnd = ahnd,
.ctx = spin_ctx,
.engine = 0,
.flags = IGT_SPIN_FENCE_OUT |
@@ -3204,6 +3207,7 @@ static void parallel_ordering(int i915, unsigned int flags)
gem_close(i915, obj[i].handle);
free(siblings);
igt_spin_free(i915, spin);
+ put_ahnd(ahnd);
}
}