public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf
@ 2013-09-22 18:51 Daniel Vetter
  2013-09-23  8:17 ` Ville Syrjälä
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Daniel Vetter @ 2013-09-22 18:51 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter, Meelis Roos

This regression has been introduced in

commit 9f11a9e4e50006b615ba94722dfc33ced89664cf
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jun 13 00:54:58 2013 +0200

    drm/i915: set up PIPECONF explicitly for i9xx/vlv platforms

Ville brough up the idea that this is just the pipe A quirk gone
wrong.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66462
References: https://lkml.org/lkml/2013/8/26/238
Cc: Meelis Roos <mroos@ut.ee>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/intel_display.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f7d868e..be97b42 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -4833,7 +4833,11 @@ static void i9xx_set_pipeconf(struct intel_crtc *intel_crtc)
 	struct drm_i915_private *dev_priv = dev->dev_private;
 	uint32_t pipeconf;
 
-	pipeconf = 0;
+	if (dev_priv->quirks & QUIRK_PIPEA_FORCE) {
+		pipeconf =
+			I915_READ(PIPECONF(intel_crtc->pipe)) & PIPECONF_ENABLE;
+	} else
+		pipeconf = 0;
 
 	if (intel_crtc->config.double_wide)
 		pipeconf |= PIPECONF_DOUBLE_WIDE;
-- 
1.8.4.rc3

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-09-24 12:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-22 18:51 [PATCH] drm/i915: preserve pipe A quirk in i9xx_set_pipeconf Daniel Vetter
2013-09-23  8:17 ` Ville Syrjälä
2013-09-23  8:37   ` Daniel Vetter
2013-09-23  9:55     ` Chris Wilson
2013-09-23 21:18       ` Meelis Roos
2013-09-23 21:19         ` Chris Wilson
2013-09-24  9:05       ` Daniel Vetter
2013-09-24  9:11         ` Chris Wilson
2013-09-23 12:06 ` Meelis Roos
2013-09-23 20:05   ` Meelis Roos
2013-09-23 20:11     ` Chris Wilson
2013-09-24  9:46       ` Daniel Vetter
2013-09-24 12:05         ` Chris Wilson
2013-09-24 12:50           ` Daniel Vetter
2013-09-23 15:15 ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox