[Intel-gfx] [RFC i-g-t 3/5] lib/igt_hang_ctx: Use dummyload batch to hang ctx.
Chris Wilson
chris at chris-wilson.co.uk
Thu Dec 7 11:05:32 UTC 2017
Quoting Antonio Argenziano (2017-12-06 23:03:44)
> To hang a context we were effectively reimplementing a spinning batch
> and never stopping it. This patch reuses the recursive batch from
> igt_dummyload to hang a context.
>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
> ---
> #define SCRATCH 0
> @@ -168,6 +168,8 @@ static void emit_recursive_batch(igt_spin_t *spin,
> execbuf.flags = engines[i];
> gem_execbuf(fd, &execbuf);
> }
> +
> + spin->spinning_offset = obj->offset;
s/spinning_offset/gtt_offset;
spin->gtt_offset = obj[BATCH].offset;
which should fix up the CI failures.
-Chris
More information about the Intel-gfx
mailing list