drm/i915: Fix error handler to capture the first batch after the seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Jan 2011 20:33:01 +0000 (20:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Jan 2011 16:06:05 +0000 (16:06 +0000)
commitc37d9a5de94a6fe60a756af350cd21aa9bbbc8a1
treebaf3dbb044dfcec7add270661400e097026153df
parenta76150302d6e7ebc43e1a1ddaee7fd51db8da3b3
drm/i915: Fix error handler to capture the first batch after the seqno

Whilst we had no older batches on the active list, everything was fine.
However, if the GPU is free running and the requests are only being
reaped by the periodic retirer, than the current seqno may not be at the
start of the list. In this case we need to select the first batch after
the last seqno written by the gpu and not inclusive of the seqno.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_irq.c