aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-01-29 11:13:33 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-02-19 18:21:42 -0500
commit3d56e2d62b333aab434cba5a40e2353cac61154f (patch)
tree141f4101909776bd978da82767cbec39e9ac5d1e /drivers/gpu/drm
parent9abdda74acb0027561747fa40a1e8d387a3e08c2 (diff)
drm/i915: Kill obj->pending_flip
The pending flip mask no longer set anywhere, so trying to wait for while it's non-zero is a no-op. Remove it completely. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h7
-rw-r--r--drivers/gpu/drm/i915/intel_display.c6
2 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 0f1d15bac517..b1f6a0925b59 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1215,13 +1215,6 @@ struct drm_i915_gem_object {
1215 1215
1216 /** for phy allocated objects */ 1216 /** for phy allocated objects */
1217 struct drm_i915_gem_phys_object *phys_obj; 1217 struct drm_i915_gem_phys_object *phys_obj;
1218
1219 /**
1220 * Number of crtcs where this object is currently the fb, but
1221 * will be page flipped away on the next vblank. When it
1222 * reaches 0, dev_priv->pending_flip_queue will be woken up.
1223 */
1224 atomic_t pending_flip;
1225}; 1218};
1226#define to_gem_object(obj) (&((struct drm_i915_gem_object *)(obj))->base) 1219#define to_gem_object(obj) (&((struct drm_i915_gem_object *)(obj))->base)
1227 1220
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d28f43f81200..6dfb49c25ea8 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2226,12 +2226,6 @@ intel_finish_fb(struct drm_framebuffer *old_fb)
2226 bool was_interruptible = dev_priv->mm.interruptible; 2226 bool was_interruptible = dev_priv->mm.interruptible;
2227 int ret; 2227 int ret;
2228 2228
2229 WARN_ON(waitqueue_active(&dev_priv->pending_flip_queue));
2230
2231 wait_event(dev_priv->pending_flip_queue,
2232 i915_reset_in_progress(&dev_priv->gpu_error) ||
2233 atomic_read(&obj->pending_flip) == 0);
2234
2235 /* Big Hammer, we also need to ensure that any pending 2229 /* Big Hammer, we also need to ensure that any pending
2236 * MI_WAIT_FOR_EVENT inside a user batch buffer on the 2230 * MI_WAIT_FOR_EVENT inside a user batch buffer on the
2237 * current scanout is retired before unpinning the old 2231 * current scanout is retired before unpinning the old