From: Fabien Dessenne Date: Tue, 6 Sep 2016 07:42:39 +0000 (+0200) Subject: drm/sti: in crtc_atomic_flush, enable only planes of this crtc X-Git-Tag: v4.9.8~1110^2~21^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bc6b01de30538f836632a1a701c0061e711b38c;p=platform%2Fkernel%2Flinux-rpi3.git drm/sti: in crtc_atomic_flush, enable only planes of this crtc crtc_atomic_flush performs some additional processing, like plane enable at mixer level. Enable only the planes attached to the CRTC. Signed-off-by: Fabien Dessenne Acked-by: Vincent Abriou --- diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c index 96afe68..bc1b186 100644 --- a/drivers/gpu/drm/sti/sti_crtc.c +++ b/drivers/gpu/drm/sti/sti_crtc.c @@ -165,6 +165,10 @@ static void sti_crtc_atomic_flush(struct drm_crtc *crtc, switch (plane->status) { case STI_PLANE_UPDATED: + /* ignore update for other CRTC */ + if (p->state->crtc != crtc) + continue; + /* update planes tag as updated */ DRM_DEBUG_DRIVER("update plane %s\n", sti_plane_to_str(plane));