Skip to contentSkip to conversation

FAILED: patch "[PATCH] drm/i915/skl: Ensure pipes with changed wms get added to the" failed to apply to 4.7-stable tree

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

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.7-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

Quoted 1 line

From 762c60ab0257d25eea8db3e3fec85ed53b5330fe Mon Sep 17 00:00:00 2001

From: Lyude <[email protected]>
Date: Wed, 17 Aug 2016 15:55:57 -0400
Subject: [PATCH] drm/i915/skl: Ensure pipes with changed wms get added to the
state
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If we're enabling a pipe, we'll need to modify the watermarks on all active planes. Since those planes won't be added to the state on their own, we need to add them ourselves.

Cc Ville Syrjälä <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Radhakrishna Sripada <[email protected]>
Cc Hans de Goede <[email protected]>
(cherry picked from commit 05a76d3d6ad1ee9f9814f88949cc9305fc165460)
drivers/gpu/drm/i915/intel_pm.c +4 -0
index 70dcf8d35568..53e13c10e4ea 100644
@@ -4104,6 +4104,10 @@ skl_compute_ddb(struct drm_atomic_state *state)
 		ret = skl_allocate_pipe_ddb(cstate, ddb);
 		if (ret)
 			return ret;
+
+		ret = drm_atomic_add_affected_planes(state, &intel_crtc->base);
+		if (ret)
+			return ret;
 	}
 
 	return 0;