drm/i915: Generalise wait for execlists to be idle
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Mar 2017 12:19:47 +0000 (12:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Mar 2017 13:08:15 +0000 (13:08 +0000)
commit0542524944c2ae3264ca8e6b5f0c7a111f09a2c2
tree92276c04580c29ac2b708b3365794aee2ce32387
parent5400367a864ddafdfb9d5d04cf6f9979665ef349
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>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/i915_gem_request.c