aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-03 12:19:47 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-03 13:08:15 +0000
commit0542524944c2ae3264ca8e6b5f0c7a111f09a2c2 (patch)
tree92276c04580c29ac2b708b3365794aee2ce32387 /drivers/gpu/drm/i915/intel_ringbuffer.h
parentdrm/i915: Ensure the engine is idle before manually changing HWS (diff)
downloadlinux-dev-0542524944c2ae3264ca8e6b5f0c7a111f09a2c2.tar.xz
linux-dev-0542524944c2ae3264ca8e6b5f0c7a111f09a2c2.zip
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/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index 38580765bfd6..55a6a3f8274c 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -665,5 +665,6 @@ static inline u32 *gen8_emit_pipe_control(u32 *batch, u32 flags, u32 offset)
}
bool intel_engine_is_idle(struct intel_engine_cs *engine);
+bool intel_engines_are_idle(struct drm_i915_private *dev_priv);
#endif /* _INTEL_RINGBUFFER_H_ */