Re: [PATCH 6/7] drm/i915: fix page flipping on gen3

2010-04-05 Thread Jesse Barnes
On Fri, 26 Mar 2010 13:41:08 -0700 Jesse Barnes wrote: > On Fri, 26 Mar 2010 11:07:20 -0700 > Jesse Barnes wrote: > > > - if (iir & I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT) > > + if ((iir & I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT) && > > + !(pipeb_stats

Re: [PATCH 6/7] drm/i915: fix page flipping on gen3

2010-03-26 Thread Jesse Barnes
On Fri, 26 Mar 2010 11:07:20 -0700 Jesse Barnes wrote: > - if (iir & I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT) > + if ((iir & I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT) && > + !(pipeb_stats & pipe_vblank_mask)) { > + DRM_ERROR("flip

[PATCH 6/7] drm/i915: fix page flipping on gen3

2010-03-26 Thread Jesse Barnes
Gen3 chips have slightly different flip commands, and also contain a bit that indicates whether a "flip pending" interrupt means the flip has been queued or has been completed. So implement support for the gen3 flip command, and make sure we use the flip pending interrupt correctly depending on th