drm/i915: Simplify flushing activity on the ring
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Nov 2012 16:22:53 +0000 (16:22 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 10:43:53 +0000 (11:43 +0100)
commitb662a0663230853fccdfceeda5db031f5d4b657c
tree4c5d4cab41b4008e44d5553ffa48aa19b591d6d8
parent9d7730914f4cd496e356acfab95b41075aa8eae8
drm/i915: Simplify flushing activity on the ring

As we now always preallocate the seqno before writing to the ring, we
can trivially test if we have any pending activity on the ring by
inspecting the olr. This makes it then possible to flush operations that
are not normally associated with a request, like power-management.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c