Skip to contentSkip to conversation

Patch "drm: i915: Wait for fences on new fb, not old" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Nov 9, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm: i915: Wait for fences on new fb, not old

to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     drm-i915-wait-for-fences-on-new-fb-not-old.patch

and it can be found in the queue-4.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 1fb3672eaf6ec95fb34c22734feffd6041531c5b Mon Sep 17 00:00:00 2001

From: Daniel Stone <[email protected]>
Date: Fri, 21 Oct 2016 15:44:54 +0100
Subject: drm: i915: Wait for fences on new fb, not old

From: Daniel Stone <[email protected]>

commit 1fb3672eaf6ec95fb34c22734feffd6041531c5b upstream.

The previous code would wait for fences on the framebuffer from the old plane state to complete, rather than the new, so you would see tearing everywhere. Fix this to wait on the new state before we make it active.

Fixes 94f050246b42 ("drm/i915: nonblocking commit")
Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
(cherry picked from commit 2d2c5ad83f772d7d7b0bb8348ecea42e88f89ab0)
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -13834,7 +13834,7 @@ static void intel_atomic_commit_tail(str
 
 	for_each_plane_in_state(state, plane, plane_state, i) {
 		struct intel_plane_state *intel_plane_state =
-			to_intel_plane_state(plane_state);
+			to_intel_plane_state(plane->state);
 
 		if (!intel_plane_state->wait_req)
 			continue;

Patches currently in stable-queue which might be from [email protected] are

queue-4.8/drm-i915-wait-for-fences-on-new-fb-not-old.patch