[Intel-gfx] [RFC i-g-t 3/5] lib/igt_hang_ctx: Use dummyload batch to hang ctx.
Antonio Argenziano
antonio.argenziano at intel.com
Thu Dec 7 22:03:45 UTC 2017
On 07/12/17 03:05, Chris Wilson wrote:
> 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;
Ops, thanks for catching this.
-Antonio
>
> which should fix up the CI failures.
> -Chris
>
More information about the Intel-gfx
mailing list