]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc9979a99c8ad3cc420eb5b40c4a60a09c73e3e21
tree4c5d4cab41b4008e44d5553ffa48aa19b591d6d8
parent9ff25d274182726b5402ee5127700b582b2d3831
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