]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Open-code i915_gpu_idle() for handling seqno wrapping
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Dec 2012 11:56:17 +0000 (13:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Dec 2012 13:07:03 +0000 (14:07 +0100)
commitb52323b811a8451f9e655f58e272374740307f6e
treeccd84f630417e15b62bd985785cf9b55058586c3
parent33d5d118b1dc85be2cb625f17a9d71ca41dcb74c
drm/i915: Open-code i915_gpu_idle() for handling seqno wrapping

The complication is that during seqno wrapping we must be extremely
careful not to write to any ring as that will require a new seqno, and
so would recurse back into the seqno wrap handler. So we cannot call
i915_gpu_idle() as that does additional work beyond simply retiring the
current set of requests, and instead must do the minimal work ourselves
during seqno wrapping.

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