Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcf17ab2 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/i915: wait one vblank when disabling CRCs



This avoids a spurious spurious interrupt warning.

Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 8bc5e955
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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",
		DRM_DEBUG_DRIVER("stopping CRCs for pipe %c\n",
				 pipe_name(pipe));
				 pipe_name(pipe));


		intel_wait_for_vblank(dev, pipe);

		kfree(pipe_crc->entries);
		kfree(pipe_crc->entries);
		pipe_crc->entries = NULL;
		pipe_crc->entries = NULL;
	}
	}