Re: [RFC i-g-t 3/5] lib/igt_hang_ctx: Use dummyload batch to hang ctx.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Antonio Argenziano <antonio.argenziano@xxxxxxxxx>
---
  #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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux