Message ID | 20110401192106.2cca8cd7@jbarnes-x200 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 8cb7f93..47fb29a 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1790,14 +1790,18 @@ bool i915_gpu_busy(void) struct drm_i915_private *dev_priv; bool ret = false; + DRM_ERROR("entering busy check, trying to take lock\n"); + spin_lock(&mchdev_lock); if (!i915_mch_dev) goto out_unlock; + DRM_ERROR("got lock, returning current busy status\n"); dev_priv = i915_mch_dev; ret = dev_priv->busy; out_unlock: + DRM_ERROR("unlock & return\n"); spin_unlock(&mchdev_lock); return ret;