drm/i915: wait one vblank when disabling CRCs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 20:55:50 +0000 (22:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Oct 2013 13:05:34 +0000 (15:05 +0200)
This avoids a spurious spurious interrupt warning.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index baa527234b93678e77127e47447a55f957640c48..e85507b335e541dc17cc0a3b40fb28506c2694d1 100644 (file)
@@ -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;
        }