All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: v4.2?@freedesktop.org, "Tomas M." <tmezzadra@gmail.com>,
	stable@vger.kernel.org#v4.3
Subject: [PATCH] drm/i915: Do a better job at disabling primary plane in the noatomic case.
Date: Wed, 11 Nov 2015 15:36:13 +0100	[thread overview]
Message-ID: <1447252573-26167-1-git-send-email-maarten.lankhorst@linux.intel.com> (raw)

When disable_noatomic is called plane_mask is not reliable yet,
and plane_state->visible = true even after disabling the primary plane.

Fix this by unsetting plane->visible if it was visible, and calling
disable_planes with the primary plane as mask.

The other planes are already disabled in intel_sanitize_crtc, so
they don't have to be handled here.

Cc: stable@vger.kernel.org #v4.3, v4.2?
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92655
Tested-by: Tomas Mezzadra <tmezzadra@gmail.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index b5f7493213b7..bc3282ab5ed2 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6267,9 +6267,11 @@ static void intel_crtc_disable_noatomic(struct drm_crtc *crtc)
 		WARN_ON(intel_crtc->unpin_work);
 
 		intel_pre_disable_primary(crtc);
+
+		intel_crtc_disable_planes(crtc, 1 << drm_plane_index(crtc->primary));
+		to_intel_plane_state(crtc->primary->state)->visible = false;
 	}
 
-	intel_crtc_disable_planes(crtc, crtc->state->plane_mask);
 	dev_priv->display.crtc_disable(crtc);
 	intel_crtc->active = false;
 	intel_update_watermarks(crtc);
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2015-11-11 14:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 14:36 Maarten Lankhorst [this message]
2015-11-12 13:37 ` [Intel-gfx] [PATCH] drm/i915: Do a better job at disabling primary plane in the noatomic case Ander Conselvan De Oliveira
2015-11-12 13:58   ` Maarten Lankhorst
2015-11-13 13:28     ` Ander Conselvan De Oliveira
2015-11-23  9:25       ` [PATCH v2] " Maarten Lankhorst
2015-11-23  9:25         ` Maarten Lankhorst
2015-12-01  9:07         ` [Intel-gfx] " Jani Nikula
2015-12-09 13:25           ` Tomas M
2015-12-09 14:22             ` [Intel-gfx] " Jani Nikula
2015-12-10  8:33         ` Daniel Vetter
2015-12-10 12:47           ` Jani Nikula
2015-12-10 12:47             ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447252573-26167-1-git-send-email-maarten.lankhorst@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=stable@vger.kernel.org#v4.3 \
    --cc=tmezzadra@gmail.com \
    --cc=v4.2?@freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.