summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_uncore.c
diff options
context:
space:
mode:
authorMika Kuoppala2015-12-15 15:25:07 +0100
committerMika Kuoppala2016-01-08 12:09:18 +0100
commitfc97618bf373b496858eca463e5154085835ae41 (patch)
tree3fc6d8fddcd23ddd8dbcade881fa94ee2124f929 /drivers/gpu/drm/i915/intel_uncore.c
parentdrm/i915: Consolidate unclaimed mmio detection (diff)
downloadkernel-qcow2-linux-fc97618bf373b496858eca463e5154085835ae41.tar.gz
kernel-qcow2-linux-fc97618bf373b496858eca463e5154085835ae41.tar.xz
kernel-qcow2-linux-fc97618bf373b496858eca463e5154085835ae41.zip
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/intel_uncore.c')
-rw-r--r--drivers/gpu/drm/i915/intel_uncore.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
index 358cb9cb219e..7ab5916f90dd 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -1596,8 +1596,7 @@ bool intel_has_gpu_reset(struct drm_device *dev)
return intel_get_gpu_reset(dev) != NULL;
}
-void intel_uncore_check_errors(struct drm_device *dev)
+bool intel_uncore_unclaimed_mmio(struct drm_i915_private *dev_priv)
{
- if (check_for_unclaimed_mmio(to_i915(dev)))
- DRM_ERROR("Unclaimed register before interrupt\n");
+ return check_for_unclaimed_mmio(dev_priv);
}