drm/i915: Avoid a double-read of PCH_IIR during interrupt handling
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 May 2012 20:45:43 +0000 (21:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:18:24 +0000 (15:18 +0800)
commitb019d4bf936fa7212341053f337c6714f29fc95e
tree2d2eff17ade31ffea18a468d1aad361b2f81b4ea
parent46f736c6f722e9a71ab552178a6bf4edf85ba371
drm/i915: Avoid a double-read of PCH_IIR during interrupt handling

commit 9adab8b5a7fde248504f484e197589f3e3c922e2 upstream.

Currently the code re-reads PCH_IIR during the hotplug interrupt
processing. Not only is this a wasted read, but introduces a potential
for handling a spurious interrupt as we then may not clear all the
interrupts processed (since the re-read IIR may contains more interrupts
asserted than we clear using the result of the original read).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_irq.c