From be9296a1e1e4d288d4baee3aba89480f007dea6c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 13 Apr 2018 15:06:43 +0100 Subject: lib/dummyload: Control whether or not the batch is preemptible Sometimes, we do not want to allow control to escape from the spinner, e.g. for when we want to hang the GPU inside the batch. (Split out from the preempt-timeout test case.) Signed-off-by: Chris Wilson Reviewed-by: Antonio Argenziano --- lib/igt_dummyload.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/igt_dummyload.h') diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h index e80a1245..38bc7682 100644 --- a/lib/igt_dummyload.h +++ b/lib/igt_dummyload.h @@ -50,9 +50,10 @@ struct igt_spin_factory { unsigned int flags; }; -#define IGT_SPIN_FENCE_OUT (1 << 0) -#define IGT_SPIN_POLL_RUN (1 << 1) -#define IGT_SPIN_FAST (1 << 2) +#define IGT_SPIN_FENCE_OUT (1 << 0) +#define IGT_SPIN_POLL_RUN (1 << 1) +#define IGT_SPIN_FAST (1 << 2) +#define IGT_SPIN_NO_PREEMPTION (1 << 3) igt_spin_t * __igt_spin_batch_factory(int fd, const struct igt_spin_factory *opts); -- cgit v1.2.3