drm/i915: Handle PendingFlip on gen3 robustly
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Apr 2012 21:59:50 +0000 (22:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 May 2012 09:18:19 +0000 (11:18 +0200)
commit38bde18045afe854f389961846d64c4b3f86105f
treea3071211e984632f02976730fbd8ff6aad0785c9
parent55b39755ea3a767da85e6725a783da90c574a274
drm/i915: Handle PendingFlip on gen3 robustly

We appear to allow too many pending pageflips as evidenced by an
apparent pin-leak. So borrow the pageflip completion logic from i8xx for
handling PendingFlip in a robust manner.

v2: Address Jesse's reminders about the nuances of gen3 IRQ handling.

References: https://bugzilla.kernel.org/show_bug.cgi?id=41882
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c