From: Ville Syrjälä Date: Tue, 19 Feb 2013 13:16:39 +0000 (+0200) Subject: drm/i915: Fix races in gen4 page flip interrupt handling X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~55^2~60^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21ad833075801a7cd81b5ef1604ffc6c600e5ff9;p=pandora-kernel.git drm/i915: Fix races in gen4 page flip interrupt handling Use the gen3 logic for handling page flip interrupts on gen4. Unfortuantely this kills the stall_check since that looks like it can easily trigger too early. With the current logic the stall check would kick in on the first vblank after the flip has been submitted to the ring. If the CS takes longer than that to process the commands in the ring, the stall check will cause the page flip to be complete too early. That doesn't sound like a very good idea. Something better should be deviced if we still need the stall check. For now, mark i915_pageflip_stall_check() as unused. v2: Fix irq enable_mask and add __always_unused (Chris Wilson) References: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1116587 Reviewed-by: Chris Wilson Tested-by: Chris Wilson Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed