summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/selftests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-03 15:19:47 +0300
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-03 16:08:15 +0300
commit0542524944c2ae3264ca8e6b5f0c7a111f09a2c2 (patch)
tree92276c04580c29ac2b708b3365794aee2ce32387 /drivers/gpu/drm/i915/selftests
parent5400367a864ddafdfb9d5d04cf6f9979665ef349 (diff)
downloadlinux-0542524944c2ae3264ca8e6b5f0c7a111f09a2c2.tar.xz
drm/i915: Generalise wait for execlists to be idle
The code to check for execlists completion is generic, so move it to intel_engine_cs.c, where we can reuse the new intel_engine_is_idle(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/20170303121947.20482-2-chris@chris-wilson.co.uk Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_gem_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_request.c b/drivers/gpu/drm/i915/selftests/i915_gem_request.c
index 42bdeac93324..926b24c117d6 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_request.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_request.c
@@ -303,7 +303,7 @@ static int end_live_test(struct live_test *t)
{
struct drm_i915_private *i915 = t->i915;
- if (wait_for(intel_execlists_idle(i915), 1)) {
+ if (wait_for(intel_engines_are_idle(i915), 1)) {
pr_err("%s(%s): GPU not idle\n", t->func, t->name);
return -EIO;
}