drm/i915: Wait for vblank between disabling a sprite and unpinning the fb
Subsystems (2)
PATCH 1/1 drm/i915: Wait for vblank between disabling a sprite and unpinning the fb
From: Ville Syrjälä <[email protected]>
When disabling a sprite, wait for the sprite to stop fetching data from memory before unpinning the fb.
Signed-off-by Ville Syrjälä <[email protected]>
--- drivers/gpu/drm/i915/intel_sprite.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_sprite.c +2 -0
@@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane)if (!intel_plane->obj) goto out; +intel_wait_for_vblank (dev, intel_plane->pipe); +mutex_lock (&dev->struct_mutex);intel_unpin_fb_obj (intel_plane->obj); intel_plane->obj =NULL ;
Signature · 6 lines
1.8.1.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 15 lines · On Wed, 27 Mar 2013 17:49:13 +0200 [email protected] wrote:
From: Ville Syrjälä <[email protected]>
When disabling a sprite, wait for the sprite to stop fetching data from memory before unpinning the fb.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_sprite.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/intel_sprite.c +0
-0
drivers/gpu/drm/i915/intel_sprite.c intel_disable_plane(struct drm_plane *plane) · line 589
Quoted 8 lines
drivers/gpu/drm/i915/intel_sprite.c +2
-0@@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane)if (!intel_plane->obj) goto out; +intel_wait_for_vblank (dev, intel_plane->pipe); +mutex_lock (&dev->struct_mutex);intel_unpin_fb_obj (intel_plane->obj); intel_plane->obj =NULL ;
Reviewed-by Jesse Barnes <[email protected]>
Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 21 lines · Jesse Barnes
Quoted 18 lines · On Wed, 27 Mar 2013 17:49:13 +0200 [email protected] wrote:
From: Ville Syrjälä <[email protected]>
When disabling a sprite, wait for the sprite to stop fetching data from memory before unpinning the fb.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_sprite.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/intel_sprite.c +0
-0@@ -582,6 +582,8 @@ intel_disable_plane(struct drm_plane *plane)if (!intel_plane->obj) goto out;
Quoted 7 lines
drivers/gpu/drm/i915/intel_sprite.c intel_disable_plane(struct drm_plane *plane) · line 589
Quoted 5 lines
drivers/gpu/drm/i915/intel_sprite.c +2
-0+intel_wait_for_vblank (dev, intel_plane->pipe); +mutex_lock (&dev->struct_mutex);intel_unpin_fb_obj (intel_plane->obj); intel_plane->obj =NULL ;Reviewed-by Jesse Barnes <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch