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 <ch...@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

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

Reply via email to