From: Ville Syrjälä Date: Mon, 18 Feb 2013 17:08:49 +0000 (+0200) Subject: drm/i915: Finish page flips and update primary planes after a GPU reset X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~60^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96a02917a0131e52efefde49c2784c0421d6c439;p=pandora-kernel.git drm/i915: Finish page flips and update primary planes after a GPU reset GPU reset will drop all flips that are still in the ring. So after the reset, call update_plane() for all CRTCs to make sure the primary planes are scanning out from the correct buffer. Also finish all pending flips. That means user space will get its page flip events and won't get stuck waiting for them. v2: Explicitly finish page flips instead of relying on FLIP_DONE interrupt being generated by the base address update. v3: Make two loops over crtcs to avoid deadlocks with the crtc mutex Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson [danvet: Fixup long line complaint from checkpatch.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed