X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fgpu%2Fdrm%2Fi915%2Fgt%2Fselftest_context.c;h=1f4020e906a8aecf64503f97da76176cc8a6be07;hb=62b1522cc3217e75478b607562c678b052d9179a;hp=52af1cee9a94eb4845766538d2598537d9dd7120;hpb=06b73c2d0b65f17e698f6a662affd7a08853c86f;p=linux-2.6-microblaze.git diff --git a/drivers/gpu/drm/i915/gt/selftest_context.c b/drivers/gpu/drm/i915/gt/selftest_context.c index 52af1cee9a94..1f4020e906a8 100644 --- a/drivers/gpu/drm/i915/gt/selftest_context.c +++ b/drivers/gpu/drm/i915/gt/selftest_context.c @@ -68,6 +68,8 @@ static int context_sync(struct intel_context *ce) } while (!err); mutex_unlock(&tl->mutex); + /* Wait for all barriers to complete (remote CPU) before we check */ + i915_active_unlock_wait(&ce->active); return err; }