[Intel-gfx] [PATCH] drm/i915/selftests: Make the kernel_context pulse explicit
Chris Wilson
chris at chris-wilson.co.uk
Mon Feb 24 16:10:46 UTC 2020
As we disable the heartbeat, and prevent the engine parking, the switch
to kernel context is not automatic. Make it an explicit switch instead.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/gt/selftest_lrc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c
index febd608c23a7..35a7b37b1abc 100644
--- a/drivers/gpu/drm/i915/gt/selftest_lrc.c
+++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c
@@ -4644,6 +4644,10 @@ static int __lrc_timestamp(const struct lrc_timestamp *arg, bool preempt)
}
/* and wait for switch to kernel */
+ err = intel_engine_pulse(arg->engine);
+ if (err)
+ goto err;
+
if (igt_flush_test(arg->engine->i915)) {
err = -EIO;
goto err;
--
2.25.1
More information about the Intel-gfx
mailing list