From: Daniel Vetter Date: Wed, 16 Oct 2013 20:55:50 +0000 (+0200) Subject: drm/i915: wait one vblank when disabling CRCs X-Git-Tag: next-20131021~65^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bcf17ab2e9a9b15abdfce83461d4f98e0d11aa1a;p=karo-tx-linux.git drm/i915: wait one vblank when disabling CRCs This avoids a spurious spurious interrupt warning. Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index baa527234b93..e85507b335e5 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; }