summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_irq.c
diff options
context:
space:
mode:
authorMika Kuoppala <mika.kuoppala@linux.intel.com>2015-12-15 16:25:07 +0200
committerMika Kuoppala <mika.kuoppala@intel.com>2016-01-08 13:09:18 +0200
commitfc97618bf373b496858eca463e5154085835ae41 (patch)
tree3fc6d8fddcd23ddd8dbcade881fa94ee2124f929 /drivers/gpu/drm/i915/i915_irq.c
parent8a47eb198d6e59e5d2509324287d0d913b2d5af1 (diff)
downloadop-kernel-dev-fc97618bf373b496858eca463e5154085835ae41.zip
op-kernel-dev-fc97618bf373b496858eca463e5154085835ae41.tar.gz
drm/i915: Introduce intel_uncore_unclaimed_mmio
Currently interrupt code is the only place checking for the unclaimed register access prior to actual register macros using the same functionality. Rename the function and make it return bool so that the possible error message context is clear in the caller side. The motivation is to allow usage of unclaimed detection on arbitrary places. v2: rebase, s/access/mmio, s/dev/dev_priv Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1450189512-30360-2-git-send-email-mika.kuoppala@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index b775dec..e7e44a9 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -2190,7 +2190,8 @@ static irqreturn_t ironlake_irq_handler(int irq, void *arg)
/* We get interrupts on unclaimed registers, so check for this before we
* do any I915_{READ,WRITE}. */
- intel_uncore_check_errors(dev);
+ if (intel_uncore_unclaimed_mmio(dev_priv))
+ DRM_ERROR("Unclaimed register before interrupt\n");
/* disable master interrupt before clearing iir */
de_ier = I915_READ(DEIER);
OpenPOWER on IntegriCloud