public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] i915/gem_ctx_engine: Prevent preemption
@ 2019-06-18 20:21 Chris Wilson
  2019-06-18 21:07 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chris Wilson @ 2019-06-18 20:21 UTC (permalink / raw)
  To: intel-gfx

In order to pin the engine as busy, we have to prevent the kernel from
executing other independent work ahead of our plug, so tell the spinner
to not allow preemption.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/gem_ctx_engines.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_ctx_engines.c b/tests/i915/gem_ctx_engines.c
index 3ecade417..d47cbdd7c 100644
--- a/tests/i915/gem_ctx_engines.c
+++ b/tests/i915/gem_ctx_engines.c
@@ -283,7 +283,8 @@ static void execute_one(int i915)
 
 			spin = igt_spin_new(i915,
 					    .ctx = param.ctx_id,
-					    .engine = 0);
+					    .engine = 0,
+					    .flags = IGT_SPIN_NO_PREEMPTION);
 
 			igt_debug("Testing with map of %d engines\n", i + 1);
 			memset(&engines.engines, -1, sizeof(engines.engines));
-- 
2.20.1

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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-06-19 16:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-18 20:21 [PATCH i-g-t] i915/gem_ctx_engine: Prevent preemption Chris Wilson
2019-06-18 21:07 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-06-19  6:32 ` [PATCH i-g-t] " Tvrtko Ursulin
2019-06-19  8:34   ` Chris Wilson
2019-06-19  8:44     ` Tvrtko Ursulin
2019-06-19  8:46       ` Chris Wilson
2019-06-19 16:06 ` ✓ Fi.CI.IGT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox