From: Ville Syrjälä Date: Tue, 19 Feb 2013 13:16:38 +0000 (+0200) Subject: drm/i915: Eliminate race from gen2/3 page flip interrupt handling X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~60^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e2032d47ac9b67e671bd855c5e68005190954da;p=pandora-kernel.git drm/i915: Eliminate race from gen2/3 page flip interrupt handling If the interrupt handler were to process a previous vblank interrupt and the following flip pending interrupt at the same time, the page flip would be completed too soon. To eliminate this race, check the live pending flip status from the ISR register before finishing the page flip. v2: Added a comment explaining the logic (by Chris Wilson) v3: Fix a typo in the comment Reviewed-by: Chris Wilson Tested-by: Chris Wilson Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed