Skip to contentSkip to conversation

drm/i915: Wait for vblank between disabling a sprite and unpinning the fb

PATCH Applied [email protected] 3 participants 3 messages Mar 27, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/gpu/drm/i915/intel_sprite.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_sprite.c +2 -0
index 414d325..27df5b8 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
 drivers/gpu/drm/i915/intel_sprite.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_sprite.c +0 -0
index 414d325..27df5b8 100644

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;
Signature · 5 lines
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 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.

---
 drivers/gpu/drm/i915/intel_sprite.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/intel_sprite.c +0 -0
index 414d325..27df5b8 100644
@@ -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;

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