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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:58 +0000 (00:43 +0100)
commitd4599f3bbffe162f91ebeea6c610af549a34348b
tree0cb930d0cd687c810fcbb392bbbeee0fc8768efe
parent42a8c2cbc48b9cf37fbc7ad73d0238630c5f5272
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: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/i915/i915_irq.c