[PATCH 05/16] drm/i915: wait one vblank when disabling CRCs

Daniel Vetter
2013-10-16T21:00:05Z

This avoids a spurious spurious interrupt warning.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 323f58e..349f149 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2040,6 +2040,8 @@ static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
DRM_DEBUG_DRIVER("stopping CRCs for pipe %c\n",
pipe_name(pipe));

+ intel_wait_for_vblank(dev, pipe);
+
kfree(pipe_crc->entries);
pipe_crc->entries = NULL;
}
--
1.8.4.rc3